/* The lesson opens as a page of the workshop notebook. */
.fs-dashboard.v2 .modal-backdrop:has(.lr-reader) {background:#291e1675;padding:20px}
.fs-dashboard.v2 .modal:has(.lr-reader) {
  --lr-ink:#382719;
  --lr-secondary:#614b37;
  --lr-accent:#804326;
  --lr-line:#ddcab3;
  --lr-paper:#fffaf2;
  width:min(940px,100%);max-width:940px;max-height:calc(100dvh - 40px);
  margin:0;border:1px solid var(--lr-line);border-radius:12px;
  color:var(--lr-ink);background:var(--lr-paper);
  box-shadow:0 20px 80px #291a1140;
}
.fs-dashboard.v2 .modal:has(.lr-reader) .modal-header {
  align-items:center;gap:16px;padding:20px 28px;
  background:#f5e8d5;border-bottom:1px solid var(--lr-line);
}
.fs-dashboard.v2 .modal:has(.lr-reader) .modal-header h2 {
  color:var(--lr-ink);font-size:clamp(24px,2.4vw,34px);line-height:1.15;
  letter-spacing:-.03em;overflow-wrap:anywhere;
}
.fs-dashboard.v2 .modal:has(.lr-reader) .close-button {
  flex:0 0 44px;width:44px;height:44px;border:1px solid var(--lr-line);
  border-radius:6px;background:#fff9ee;color:var(--lr-ink);
}
.fs-dashboard.v2 .modal:has(.lr-reader) .modal-body {
  min-height:0;max-height:none;overflow:auto;padding:28px;
  background:var(--lr-paper);scrollbar-color:#c0a78b #fff9ef;
}
.lr-reader {
  display:grid;grid-template-columns:minmax(170px, .8fr) minmax(0,1.9fr);
  gap:clamp(20px,3vw,36px);align-items:start;
}
.lr-reader .lr-contents {
  min-width:0;border:1px solid var(--lr-line);border-radius:7px;
  color:var(--lr-ink);background:#f8efdf;
}
.lr-reader summary {
  min-height:46px;display:flex;align-items:center;justify-content:space-between;
  gap:12px;padding:8px 15px;font-weight:700;font-size:16px;list-style:none;cursor:pointer;
}
.lr-reader summary::-webkit-details-marker {display:none}
.lr-caret {
  width:8px;height:8px;margin-inline-end:3px;border:solid currentColor;border-width:0 1.5px 1.5px 0;
  transform:rotate(45deg);
}
.lr-contents[open] .lr-caret {transform:rotate(225deg)}
.lr-contents nav {display:grid;gap:4px;padding:0 6px 6px}
.lr-contents button {
  display:grid;grid-template-columns:26px minmax(0,1fr);align-items:center;
  gap:9px;min-height:46px;padding:8px 9px;border:1px solid transparent;
  border-radius:4px;background:transparent;color:var(--lr-ink);text-align:left;
  font-size:15px;font-weight:600;line-height:1.35;overflow-wrap:anywhere;
}
.lr-contents button[aria-current] {border-color:#d8b99c;background:#fffbf5}
.lr-marker {
  display:grid;place-items:center;width:25px;height:25px;
  border:1px solid #d9bda0;border-radius:50%;font-size:13px;background:#fff9ec;color:#67442d;
}
.lr-marker .icon {width:16px;height:16px}
[aria-current]>.lr-marker {border-color:var(--lr-accent);background:var(--lr-accent);color:white}
.lr-article {min-width:0;overflow-wrap:anywhere}
.lr-reader .lr-caption {
  display:block;margin:0 0 7px;color:var(--lr-accent);font-size:13px;
  font-weight:700;line-height:1.4;
}
.lr-article h3 {margin:0 0 14px;color:var(--lr-ink);font-size:clamp(23px,2vw,29px);line-height:1.19;letter-spacing:-.025em}
.lr-article h3:focus {outline:none}
.lr-copy p {margin:0 0 .9em;color:var(--lr-secondary);font-size:17px;line-height:1.65}
.lr-copy p:last-child {margin-bottom:0}
.lr-resources {
  display:flex;flex-wrap:wrap;gap:2px 20px;margin:18px 0 0;padding-top:4px;
  border-top:1px solid var(--lr-line);
}
.lr-resources a {
  display:inline-flex;align-items:center;gap:6px;min-height:44px;color:var(--lr-accent);
  font-size:15px;font-weight:600;text-decoration:underline;text-underline-offset:3px;
}
.lr-resources .icon {width:16px;height:16px}
.lr-reader .lr-check {margin-top:22px;padding:18px;border:1px solid var(--lr-line);border-radius:7px;background:#f8efdf}
.lr-reader .lr-check h4 {margin:0 0 12px;color:var(--lr-ink);font-size:19px;line-height:1.4}
.lr-reader .lr-check button {
  min-height:45px;padding:9px 12px;border:1px solid #cfbda6;border-radius:4px;
  background:#fffcf6;color:var(--lr-ink);font-size:16px;line-height:1.5;
}
.lr-reader .lr-check button.correct {border-color:#628251;background:#e9f1df;color:#294824}
.lr-reader .lr-check button.wrong {border-color:#b75f49;background:#f9e7dc;color:#753c2a}
.lr-reader .quiz-result {margin-top:9px;color:var(--lr-ink);font-size:15px;line-height:1.5}
.lr-reader .quiz-result:empty {margin:0}
.fs-dashboard.v2 .modal:has(.lr-reader) .modal-footer {
  flex-direction:row;flex-wrap:wrap;align-items:center;justify-content:space-between;
  gap:8px;padding:13px 28px;border-top:1px solid var(--lr-line);background:#f5e8d5;
}
.lr-exit,.lr-next {
  display:inline-flex;align-items:center;justify-content:center;gap:9px;
  min-height:47px;padding:10px 16px;border:1px solid var(--lr-line);border-radius:5px;
  font-size:16px;font-weight:700;line-height:1.25;
}
.lr-exit {color:var(--lr-ink);background:#fff9ed}
.lr-next {color:#fffaf3;background:var(--lr-accent);border-color:var(--lr-accent)}
.lr-exit .icon,.lr-next .icon {flex:none;width:17px;height:17px}
.lr-sr {position:absolute;width:1px;height:1px;margin:-1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
.modal:has(.lr-reader) :is(button,a,summary):focus-visible {outline:3px solid #8e502b;outline-offset:2px}
@media(hover:hover) {
  .lr-next:hover {background:#66361f}
  .lr-exit:hover,.lr-contents button:hover {background:#f1e2cd}
  .lr-resources a:hover {color:#49301e}
}
@media(max-width:740px) {
  .fs-dashboard.v2 .modal-backdrop:has(.lr-reader) {padding:8px}
  .fs-dashboard.v2 .modal:has(.lr-reader) {max-height:calc(100dvh - 16px);border-radius:9px}
  .fs-dashboard.v2 .modal:has(.lr-reader) .modal-header {padding:14px 16px;gap:9px}
  .fs-dashboard.v2 .modal:has(.lr-reader) .modal-body {padding:16px}
  .lr-reader {grid-template-columns:minmax(0,1fr);gap:15px}
  .lr-reader .lr-check {padding:13px}
  .fs-dashboard.v2 .modal:has(.lr-reader) .modal-footer {
    display:grid;grid-template-columns:auto minmax(0,1fr);align-items:stretch;gap:6px;
    padding:9px 12px max(9px,env(safe-area-inset-bottom));
  }
  .lr-next,.lr-exit {gap:5px;min-height:49px;padding:8px 10px}
}
@media(max-width:360px) {
  .lr-exit .icon,.lr-next .icon {display:none}
}
@media(max-height:450px) {
  .fs-dashboard.v2 .modal:has(.lr-reader) {display:block;overflow:auto}
  .fs-dashboard.v2 .modal:has(.lr-reader) .modal-body {overflow:visible}
}
