/* Preserve the opening header and its place in the document. */
.header-spacer{height:108px}.header-spacer[hidden]{display:none}
.header.is-floating{position:fixed;top:0;left:50%;transform:translateX(-50%);z-index:55;width:100%;max-width:1440px;height:64px;border:0;background:transparent;box-shadow:none;backdrop-filter:none;pointer-events:none}
.header.is-floating .brand,.header.is-floating nav,.header.is-floating .header-access{visibility:hidden;pointer-events:none}
.header.is-floating .menu-toggle{display:inline-flex;align-items:center;gap:8px;margin-left:auto;padding:8px 13px;min-height:44px;border:1px solid rgba(89,69,59,.45);border-radius:3px;background:rgba(248,244,237,.88);color:#4f3d33;box-shadow:0 2px 12px rgba(39,28,22,.10);backdrop-filter:blur(8px);pointer-events:auto}
.header.is-floating.over-dark .menu-toggle{color:#fffaf2;background:rgba(49,35,30,.63);border-color:rgba(255,250,242,.65)}
.header.is-floating .menu-toggle:focus-visible{outline:2px solid currentColor;outline-offset:3px}
.menu{position:fixed;top:70px;right:max(20px,calc((100vw - 1440px)/2 + 24px));bottom:auto;left:auto;margin:0;width:min(350px,calc(100vw - 40px));height:auto;max-height:calc(100dvh - 88px);overflow:auto;padding:16px 19px 18px;border:1px solid rgba(89,69,59,.22);border-radius:5px;background:rgba(248,244,237,.98);box-shadow:0 18px 46px rgba(39,28,22,.23);color:#4f3d33}
.menu::backdrop{background:rgba(39,28,22,.24)}
.menu-top .brand{font-size:18px}.menu-top .brand-mark{width:42px;height:42px;flex-basis:42px}
.menu nav{gap:0;margin:10px 0 0;font-size:clamp(19px,2.2vw,25px)}
.menu nav a{padding:10px 3px;border-top:1px solid rgba(89,69,59,.22)}
.menu nav a.is-current{font-weight:600}.menu nav a:focus-visible{outline-offset:-2px}
.menu>p{display:none}
.method-movements a:focus-visible{outline-offset:3px}
.method-movements{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:0 12px;margin-top:18px;max-width:450px}
.method-movements a{display:block;border-top:1px solid var(--sand);padding:9px 3px;font:500 15px/1.35 var(--sans);color:var(--brown);opacity:.67}
.method-movements a.is-current{opacity:1;border-top:2px solid currentColor;font-weight:700}.method-movements a.is-past{opacity:.83}
.method-hint{margin-top:12px;font:400 12px/1.4 var(--sans);color:var(--brown)}.method.has-progressed .method-hint{visibility:hidden}
.thread-intro strong{font-weight:700}.story-controls{display:flex;justify-content:flex-end;align-items:center;gap:18px;margin:18px 0 0;font:500 12px/1.3 var(--sans)}
.story-controls button{min-height:44px;padding:8px 14px;border:1px solid currentColor;background:rgba(245,240,232,.9);font-weight:600}.story-controls button:disabled,.story-controls button[hidden]{display:none}
@media(max-width:760px){
  .header-spacer{height:80px}.header.is-floating{height:56px}.header.is-floating .menu-toggle{margin-left:auto;padding:7px 11px}.menu{top:61px;right:12px;width:min(315px,calc(100vw - 24px));max-height:calc(100dvh - 75px)}
  .method-movements{display:none}.method-hint{display:none}
  .method .steps{height:auto!important;display:block;margin:32px 0 0 7px!important;padding:0 0 0 25px!important;border-left:1px solid var(--sand)}
  .method .steps-stage{position:static!important;height:auto!important;display:block}
  .method .step{position:relative!important;inset:auto!important;opacity:1!important;transform:none!important;pointer-events:auto!important;min-height:0;padding:23px 0 36px;border-top:1px solid var(--sand);scroll-margin-top:70px}
  .method .step:first-child{border-top:0}.method .step-number:before{display:block}
  .method .method-heading{position:static!important;opacity:1!important}.method .method-closing{position:static!important;grid-row:auto;opacity:1!important;transform:none!important;padding-top:55px;pointer-events:auto;text-align:left}
  .story-controls{justify-content:space-between;gap:12px;margin:18px 0 2px}
}
@media(prefers-reduced-motion:reduce){.header.is-floating .menu-toggle{backdrop-filter:none}.story-controls *, .method-movements *{transition:none!important}}
