/* Final mix: quiet utility, credible paper, accessible interaction. */
.skip-link{position:fixed;z-index:200;left:20px;top:-100px;background:var(--bone);color:var(--ink);padding:14px}.skip-link:focus{top:10px}
a{color:inherit;text-underline-offset:5px}.mast-actions a{text-decoration:none;border-bottom:1px solid #8e8a7c;display:flex;align-items:center;min-height:44px}.mast-actions button,.brand{min-height:44px}.mast-actions #skip span{margin-left:9px}.mast-actions{gap:22px}.mast-note{font-size:11px}
#editor[data-phase="history"] .story-type,#editor[data-phase="snapshot-selected"] .story-type,#editor[data-phase="restore"] .story-type{font-size:clamp(32px,3.7vw,50px);line-height:1.04;letter-spacing:-.035em}
.sheet .section{font:11px Inter;top:18px;border-top-width:2px;padding-top:7px}.sheet .page-title{font:500 26px/1.02 Familjen;top:51px;letter-spacing:-.035em}.sheet .page-art{top:136px;height:108px;background:url(assets/form-art.jpg) center 43%/cover;opacity:1}.sheet .editorial-columns{position:absolute;left:20px;right:20px;top:258px;height:42px;background:repeating-linear-gradient(to bottom,#777b73 0 1px,transparent 1px 5px);mask-image:linear-gradient(to right,#000 0 46%,transparent 46% 53%,#000 53% 100%);opacity:.5}.sheet .page-status{font-size:10px;bottom:24px;left:auto;right:20px}.sheet .folio{font-size:11px;bottom:22px}
.sheet[data-layout="columns"] .page-art{left:139px;width:100px;height:136px;top:126px;background-position:70% center}.sheet[data-layout="columns"] .editorial-columns{top:132px;right:135px;height:153px;mask-image:none}.sheet[data-layout="opener"] .page-title{font-size:34px;right:35px}.sheet[data-layout="opener"] .page-art{top:169px;height:130px;left:0;right:0;background-position:center 70%}.sheet[data-layout="opener"] .editorial-columns{display:none}.sheet[data-layout="front"] .page-art,.sheet[data-layout="end"] .page-art{display:none}.sheet[data-layout="front"] .editorial-columns,.sheet[data-layout="end"] .editorial-columns{top:141px;height:143px;opacity:.28}
#site-footer{position:absolute;z-index:60;left:0;right:0;bottom:0;height:220px;background:var(--pitch);color:var(--bone);padding:28px 4vw 16px;border-top:1px solid #47453d;pointer-events:auto}#site-footer[hidden]{display:none}.footer-access{display:flex;align-items:center;justify-content:space-between;gap:20px}.footer-access img{filter:invert(1);width:112px;height:auto}.footer-cta{display:inline-flex;align-items:center;min-height:44px;font:500 26px Familjen;text-decoration-thickness:1px}.footer-access p{font:11px Inter;color:#b5b0a5;margin:7px 0}.footer-base{margin-top:34px;display:flex;justify-content:space-between;align-items:center;font:11px Inter;color:#b5b0a5}.footer-base nav{display:flex;align-items:center;gap:20px}.footer-base button,.footer-base a{min-height:44px;display:inline-flex;align-items:center;font-size:11px}
#sequence button{min-width:30px;min-height:28px}#motion,#back-story{min-height:44px}.toolbar input,.toolbar select{min-height:36px}.editor-footer button{min-height:36px}
#pi-feature .study-tools button{min-height:36px}#pi-feature .study-tools{margin:4px 0}#pi-feature #study-status{margin:4px 0}
@media(max-width:760px){.mast{padding:0 4vw}.brand,.working .brand{width:75px}.mast-actions{gap:12px;font-size:10px}.mast-actions #skip span{display:none}#back-story{font-size:10px}.mast-note{display:none}#editor[data-phase="history"] .story-type,#editor[data-phase="snapshot-selected"] .story-type,#editor[data-phase="restore"] .story-type{font-size:31px}#site-footer{padding-inline:5vw}.footer-access img{width:84px}.footer-cta{font-size:24px}.footer-access p{font-size:10px}.footer-base{font-size:10px}.footer-base nav{gap:12px}#pi-feature .study-tools button{min-height:44px}}
@media(max-width:360px){.mast-actions{gap:8px;font-size:9px}.brand,.working .brand{width:63px}#back-story{font-size:9px}#pi-title{font-size:54px}#proof-evidence h2{font-size:31px}}
@media(prefers-reduced-motion:reduce){#site-footer{transition:none}}
#pages .sheet .page-art{opacity:1}
@media(min-width:761px){.arrival-note{top:max(37vh,calc(24vw + 80px))}}
#pages .page-status,#pi-pages .page-status{display:none}
/* Final punch list: reusable FORM interiors, no additional image payload. */
.sheet[data-layout="photo"] .page-art{top:100px;height:190px;left:20px;right:20px;background-position:35% 65%}
.sheet[data-layout="photo"] .page-title{font-size:23px;top:49px;right:50px}
.sheet[data-layout="photo"] .editorial-columns{display:none}
.sheet[data-layout="text"] .page-art{display:none}
.sheet[data-layout="text"] .page-title{font-size:36px;right:30px}
.sheet[data-layout="text"] .editorial-columns{top:157px;height:143px;opacity:.5}
.sheet[data-layout="text"] .sheet-content:after{content:'“';position:absolute;right:24px;top:112px;font:64px Familjen;color:#af4b39}
.sheet[data-layout="bleed"] .page-art{inset:0;height:350px;background-position:70% 50%;background-size:auto 140%}
.sheet[data-layout="bleed"] .section,.sheet[data-layout="bleed"] .page-title{z-index:1;color:#f2efe8;text-shadow:0 1px 4px #16151380}
.sheet[data-layout="bleed"] .page-title{top:235px;font-size:32px;right:28px}
.sheet[data-layout="bleed"] .section{border-color:#f2efe8}
.sheet[data-layout="bleed"] .editorial-columns,.sheet[data-layout="bleed"] .page-status{display:none}
.sheet[data-layout="bleed"] .folio{color:#f2efe8;z-index:1}
.sheet[data-layout="department"] .page-title{font-size:28px;right:75px}
.sheet[data-layout="department"] .page-art{top:130px;left:145px;right:20px;height:85px;background-position:50% 80%}
.sheet[data-layout="department"] .editorial-columns{top:135px;right:130px;height:160px;mask-image:none}
.sheet[data-layout="department"] .sheet-content:after{content:'FORM / NOTES';position:absolute;top:245px;left:145px;width:85px;border-top:3px solid #af4b39;padding-top:8px;font:12px Familjen}
.sheet[data-layout="back"] .page-art{display:none}
.sheet[data-layout="back"] .page-title{top:72px;font-size:25px}
.sheet[data-layout="back"] .editorial-columns{top:170px;height:120px;opacity:.38;mask-image:linear-gradient(to right,#000 0 30%,transparent 30% 36%,#000 36% 65%,transparent 65% 71%,#000 71%)}
.sheet[data-layout="back"] .sheet-content:after{content:'FORM 07';position:absolute;left:20px;top:122px;font:500 16px Familjen;letter-spacing:.1em;border-bottom:1px solid #af4b39;padding-bottom:9px;width:220px}
/* One discreet disclosure, native focus and a usable sequence index. */
.demo-disclosure{font:10px/1.4 Inter;color:#b5b0a5}.footer-base{gap:18px;flex-wrap:wrap;margin-top:20px}
button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible{outline:2px solid currentColor;outline-offset:4px}
#sequence button{min-width:44px;min-height:44px}#sequence button span{display:block;font:10px/1.2 Inter}
#story-state{font-size:13px;max-width:65%}.story-type{line-height:1.04}.story-type>span{padding-block:.05em}
.source-state p{font-size:13px}.source-state small{font-size:12px;color:#575b50}.source-state .code{font-size:11px;color:#575b50}
#story-cue{color:#575b50}#pi-feature #study-status{font-size:12px;color:#c9c5bb}
@media(max-width:760px){
 #focus-copy{top:105px;left:5vw;width:90vw}
 #focus-copy h2{font-size:48px;margin:15px 0 20px;width:42%}
 #issue-description{font-size:14px;line-height:1.5;width:42%;max-width:210px}
 #focus-copy dl{margin-top:26px;width:90vw;max-width:none;display:grid;grid-template-columns:1fr 1fr;gap:0 20px}
 #focus-copy dl>div{grid-template-columns:1fr;padding:8px 0;gap:5px}
 #focus-copy dl>div:last-child{grid-column:1/-1;grid-template-columns:75px 1fr}
 #focus-copy dt,#focus-copy dd{font-size:12px}#focus-copy .primary{width:100%;max-width:none;min-height:44px}
 #system{top:140px;width:90vw}#system h2{font-size:36px;line-height:1.02;margin:18px 0}
 #system .system-intro{font-size:14px;line-height:1.5;max-width:90%}
 #source-records{width:41%;margin-top:22px}#source-records .source-header{font-size:11px;line-height:1.5;overflow-wrap:anywhere}
 .source-record{font-size:13px;gap:6px}.source-record>b{font-size:13px}
 #source-bridge{font-size:11px}#system-facts{font-size:11px;max-width:41%;margin-top:18px;line-height:1.7}
 #system .primary{font-size:13px;margin-top:18px;width:41%;min-height:48px}
 .anatomy-tab{width:150px}.anatomy-tab small{font-size:12px}.anatomy-tab span{font-size:12px}
 #sequence{bottom:58px;left:3vw;right:3vw;gap:0}#sequence button{font-size:10px;min-width:40px}#sequence button span{font-size:9px}
 .bottom{bottom:13px}.bottom #scene-label{font-size:9px}
 .story-type{top:135px;font-size:31px;max-width:90%;line-height:1.05}
 .source-state{top:250px;width:43%;padding-top:10px}.source-state .code{font-size:11px;line-height:1.4;margin-bottom:12px}
 .source-state h3{font-size:19px;line-height:1.05;margin-bottom:12px}.source-state .extent-row{font-size:12px;align-items:center}.source-state .extent-row b{font-size:25px}
 .source-state p{font-size:12px;line-height:1.4}.source-state small{font-size:12px;line-height:1.4}
 #publication-state{top:calc(min(510px,67vh) - 88px);font-size:11px}
 #source-signal{top:87px;font-size:11px;max-width:180px}#source-signal small{font-size:11px}
 #story-state{font-size:13px;max-width:90%;bottom:47px}#story-cue{font-size:11px}
 #snapshot-label{top:235px}#snapshot-label small{font-size:12px}.snapshot-difference{font-size:12px}
 #pi-feature #instrument-study h3{font-size:60px;line-height:.88;margin-top:14px}#pi-feature #instrument-study h3 br{display:none}
 #pi-feature .study-caption{position:relative}#pi-feature .study-surface{padding-top:25px;margin-left:0}
 #pi-feature #study-pages{grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}
 #pi-feature .study-page{aspect-ratio:1.35;min-height:64px;padding:9px 7px}
 #pi-feature .study-page b{font-size:13px}#pi-feature .study-page span{font-size:12px}
 #pi-feature .study-tools{font-size:12px;gap:18px}#pi-feature #study-status{font-size:12px;min-height:32px;line-height:1.4}
 #pi-feature .study-tools:first-child{margin-bottom:12px}#pi-feature .study-tools button{min-height:44px}
 .footer-access p{font-size:12px}.demo-disclosure{flex-basis:100%;font-size:11px}.footer-base{margin-top:8px;gap:5px 15px}
}
@media(max-width:760px) and (max-height:720px){
 #focus-copy{top:88px}#focus-copy h2{font-size:39px;margin-bottom:12px}#issue-description{font-size:13px}
 #focus-copy dl{margin-top:12px}#focus-copy dl>div{padding:6px 0}
 #system{top:120px}#system h2{font-size:31px;margin:12px 0}.system-intro br{display:none}
 #system .system-intro{font-size:12px}#source-records{margin-top:13px}#source-bridge{margin-top:10px}
 #system-facts{margin-top:10px;margin-bottom:10px}#system .primary{margin-top:10px}
 .source-state{top:228px}.source-state h3{font-size:16px}.source-state p{margin:8px 0}.source-state small{font-size:11px}
 .story-type{top:126px;font-size:28px}#pi-feature #instrument-study h3{font-size:49px}
 #pi-feature .study-surface{padding-top:16px}#pi-feature .study-page{aspect-ratio:1.65}
}
@media(max-width:760px){#focus-copy dl{margin-top:95px}#focus-copy .primary{margin-top:16px}}
@media(max-width:760px) and (max-height:720px){#focus-copy dl{margin-top:62px}#focus-copy .primary{margin-top:8px}#sequence{bottom:47px}}
/* Captions sit above the two saved-state planes rather than on their pages. */
@media(max-width:760px){#snapshot-label{top:225px}#snapshot-label .snapshot-difference{justify-content:space-between}#snapshot-label .snapshot-difference span{order:2}#snapshot-label small{display:none}}
@media(max-width:760px){#publication-state{top:calc(max(470px,min(510px,67vh)) - 88px)}}
@media(max-width:760px) and (max-height:720px){#previous-source small{display:none}#publication-state{top:390px}.source-state .extent-row{font-size:11px}.source-state .extent-row b{font-size:22px}}
.sheet[data-layout="text"] .editorial-columns{top:185px;height:115px}.sheet[data-layout="text"] .sheet-content:after{display:none}
@media(min-width:761px){#snapshot-label small{display:none}#snapshot-label{width:34%}.snapshot-difference{justify-content:space-between}.snapshot-difference span{order:2}}
@media(max-width:760px){#pi-feature .study-page{min-width:0;min-height:0;width:100%;height:82px;aspect-ratio:auto}}
@media(max-width:760px) and (max-height:720px){#pi-feature .study-page{height:72px}}

/* RC1: keep the existing index and opening copy reachable in short desktop windows. */
@media(min-width:761px) and (max-height:650px){
 #sequence{top:max(84px,min(38vh,calc(100vh - 440px)));bottom:64px;gap:0;justify-content:space-between;overflow-y:auto;padding-inline:8px;right:0}
 #sequence button{flex-shrink:0}
 #editor[data-phase="reflow-study"] #story-cue{visibility:hidden}
 #pi-feature .study-surface{padding-top:0}
 #pi-feature .study-page{height:min(18vh,100px);aspect-ratio:auto}
 #pi-feature #instrument-study h3{font-size:clamp(60px,9vw,100px)}
 .arrival-topline{padding-right:64px}
 .arrival-note{top:calc(100vh - 225px)}
}
/* External QA: allow enlarged text to use available space without losing controls. */
.mast-note{flex:1;min-width:0;overflow:hidden;white-space:nowrap;justify-content:center}
@media(min-width:761px){
 .mast{gap:20px}.brand,.mast-actions{flex-shrink:0}
 #focus-copy{max-height:calc(80vh - 76px);overflow-y:auto;overscroll-behavior:contain}
 #focus-copy dl>div{grid-template-columns:max-content minmax(0,1fr)}
 #system{max-height:calc(82vh - 76px);overflow-y:auto;overscroll-behavior:contain}
 .arrival-edition{right:80px}
}
@media(min-width:761px){
 /* Keep enlarged display type inside its column, clear of the working controls. */
 #pi-feature .study-caption{width:27%;overflow:hidden}
}
