/* Mobile Candidate 01: inactive above each page's narrow-screen breakpoint. */
.mobile-nav-cue,.mobile-bottom-nav{display:none}
@media(max-width:900px){
 html:has(.threshold-page){overflow-x:clip;width:100%}
 .threshold-page{width:100%;max-width:100%;overflow-x:clip;position:relative}
 .threshold{width:100%;max-width:100%;overflow:hidden}
}
@media(max-width:900px){
 html:has(.page .art),body:has(.page .art){height:auto;overflow-y:auto;overflow-x:clip}
 .page:has(.art){position:relative;inset:auto;overflow:hidden;min-height:100svh}
 .page .art{position:relative;width:100%;height:72svh;min-height:440px;background-position:right center}
 .page .field{display:none}
 .page .ui{position:relative;inset:auto;display:flex;flex-direction:column;padding:28px 22px 36px;gap:30px}
 .page .chr,.page .no{position:static;font-size:11px}
 .page .no{position:absolute;top:28px;right:22px}
 .page .hello{position:static;font-size:clamp(96px,25vw,160px);align-self:flex-start}
 .page .hier{position:relative;left:auto;top:auto;width:100%;max-width:360px;aspect-ratio:auto;min-height:205px;margin-top:12px}
 .page .hcontent{position:relative;left:auto;top:auto;padding:12px 18px}
 .page .last{font-size:9px}.page .first{font-size:40px;margin-top:20px}.page .second{font-size:18px;margin-top:20px}.page .third{font-size:11px;margin-top:14px}
 .page .andthen{position:static;font-size:54px}.page .andthen span{display:inline}.page .andthen span+span:before{content:' '}
 .page .aperture{position:relative;left:auto;top:auto;width:calc(100% + 44px);margin-left:-22px;height:260px;flex:none}
 .page .ap-frame{transform:none}.page .ap-word{max-width:100%}.page .ap-word.identity-long{font-size:34px!important}.page .ap-word.identity-hyper{font-size:27px!important}
 .page .browse{position:static;font-size:24px}
 .page .nav{position:static;font:12px/1.5 Consolas,'Courier New',monospace}
 .page .row{grid-template-columns:28px minmax(0,1fr);white-space:normal;width:100%;padding:9px 0}
}
@media(max-width:720px){
 .mobile-nav-cue{display:block;font:10px/1.4 Consolas,'Courier New',monospace;letter-spacing:.12em;color:#b62420;text-decoration:none;margin:0 0 22px}
 .mobile-bottom-nav{display:grid;gap:4px;padding:24px 20px 36px;border-top:1px solid #aaa;font:11px/1.4 Consolas,'Courier New',monospace}
 .mobile-bottom-nav a{display:flex;gap:10px;padding:8px 0;text-decoration:none;color:#151512}.mobile-bottom-nav .nav-num{color:#888}.mobile-bottom-nav .current .nav-num{color:#b62420}
 .interaction-note{display:block}
 .right-rail{display:flex;position:static;height:auto;padding:28px 18px;border-left:0;border-top:1px solid #aaa}
 .right-rail nav a{padding:8px 0;font-size:11px}
 .ct-image{width:100%}.ct-image img{width:100%;max-width:none;right:0}
}
@media(max-width:1000px){
 .seed-hero{display:block;height:auto;min-height:0}
 .seed-intro{height:auto;padding:28px 24px 36px;display:flex;flex-direction:column;gap:28px}
 .seed-intro h1,.dictionary-fragment,.seed-verbs,.seed-definition,.seed-scroll{position:static;margin:0;left:auto;top:auto;bottom:auto}
 .seed-intro h1{font-size:clamp(43px,7vw,62px);white-space:normal}
 .dictionary-fragment{width:100%;max-width:540px;align-self:center;opacity:1}
 .seed-verbs{font-size:12px}.seed-definition{font-size:24px}.seed-scroll{font-size:10px}
 .seed-dark{height:auto;min-height:0;padding:28px 24px 40px;display:flex;flex-direction:column;gap:30px}
 .seed-nav-label,.seed-topnav.chr-nav,.hero-h,.hero-side,.hero-footer,.seed-plate{position:static;inset:auto;margin:0;width:100%}
 .seed-nav-label{order:0}.seed-topnav.chr-nav{order:1;grid-template-columns:repeat(2,minmax(0,1fr));font-size:10px;gap:5px}
 .seed-topnav.chr-nav a{padding:9px 0!important;white-space:normal}
 .hero-h{order:2;height:auto;object-fit:contain;opacity:.94}
 .hero-side{display:block;font-size:11px;line-height:1.8}.hero-side-left{order:3}.hero-side-right{order:4}
 .seed-plate{order:5;display:flex;flex-direction:column;align-items:flex-start;gap:20px}
 .seed-plate-image{width:min(100%,320px);height:auto}.seed-plate figcaption{font-size:11px;transform:none}
 .hero-footer{order:6;font-size:11px}
}
@media(max-width:760px){
 .focus{display:none;position:fixed;inset:70px 18px 85px;transform:none;overflow-y:auto;padding:48px 22px 24px;justify-content:flex-start}
 .stage.selection .focus{display:flex}.focus .content{font-size:clamp(26px,8vw,38px);overflow-wrap:anywhere}.focus img{max-height:45svh}
 .mobile-release{margin-top:24px;min-height:44px;background:transparent;border:1px solid #555;color:#111;padding:10px;cursor:pointer}
 .mobile-question-nav-toggle{position:fixed;top:14px;right:16px;z-index:18;background:#e9e3d4;color:#111;border:1px solid #777;padding:12px;font:11px 'Courier New',monospace}
 .chr-nav.mobile-open{display:block;inset:64px 16px auto;max-height:calc(100svh - 140px);overflow:auto;width:auto;z-index:19;opacity:1!important;pointer-events:auto!important;font-size:12px;padding:16px}
 .chr-nav.mobile-open a{padding:9px 0}.hint{bottom:18px}.hint span{max-width:48%;font-size:9px}
}
@media(max-width:720px){
 /* The supplied 1176px image contains a white strip beyond x=1028. */
 .ct-image img{width:114.5%;max-width:none;right:auto;object-position:52% 35%}
}
@media(min-width:721px) and (max-width:820px){
 .content>.mobile-nav-cue{display:block;font:10px/1.4 Consolas,monospace;color:#b62420;margin-bottom:22px}
}
@media(max-width:900px){
 /* Allow the existing centred headline box to wrap within the viewport. */
 .threshold-line{white-space:normal;overflow-wrap:normal}
}
@media(max-width:760px){.mobile-release{font-size:11px;letter-spacing:.06em}}
@media(max-width:720px){.d-loop span:nth-child(2){right:-18px}}
@media(max-width:380px){
 /* Preserve the diagram's type size; contain its intrinsic width locally. */
 body:has(.docrail) .grid{grid-template-columns:minmax(0,1fr)}
 body:has(.docrail) .net.escape{overflow-x:auto;max-width:100%}
}
@media(min-width:721px) and (max-width:1050px){
 body:has(.right-rail) .right-rail{display:flex;position:relative;grid-column:1/-1;height:auto;border-left:0;border-top:1px solid #aaa}
 body:has(.right-rail) .mobile-nav-cue{display:block;font:10px/1.4 Consolas,monospace;color:#b62420;margin-bottom:22px}
}
@media(max-width:620px){
 /* Fit the original intact alternating phrases without changing their anchors. */
 .threshold-line,.combined-line{font-size:clamp(18px,5vw,30px);white-space:nowrap}
}
