/* Illustrated learning stories: a quiet paper stage, with controls kept outside the art. */
.two-day-story { width:100%;max-width:600px;justify-self:center;min-width:0; }
.two-day-story-stage { position:relative;isolation:isolate;width:100%;aspect-ratio:1; }
.two-day-story-picture { position:absolute;inset:0;display:block;opacity:0;transition:opacity .38s ease; }
.two-day-story-picture.is-current { opacity:1;z-index:1; }
.two-day-story-picture.is-leaving { opacity:0;z-index:0; }
.two-day-story-picture img { display:block;width:100%;height:100%;object-fit:contain; }
.two-day-story-caption { margin:16px 0 20px;min-height:106px; }
.two-day-story-caption h4 { margin:0 0 8px;color:#7c432f;font-size:clamp(21px,2.2vw,28px);font-weight:800;line-height:1.5;text-wrap:pretty; }
.two-day-story-caption p { margin:0;color:#7b634c;font-size:17px;line-height:1.8; }
.two-day-story-steps { display:grid;grid-auto-flow:column;grid-auto-columns:minmax(0,1fr);gap:7px; }
.two-day-story-steps button { padding:12px 2px 10px;border:0;border-top:3px solid #d9c39c;background:transparent;color:#8b7259;font-size:15px;font-weight:750;line-height:1.5;white-space:nowrap;cursor:pointer; }
.two-day-story-steps button[aria-pressed=true] { color:#a54730;border-top-color:#bd5234; }
.two-day-story-controls { display:flex;align-items:center;justify-content:space-between;gap:16px;margin-top:8px;padding-top:10px;border-top:1px solid #dac5a4; }
.two-day-story-arrows { display:flex;align-items:center;gap:8px; }
.two-day-story-arrows button { display:grid;place-items:center;width:44px;height:44px;padding:0;color:#8e5338;font-size:27px;font-weight:500;background:transparent;border:1px solid #cdb48c;border-radius:50%;cursor:pointer;line-height:1; }
.two-day-story-play { display:inline-flex;align-items:center;gap:10px;padding:10px 0 10px 12px;min-height:44px;border:0;background:transparent;color:#a24731;font-size:15px;font-weight:750;cursor:pointer; }
.two-day-story-play:disabled { cursor:default;color:#8d7963; }
.two-day-story button:focus-visible { outline:3px solid #b85a38;outline-offset:4px; }
.two-day-story button:hover:not(:disabled) { color:#7a3526; }
.two-day-story-error { padding:12px 14px;margin-top:10px;background:#f3e5cc;border-radius:8px;color:#805b42;font-size:14px;line-height:1.6; }
.two-day-story-error[hidden] { display:none; }
.two-day-story-error button { padding:5px 8px;margin-left:6px;border:0;background:transparent;color:#a2452c;text-decoration:underline;text-underline-offset:3px;cursor:pointer;font:inherit; }
.two-day-story-announcement { position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0; }
@media(max-width:700px) {
  .two-day-story { max-width:450px; }
  .two-day-story-caption { margin:12px 0 15px;min-height:104px; }
  .two-day-story-caption h4 { font-size:22px;line-height:1.5; }
  .two-day-story-caption p { font-size:16px;line-height:1.75; }
  .two-day-story-steps { gap:4px; }
  .two-day-story-steps button { font-size:13px;padding-block:10px;min-height:44px; }
  .two-day-story-play { font-size:14px; }
}
.motion-paused .two-day-story-picture { transition:none; }
@media(prefers-reduced-motion:reduce) {
  .two-day-story-picture { transition:none; }
}
