/* Generated by build-performance.py. Edit the original CSS files. */

/* lesson-library.css */
.lesson-library {
  max-width: 1100px;
  margin: 48px auto;
  padding: 32px;
  background: linear-gradient(135deg, #fafbf5, #e9eedf);
  border: 1px solid #d7dfca;
  border-radius: 28px;
  box-shadow:
    0 6px 0 #dce3d0,
    0 15px 35px #344d3510;
  color: #294638;
}
.lesson-library h2 {
  font:
    2rem Georgia,
    serif;
  margin: 10px 0;
}
.lesson-library h2 em {
  color: #b76c48;
}
.lesson-library p {
  line-height: 1.65;
}
.lesson-eyebrow,
.lesson-resume span {
  font-size: 0.8rem;
  letter-spacing: 0.12em;
}
.lesson-resume {
  display: flex;
  gap: 24px;
  padding: 24px;
  margin: 24px 0;
  border-radius: 20px;
  background: #fffdf7;
  border: 1px solid #dce3d0;
  box-shadow: 0 5px 15px #29463809;
}
.lesson-resume img {
  object-fit: contain;
  border-radius: 12px;
  align-self: center;
}
.lesson-resume h3 {
  margin: 8px 0;
  font-size: 1.2rem;
}
.lesson-link,
.lesson-favorite {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 8px 16px;
  border: 1px solid #c9d5b9;
  border-radius: 18px;
  background: #edf2e5;
  color: #294638;
  font: inherit;
  text-decoration: none;
  cursor: pointer;
  transition:
    background 0.2s,
    box-shadow 0.2s;
}
.lesson-favorite[aria-pressed='true'] {
  background: #e1e9d5;
}
.lesson-link:hover,
.lesson-favorite:hover {
  background: #f2e2d2;
  box-shadow: 0 2px 12px #cda77b30;
}
.lesson-link:focus-visible,
.lesson-favorite:focus-visible,
.lesson-toolbar a:focus-visible {
  outline: 3px solid #b58e59;
  outline-offset: 3px;
}
.lesson-saved-heading h3 {
  margin-bottom: 0;
}
.lesson-saved-heading h3 span {
  font-size: 1rem;
  padding: 4px 10px;
  border-radius: 20px;
  background: #dce6cd;
}
.lesson-saved-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}
.lesson-saved-card {
  padding: 18px;
  border-radius: 20px;
  background: #fffdf7;
  border: 1px solid #dce3d0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.lesson-saved-card img {
  width: 100%;
  object-fit: contain;
}
.lesson-saved-card h4 {
  font-size: 1rem;
  line-height: 1.5;
  margin: 0 0 auto;
}
.lesson-pdf {
  color: #365542;
  text-align: center;
  padding: 8px;
}
.lesson-empty {
  grid-column: 1/-1;
}
.lesson-toolbar {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
  margin: 16px auto 24px;
  padding: 12px;
  max-width: 1000px;
  border: 1px solid #d7dfca;
  border-radius: 20px;
  background: #f3f6eb;
}
.lesson-toolbar a {
  color: #294638;
  padding: 10px;
}
.lesson-toolbar span {
  font-size: 0.875rem;
}
.lesson-sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.picker-card .lesson-favorite {
  margin-top: auto;
  width: 100%;
}
.lesson-favorite {
  position: relative;
  gap: 10px;
  min-height: 46px;
  padding: 10px 20px;
  overflow: hidden;
  isolation: isolate;
  border: 1px solid #ccd8bf;
  border-radius: 28px 24px 27px 23px;
  background: linear-gradient(155deg, #fffef8 0%, #f1f5e9 55%, #e6edda 100%);
  box-shadow:
    inset 0 1px 0 #ffffff,
    0 3px 0 #d7dfca,
    0 5px 12px #4056380b;
  font-size: 0.9375rem;
  line-height: 1.3;
  transition:
    background 0.3s,
    border-color 0.3s,
    box-shadow 0.3s,
    transform 0.3s;
}
.lesson-favorite::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(110deg, transparent 25%, #ffffffa0 48%, transparent 70%);
  transform: translateX(-130%);
  pointer-events: none;
}
.lesson-favorite .lesson-heart {
  flex: 0 0 22px;
  fill: transparent;
  stroke: #849874;
  stroke-width: 1.6;
  stroke-linejoin: round;
  transition:
    fill 0.3s,
    stroke 0.3s,
    transform 0.3s;
  filter: drop-shadow(0 1px 0 #fff);
}
.lesson-favorite .lesson-favorite-label {
  width: auto;
  font-size: inherit;
  letter-spacing: 0.01em;
}
.lesson-favorite[aria-pressed='true'] {
  background: linear-gradient(155deg, #f8fbed, #e6eed9);
  border-color: #bfcfab;
}
.lesson-favorite[aria-pressed='true'] .lesson-heart {
  fill: #bc8068;
  stroke: #af725c;
}
@media (hover: hover) and (pointer: fine) {
  .lesson-favorite:hover {
    transform: translateY(-2px);
    background: linear-gradient(155deg, #fffdf7, #edf3e1);
    border-color: #b9cba4;
    box-shadow:
      inset 0 1px 0 #fff,
      0 4px 0 #d0dbc2,
      0 7px 20px #c5d2a840;
  }
  .lesson-favorite:hover::after {
    transform: translateX(130%);
    transition: transform 0.9s ease;
  }
  .lesson-favorite:hover .lesson-heart {
    transform: scale(1.1) rotate(-5deg);
  }
}
.lesson-favorite:active {
  transform: translateY(1px);
  box-shadow:
    inset 0 1px 3px #70865e18,
    0 1px 0 #d7dfca;
}
@media (prefers-reduced-motion: reduce) {
  .lesson-favorite,
  .lesson-favorite .lesson-heart {
    transition: none;
  }
  .lesson-favorite:hover,
  .lesson-favorite:hover .lesson-heart {
    transform: none;
  }
  .lesson-favorite::after {
    display: none;
  }
}
@media (max-width: 700px) {
  .lesson-library {
    margin: 32px 16px;
    padding: 22px 18px;
  }
  .lesson-saved-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 480px) {
  .lesson-saved-grid {
    grid-template-columns: 1fr;
  }
  .lesson-resume {
    padding: 18px;
    gap: 12px;
  }
  .lesson-resume img {
    width: 64px;
  }
  .lesson-toolbar {
    margin: 12px;
    gap: 8px;
  }
  .lesson-toolbar span {
    text-align: center;
    width: 100%;
  }
}


/* mermaid-shells.css */
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  background: #faf8f2;
  color: #283d32;
  font-family: Arial, sans-serif;
}
a {
  color: inherit;
  text-underline-offset: 5px;
}
button {
  font: inherit;
  cursor: pointer;
}
button:focus-visible,
a:focus-visible {
  outline: 3px solid #c56c47;
  outline-offset: 5px;
}
[hidden] {
  display: none !important;
}
header {
  max-width: 1320px;
  margin: auto;
  padding: 23px 24px;
  display: flex;
  justify-content: space-between;
  gap: 20px;
  border-bottom: 1px solid #dfe2d4;
  font-size: 13px;
}
main {
  max-width: 1320px;
  margin: auto;
  padding: 30px 24px 48px;
}
.heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
.eyebrow {
  font-size: 10px;
  letter-spacing: 1.8px;
  color: #687d66;
}
.heading h1 {
  font:
    clamp(32px, 4.5vw, 52px) / 1.15 Georgia,
    serif;
  margin: 12px 0;
}
h1 em {
  font-weight: 400;
  color: #c56c47;
}
.intro {
  line-height: 1.7;
  font-size: 14px;
  margin: 8px 0 24px;
}
.pdf-link {
  font-size: 12px;
  white-space: nowrap;
  border: 1px solid #d9ddcc;
  border-radius: 24px;
  padding: 13px 18px;
}
.game-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 24px;
  align-items: start;
}
.ocean-card,
.task-card {
  border: 1px solid #dbe1cf;
  border-radius: 25px;
  box-shadow:
    0 5px 0 #dde2d2,
    0 20px 35px -30px #283d3280;
}
.ocean-card {
  padding: 17px;
  background: #eff3e8;
}
.map-head {
  display: flex;
  justify-content: space-between;
  gap: 15px;
  font-size: 12px;
  padding: 0 3px 12px;
}
.map-head strong {
  color: #a85635;
  font-variant-numeric: tabular-nums;
}
.progress-track {
  height: 5px;
  background: #dbe5d3;
  border-radius: 10px;
  margin-bottom: 15px;
  overflow: hidden;
}
.progress-track span {
  display: block;
  height: 100%;
  width: 0;
  background: #c56c47;
  transition: width 0.6s;
  border-radius: 10px;
}
.ocean {
  position: relative;
  aspect-ratio: 1000/850;
  isolation: isolate;
  overflow: hidden;
  border-radius: 20px;
  box-shadow: inset 0 0 30px #365c4510;
}
.sea-art {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
.shells {
  position: absolute;
  inset: 0;
}
.shell {
  position: absolute;
  width: 16%;
  height: 17%;
  padding: 0;
  border: 0;
  background: none;
  transform: translate(-50%, -50%);
  color: #283d32;
  transition:
    filter 0.2s,
    scale 0.2s;
  isolation: isolate;
}
.shell svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  filter: drop-shadow(0 4px 2px #547a682e);
}
.shell-label {
  position: relative;
  display: grid;
  place-items: center;
  height: 100%;
  padding-bottom: 6%;
  font-size: clamp(16px, 2.7vw, 34px);
  font-weight: 800;
  letter-spacing: 1px;
}
.shell-number {
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translate(-50%, 30%);
  width: 21px;
  height: 21px;
  background: #fffaf0;
  border: 1px solid #adbd9b;
  border-radius: 50%;
  font-size: 10px;
  display: grid;
  place-items: center;
  color: #68785c;
}
.shell:disabled {
  cursor: default;
  opacity: 1;
}
.shell.future {
  filter: saturate(0.65);
  opacity: 0.78;
}
.shell.current:before {
  content: '';
  position: absolute;
  inset: -6px;
  border-radius: 50%;
  border: 2px solid #c56c4770;
  animation: shell-glow 2s ease-in-out infinite;
  z-index: -1;
  background: #fff9dc44;
}
.shell.current {
  filter: drop-shadow(0 0 9px #fff7c7);
  cursor: pointer;
}
.shell.current:hover {
  scale: 1.08;
}
.shell.visited .shell-number {
  background: #365c45;
  color: white;
  border-color: #365c45;
}
.shell.visited {
  filter: saturate(0.75);
}
.mermaid {
  position: absolute;
  width: 18%;
  height: auto;
  max-height: 20%;
  object-fit: contain;
  left: 8%;
  top: 90%;
  transform: translate(-50%, -50%);
  z-index: 3;
  pointer-events: none;
  filter: drop-shadow(0 6px 5px #365c4530);
  transition:
    left 0.85s cubic-bezier(0.4, 0, 0.2, 1),
    top 0.85s cubic-bezier(0.4, 0, 0.2, 1);
}
.mermaid.facing-left {
  transform: translate(-50%, -50%) scaleX(-1);
}
.castle {
  position: absolute;
  right: 0;
  top: 0;
  width: 22%;
  height: 23%;
  z-index: 1;
  filter: drop-shadow(0 6px 4px #365c4520);
}
.castle svg {
  width: 100%;
  height: 100%;
  display: block;
  overflow: hidden;
}
.castle-caption {
  position: absolute;
  right: 10%;
  top: 87%;
  font:
    italic 15px Georgia,
    serif;
  background: #fff9e8d9;
  border-radius: 15px;
  padding: 4px 10px;
}
.castle-light {
  position: absolute;
  left: 43%;
  top: 60%;
  width: 14%;
  height: 25%;
  border-radius: 50% 50% 0 0;
  opacity: 0;
  background: #ffe59c;
  mix-blend-mode: screen;
}
.arrived .castle-light {
  opacity: 0.9;
  box-shadow: 0 0 24px 16px #ffefad90;
}
.arrived .castle {
  filter: drop-shadow(0 0 14px #fff0a3);
}
.bubbles {
  position: absolute;
  left: 8%;
  top: 90%;
  pointer-events: none;
  z-index: 4;
}
.bubbles i {
  position: absolute;
  width: 9px;
  height: 9px;
  border: 1px solid #fffdf0;
  border-radius: 50%;
  background: #ffffff66;
  opacity: 0;
}
.bubbles i:nth-child(2) {
  left: 13px;
  animation-delay: 0.2s;
}
.bubbles i:nth-child(3) {
  left: -12px;
  width: 6px;
  height: 6px;
  animation-delay: 0.4s;
}
.swimming .bubbles i {
  animation: bubble 0.9s ease-out;
}
.map-note {
  font-size: 11px;
  line-height: 1.65;
  color: #687d66;
  margin: 12px 4px 0;
}
.task-card {
  padding: 25px;
  background: radial-gradient(ellipse at 50% 30%, #fffdf7, #f1eadb);
  text-align: center;
}
.task-card h2 {
  font:
    30px/1.2 Georgia,
    serif;
  margin: 20px 0 10px;
}
.big-syllable {
  font-size: 100px;
  line-height: 1.5;
  font-weight: 800;
  letter-spacing: 3px;
  min-height: 150px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.big-syllable span {
  color: #c56c47;
}
.task-card #task-message {
  font-size: 14px;
  line-height: 1.75;
  min-height: 74px;
  color: #65745d;
}
.primary {
  width: 100%;
  min-height: 58px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 17px;
  border: 1px solid #2b4d37;
  border-radius: 20px;
  background: #365c45;
  color: #fff;
  font-weight: 700;
  font-size: 14px;
  box-shadow: 0 4px 0 #254231;
  transition:
    background 0.2s,
    transform 0.2s;
}
.primary:hover {
  background: #496f51;
}
.primary:active {
  transform: translateY(3px);
  box-shadow: 0 1px 0 #254231;
}
.primary:disabled {
  opacity: 0.65;
  cursor: wait;
}
.primary span {
  display: grid;
  place-items: center;
  background: #c56c47;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  flex-shrink: 0;
}
.secondary-actions {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  margin: 20px 0 10px;
}
.secondary-actions button {
  border: 0;
  background: transparent;
  color: #55684b;
  min-height: 44px;
  text-decoration: underline;
  text-underline-offset: 4px;
  font-size: 12px;
}
.secondary-actions button:disabled {
  opacity: 0.4;
  cursor: default;
}
.shuffle {
  border: 1px solid #d1d9c4;
  background: #e9eddf;
  color: #365c45;
  border-radius: 16px;
  padding: 12px;
  min-height: 48px;
  width: 100%;
  font-size: 12px;
}
.shuffle:hover {
  background: #dde5ce;
}
.small-note {
  font-size: 10px;
  line-height: 1.5;
  color: #7b866e;
  margin: 20px 0 0;
}
.adult-note {
  font-size: 12px;
  line-height: 1.8;
  color: #68785e;
  max-width: 850px;
  margin: 30px 0 0;
}
footer {
  text-align: center;
  border-top: 1px solid #dfe2d4;
  padding: 24px;
}
footer img {
  width: 290px;
  max-width: 80%;
  height: auto;
}
@keyframes shell-glow {
  50% {
    opacity: 0.5;
    transform: scale(1.07);
  }
}
@keyframes bubble {
  0% {
    opacity: 0;
    transform: translateY(10px);
  }
  30% {
    opacity: 0.9;
  }
  100% {
    opacity: 0;
    transform: translateY(-65px);
  }
}
@media (max-width: 900px) {
  .game-layout {
    grid-template-columns: minmax(0, 1fr) 250px;
    gap: 16px;
  }
  .task-card {
    padding: 20px 16px;
  }
  .task-card h2 {
    font-size: 26px;
  }
  .big-syllable {
    font-size: 80px;
    min-height: 120px;
  }
  .ocean-card {
    padding: 12px;
  }
  .intro {
    font-size: 13px;
  }
  .heading h1 {
    font-size: 36px;
  }
  .pdf-link {
    font-size: 11px;
    padding: 12px;
  }
  .shell-label {
    font-size: clamp(15px, 2.9vw, 27px);
  }
}
@media (max-width: 650px) {
  header {
    font-size: 11px;
    padding: 18px 16px;
  }
  main {
    padding: 22px 14px 35px;
  }
  .heading {
    display: block;
  }
  .heading h1 {
    font-size: 34px;
  }
  .pdf-link {
    display: inline-block;
    margin: 5px 0 8px;
  }
  .game-layout {
    grid-template-columns: 1fr;
  }
  .ocean-card {
    padding: 10px;
    border-radius: 20px;
  }
  .shell-label {
    font-size: clamp(15px, 4.6vw, 25px);
  }
  .shell-number {
    width: 16px;
    height: 16px;
    font-size: 8px;
  }
  .shell.current:before {
    inset: -3px;
  }
  .task-card {
    padding: 18px;
  }
  .task-card h2 {
    font-size: 25px;
    margin: 9px 0;
  }
  .big-syllable {
    font-size: 76px;
    min-height: 100px;
    line-height: 1.25;
  }
  .task-card #task-message {
    min-height: 0;
    margin: 10px 0 18px;
  }
  .secondary-actions {
    margin-top: 12px;
  }
  .small-note {
    margin-top: 12px;
  }
  .castle-caption {
    font-size: 10px;
    padding: 3px 6px;
  }
  .map-head {
    font-size: 10px;
  }
  .map-note {
    font-size: 10px;
  }
  .intro {
    margin-bottom: 18px;
  }
}
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
}
.castle > img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.castle-doors {
  position: absolute;
  left: 44%;
  top: 67%;
  width: 14%;
  height: 21%;
  display: flex;
  overflow: hidden;
  border-radius: 50% 50% 0 0;
}
.castle-doors i {
  width: 50%;
  height: 100%;
  background: linear-gradient(90deg, #896137, #b08449, #71502e);
  border: 1px solid #76542d;
  transition: transform 1.2s;
  transform-origin: left;
}
.castle-doors i + i {
  transform-origin: right;
}
.arrived .castle-doors i {
  transform: perspective(100px) rotateY(-100deg);
}
.arrived .castle-doors i + i {
  transform: perspective(100px) rotateY(100deg);
}
.castle-light {
  left: 44%;
  top: 67%;
  width: 14%;
  height: 21%;
}
.castle {
  right: 1%;
  top: 1%;
  width: 18%;
  height: 18%;
}
@media (min-width: 700px) and (max-height: 850px) and (orientation: landscape) {
  header {
    padding-top: 13px;
    padding-bottom: 13px;
  }
  main {
    padding-top: 16px;
  }
  .heading h1 {
    font-size: 36px;
    margin: 8px 0;
  }
  .eyebrow {
    margin: 6px 0;
  }
  .intro {
    margin: 4px 0 16px;
    font-size: 13px;
  }
  .ocean-card {
    padding: 12px;
  }
  .map-head {
    padding-bottom: 8px;
  }
  .progress-track {
    margin-bottom: 10px;
  }
  .ocean {
    max-height: calc(100svh - 290px);
  }
  .task-card {
    padding: 18px;
  }
  .task-card h2 {
    margin: 14px 0 8px;
    font-size: 26px;
  }
  .big-syllable {
    font-size: 86px;
    min-height: 125px;
  }
  .task-card #task-message {
    min-height: 54px;
  }
  .small-note {
    margin-top: 12px;
  }
}
@media (max-width: 900px) and (orientation: portrait) {
  .game-layout {
    grid-template-columns: 1fr;
  }
  .shell-label {
    font-size: clamp(16px, 4.6vw, 32px);
  }
  .task-card {
    display: grid;
    grid-template-columns: 100px minmax(0, 1fr);
    gap: 10px 18px;
    text-align: left;
  }
  .task-card > .eyebrow {
    grid-column: 1/-1;
  }
  .task-card h2 {
    display: none;
  }
  .big-syllable {
    grid-column: 1;
    grid-row: 2/4;
    font-size: 64px;
    min-height: 100px;
  }
  .task-card #task-message {
    grid-column: 2;
    min-height: 0;
    margin: 0;
    font-size: 13px;
  }
  .task-card .primary {
    grid-column: 2;
  }
  .secondary-actions {
    grid-column: 1/-1;
    margin: 4px 0;
  }
  .shuffle,
  .small-note {
    grid-column: 1/-1;
  }
  .small-note {
    text-align: center;
    margin: 4px 0;
  }
}
.castle-caption {
  display: none;
}


/* beaver-treasure.css */
.finds-panel {
  padding: 18px;
  background: linear-gradient(140deg, #f1f4e8, #e2e9d3);
  border: 1px solid #dbe1cf;
  border-radius: 25px;
  box-shadow:
    0 5px 0 #dde2d2,
    0 20px 35px -30px #283d3280;
}
.find-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 13px;
}
.find-card {
  border: 1px solid #d5dec7;
  border-radius: 20px;
  background: #faf8ef;
  aspect-ratio: 1/1.06;
  position: relative;
  padding: 12px;
  min-width: 0;
  box-shadow: 0 4px 0 #d6ddc8;
  transition:
    transform 0.2s,
    box-shadow 0.2s,
    background 0.2s;
}
.find-card:hover:not(:disabled) {
  transform: translateY(-4px);
  background: #fffdf6;
}
.find-card.selected {
  outline: 2px solid #c56c47;
  outline-offset: 2px;
  background: #fff6e7;
}
.find-card svg,
.memory-card svg,
.detail-art svg {
  display: block;
  width: 100%;
  height: 100%;
  mix-blend-mode: multiply;
  overflow: hidden;
}
.find-card .find-number {
  position: absolute;
  left: 8px;
  top: 8px;
  width: 20px;
  height: 20px;
  display: grid;
  place-items: center;
  font-size: 10px;
  background: #e9eddf;
  border-radius: 50%;
  color: #65765b;
}
.find-card.collected {
  box-shadow: none;
  background: #dbe5cc;
  border-style: dashed;
  cursor: default;
}
.find-card.collected svg {
  visibility: hidden;
}
.find-card.collected:after {
  content: '✓';
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  font-size: 35px;
  font-weight: 400;
  color: #758966;
}
.find-card:disabled {
  opacity: 1;
}
.treasure-scene {
  height: 180px;
  display: flex;
  align-items: end;
  justify-content: center;
  position: relative;
  padding-top: 15px;
}
.beaver {
  width: 30%;
  height: 95%;
  object-fit: contain;
  filter: drop-shadow(0 5px 4px #65744720);
  transform-origin: bottom center;
}
.treasure-chest {
  width: 34%;
  max-width: 245px;
  position: relative;
  filter: drop-shadow(0 7px 4px #65744720);
}
.treasure-chest svg {
  width: 100%;
  display: block;
  overflow: visible;
}
.chest-lid {
  transform-origin: 150px 112px;
  transition: transform 0.8s;
  transform-box: view-box;
}
.chest-closed .chest-lid {
  transform: translateY(16px) scaleY(0.16);
}
.chest-closed .coins {
  opacity: 0;
}
.coins {
  transition: opacity 0.5s;
}
.chest-spark {
  position: absolute;
  left: 48%;
  top: 3%;
  font-size: 40px;
  color: #c56c47;
  opacity: 0;
  pointer-events: none;
}
.celebrating .chest-spark {
  animation: sparkle 0.7s ease-out;
}
.celebrating .beaver {
  animation: beaver-joy 0.6s ease-in-out;
}
.treasure-scene > p {
  position: absolute;
  right: 0;
  top: 5px;
  font:
    italic 15px/1.4 Georgia,
    serif;
  max-width: 135px;
  color: #65815d;
  margin: 0;
  text-align: center;
}
.beaver-task {
  text-align: center;
}
.detail-art {
  height: 205px;
  max-width: 250px;
  margin: 10px auto;
  display: grid;
  place-items: center;
}
.empty-star {
  font:
    95px Georgia,
    serif;
  color: #b8c6a5;
}
.beaver-task .task-copy {
  font-size: 14px;
  line-height: 1.7;
  color: #65745d;
  min-height: 70px;
  margin: 14px 0 20px;
}
.word-hint {
  font-size: 27px;
  font-weight: 700;
  margin: 14px 0;
  line-height: 1.4;
}
.word-hint mark {
  background: none;
  color: #c56c47;
}
.hint-button {
  border: 0;
  background: none;
  text-decoration: underline;
  text-underline-offset: 4px;
  color: #65745d;
  min-height: 44px;
  font-size: 12px;
  margin-top: 9px;
}
.beaver-task .primary:disabled {
  cursor: default;
  opacity: 0.45;
}
.beaver-task .secondary-actions {
  font-size: 11px;
  gap: 6px;
}
.beaver-task .secondary-actions button {
  font-size: 11px;
}
.flying-find {
  position: fixed;
  pointer-events: none;
  z-index: 1000;
  mix-blend-mode: multiply;
}
.flying-find svg {
  width: 100%;
  height: 100%;
  display: block;
}
.memory-panel {
  margin-top: 28px;
  border: 1px solid #dbe1cf;
  border-radius: 25px;
  padding: 27px;
  background: #f2efe3;
  box-shadow: 0 5px 0 #dde2d2;
  scroll-margin-top: 20px;
}
.memory-panel h2 {
  font:
    32px/1.2 Georgia,
    serif;
  margin: 12px 0;
}
.memory-panel > p {
  font-size: 14px;
  line-height: 1.7;
}
.memory-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 15px;
  margin: 24px 0;
}
.memory-card {
  aspect-ratio: 1.3;
  border: 1px solid #cfdac1;
  border-radius: 18px;
  background: linear-gradient(145deg, #e7eddb, #d5e0c7);
  box-shadow: 0 4px 0 #cbd6bd;
  position: relative;
  padding: 13px;
  overflow: hidden;
  color: #365c45;
}
.memory-card:not(.revealed):before {
  content: '✧';
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  font:
    54px Georgia,
    serif;
  color: #8ba078;
}
.memory-card svg {
  visibility: hidden;
  height: calc(100% - 24px);
}
.memory-card .memory-word {
  display: none;
  font-size: 15px;
  line-height: 1.5;
}
.memory-card.revealed {
  background: #fffaf0;
}
.memory-card.revealed svg {
  visibility: visible;
}
.memory-card.revealed .memory-word {
  display: block;
}
.memory-word mark {
  color: #b65b38;
  background: none;
  font-weight: 700;
}
.memory-actions {
  display: flex;
  gap: 18px;
  max-width: 620px;
  margin-top: 15px;
  align-items: center;
}
.memory-actions > * {
  width: 50%;
}
.memory-result {
  color: #687c5b;
}
.memorizing .find-grid {
  display: none;
}
.memorizing .treasure-scene {
  height: 300px;
}
.memorizing .treasure-scene > p {
  top: 25px;
  font-size: 18px;
  max-width: 170px;
}
.memorizing .beaver {
  width: 42%;
  max-width: 300px;
}
.memorizing .treasure-chest {
  width: 40%;
  max-width: 300px;
}
@keyframes sparkle {
  0% {
    opacity: 0;
    transform: translateY(20px) scale(0.4);
  }
  40% {
    opacity: 1;
  }
  100% {
    opacity: 0;
    transform: translateY(-50px) scale(1.3);
  }
}
@keyframes beaver-joy {
  40% {
    transform: translateY(-8px) rotate(-3deg);
  }
  70% {
    transform: translateY(0) rotate(2deg);
  }
}
@media (max-width: 900px) {
  .finds-panel {
    padding: 12px;
  }
  .find-grid {
    gap: 10px;
  }
  .find-card {
    padding: 9px;
    border-radius: 15px;
  }
  .detail-art {
    height: 175px;
  }
  .treasure-scene {
    height: 150px;
  }
  .treasure-scene > p {
    font-size: 12px;
    max-width: 110px;
  }
  .memory-grid {
    gap: 12px;
  }
}
@media (min-width: 700px) and (max-height: 850px) and (orientation: landscape) {
  .find-card {
    aspect-ratio: 1.15;
  }
  .treasure-scene {
    height: 130px;
  }
  .detail-art {
    height: 155px;
  }
  .beaver-task .task-copy {
    min-height: 54px;
    margin: 10px 0 15px;
  }
  .beaver-task .secondary-actions {
    margin: 12px 0 4px;
  }
  .memorizing .treasure-scene {
    height: 260px;
  }
}
@media (max-width: 900px) and (orientation: portrait) {
  .beaver-task {
    grid-template-columns: 130px minmax(0, 1fr);
  }
  .beaver-task h2 {
    display: block;
    grid-column: 1/-1;
    text-align: center;
    font-size: 26px;
    margin: 6px;
  }
  .beaver-task .detail-art {
    grid-column: 1;
    grid-row: auto/span 3;
    width: 100%;
    height: 170px;
    margin: 0;
  }
  .beaver-task .task-copy,
  .beaver-task .word-hint,
  .beaver-task .hint-button {
    grid-column: 2;
    min-height: 0;
    margin: 0;
    text-align: center;
  }
  .beaver-task .primary {
    grid-column: 2;
  }
  .beaver-task .secondary-actions {
    grid-column: 1/-1;
  }
  .beaver-task .eyebrow {
    text-align: center;
  }
}
@media (max-width: 500px) {
  .find-grid {
    gap: 9px;
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
  .find-card {
    aspect-ratio: 0.85;
    padding: 6px;
  }
  .find-card .find-number {
    width: 15px;
    height: 15px;
    font-size: 8px;
    top: 4px;
    left: 4px;
  }
  .treasure-scene {
    height: 130px;
  }
  .treasure-scene > p {
    right: 0;
    font-size: 11px;
    max-width: 90px;
  }
  .beaver {
    width: 36%;
  }
  .treasure-chest {
    width: 38%;
  }
  .beaver-task {
    grid-template-columns: 95px minmax(0, 1fr);
    gap: 10px;
  }
  .beaver-task .detail-art {
    height: 130px;
  }
  .beaver-task .task-copy {
    font-size: 12px;
  }
  .word-hint {
    font-size: 21px;
  }
  .memory-panel {
    padding: 17px;
  }
  .memory-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
  }
  .memory-panel h2 {
    font-size: 27px;
  }
  .memory-actions {
    flex-direction: column;
    gap: 14px;
  }
  .memory-actions > * {
    width: 100%;
  }
  .memorizing .treasure-scene {
    height: 210px;
  }
  .memorizing .treasure-scene > p {
    font-size: 13px;
    max-width: 110px;
    top: 0;
  }
  .memorizing .beaver {
    width: 50%;
  }
  .memorizing .treasure-chest {
    width: 44%;
  }
}
.treasure-chest {
  height: 100%;
  display: flex;
  align-items: end;
}
.treasure-chest svg {
  height: 100%;
  width: 100%;
}
.beaver {
  width: 36%;
  height: 100%;
}


/* shopping-game.css */
.shopping-page .find-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}
.shopping-page .find-card {
  aspect-ratio: 1.65;
  padding: 10px 20px;
}
.shopping-page .finds-panel {
  background: linear-gradient(145deg, #f1f4e8, #e4e9d7);
}
.parking-scene {
  height: 155px;
  display: block;
  overflow: hidden;
  background: linear-gradient(transparent 78%, #dddccf 78%);
  border-radius: 0 0 17px 17px;
  margin-top: 10px;
  padding: 0;
}
.shop-front {
  position: absolute;
  right: 10%;
  bottom: 15%;
  width: 39%;
  height: 87%;
  filter: drop-shadow(0 4px 2px #365c451a);
}
.shopping-car {
  position: absolute;
  left: 8%;
  bottom: 0;
  width: 51%;
  height: 72%;
  object-fit: contain;
  z-index: 2;
  filter: drop-shadow(0 5px 3px #365c4530);
}
.parking-lines {
  position: absolute;
  bottom: 4%;
  left: 2%;
  width: 68%;
  height: 20%;
  border: 3px solid #fffcef;
  border-top: 0;
  transform: skewX(-22deg);
  border-radius: 0 0 5px 5px;
}
.parking-scene > p {
  right: 0;
  top: 10px;
  max-width: 100px;
  font-size: 13px;
  z-index: 3;
}
.car-spark {
  position: absolute;
  left: 39%;
  top: 20%;
  font-size: 35px;
  color: #c56c47;
  opacity: 0;
  z-index: 3;
}
.celebrating .car-spark {
  animation: sparkle 0.7s ease-out;
}
.shopping-page .detail-art {
  height: 190px;
}
.shopping-page .task-card .task-copy {
  min-height: 72px;
}
.shopping-page .word-hint mark,
.shopping-page .memory-word mark {
  color: #bd613f;
  background: none;
}
.shopping-page .memory-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}
.shopping-page.memorizing .parking-scene {
  height: 215px;
}
.shopping-page.memorizing .shopping-car {
  opacity: 0;
}
.shopping-page.memorizing .shop-front {
  height: 95%;
  right: 27%;
  width: 45%;
}
.shopping-page.memorizing .parking-scene > p {
  max-width: 155px;
  font-size: 16px;
}
.shopping-page .checked-word {
  background: #f4f1e5;
}
.shopping-page .find-card.try-another {
  animation: word-nudge 0.45s ease-in-out;
}
.shopping-page .memory-card svg {
  height: calc(100% - 27px);
}
@keyframes word-nudge {
  25% {
    transform: translateX(-3px);
  }
  75% {
    transform: translateX(3px);
  }
}
@media (min-width: 700px) and (max-height: 850px) and (orientation: landscape) {
  .shopping-page .find-card {
    aspect-ratio: 1.8;
  }
  .parking-scene {
    height: 115px;
  }
  .shopping-page .detail-art {
    height: 155px;
  }
  .shopping-page .find-grid {
    gap: 10px;
  }
  .shopping-page .beaver-task .task-copy {
    min-height: 60px;
  }
  .shopping-page.memorizing .parking-scene {
    height: 220px;
  }
}
@media (max-width: 900px) and (orientation: portrait) {
  .shopping-page .find-card {
    aspect-ratio: 1.4;
  }
  .parking-scene {
    height: 160px;
  }
  .shopping-page .beaver-task .detail-art {
    height: 170px;
  }
}
@media (max-width: 500px) {
  .shopping-page .find-card {
    aspect-ratio: 1.05;
    padding: 8px;
  }
  .shopping-page .find-grid {
    gap: 9px;
  }
  .parking-scene {
    height: 120px;
  }
  .parking-scene > p {
    font-size: 11px;
    max-width: 85px;
  }
  .shopping-car {
    width: 58%;
    height: 66%;
    left: 3%;
  }
  .shop-front {
    width: 48%;
    right: 5%;
    height: 88%;
  }
  .shopping-page .beaver-task .detail-art {
    height: 130px;
  }
  .shopping-page .memory-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .shopping-page.memorizing .parking-scene > p {
    font-size: 13px;
    max-width: 110px;
  }
}
@media (max-width: 500px) {
  .parking-scene > p {
    display: none;
  }
}


/* holiday.css */
/* Small seasonal accents, shared across the site. */
body::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 76px;
  background: url('images/holiday-garland-twinkle.svg') repeat-x top center;
  background-size: 800px 80px;
  pointer-events: none;
  z-index: 5;
  opacity: 0.95;
}
.values-strip {
  position: relative;
  background: #edf0e4 !important;
  border-top: 1px solid #dce3ce;
  border-bottom: 1px solid #dce3ce;
  padding: 29px 20px 27px !important;
  overflow: hidden;
}
.values-strip::before,
.values-strip::after {
  content: '';
  position: absolute;
  top: 0;
  width: 180px;
  height: 80px;
  background: url('images/holiday-garland-twinkle.svg') center top/800px 80px no-repeat;
  opacity: 0.95;
  pointer-events: none;
}
.values-strip::before {
  left: 0;
}
.values-strip::after {
  right: 0;
  transform: scaleX(-1);
}
.values-strip .holiday-intro {
  display: block;
  text-align: center;
  margin: 0 0 18px;
  font-family: Georgia, serif;
  font-size: clamp(24px, 2.3vw, 32px);
  font-weight: 400;
  line-height: 1.2;
  color: #526b50;
}
.values-strip > .wrap {
  position: relative;
  max-width: 1120px;
  margin: auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
}
.values-strip > .wrap span {
  font-size: 14px;
  color: #52634f;
}
.values-strip > .wrap b {
  font-size: 19px;
  font-weight: 400;
  color: #c49a6d;
}
@media (max-width: 650px) {
  body::before {
    height: 57px;
    background-size: 600px 60px;
    opacity: 0.85;
  }
  .values-strip {
    padding: 25px 22px !important;
  }
  .values-strip > .wrap {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    text-align: center;
  }
  .values-strip > .wrap b {
    display: none;
  }
  .values-strip > .wrap span {
    font-size: 13px;
  }
  .values-strip::before,
  .values-strip::after {
    width: 100px;
    opacity: 0.8;
  }
}
@media print {
  body::before,
  .values-strip::before,
  .values-strip::after {
    display: none;
  }
}


/* logo-shine.css */
body a.brand.site-logo {
  position: relative;
  isolation: isolate;
}
body a.brand.site-logo img {
  transition: filter 0.35s ease;
}
body a.brand.site-logo::after {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0;
  background: linear-gradient(
      110deg,
      transparent 40%,
      #fffbe4aa 47%,
      #ffffffed 50%,
      #fffbe4aa 53%,
      transparent 60%
    ) -150%
    0/250% 100% no-repeat;
  -webkit-mask: url('images/logo-nsh-transparent.webp') center/100% 100% no-repeat;
  mask: url('images/logo-nsh-transparent.webp') center/100% 100% no-repeat;
}
@media (hover: hover) {
  body a.brand.site-logo:hover img {
    filter: drop-shadow(0 0 5px #d7bf8170);
  }
  body a.brand.site-logo:hover::after {
    opacity: 1;
    animation: nsh-logo-shine 1.35s ease-in-out 1;
  }
}
body a.brand.site-logo:focus-visible::after {
  opacity: 1;
  animation: nsh-logo-shine 1.35s ease-in-out 1;
}
@keyframes nsh-logo-shine {
  0% {
    background-position: 150% 0;
  }
  100% {
    background-position: -150% 0;
  }
}
@media (prefers-reduced-motion: reduce) {
  body a.brand.site-logo img {
    transition: none;
  }
  body a.brand.site-logo:hover::after,
  body a.brand.site-logo:focus-visible::after {
    animation: none;
    opacity: 0;
  }
}


/* button-glow.css */
/* Light follows existing button silhouettes, including the cloud shapes. */
@media (hover: hover) and (pointer: fine) {
  body
    :is(
      .button,
      .cart-button,
      .add-button,
      .detail-add,
      .filters button,
      .sound-tabs button,
      .header nav a,
      .story-header a:not(.brand),
      .collection-back,
      .controls button,
      .catalog-view-switch button,
      .catalog-slider-controls button,
      .wb-reviews-bottom a,
      #approach .text-link,
      #motion,
      #complete,
      #previous,
      #next,
      .star
    ):not(:disabled):not([aria-disabled='true']):hover {
    filter: brightness(1.045) drop-shadow(0 0 5px #e2cc9270) drop-shadow(0 0 11px #d5bf7438);
    animation: nsh-button-glimmer 1.3s ease-out 1;
  }
}
body
  :is(
    .button,
    .cart-button,
    .add-button,
    .detail-add,
    .filters button,
    .sound-tabs button,
    .catalog-view-switch button,
    .catalog-slider-controls button,
    #motion,
    #complete,
    #previous,
    #next,
    .star
  ):not(:disabled):focus-visible {
  filter: drop-shadow(0 0 6px #d9c58b80);
}
@keyframes nsh-button-glimmer {
  0% {
    filter: brightness(1) drop-shadow(0 0 0 #e2cc9200);
  }
  45% {
    filter: brightness(1.1) drop-shadow(0 0 7px #e2cc9290) drop-shadow(0 0 14px #d5bf7445);
  }
  100% {
    filter: brightness(1.045) drop-shadow(0 0 5px #e2cc9270) drop-shadow(0 0 11px #d5bf7438);
  }
}
@media (prefers-reduced-motion: reduce) {
  body
    :is(
      .button,
      .cart-button,
      .add-button,
      .detail-add,
      .filters button,
      .sound-tabs button,
      .header nav a,
      .story-header a:not(.brand),
      .collection-back,
      .controls button,
      .catalog-view-switch button,
      .catalog-slider-controls button,
      .wb-reviews-bottom a,
      #approach .text-link,
      #motion,
      #complete,
      #previous,
      #next,
      .star
    ):hover {
    animation: none;
  }
}


/* holiday-botanical.css */
/* Watercolour branches sit behind content and follow the length of the page. */
body {
  position: relative;
  isolation: isolate;
}
body::before {
  content: none !important;
}
.values-strip::before,
.values-strip::after {
  content: none !important;
}
.holiday-botanical {
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  overflow: hidden;
  user-select: none;
}
.holiday-botanical::before,
.holiday-botanical::after {
  content: '';
  position: absolute;
  top: 90px;
  bottom: 0;
  width: clamp(135px, 18vw, 300px);
  background: url('images/holiday-watercolor-ornaments.svg') top center/100% auto repeat-y;
  opacity: 0.48;
  pointer-events: none;
  -webkit-mask-image: linear-gradient(
    transparent,
    #000 100px,
    #000 calc(100% - 100px),
    transparent
  );
  mask-image: linear-gradient(transparent, #000 100px, #000 calc(100% - 100px), transparent);
}
.holiday-botanical::before {
  left: -48px;
}
.holiday-botanical::after {
  right: -48px;
  top: 450px;
  transform: scaleX(-1);
}
@media (max-width: 1050px) {
  .holiday-botanical::before,
  .holiday-botanical::after {
    width: 170px;
    opacity: 0.25;
  }
  .holiday-botanical::before {
    left: -70px;
  }
  .holiday-botanical::after {
    right: -70px;
  }
}
@media (max-width: 650px) {
  .holiday-botanical::before,
  .holiday-botanical::after {
    width: 140px;
    opacity: 0.2;
  }
  .holiday-botanical::before {
    left: -82px;
  }
  .holiday-botanical::after {
    right: -82px;
    top: 650px;
  }
}
@media print {
  .holiday-botanical {
    display: none;
  }
}

/* A tiny, slow breeze; right-hand decoration retains its mirrored pose. */
.holiday-botanical::before {
  transform-origin: 50% 25%;
  animation: botanical-breeze-left 19s ease-in-out infinite;
}
.holiday-botanical::after {
  transform-origin: 50% 30%;
  animation: botanical-breeze-right 23s ease-in-out -8s infinite;
}
@keyframes botanical-breeze-left {
  0%,
  100% {
    transform: translateX(-1px) rotate(-0.16deg);
  }
  50% {
    transform: translateX(2px) rotate(0.16deg);
  }
}
@keyframes botanical-breeze-right {
  0%,
  100% {
    transform: scaleX(-1) translateX(-1px) rotate(0.14deg);
  }
  50% {
    transform: scaleX(-1) translateX(2px) rotate(-0.14deg);
  }
}
@media (prefers-reduced-motion: reduce) {
  .holiday-botanical::before,
  .holiday-botanical::after {
    animation: none;
  }
  .holiday-botanical::before {
    transform: none;
  }
  .holiday-botanical::after {
    transform: scaleX(-1);
  }
}


/* site-audit-fixes.css */
/* Avoid duplicate plus signs added by the earlier raised FAQ styling. */
#questions summary > span {
  display: none;
}
/* Flex/grid children must be able to shrink on narrow screens. */
.header,
.hero,
.section-top,
.approach,
.offer-cards,
.wb-reviews-grid {
  min-width: 0;
}
.hero > * {
  min-width: 0;
}
#products a.product-visual {
  display: block;
}
#products a.product-title {
  display: block;
  text-align: left;
  text-decoration: none;
}
@media (max-width: 420px) {
  .snow-settings {
    max-width: calc(100vw - 20px);
  }
  .catalog-view-switch {
    gap: 6px;
  }
  .header nav a {
    overflow-wrap: anywhere;
  }
}


/* learning-seo.css */
.learning-summary {
  max-width: 900px;
  margin: 38px auto 25px;
  padding: 24px 28px;
  border: 1px solid #d7e0ca;
  border-radius: 22px;
  background: linear-gradient(140deg, #fafbf4, #eaf0df);
  box-shadow:
    inset 0 2px #fff,
    0 4px #dbe2ce;
  text-align: left;
}
.learning-summary h2 {
  font:
    25px/1.3 Georgia,
    serif;
  color: #526b50;
  margin: 0 0 12px;
}
.learning-summary p {
  font:
    14px/1.85 Arial,
    sans-serif;
  color: #68795e;
  margin: 0;
}
@media (max-width: 650px) {
  .learning-summary {
    margin: 28px 15px 22px;
    padding: 21px;
  }
  .learning-summary h2 {
    font-size: 23px;
  }
}


/* lesson-tools.css */
.lesson-plan h2,
.lesson-related h2 {
  font:
    2rem Georgia,
    serif;
  margin: 12px 0;
  color: #294638;
}
.lesson-plan h2 em {
  color: #b76c48;
}
.lesson-plan-list {
  list-style: none;
  padding: 0;
  display: grid;
  gap: 12px;
  margin: 24px 0;
}
.lesson-plan-list li {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px;
  border: 1px solid #d7dfca;
  border-radius: 18px;
  background: #fffdf7;
}
.lesson-plan-list img {
  object-fit: contain;
  flex-shrink: 0;
}
.lesson-plan-title {
  flex: 1;
  line-height: 1.5;
  min-width: 0;
}
.lesson-plan-title span {
  display: block;
  font-size: 0.875rem;
  color: #526849;
  margin-top: 4px;
}
.lesson-plan-order {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}
.lesson-plan-note {
  font-size: 0.875rem;
}
.lesson-plan-add,
.lesson-preview-button,
.lesson-session-bar button,
.lesson-plan-order button,
.lesson-tool-card button,
.lesson-pdf-dialog button,
.lesson-pdf-dialog a {
  font: inherit;
  line-height: 1.4;
  min-height: 44px;
  padding: 10px 16px;
  border-radius: 18px;
  border: 1px solid #c7d4b6;
  background: linear-gradient(140deg, #fffdf7, #e8efde);
  color: #294638;
  cursor: pointer;
  box-shadow: 0 2px 0 #d7dfca;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  transition:
    box-shadow 0.2s,
    background 0.2s;
}
.lesson-plan-add[aria-pressed='true'] {
  background: #dfe9d1;
}
.lesson-preview-button {
  font-size: 0.875rem;
  margin: 4px;
}
.lesson-download-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin: 28px 0 24px;
  padding: 18px;
  border: 1px solid #dbe2ce;
  border-radius: 20px;
  background: #f3f5eb;
}
.lesson-download-actions .lesson-download-link,
.lesson-download-actions .lesson-preview-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  margin: 0;
  padding: 12px 18px;
  border: 1px solid #cdd8bd;
  border-radius: 16px;
  background: #fafbf6;
  color: #304e3d;
  font:
    600 14px/1.5 Arial,
    sans-serif;
  text-align: center;
  text-decoration: none;
  white-space: normal;
  max-width: 100%;
  box-sizing: border-box;
}
.lesson-download-actions .lesson-download-link:hover {
  background: #e7eddb;
}
.lesson-download-actions .lesson-download-link:focus-visible {
  outline: 3px solid #8caa78;
  outline-offset: 3px;
}
.lesson-print-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 210px;
  align-items: center;
  gap: 32px;
  margin: 32px 0;
  padding: 28px;
  border-radius: 26px;
  background: #e9eddf;
  color: #2e4638;
}
.lesson-print-copy {
  min-width: 0;
}
.lesson-print-panel .lesson-print-eyebrow {
  margin: 0 0 16px;
  color: #78876a;
  font:
    700 12px/1.5 Arial,
    sans-serif;
  letter-spacing: 0.16em;
}
.lesson-print-panel h2 {
  margin: 0 0 16px;
  font:
    400 34px/1.2 Georgia,
    serif;
}
.lesson-print-copy > p:not(.lesson-print-eyebrow) {
  margin: 0 0 16px;
  font:
    400 14px/1.7 Arial,
    sans-serif;
}
.lesson-print-panel .lesson-download-actions {
  margin: 0;
  padding: 0;
  border: 0;
  background: none;
}
.lesson-print-extra {
  display: inline-block;
  margin-top: 18px;
  font-size: 13px;
}
.lesson-print-thumbnail {
  display: block;
  width: 100%;
  padding: 7px;
  border: 0;
  background: #fff;
  box-shadow: 0 8px 24px #56664312;
  cursor: zoom-in;
}
.lesson-print-thumbnail img {
  display: block;
  width: 100%;
  height: auto;
  max-height: 300px;
  object-fit: contain;
}
.lesson-print-thumbnail:focus-visible {
  outline: 3px solid #8caa78;
  outline-offset: 5px;
}
@media (max-width: 650px) {
  .lesson-print-panel {
    grid-template-columns: minmax(0, 1fr);
    padding: 22px 18px;
    gap: 24px;
  }
  .lesson-print-panel h2 {
    font-size: 28px;
  }
  .lesson-print-thumbnail {
    max-width: 190px;
    justify-self: center;
  }
}
@media (max-width: 540px) {
  .lesson-download-actions {
    padding: 14px;
    gap: 10px;
  }
  .lesson-download-actions > * {
    flex: 1 1 100%;
  }
}
.lesson-plan-order button {
  font-size: 0.875rem;
  padding: 8px 10px;
}
.lesson-plan-order button:disabled {
  opacity: 0.45;
  cursor: default;
  box-shadow: none;
}
.lesson-plan-add:hover,
.lesson-preview-button:hover,
.lesson-session-bar button:hover,
.lesson-tool-card button:hover,
.lesson-pdf-dialog button:hover {
  background: #f2e5d7;
  box-shadow: 0 3px 12px #c6b48b30;
}
:is(
  .lesson-plan-add,
  .lesson-preview-button,
  .lesson-session-bar button,
  .lesson-plan-order button,
  .lesson-pdf-dialog a,
  .lesson-pdf-dialog button
):focus-visible {
  outline: 3px solid #a78050;
  outline-offset: 3px;
}
.lesson-session-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px;
  padding: 14px;
  margin: 16px auto;
  max-width: 1100px;
  border-radius: 20px;
  background: #edf2e5;
  border: 1px solid #d4dfc6;
}
.lesson-session-bar a {
  color: #294638;
  padding: 10px;
}
#lesson-plan-navigation {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: center;
}
.lesson-related {
  max-width: 1100px;
  margin: 48px auto;
  padding: 28px;
}
.lesson-related-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}
.lesson-tool-card {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 22px;
  background: #f4f6ec;
  border: 1px solid #d4dfc6;
  border-radius: 22px;
  box-shadow: 0 4px 0 #dfe5d4;
}
.lesson-tool-card img {
  width: 100%;
  object-fit: contain;
}
.lesson-tool-card h3 {
  font-size: 1.1rem;
  line-height: 1.5;
  margin: 0 0 auto;
}
.lesson-pdf-dialog {
  width: min(1080px, 94vw);
  max-width: 94vw;
  height: min(920px, 94dvh);
  max-height: 94dvh;
  border: 1px solid #c8d5b8;
  border-radius: 24px;
  padding: 20px;
  background: #fafbf5;
  color: #294638;
  box-shadow: 0 20px 80px #1a302c40;
}
.lesson-pdf-dialog::backdrop {
  background: #18302677;
  backdrop-filter: blur(4px);
}
.lesson-pdf-dialog[open] {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.lesson-pdf-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.lesson-pdf-top h2 {
  font:
    1.4rem Georgia,
    serif;
  margin: 0;
}
.lesson-pdf-dialog p {
  margin: 0;
  line-height: 1.5;
}
.lesson-pdf-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.lesson-pdf-frame {
  width: 100%;
  min-height: 180px;
  flex: 1;
  border: 1px solid #d1dbc4;
  border-radius: 12px;
  background: #e4e8dc;
}
.lesson-pdf-help {
  font-size: 0.875rem;
}
body.lesson-focus {
  background: #fafbf5 !important;
}
body.lesson-focus::before,
body.lesson-focus::after,
body.lesson-focus > header,
body.lesson-focus > footer,
body.lesson-focus .gentle-snow,
body.lesson-focus .snow-settings,
body.lesson-focus .watercolor-garland,
body.lesson-focus .lesson-toolbar,
body.lesson-focus .lesson-related,
body.lesson-focus .learning-summary,
body.lesson-focus .print-section,
body.lesson-focus .adult-note {
  display: none !important;
}
body.lesson-focus .lesson-session-bar {
  position: sticky;
  top: 0;
  z-index: 40;
  box-shadow: 0 4px 20px #29463812;
}
body.lesson-focus
  :is(#next, #previous, #journey-next, #journey-back, #river-next, #river-back, #collect) {
  min-height: 52px;
  font-size: 1.125rem;
}
@media (max-width: 700px) {
  .lesson-plan-list li {
    flex-wrap: wrap;
  }
  .lesson-plan-order {
    width: 100%;
    justify-content: flex-end;
  }
  .lesson-related-grid {
    grid-template-columns: 1fr;
  }
  .lesson-related {
    padding: 20px;
    margin: 32px 12px;
  }
  .lesson-pdf-dialog {
    padding: 14px;
  }
  .lesson-pdf-actions {
    gap: 6px;
  }
  .lesson-pdf-actions > * {
    flex: 1 1 45%;
  }
  .lesson-pdf-help {
    font-size: 0.8rem;
  }
}
@media (prefers-reduced-motion: reduce) {
  .lesson-tools button,
  .lesson-session-bar button,
  .lesson-preview-button,
  .lesson-plan-add {
    transition: none;
  }
}
body.lesson-focus .holiday-botanical {
  display: none !important;
}
.lesson-pdf-pages {
  flex: 1;
  min-height: 180px;
  overflow: auto;
  overscroll-behavior: contain;
  border-radius: 12px;
  background: #e5e9de;
  border: 1px solid #d1dbc4;
  padding: 16px;
}
.lesson-pdf-pages figure {
  margin: 0 auto 20px;
  max-width: 850px;
}
.lesson-pdf-pages img {
  display: block;
  width: 100%;
  height: auto;
  background: white;
  box-shadow: 0 3px 14px #29463820;
}
.lesson-pdf-pages figcaption {
  text-align: center;
  padding: 10px 0;
  font-size: 0.875rem;
}
.lesson-pdf-dialog [hidden] {
  display: none !important;
}
.lesson-pdf-pages.is-zoomed figure {
  width: 1100px;
  min-width: 1100px;
  max-width: none;
}


/* lesson-plus.css */
.lesson-plus-plan-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 20px;
  border-top: 1px solid #d6dfc9;
  padding-top: 20px;
}
.lesson-plus-plan-actions p {
  width: 100%;
  margin: 0;
  font-size: 0.875rem;
  line-height: 1.6;
}
.lesson-plus-plan-actions button,
.lesson-share-dialog button,
.lesson-image-dialog > button,
.lesson-incoming button,
.lesson-news-grid a {
  font: inherit;
  min-height: 44px;
  padding: 10px 18px;
  border: 1px solid #c8d5b9;
  border-radius: 20px;
  background: linear-gradient(145deg, #fffef8, #e6eed9);
  color: #294638;
  box-shadow: 0 3px 0 #d7dfca;
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.lesson-plus-plan-actions button:disabled {
  opacity: 0.5;
  cursor: default;
  box-shadow: none;
}
.lesson-plus-plan-actions button:hover:not(:disabled),
.lesson-share-dialog button:hover,
.lesson-incoming button:hover {
  background: #f2e5d7;
}
.lesson-share-dialog {
  width: min(600px, 92vw);
  max-width: 92vw;
  box-sizing: border-box;
  padding: 28px;
  border: 1px solid #c9d6bc;
  border-radius: 24px;
  background: #fafbf5;
  color: #294638;
  box-shadow: 0 20px 70px #29463844;
}
.lesson-share-dialog h2 {
  font:
    1.8rem Georgia,
    serif;
}
.lesson-share-dialog p {
  line-height: 1.65;
}
.lesson-share-dialog label {
  display: block;
  margin: 16px 0 8px;
}
.lesson-share-dialog input {
  width: 100%;
  box-sizing: border-box;
  min-height: 48px;
  padding: 10px;
  border: 1px solid #c9d6bc;
  border-radius: 12px;
  background: #fffdf7;
  font: inherit;
  color: #294638;
}
.lesson-share-dialog > div,
.lesson-incoming > div {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 18px;
}
.lesson-share-dialog::backdrop,
.lesson-image-dialog::backdrop {
  background: #18302688;
  backdrop-filter: blur(4px);
}
.lesson-image-dialog {
  width: min(1200px, 94vw);
  max-width: 94vw;
  height: 94dvh;
  max-height: 94dvh;
  box-sizing: border-box;
  padding: 18px;
  border: 1px solid #d2ddc5;
  border-radius: 24px;
  background: #fafbf5;
  color: #294638;
}
.lesson-image-dialog[open] {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.lesson-image-dialog > button {
  align-self: flex-end;
  flex-shrink: 0;
}
.lesson-image-stage {
  flex: 1;
  min-height: 100px;
  overflow: auto;
  display: grid;
  align-items: start;
  justify-items: center;
}
.lesson-image-stage > img {
  display: block;
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: 16px;
}
.lesson-image-stage > .scene {
  width: 100%;
  max-width: 1100px;
  position: relative;
  overflow: hidden;
}
.lesson-image-stage > svg {
  width: 100%;
  height: auto;
  max-height: none;
  background: #f4f5e9;
  border-radius: 16px;
}
.lesson-image-stage > div:not(.scene) {
  width: 100%;
  max-width: 1100px;
}
.lesson-image-stage > .finds-panel {
  width: 100%;
  max-width: 1100px;
}
.lesson-image-dialog > p {
  font-size: 0.875rem;
  line-height: 1.5;
  margin: 0;
}
.lesson-plus-status {
  max-width: 1000px;
  margin: 8px auto;
  text-align: center;
  padding: 0 16px;
  color: #7b4b34;
  line-height: 1.5;
}
.lesson-plus-status:empty {
  display: none;
}
.lesson-news-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin-top: 24px;
}
.lesson-news-grid article {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 22px;
  border: 1px solid #d5dfc9;
  border-radius: 20px;
  background: #fffdf7;
  box-shadow: 0 4px 0 #dfe5d4;
}
.lesson-news-grid time {
  font-size: 0.875rem;
  color: #6a775c;
}
.lesson-news-grid h3 {
  font-size: 1.15rem;
  line-height: 1.5;
}
.lesson-news-grid p {
  margin-top: 0;
  flex: 1;
}
.lesson-incoming ol {
  padding-left: 24px;
  line-height: 1.8;
}
.lesson-incoming {
  border-color: #b8cba2;
}
.lesson-plus-plan-actions button:focus-visible,
.lesson-share-dialog :is(input, button):focus-visible,
.lesson-image-dialog button:focus-visible,
.lesson-news-grid a:focus-visible,
.lesson-incoming button:focus-visible {
  outline: 3px solid #a78050;
  outline-offset: 3px;
}
@media (max-width: 700px) {
  .lesson-news-grid {
    grid-template-columns: 1fr;
  }
  .lesson-plus-plan-actions button {
    width: 100%;
  }
  .lesson-share-dialog {
    padding: 20px;
  }
  .lesson-image-dialog {
    padding: 12px;
  }
}
.lesson-image-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  flex-wrap: wrap;
}
.lesson-image-actions button {
  font: inherit;
  min-height: 44px;
  padding: 10px 18px;
  border: 1px solid #c8d5b9;
  border-radius: 20px;
  background: #edf3e5;
  color: #294638;
  cursor: pointer;
}
.lesson-image-actions button:focus-visible {
  outline: 3px solid #a78050;
  outline-offset: 3px;
}
.lesson-image-stage.is-zoomed {
  display: block;
}
.lesson-image-stage.is-zoomed > * {
  width: 1400px;
  min-width: 1400px;
  max-width: none;
  max-height: none;
}


/* site-utilities.css */
.picker-controls {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}
/* Keep the hero illustration inside the page at intermediate desktop widths. */
.hero .hero-art.real-hero.site-cover {
  width: 100%;
  margin-right: 0;
  min-width: 0;
}
.picker-controls label:last-child {
  grid-column: 1/-1;
}
.picker-task-info {
  font-size: 0.875rem;
  color: #526849;
  line-height: 1.6;
}
.parent-guide {
  max-width: 1100px;
  margin: 14px auto 24px;
  border: 1px solid #d3dfc5;
  border-radius: 20px;
  background: #f1f5e9;
  color: #294638;
  box-shadow: 0 3px 0 #dce5d0;
}
.parent-guide summary {
  padding: 18px 22px;
  cursor: pointer;
  font-size: 1rem;
  line-height: 1.5;
}
.parent-guide > div {
  padding: 0 22px 20px;
  line-height: 1.75;
}
.parent-guide ol {
  padding-left: 24px;
}
.parent-guide li {
  margin: 10px 0;
}
.parent-note {
  font-size: 0.875rem;
  color: #526849;
}
.site-utilities {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  max-width: 1100px;
  margin: 30px auto;
  padding: 18px;
  color: #294638;
}
.site-utilities button,
.site-utility-dialog button {
  font: inherit;
  line-height: 1.4;
  min-height: 44px;
  padding: 10px 18px;
  border: 1px solid #c8d5b9;
  border-radius: 20px;
  background: linear-gradient(145deg, #fffef8, #e6eed9);
  color: #294638;
  box-shadow: 0 3px 0 #d7dfca;
  cursor: pointer;
}
.site-utilities > p {
  width: 100%;
  text-align: center;
  font-size: 0.875rem;
}
.site-utilities > p:empty {
  display: none;
}
.site-utility-dialog {
  width: min(620px, 92vw);
  max-width: 92vw;
  max-height: 90dvh;
  box-sizing: border-box;
  border: 1px solid #c8d5b9;
  border-radius: 24px;
  padding: 26px;
  background: #fafbf5;
  color: #294638;
  box-shadow: 0 20px 70px #29463844;
}
.site-utility-dialog::backdrop {
  background: #18302688;
  backdrop-filter: blur(4px);
}
.site-utility-dialog h2 {
  font:
    1.8rem Georgia,
    serif;
  margin: 0 0 18px;
}
.site-utility-dialog p,
.site-utility-dialog li {
  line-height: 1.65;
}
.site-utility-dialog li {
  margin: 12px 0;
}
.site-utility-dialog label {
  display: block;
  line-height: 1.5;
  margin: 16px 0;
}
.site-utility-dialog select,
.site-utility-dialog textarea {
  display: block;
  box-sizing: border-box;
  width: 100%;
  font: inherit;
  color: #294638;
  border: 1px solid #c8d5b9;
  border-radius: 12px;
  padding: 12px;
  background: #fffef8;
  margin-top: 8px;
}
.site-utility-dialog textarea {
  resize: vertical;
}
.utility-dialog-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
.utility-small {
  font-size: 0.875rem;
}
.site-utility-dialog :is(button, select, textarea):focus-visible,
.site-utilities button:focus-visible,
.parent-guide summary:focus-visible {
  outline: 3px solid #a78050;
  outline-offset: 3px;
}
body.lesson-focus .site-utilities {
  display: none;
}
@media (max-width: 800px) {
  .picker-controls {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 480px) {
  .picker-controls {
    grid-template-columns: 1fr;
  }
  .site-utility-dialog {
    padding: 20px;
  }
  .parent-guide {
    margin: 14px 0 24px;
  }
  .site-utilities {
    padding: 14px;
    margin: 24px 12px;
  }
}
.site-back-to-top {
  position: fixed;
  left: max(16px, env(safe-area-inset-left));
  bottom: max(16px, env(safe-area-inset-bottom));
  z-index: 24;
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  padding: 0;
  border: 1px solid #becdad;
  border-radius: 50%;
  background: linear-gradient(145deg, #fffef8, #e4ecd7);
  color: #36543e;
  box-shadow:
    0 3px 0 #cfdbc0,
    0 5px 16px #29463818;
  cursor: pointer;
}
.site-back-to-top[hidden] {
  display: none !important;
}
.site-back-to-top svg {
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.site-back-to-top:hover {
  background: #f2e5d7;
}
.site-back-to-top:focus-visible {
  outline: 3px solid #a78050;
  outline-offset: 4px;
}
@media (max-width: 480px) {
  .site-back-to-top {
    width: 44px;
    height: 44px;
    left: 12px;
    bottom: max(12px, env(safe-area-inset-bottom));
  }
}


/* lesson-navigation.css */
.lesson-hub {
  max-width: 1200px;
  margin: 48px auto;
  padding: 0 20px;
  color: #294638;
  scroll-margin-top: 16px;
}
.hub-heading h2 {
  font:
    clamp(1.8rem, 3vw, 2.5rem) / 1.25 Georgia,
    serif;
  margin: 12px 0;
}
.hub-heading em {
  font-weight: normal;
  color: #b76c48;
}
.hub-heading p {
  line-height: 1.65;
  max-width: 680px;
}
.hub-resume {
  padding: 16px 0 24px;
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  line-height: 1.5;
}
.hub-resume span {
  font-size: 0.9375rem;
  color: #526849;
}
.hub-resume a {
  color: #294638;
  text-underline-offset: 4px;
  font-weight: 600;
}
.lesson-hub-tabs {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  padding: 8px;
  border: 1px solid #d5dfc8;
  border-radius: 22px;
  background: #f1f5e9;
  box-shadow: 0 3px 0 #dce5d0;
  margin-bottom: 24px;
  position: sticky;
  top: 8px;
  z-index: 25;
}
.lesson-hub-tabs button {
  font: inherit;
  min-height: 54px;
  line-height: 1.4;
  padding: 12px;
  border: 1px solid transparent;
  border-radius: 16px;
  background: transparent;
  color: #526849;
  cursor: pointer;
}
.lesson-hub-tabs button[aria-selected='true'] {
  background: #fffdf7;
  color: #294638;
  border-color: #c7d5b7;
  box-shadow: 0 3px 10px #29463810;
}
.lesson-hub-tabs span {
  display: inline-block;
  min-width: 22px;
  border-radius: 15px;
  padding: 2px 5px;
  margin-left: 4px;
  background: #e2ead7;
  font-size: 0.8rem;
}
.lesson-navigation-panel[hidden] {
  display: none !important;
}
.lesson-hub .material-picker,
.lesson-hub .lesson-library {
  margin: 0;
  max-width: none;
  width: 100%;
  box-sizing: border-box;
}
.hub-news {
  max-width: 1160px;
  margin: 28px auto 48px;
  border: 1px solid #d7dfca;
  border-radius: 20px;
  background: #f4f6ee;
  color: #294638;
}
.hub-news > summary {
  padding: 18px 24px;
  cursor: pointer;
}
.hub-news .lesson-library {
  margin: 0;
  box-shadow: none;
  border: 0;
  background: transparent;
}
.picker-main-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin-top: auto;
}
.picker-main-actions > * {
  min-width: 0;
  width: 100%;
  box-sizing: border-box;
}
.picker-main-actions:has(> :only-child) {
  grid-template-columns: 1fr;
}
.picker-main-actions .picker-primary:first-child {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 10px 14px;
  font:
    700 16px/1.4 Arial,
    sans-serif;
  line-height: 1.4;
  text-align: center;
  text-decoration: none;
  border: 1px solid #3d624b;
  border-radius: 18px;
  background: linear-gradient(140deg, #4e7658, #365641);
  color: #fffdf7;
  box-shadow: 0 3px 0 #2b4936;
  cursor: pointer;
}
.picker-main-actions .lesson-plan-add {
  font-size: 0.875rem;
}
.material-more {
  border-top: 1px solid #dbe2d0;
  margin-top: 16px;
  padding-top: 8px;
}
.material-more summary {
  cursor: pointer;
  font-size: 0.875rem;
  line-height: 1.6;
  color: #526849;
  padding: 8px 0;
}
.material-more > div {
  display: grid;
  gap: 10px;
  padding-top: 10px;
}
.material-more a {
  color: #294638;
  padding: 10px;
  text-align: center;
}
.material-more button,
.plan-edit-toggle,
.plan-open-item {
  font: inherit;
  font-size: 0.875rem;
  min-height: 44px;
  padding: 10px 14px;
  border: 1px solid #c7d4b6;
  border-radius: 18px;
  background: #edf3e5;
  color: #294638;
  cursor: pointer;
}
#lesson-plan .lesson-plan-order {
  display: none;
}
#lesson-plan.plan-editing .lesson-plan-order {
  display: flex;
}
#lesson-plan.plan-editing .plan-open-item {
  display: none;
}
.plan-start-actions {
  display: flex;
  gap: 14px;
  align-items: center;
  flex-wrap: wrap;
  margin: 18px 0;
}
.plan-start-actions > a {
  color: #294638;
  padding: 12px;
}
.plan-start-actions > .lesson-link {
  background: #3d624b;
  color: #fffdf7;
  padding: 14px 24px;
}
.plan-edit-toggle {
  margin-left: auto;
}
.plan-extra-actions {
  border-top: 1px solid #d7dfca;
  margin-top: 20px;
  padding-top: 14px;
}
.plan-extra-actions > summary {
  cursor: pointer;
  line-height: 1.6;
  padding: 10px 0;
}
.plan-extra-actions .lesson-plus-plan-actions {
  border-top: 0;
  margin-top: 0;
  padding-top: 14px;
}
.plan-open-item {
  margin-left: auto;
  white-space: nowrap;
}
.session-adult {
  position: relative;
  margin-left: auto;
}
.session-adult > summary {
  cursor: pointer;
  list-style-position: inside;
  min-height: 44px;
  padding: 12px;
  box-sizing: border-box;
  font-size: 0.875rem;
}
.session-adult-content {
  position: absolute;
  right: 0;
  top: 100%;
  width: min(500px, calc(100vw - 40px));
  max-height: 75dvh;
  overflow: auto;
  padding: 20px;
  box-sizing: border-box;
  border: 1px solid #ccd9bd;
  border-radius: 20px;
  background: #fafbf5;
  box-shadow: 0 16px 40px #29463826;
  z-index: 60;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.session-adult .lesson-toolbar {
  margin: 0;
  padding: 12px;
  box-shadow: none;
}
.session-adult .parent-guide {
  margin: 0;
}
.session-adult-content > a {
  color: #294638;
}
.lesson-session-bar {
  position: relative;
  z-index: 40;
}
.session-back {
  font-weight: 600;
  white-space: nowrap;
}
body.lesson-focus .session-adult .lesson-toolbar {
  display: flex !important;
}
.lesson-hub-tabs button:focus-visible,
.material-more summary:focus-visible,
.material-more button:focus-visible,
.picker-primary:focus-visible,
.plan-edit-toggle:focus-visible,
.plan-open-item:focus-visible,
.plan-extra-actions > summary:focus-visible,
.session-adult > summary:focus-visible,
.hub-news > summary:focus-visible {
  outline: 3px solid #a78050;
  outline-offset: 3px;
}
@media (max-width: 700px) {
  .lesson-hub {
    padding: 0 14px;
    margin: 32px auto;
  }
  .lesson-hub-tabs {
    gap: 4px;
    padding: 5px;
    border-radius: 18px;
  }
  .lesson-hub-tabs button {
    padding: 10px 5px;
    font-size: 0.875rem;
  }
  .lesson-hub-tabs span {
    margin-left: 0;
  }
  .hub-news {
    margin: 24px 14px;
  }
  .plan-start-actions > .lesson-link {
    width: 100%;
  }
  .plan-edit-toggle {
    margin-left: 0;
  }
  #lesson-plan .lesson-plan-list li {
    gap: 12px;
  }
  .lesson-session-bar {
    gap: 6px;
    padding: 10px;
  }
  .lesson-session-bar > button {
    font-size: 0.875rem;
    padding: 10px;
  }
  .session-adult-content {
    position: fixed;
    top: 90px;
    right: 16px;
    max-height: 70dvh;
  }
  .plan-open-item {
    margin-left: 0;
  }
  .session-adult {
    margin-left: 0;
  }
  .hub-heading h2 {
    font-size: 1.9rem;
  }
}
.lesson-hub .picker-controls {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.lesson-hub .picker-controls label:last-child {
  grid-column: auto;
}
.picker-refine {
  margin: 0 0 20px;
  border: 1px solid #d7dfca;
  border-radius: 16px;
  padding: 0 16px;
  background: #ffffff55;
}
.picker-refine > summary {
  cursor: pointer;
  padding: 13px 0;
  color: #526849;
  font-size: 0.9375rem;
}
.picker-refine > summary:focus-visible {
  outline: 3px solid #a78050;
  outline-offset: 3px;
}
.lesson-hub .picker-refine-controls {
  margin: 6px 0 14px;
}
.lesson-hub .picker-refine-controls label:last-of-type {
  grid-column: 1/-1;
}
/* On small screens, navigation stays in the page flow so it cannot cover a task. */
.lesson-hub-tabs {
  --active-tab: 0;
  --switch-pad: 8px;
  --switch-gap: 8px;
  isolation: isolate;
  background: #e5ebdd;
}
.lesson-hub-tabs::before {
  content: '';
  position: absolute;
  left: var(--switch-pad);
  top: var(--switch-pad);
  bottom: var(--switch-pad);
  width: calc((100% - 2 * var(--switch-pad) - 2 * var(--switch-gap)) / 3);
  border: 1px solid #d1dbc5;
  box-sizing: border-box;
  border-radius: 16px;
  background: linear-gradient(150deg, #ffffff, #fafcf5);
  box-shadow:
    0 2px 5px #29463818,
    0 1px 2px #2946380d;
  transform: translateX(calc(var(--active-tab) * (100% + var(--switch-gap))));
  transition: transform 300ms cubic-bezier(0.22, 0.8, 0.2, 1);
  pointer-events: none;
  z-index: 0;
}
.lesson-hub-tabs button {
  position: relative;
  z-index: 1;
  transition: color 200ms ease;
}
.lesson-hub-tabs button[aria-selected='true'] {
  background: transparent;
  border-color: transparent;
  box-shadow: none;
  color: #294638;
}
@media (max-width: 700px) {
  .lesson-hub-tabs {
    --switch-pad: 5px;
    --switch-gap: 4px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .lesson-hub-tabs::before,
  .lesson-hub-tabs button {
    transition: none;
  }
}
.session-adult-trigger {
  font: inherit;
  font-size: 0.875rem;
  min-height: 44px;
  padding: 10px 16px;
  border: 1px solid #c9d5ba;
  border-radius: 18px;
  background: #fafcf4;
  color: #294638;
  cursor: pointer;
}
.adult-settings-dialog {
  width: min(570px, 92vw);
  max-width: 92vw;
  max-height: 90dvh;
  box-sizing: border-box;
  padding: 0;
  border: 1px solid #cbd8bf;
  border-radius: 24px;
  background: #fafbf5;
  color: #294638;
  box-shadow: 0 24px 80px #18302640;
}
.adult-settings-dialog[open] {
  display: flex;
  flex-direction: column;
}
.adult-settings-dialog::backdrop {
  background: #18302677;
  backdrop-filter: blur(4px);
}
.adult-settings-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding: 22px 24px 18px;
  border-bottom: 1px solid #dce4d2;
  flex-shrink: 0;
  max-width: none;
  margin: 0;
}
.adult-settings-header h2 {
  font:
    1.7rem/1.3 Georgia,
    serif;
  margin: 0;
  color: #294638;
}
.adult-settings-header p {
  margin: 6px 0 0;
  font-size: 0.875rem;
  line-height: 1.5;
  color: #617156;
}
.adult-settings-x {
  display: grid;
  place-items: center;
  flex: 0 0 44px;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid #cbd8bf;
  border-radius: 50%;
  background: #edf3e5;
  color: #294638;
  cursor: pointer;
}
.adult-settings-x svg {
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
}
.adult-settings-body {
  padding: 20px 24px;
  overflow: auto;
  overscroll-behavior: contain;
  min-height: 0;
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.adult-settings-actions {
  display: grid;
  gap: 12px;
}
.adult-settings-actions > a {
  text-align: center;
  padding: 12px;
  color: #294638;
}
.adult-settings-actions > button,
.adult-settings-done {
  font: inherit;
  min-height: 46px;
  padding: 12px 18px;
  border: 1px solid #c8d5b9;
  border-radius: 18px;
  background: #edf3e5;
  color: #294638;
  cursor: pointer;
}
.adult-settings-body .lesson-toolbar {
  margin: 0;
  padding: 16px;
  gap: 12px;
  box-shadow: none;
}
body.lesson-focus .adult-settings-dialog .lesson-toolbar {
  display: flex !important;
}
.adult-settings-body .parent-guide {
  margin: 0;
}
.adult-settings-footer {
  padding: 16px 24px 22px;
  border-top: 1px solid #dce4d2;
  flex-shrink: 0;
  margin: 0;
  background: transparent;
}
.adult-settings-done {
  width: 100%;
  font-size: 16px;
  line-height: 1.4;
  background: #3d624b;
  border-color: #3d624b;
  color: #fffdf7;
  font-weight: 600;
}
.adult-settings-dialog button:focus-visible,
.session-adult-trigger:focus-visible {
  outline: 3px solid #a78050;
  outline-offset: 3px;
}
@media (max-width: 480px) {
  .adult-settings-header {
    padding: 18px 18px 16px;
  }
  .adult-settings-body {
    padding: 16px 18px;
  }
  .adult-settings-footer {
    padding: 14px 18px 18px;
  }
}
@media (max-width: 900px), (max-height: 600px) and (pointer: coarse) {
  .lesson-hub-tabs,
  .lesson-session-bar,
  body.lesson-focus .lesson-session-bar {
    position: static;
    top: auto;
    z-index: auto;
  }
  .lesson-hub-tabs {
    position: relative;
  }
}
@media (max-width: 480px) {
  .lesson-hub .picker-controls {
    grid-template-columns: 1fr;
  }
}


/* learning-breadcrumbs.css */
body.learning-page > header .learning-header-logo {
  display: inline-flex;
  align-items: center;
  width: 220px;
  max-width: 70vw;
  flex: 0 1 220px;
  min-height: 0;
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
  line-height: 0;
}
body.learning-page > header .learning-header-logo img {
  display: block;
  width: 100%;
  height: auto;
}
.learning-page > header {
  align-items: center;
  flex-wrap: wrap;
  gap: 12px 20px;
}
body.learning-page > header .learning-header-logo {
  order: -1;
}
.learning-route {
  display: flex;
  align-items: center;
  gap: 24px;
  max-width: 1100px;
  margin: 0 auto 18px;
  padding: 10px 0;
  color: #36543e;
}
.learning-route-brand {
  display: none;
  width: 220px;
  flex: 0 0 220px;
  line-height: 0;
  border-radius: 8px;
}
.learning-route-brand img {
  display: block;
  width: 100%;
  height: auto;
}
body.lesson-focus .learning-route-brand {
  display: inline-flex;
}
.learning-breadcrumbs {
  min-width: 0;
  font-size: 0.875rem;
  line-height: 1.6;
}
.learning-breadcrumbs ol {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px;
  list-style: none;
  padding: 0;
  margin: 0;
}
.learning-breadcrumbs li {
  display: inline-flex;
  align-items: center;
  min-width: 0;
  max-width: 100%;
}
.learning-breadcrumbs li + li::before {
  content: '/';
  color: #94a384;
  padding: 0 5px;
  flex-shrink: 0;
}
.learning-breadcrumbs a {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding: 4px 6px;
  color: #526b45;
  text-decoration: underline;
  text-underline-offset: 4px;
  border-radius: 8px;
}
.learning-breadcrumbs [aria-current='page'] {
  padding: 4px 6px;
  color: #294638;
  overflow-wrap: anywhere;
}
.learning-breadcrumbs a:hover {
  background: #e8efde;
  color: #294638;
}
.learning-breadcrumbs a:focus-visible,
.learning-route-brand:focus-visible,
.learning-header-logo:focus-visible {
  outline: 3px solid #a78050;
  outline-offset: 3px;
}
@media (max-width: 700px) {
  .learning-route {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
    margin-bottom: 12px;
    padding: 8px 0;
  }
  .learning-route-brand {
    width: 220px;
    flex: 0 0 auto;
  }
  .learning-breadcrumbs {
    font-size: 0.875rem;
  }
  .learning-breadcrumbs a {
    min-height: 36px;
  }
  body.learning-page > header .learning-header-logo {
    width: 200px;
    flex-basis: 200px;
  }
}

