/* p4-light-aboard.css — Phase 4 /aboard/ light staging (Wick 09:27). Aboard is its own mini-site: light = html[data-theme=light]
   (localStorage 'sav-theme'), dark = html[data-theme=dark] and is untouched. Decoration only; nothing over text plates or pictures. */
html[data-theme=light]{--p4f:url(/p4v2/chrome/engraved-frame.svg);--p4-iron:#2b261f;--p4-gold:#b8893c}
/* two-layer ground (over the page colour) */
html[data-theme=light] body{background-image:url(/p4v2/chrome/veined-paper-1280.svg),url(/p4v2/chrome/paper-clouds-977.svg);background-size:1280px 1280px,977px 977px;background-position:0 0,311px 173px}
@media (max-width:600px){html[data-theme=light] body{background-size:900px 900px,977px 977px}}
/* woven header rule */
html[data-theme=light] .top{border-bottom:0}
html[data-theme=light] .top::after{content:"";position:absolute;left:0;right:0;bottom:-5px;height:9px;background:url(/p4/chrome/woven-rule.svg) repeat-x 0 0/8px 9.33px;pointer-events:none}
/* screen dividers: the gold 5-arch mask becomes the wide arcade with a single upright mullion per arch */
html[data-theme=light] main>section.screen+section.screen::before{max-width:min(880px,94%);height:44px;opacity:1;background:url(/p4v2/chrome/divider-arcade-wide.svg) center/contain no-repeat;-webkit-mask:none;mask:none}
@media (max-width:899px){html[data-theme=light] main>section.screen+section.screen::before{max-width:min(520px,92%);height:36px;background-image:url(/p4/chrome/divider-arcade.svg)}}
/* margin veins, densest at each screen head */
html[data-theme=light] main>section.screen{position:relative}
@media (min-width:1300px){html[data-theme=light] main>section.screen::after{content:"";position:absolute;top:40px;left:-60px;width:54px;height:min(570px,90%);background:url(/p4v2/chrome/margin-veins.svg) top left/54px auto no-repeat;pointer-events:none}}
/* the herald: the arrival title block on an engraved vellum mat (text on clean vellum; hatch only in the mat) */
html[data-theme=light] .arr-grid>div:first-child{position:relative;align-self:start;padding:24px;background:linear-gradient(#fffaf0,#fffaf0) content-box,url(/p4v2/chrome/hatch.svg) padding-box,linear-gradient(#f6eedb,#efe2c4) padding-box}
html[data-theme=light] .arr-grid>div:first-child::after{content:"";position:absolute;inset:-4px;border:18px solid transparent;border-image:var(--p4f) 24 round;pointer-events:none}
/* engraved veined frames OUTSIDE the stage, the hall picture and the panels */
html[data-theme=light] :is(.stage,.hall-fig){box-shadow:0 0 0 2px var(--p4-gold),0 0 0 3px var(--p4-iron),0 14px 30px -16px rgba(60,40,10,.45)}
html[data-theme=light] .arr-grid>div:last-child,html[data-theme=light] #hall{position:relative}
html[data-theme=light] :is(.length,.pad-wrap,.side,.rooms){position:relative}
html[data-theme=light] :is(.length,.pad-wrap)::after{content:"";position:absolute;inset:-6px;border:18px solid transparent;border-image:var(--p4f) 24 round;pointer-events:none}
/* the dedication plate (a dark text plate): ring outside only, nothing on it */
html[data-theme=light] .ded-plate{outline:2px solid var(--p4-gold);outline-offset:6px;box-shadow:inset 0 0 0 5px #121516,inset 0 0 0 6px rgba(217,169,58,.4),inset 0 0 0 10px #121516,inset 0 0 0 11px rgba(217,169,58,.18),0 0 0 9px #f3ead6,0 0 0 10px var(--p4-iron),0 14px 40px rgba(0,0,0,.35)}
/* woven trim on the buttons (fills unchanged) */
html[data-theme=light] main .btn{position:relative}
html[data-theme=light] main .btn::after{content:"";position:absolute;left:8px;right:8px;bottom:-9px;height:6px;background:url(/p4/chrome/woven-rule.svg) repeat-x 0 0/6px 7px;pointer-events:none}
html[data-theme=light] main .row{row-gap:16px}
html[data-theme=light][data-zx-shell-mode="ship"] body :is(a.btn,button.btn,button.count,a.skip,.rooms button,.ladder button[aria-pressed=true]){background:#c6ff3d!important;color:#0b0d12!important;border-color:#252420!important;box-shadow:inset 0 0 0 1px #252420!important;text-shadow:none}
html[data-theme=light][data-zx-shell-mode="ship"] body :is(a.btn,button.btn,button.count,a.skip,.rooms button,.ladder button[aria-pressed=true]):is(:hover,:focus-visible){background:#d8ff7a!important}
html[data-theme=light][data-zx-shell-mode="ship"] body :is(a.btn,button.btn,button.count,a.skip,.rooms button,.ladder button[aria-pressed=true]):focus-visible{outline:3px solid #252420!important;outline-offset:3px!important;box-shadow:inset 0 0 0 1px #252420,0 0 0 3px #fffaf0!important}
html[data-theme=light][data-zx-shell-mode="ship"] body :is(a.btn,button.btn,button.count,a.skip,.rooms button,.ladder button[aria-pressed=true]):active{background:#a7e524!important}
html[data-theme=light][data-zx-shell-mode="ship"] .rooms button::before{border-color:#252420}
html[data-theme=light][data-zx-shell-mode="ship"] .rooms button :is(.nm,.pc){color:#0b0d12;text-shadow:none}
html[data-theme=light][data-zx-shell-mode="ship"] .ladder button[aria-pressed=true] b{color:#0b0d12;text-shadow:none}

/* 0.9.19 (Levi's walk, 26.11.2026): on the vellum the builder's plate and the two buttons get room from the frame and stand centred. */
html[data-theme=light] .arr-grid>div:first-child .plate-line{justify-content:center;margin-top:16px}
html[data-theme=light] .arr-grid>div:first-child .row{justify-content:center;padding:4px 20px 20px}
