/* The masthead inherits the same shared styles as the story index and shop. */
.color-gallery,.color-dialog{--cg-text:#f3f0e8;--cg-muted:#b9c4ce;--cg-panel:#152737;--cg-edge:#365064;--cg-accent:#f3cb77;--cg-selected:#2b4554;--cg-background:#0e1b27;color:var(--cg-text)}
[data-theme="light"] .color-gallery,[data-theme="light"] .color-dialog{--cg-text:#263842;--cg-muted:#536670;--cg-panel:#fffdf8;--cg-edge:#c5d2d5;--cg-accent:#835c20;--cg-selected:#edf4ef;--cg-background:#f8f5ed}
.color-gallery{padding-top:20px;padding-bottom:48px}.color-breadcrumb{font-size:.86rem;color:var(--cg-muted);margin-bottom:22px}.color-breadcrumb a{color:inherit}.color-intro{max-width:780px;margin-bottom:22px}.color-intro .eyebrow{color:var(--cg-accent);font-weight:750;letter-spacing:.07em;font-size:.82rem;text-transform:uppercase;margin:0 0 8px}.color-intro h1{font-size:clamp(1.8rem,4vw,3rem);line-height:1.1;margin:0 0 12px}.color-intro>p:last-child{font-size:1.04rem;line-height:1.6;margin:0;color:var(--cg-muted)}
.color-pages{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:10px;margin:0 0 26px;padding:3px;overflow-x:auto}.color-page{border:1px solid var(--cg-edge);border-radius:14px;background:var(--cg-panel);color:var(--cg-text);min-width:0;padding:7px;cursor:pointer;display:flex;flex-direction:column;align-items:center;gap:7px;font:inherit;font-weight:750;transition:border-color .15s,background .15s}.color-page img{width:100%;height:94px;object-fit:contain;border-radius:7px;background:white;display:block}.color-page[aria-current="true"]{border-color:var(--cg-accent);outline:2px solid var(--cg-accent);outline-offset:0;background:var(--cg-selected)}.color-page:hover{border-color:var(--cg-accent)}.color-page-label{color:var(--cg-accent);font-weight:750;font-size:.85rem;margin:0 0 4px}.color-picture-heading{display:flex;align-items:center;justify-content:space-between;gap:20px;margin-bottom:14px}.color-picture-heading h2{font-size:clamp(1.12rem,2.4vw,1.6rem);line-height:1.3;margin:0}.color-button{display:inline-flex;gap:8px;align-items:center;justify-content:center;border:1px solid var(--cg-edge);border-radius:12px;background:var(--cg-panel);color:var(--cg-text);font:inherit;font-size:.92rem;font-weight:700;min-height:44px;padding:9px 15px;cursor:pointer;white-space:nowrap}.color-button svg{width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:1.8;flex:none}.color-button:hover{border-color:var(--cg-accent)}.color-button:disabled{cursor:default;opacity:.35}.color-primary{background:var(--cg-accent);color:#18242a;border-color:var(--cg-accent)}[data-theme="light"] .color-primary{color:white}.color-button:focus-visible,.color-page:focus-visible,.color-breadcrumb a:focus-visible{outline:3px solid var(--cg-accent);outline-offset:4px}
.color-stage{position:relative;background:white;border:1px solid var(--cg-edge);border-radius:16px;overflow:hidden;display:flex;align-items:center;justify-content:center;min-height:220px}.color-stage>img{display:block;object-fit:contain;width:100%;height:min(72svh,900px);padding:14px;box-sizing:border-box;background:white;opacity:1}.color-stage[aria-busy="true"]>img,.color-stage[data-error="true"]>img{opacity:0}.color-feedback{position:absolute;inset:0;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:16px;padding:24px;color:#273f4c;background:#fff;line-height:1.5;text-align:center}.color-feedback[hidden]{display:none}.color-feedback .color-button{background:#f5f7f7;color:#273f4c;border-color:#95a5ac}.color-controls{display:flex;align-items:center;justify-content:space-between;gap:16px;margin-top:16px}.color-counter{font-size:.9rem;font-weight:700;color:var(--cg-muted)}.color-note{color:var(--cg-muted);font-size:.85rem;text-align:center;margin:18px 0 0}.color-dialog{border:0;max-width:none;max-height:none;width:100vw;height:100dvh;margin:0;padding:0;box-sizing:border-box;background:var(--cg-background);overscroll-behavior:contain}.color-dialog::backdrop{background:#07121ce8}.color-dialog-inner{height:100%;display:flex;flex-direction:column;gap:12px;padding:max(12px,env(safe-area-inset-top)) max(16px,env(safe-area-inset-right)) max(12px,env(safe-area-inset-bottom)) max(16px,env(safe-area-inset-left));box-sizing:border-box}.color-dialog-heading{display:flex;align-items:center;justify-content:space-between;gap:16px;flex:none}.color-dialog-heading h2{font-size:clamp(1rem,2vw,1.3rem);line-height:1.25;margin:0}.color-dialog-heading .color-page-label{font-size:.8rem}.color-pages-compact{display:flex;justify-content:center;gap:8px;margin:0;padding:3px;flex:none;min-height:48px}.color-pages-compact .color-page{min-width:49px;min-height:42px;justify-content:center;padding:7px 12px;border-radius:10px;font-size:.9rem}.color-large-stage{flex:1;min-height:0;border-radius:10px}.color-large-stage>img{height:100%;width:100%;max-height:100%;padding:8px}.color-dialog-controls{display:flex;align-items:center;justify-content:space-between;gap:12px;flex:none}body.color-dialog-open{overflow:hidden}.color-dialog:not([open]){display:none}
@media(max-width:700px){.color-pages:not(.color-pages-compact){gap:7px;grid-template-columns:repeat(7,minmax(71px,1fr));margin-left:-2px;margin-right:-2px;padding:4px 3px 8px;scroll-snap-type:x proximity}.color-page{scroll-snap-align:center;font-size:.85rem}.color-page img{height:75px}.color-picture-heading{align-items:flex-start;gap:10px}.color-picture-heading h2{font-size:1.13rem}.color-picture-heading .color-button{font-size:.83rem;padding:8px 11px}.color-stage>img{height:65svh;padding:8px}.color-dialog-inner{gap:8px;padding-left:max(10px,env(safe-area-inset-left));padding-right:max(10px,env(safe-area-inset-right))}.color-dialog-heading h2{font-size:1rem;max-width:58vw}.color-dialog-heading .color-button{padding:8px 10px}.color-pages-compact{justify-content:flex-start;overflow-x:auto;gap:7px}.color-pages-compact .color-page{flex:1;min-width:40px;padding:6px}.color-large-stage>img{height:100%;padding:5px}.color-dialog-controls .color-button{font-size:.8rem;padding:8px 10px}}
@media(max-height:500px) and (orientation:landscape){.color-dialog-inner{gap:5px;padding-top:6px;padding-bottom:6px}.color-dialog-heading .color-page-label{display:none}.color-pages-compact{position:absolute;left:10px;top:54px;bottom:58px;flex-direction:column;justify-content:flex-start;min-height:0;width:46px;padding:3px;gap:4px}.color-pages-compact .color-page{min-height:32px;min-width:38px;padding:3px;flex:0 0 auto}.color-large-stage{margin-left:54px}.color-dialog-controls .color-button{min-height:36px;padding:5px 12px}}
@media(prefers-reduced-motion:reduce){.color-page{transition:none}}
@media print{.masthead,.prototype-footer,.color-breadcrumb,.color-pages,.color-controls,.color-button,.color-intro,.color-note,.color-dialog{display:none!important}.color-gallery{padding:0}.color-picture-heading{color:black}.color-stage{border:0}.color-stage>img{height:85vh;padding:0}.color-page-label{color:black}}
.color-button[hidden]{display:none}
