@import url('./baseline-tokens.css');
*{box-sizing:border-box}
[hidden]{display:none!important}
:root{--guide-accent:#855325;--guide-dark:#3d2a1b;--guide-line:#c6b49c;--guide-muted:#695648;--viewer-height:clamp(410px,65vh,760px);color-scheme:light}
body{margin:0;min-width:320px;background:var(--itfm-paper-grain,var(--itfm-grain-light)),var(--itfm-paper-mottle),radial-gradient(ellipse at 50% 0%,#fffaf0 0%,transparent 65%),linear-gradient(140deg,#bd9972,#ece1cf 35%,#a5835e);background-attachment:fixed;color:var(--itfm-ink);font:400 1rem/1.55 -apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif}
button,a{-webkit-tap-highlight-color:transparent}
button{font:inherit;color:inherit;cursor:pointer}
button:disabled{cursor:default;opacity:.42}
a{color:inherit;text-underline-offset:4px}
button,a,summary{-webkit-touch-callout:none}
:focus-visible{outline:3px solid #175b71;outline-offset:4px}
main:focus-visible{outline-offset:-4px}
button{touch-action:manipulation}
.skip{position:fixed;z-index:100;top:12px;left:16px;width:1px;height:1px;clip-path:inset(50%);overflow:hidden;background:white;color:#111}
.skip:focus{width:auto;height:auto;clip-path:none;padding:12px 18px}
.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}
#guide{min-height:100svh;display:flex;flex-direction:column}
.guide-main{flex:1;min-width:0}
.guide-header{display:flex;align-items:center;justify-content:space-between;gap:24px;padding:18px 3vw;border-bottom:1px solid var(--guide-line);background:var(--itfm-grain-light),linear-gradient(100deg,#f3e7d5,#fffaf0 60%,#eedec7)}
.brand{background:none;border:0;padding:0;text-align:left;display:grid;gap:5px}
.brand-name{font:400 1.9375rem/1 Georgia,serif;letter-spacing:-.04em}
.eyebrow{text-transform:uppercase;font-size:0.75rem;line-height:1.6;font-weight:700;letter-spacing:.16em;color:var(--guide-muted)}
.edition{display:grid;gap:2px;text-align:center;font-size:0.9375rem}
.edition small{font-size:0.75rem;color:var(--guide-muted)}
.quiet-button,.tool-button{border:1px solid var(--guide-line);border-radius:4px;background:transparent;min-height:44px;padding:8px 15px;font-size:0.875rem}
.quiet-button:hover,.tool-button:hover{background:#e6d6be}
.stage-nav{display:flex;overflow:auto;scrollbar-width:thin;gap:6px;padding:9px 3vw 7px;background:#f5ecdfbd;min-width:0;border-bottom:1px solid var(--guide-line)}
.nav-tab{display:flex;align-items:center;justify-content:center;gap:8px;flex:0 0 auto;min-height:47px;border:1px solid transparent;border-bottom:2px solid transparent;background:none;padding:8px 11px;white-space:nowrap;font-size:0.875rem}
.nav-tab:hover{background:#e6d6be70}
.nav-tab[aria-selected=true]{border-bottom-color:var(--guide-accent);color:#643c1d;background:#eadac344}
.tab-number{font-size:0.75rem;min-width:25px;height:25px;border:1px solid #ad9476;border-radius:50%;display:grid;place-items:center}
.nav-tab[aria-selected=true] .tab-number{background:var(--guide-dark);color:#fff5e5;border-color:var(--guide-dark)}
.planned-dot{font-size:1.375rem;line-height:1;color:var(--guide-muted)}
.section-panel{padding:16px 3vw 0;flex:1}
.guide-toolbar{display:flex;align-items:center;justify-content:space-between;gap:18px;margin-bottom:12px;padding:5px 15px;background:var(--itfm-grain-light),linear-gradient(#fff9eef5,#f3e6d3ed);border:1px solid #b59c7c;border-radius:7px;box-shadow:0 2px 4px #3d2a1b10,0 8px 20px #3d2a1b10;min-height:58px}
.context{margin:0;display:flex;align-items:center;gap:12px;font-size:0.875rem;line-height:1.4}
.context-number{font-size:0.8125rem;color:var(--guide-muted);padding-right:12px;border-right:1px solid var(--guide-line)}
.step-nav{display:flex;overflow:auto;min-width:0;scrollbar-width:thin}
.step-nav .nav-tab{min-height:43px;font-size:0.875rem}
.preview-label{font-size:0.8125rem;color:var(--guide-muted)}
.instruction{display:grid;grid-template-columns:minmax(0,1.63fr) minmax(340px,1fr);gap:12px;align-items:start}
.screenshot-stage,.instruction-copy{border:1px solid #b39a7b;border-radius:8px;box-shadow:0 3px 5px #3d2a1b18,0 13px 30px #3d2a1b1c;min-width:0;overflow:hidden}
.screenshot-stage{background:linear-gradient(140deg,#4b3b2c,#2a251f);color:#fff6e7;position:sticky;top:15px}
.screenshot-toolbar{display:flex;align-items:center;justify-content:space-between;gap:8px;padding:10px 15px;border-bottom:1px solid #9b806760}
.screenshot-toolbar p{margin:0;font-size:0.8125rem;letter-spacing:.03em}
.screenshot-controls{display:flex;gap:7px}
.screenshot-controls .tool-button{color:#fff6e7;border-color:#b39a7b77;padding:7px 12px}
.screenshot-controls .tool-button:hover,.screenshot-controls .tool-button[aria-pressed=true]{background:#7a5b3c55}
.screenshot-viewport{height:var(--viewer-height);display:flex;align-items:center;justify-content:center;padding:12px;overflow:hidden}
.image-wrap{position:relative;flex:none;max-width:100%;width:min(100%,calc((var(--viewer-height) - 24px) * var(--shot-ratio,1.56)));line-height:0;background:#f5ede1;box-shadow:0 5px 18px #100b0644}
.image-wrap img{display:block;width:100%;height:auto;max-width:100%}
.screenshot-caption{margin:0;padding:11px 15px;border-top:1px solid #9b806760;color:#e2d2c0;font-size:0.75rem;line-height:1.5}
.hotspot{position:absolute;transform:translate(-50%,-50%);width:36px;height:36px;border:2px solid #fff9ea;background:#704316;color:white;border-radius:50%;font-size:0.875rem;font-weight:700;line-height:1;box-shadow:0 0 0 3px #fff9ea88,0 4px 12px #21160a66;z-index:2;display:grid;place-items:center;padding:0}
.hotspot::after{content:"";position:absolute;inset:-5px}
.hotspot.active{background:#174f5b;box-shadow:0 0 0 5px #ffffffaa,0 3px 12px #21160a66}
.hotspot:hover{scale:1.08}
.instruction-copy{background:var(--itfm-grain-light),linear-gradient(160deg,#fff9ef,#f4e9d8 70%,#e1c8a7);padding:26px clamp(22px,2.1vw,38px) 22px;min-height:calc(var(--viewer-height) + 103px)}
.instruction-copy>.eyebrow{margin:0 0 13px}
.instruction-title{font:400 clamp(1.8125rem,2.85vw,2.75rem)/1.07 Georgia,serif;letter-spacing:-.035em;margin:0 0 17px;max-width:20ch}
.see{font-size:1rem;line-height:1.6;color:#584433;margin:0 0 19px}
.callouts{border-top:1px solid var(--guide-line);border-bottom:1px solid var(--guide-line);margin-bottom:17px}
.callout+.callout{border-top:1px solid #c6b49c80}
.callout-button{display:flex;align-items:center;gap:10px;width:100%;border:0;background:none;text-align:left;padding:11px 0;min-height:47px;font-size:0.875rem;font-weight:650;line-height:1.4}
.callout-number{width:25px;height:25px;border-radius:50%;border:1px solid #a48a68;display:grid;place-items:center;flex:none;font-size:0.75rem;font-weight:600}
.selected .callout-number{background:#174f5b;color:white;border-color:#174f5b}
.callout-chevron{margin-left:auto;font-size:1.25rem;font-weight:400}
.callout-text{font-size:0.9375rem;line-height:1.6;margin:0 0 14px 35px;color:#584433}
.mini-label{display:block;font-size:0.75rem;letter-spacing:.09em;text-transform:uppercase;font-weight:700;color:#684f3d;margin-bottom:4px}
.type-note p,.after-note p{font-size:0.875rem;line-height:1.55;margin:0 0 15px}
.meaning{border-top:1px solid #b79d7b;padding-top:14px;display:flex;align-items:flex-start;gap:9px;color:#543920}
.meaning p{font-size:0.875rem;line-height:1.55;margin:0}
.meaning-symbol{font-size:1.4375rem;line-height:1.1;flex:none}
.guide-footer{display:flex;align-items:center;justify-content:space-between;gap:20px;padding:14px 3vw 18px;color:#392817}
.guide-footer>p{font-size:0.75rem;max-width:35ch;margin:0}
.pager{display:flex;align-items:center;gap:18px}
.pager-button{background:#f7ecdcdb;border:1px solid #ad9371;border-radius:4px;min-height:44px;padding:9px 15px;font-size:0.875rem}
.pager-button.next,.primary-button{background:var(--guide-dark);color:#fff5e5;border:1px solid #3d2a1b;box-shadow:0 4px 10px #3d2a1b20}
.pager-button:not(:disabled):hover{filter:brightness(1.12)}
.page-count{font-size:0.75rem;white-space:nowrap;font-variant-numeric:tabular-nums;letter-spacing:.1em}
.guide-dialog{background:#f6edde;color:var(--itfm-ink);width:min(96vw,1420px);max-width:96vw;height:94svh;max-height:94svh;border:1px solid #9d815f;border-radius:8px;padding:0;box-shadow:0 20px 70px #150c0480}
.guide-dialog::backdrop{background:#1f180edb;backdrop-filter:blur(4px)}
.guide-dialog[open]{display:flex;flex-direction:column}
.dialog-bar{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:12px 20px;border-bottom:1px solid var(--guide-line);flex:none}
.dialog-bar h2{font:400 1.6875rem/1.2 Georgia,serif;margin:0}
.zoom-note{font-size:0.875rem;line-height:1.5;padding:10px 20px;margin:0;border-bottom:1px solid var(--guide-line)}
.zoom-viewport{overflow:auto;padding:28px;background:#30271f;flex:1;min-height:0;overscroll-behavior:contain}
.zoom-viewport .image-wrap{max-width:none;margin:auto;flex:none}
.map-dialog{width:min(760px,94vw);height:auto;max-height:90svh}
.stage-map{list-style:none;margin:0;padding:10px 20px 20px;overflow:auto}
.map-link{display:grid;grid-template-columns:35px 1fr auto;align-items:center;gap:14px;text-align:left;width:100%;border:0;border-bottom:1px solid var(--guide-line);background:none;padding:14px 4px;min-height:57px}
.map-link:hover{background:#e9d8be70}
.map-link strong{font-weight:500;font-size:1rem}
.map-number,.map-link small{font-size:0.75rem;color:var(--guide-muted)}
.planned{display:block;min-height:60vh;border:1px solid #b39a7b;border-radius:8px;background:var(--itfm-grain-light),linear-gradient(120deg,#fff8ea,#ead8bd);box-shadow:0 13px 30px #3d2a1b1c}
.planned-body{position:relative;max-width:920px;margin:auto;padding:40px clamp(20px,6vw,85px);overflow:hidden}
.planned-body h1{font:400 clamp(1.875rem,4vw,3.0625rem)/1.1 Georgia,serif;letter-spacing:-.035em;max-width:20ch;margin:14px 0 22px}
.planned-body>p:not(.eyebrow){max-width:63ch}
.planned-number{position:absolute;top:12px;right:20px;font:400 8.125rem/1 Georgia,serif;color:#ad8a5830;pointer-events:none}
.planned-outline{font-size:0.875rem;color:var(--guide-muted);border-top:1px solid var(--guide-line);padding-top:18px}
.planned-status{font-size:0.875rem}
.primary-button{border-radius:4px;padding:12px 18px;font-size:0.875rem;min-height:44px;margin-top:10px}
.loading{max-width:650px;margin:15vh auto;padding:28px;background:#fff8ec;border:1px solid #b59c7c}
.image-error{line-height:1.5;padding:25px;color:#281a13;font-size:1rem}
@media(min-width:1600px){.instruction{grid-template-columns:minmax(0,1.8fr) minmax(400px,1fr)}.stage-nav{justify-content:center}.instruction-title{font-size:2.875rem}}
@media(max-width:1050px){.instruction{grid-template-columns:minmax(0,1.15fr) minmax(330px,1fr)}.guide-header{padding:16px 20px}.section-panel{padding:12px 18px 0}.stage-nav{padding-inline:18px}.instruction-copy{padding:22px}.guide-footer{padding:16px 18px}.pager{gap:10px}.guide-footer>p{display:none}.guide-footer{justify-content:flex-end}}
@media(max-width:800px){.instruction{grid-template-columns:1fr}.screenshot-stage{position:static}.instruction-copy{min-height:0}.instruction-title{font-size:2.3125rem;max-width:24ch}.guide-toolbar{flex-wrap:wrap;gap:0;padding-top:10px}.step-nav{width:100%}.screenshot-viewport{--viewer-height:520px}.edition{display:none}.guide-footer{justify-content:center}.screenshot-toolbar{padding:8px 12px}.guide-toolbar{margin-bottom:10px}}
@media(max-width:700px){:root{--viewer-height:580px}.guide-header{padding:16px}.brand-name{font-size:1.8125rem}.brand .eyebrow{font-size:0.625rem;letter-spacing:.14em}.quiet-button{padding:8px 10px}.section-panel{padding:10px 10px 0}.stage-nav{padding-inline:10px}.nav-tab{font-size:0.875rem;padding:7px 10px;min-height:44px}.context{font-size:0.875rem}.screenshot-viewport{--viewer-height:580px;padding:12px}.instruction-copy{padding:25px 22px}.instruction-title{font-size:2.25rem}.see{font-size:1rem}.callout-text{font-size:1rem}.type-note p,.after-note p,.meaning p{font-size:0.9375rem}.guide-footer{padding:13px 10px 22px}.pager{display:grid;width:100%;grid-template-columns:auto 1fr;gap:8px}.page-count{justify-self:end;padding-right:5px}.pager .next{grid-column:1/-1;width:100%}.pager-button{min-height:48px}.hotspot{width:36px;height:36px}.map-link{grid-template-columns:27px 1fr;gap:4px 10px}.map-link small{grid-column:2}.dialog-bar{padding:12px}.dialog-bar h2{font-size:1.375rem}.guide-dialog{width:96vw;max-width:96vw}.zoom-viewport{padding:24px 18px}.screenshot-caption{font-size:0.75rem}}
@media(prefers-reduced-motion:no-preference){.instruction-copy{animation:guide-enter .22s ease-out}@keyframes guide-enter{from{opacity:.3;transform:translateY(4px)}to{opacity:1;transform:none}}button{transition:background-color .15s ease,box-shadow .15s ease}}
@media(prefers-reduced-motion:reduce){*,*::before,*::after{animation:none!important;transition:none!important;scroll-behavior:auto!important}}
@media(forced-colors:active){.hotspot,.callout-number{border:2px solid ButtonText}.nav-tab[aria-selected=true]{border:2px solid Highlight}.image-wrap{forced-color-adjust:none}.guide-footer{color:CanvasText}}
