/* The shelf's visible front cover is 153 × 250. Each open page keeps that ratio. */
#reader#reader .open-book{box-sizing:content-box;width:min(846px,calc(100% - 14px));height:auto;min-height:0;aspect-ratio:306/250;grid-template-columns:repeat(2,minmax(0,1fr));grid-template-rows:minmax(0,1fr)}
#reader#reader .open-book>.page{height:100%;min-height:0;max-height:100%}
#reader#reader .page-left .art-area{height:auto;min-height:0;flex:1 1 0}
#reader#reader .page-left .part-photo-frame{height:100%;max-height:310px;min-height:0}
#reader#reader .photo-caption{flex-shrink:0}
#reader#reader .page-right .chapter-content{min-height:0;overflow-y:auto;overscroll-behavior-y:contain;scrollbar-width:thin;scrollbar-color:var(--paper-rule) transparent;justify-content:safe center}
#reader#reader .chapter-content>*{flex-shrink:0}
#reader#reader .flip-leaf>.turn-face{box-sizing:border-box}
.workbench-wordmark{direction:ltr;display:flex;flex-direction:column;align-items:center;gap:6px;padding:24px 16px 0;color:#243d48;text-align:center;pointer-events:none}
.workbench-wordmark strong{font:800 25px/1 Arial,sans-serif;letter-spacing:3px;text-shadow:0 1px 0 #fff9}
.workbench-wordmark strong::after{content:'';display:block;width:35px;height:3px;margin:9px auto 1px;background:#587f89;border-radius:2px}
.workbench-wordmark span{font:500 12px/1.5 Arial,sans-serif;letter-spacing:.5px}
/* Metal wire loops remain at the binding while the coloured leaves turn behind them. */
#reader#reader .open-book::before{content:'';position:absolute;top:16px;bottom:16px;left:50%;width:36px;transform:translateX(-50%);z-index:8;pointer-events:none;background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='40' height='60' viewBox='0 0 40 60'%3E%3Cdefs%3E%3ClinearGradient id='metal' x1='0' y1='0' x2='0' y2='1'%3E%3Cstop stop-color='%23fbfcfd'/%3E%3Cstop offset='.28' stop-color='%2397a1a8'/%3E%3Cstop offset='.5' stop-color='%23f4f7f9'/%3E%3Cstop offset='.72' stop-color='%236c7780'/%3E%3Cstop offset='1' stop-color='%23d8dfe5'/%3E%3C/linearGradient%3E%3C/defs%3E%3Cellipse cx='5' cy='31' rx='3.5' ry='4' fill='%2316242c' fill-opacity='.6'/%3E%3Cellipse cx='35' cy='31' rx='3.5' ry='4' fill='%2316242c' fill-opacity='.6'/%3E%3Cellipse cx='20' cy='32' rx='16' ry='8' fill='none' stroke='%23131f29' stroke-opacity='.4' stroke-width='5'/%3E%3Cellipse cx='20' cy='30' rx='16' ry='8' fill='none' stroke='%23414d57' stroke-width='4'/%3E%3Cellipse cx='20' cy='30' rx='16' ry='8' fill='none' stroke='url(%23metal)' stroke-width='2.7'/%3E%3Cpath d='M6 27Q20 16 34 27' fill='none' stroke='%23fff' stroke-opacity='.8' stroke-width='.8'/%3E%3C/svg%3E");background-size:36px 78px;background-repeat:space;background-position:center top;filter:drop-shadow(1px 2px 1px #14232b30)}
@media(max-width:650px){
 #reader#reader .open-book{width:calc(100% - 8px);min-height:0}
 #reader#reader .page{padding-block:14px}
 #reader#reader .page-left .part-photo-frame{max-height:215px}
 #reader#reader .page-right .chapter-content{padding-inline-end:3px}
 #reader#reader .photo-pending{min-height:0;height:100%}
 #reader#reader .adapter-symbol svg{max-height:100%;margin-block:0}
 #reader#reader .open-book::before{top:10px;bottom:10px;width:26px;background-size:26px 46px}
}

/* Repair-workspace scenery is decorative vector artwork, behind the entire book. */
#reader#reader{background-image:var(--bench-scene),radial-gradient(ellipse at 50% 35%,var(--table-tint),var(--table-edge));background-size:100% auto,100% 100%;background-position:center 0,center;background-repeat:no-repeat;background-attachment:local}
#reader[data-model="iphone-duo"]{--bench-scene:url('workspace-scenes/bench-1.svg')}
#reader[data-model="iphone-18-pro-max"]{--bench-scene:url('workspace-scenes/bench-2.svg')}
#reader[data-model="iphone-18-pro"]{--bench-scene:url('workspace-scenes/bench-3.svg')}
#reader[data-model="iphone-17-pro-max"]{--bench-scene:url('workspace-scenes/bench-4.svg')}
#reader[data-model="iphone-17-pro"]{--bench-scene:url('workspace-scenes/bench-1.svg')}
#reader[data-model="iphone-17"]{--bench-scene:url('workspace-scenes/bench-2.svg')}
#reader[data-model="iphone-air"]{--bench-scene:url('workspace-scenes/bench-3.svg')}
#reader[data-model="iphone-17e"]{--bench-scene:url('workspace-scenes/bench-4.svg')}
#reader[data-model="iphone-16-pro-max"]{--bench-scene:url('workspace-scenes/bench-1.svg')}
#reader[data-model="iphone-16-pro"]{--bench-scene:url('workspace-scenes/bench-2.svg')}
#reader[data-model="iphone-16"]{--bench-scene:url('workspace-scenes/bench-3.svg')}
#reader[data-model="iphone-16e"]{--bench-scene:url('workspace-scenes/bench-4.svg')}
#reader[data-model="iphone-15-pro-max"]{--bench-scene:url('workspace-scenes/bench-1.svg')}
#reader[data-model="iphone-15-pro"]{--bench-scene:url('workspace-scenes/bench-2.svg')}
#reader[data-model="iphone-15-plus"]{--bench-scene:url('workspace-scenes/bench-3.svg')}
#reader[data-model="iphone-15"]{--bench-scene:url('workspace-scenes/bench-4.svg')}
#reader[data-model="iphone-14-pro-max"]{--bench-scene:url('workspace-scenes/bench-1.svg')}
#reader[data-model="iphone-14-pro"]{--bench-scene:url('workspace-scenes/bench-2.svg')}
#reader[data-model="iphone-14-plus"]{--bench-scene:url('workspace-scenes/bench-3.svg')}
#reader[data-model="iphone-14"]{--bench-scene:url('workspace-scenes/bench-4.svg')}
#reader[data-model="iphone-13-pro-max"]{--bench-scene:url('workspace-scenes/bench-1.svg')}
#reader[data-model="iphone-13-pro"]{--bench-scene:url('workspace-scenes/bench-2.svg')}
#reader[data-model="iphone-13"]{--bench-scene:url('workspace-scenes/bench-3.svg')}
#reader[data-model="iphone-12-pro-max"]{--bench-scene:url('workspace-scenes/bench-4.svg')}
#reader[data-model="iphone-12-pro"]{--bench-scene:url('workspace-scenes/bench-1.svg')}
#reader[data-model="iphone-12"]{--bench-scene:url('workspace-scenes/bench-2.svg')}
#reader[data-model="iphone-11-pro-max"]{--bench-scene:url('workspace-scenes/bench-3.svg')}
#reader[data-model="iphone-11-pro"]{--bench-scene:url('workspace-scenes/bench-4.svg')}
#reader[data-model="iphone-11"]{--bench-scene:url('workspace-scenes/bench-1.svg')}
#reader[data-model="iphone-xs-max"]{--bench-scene:url('workspace-scenes/bench-2.svg')}
#reader[data-model="iphone-x"]{--bench-scene:url('workspace-scenes/bench-3.svg')}
#reader[data-model="iphone-xs"]{--bench-scene:url('workspace-scenes/bench-4.svg')}
#reader[data-model="iphone-xr"]{--bench-scene:url('workspace-scenes/bench-1.svg')}
#reader[data-model="iphone-8-plus"]{--bench-scene:url('workspace-scenes/bench-2.svg')}
#reader[data-model="iphone-7-plus"]{--bench-scene:url('workspace-scenes/bench-3.svg')}
#reader[data-model="iphone-se-3"]{--bench-scene:url('workspace-scenes/bench-4.svg')}
#reader[data-model="iphone-se-2"]{--bench-scene:url('workspace-scenes/bench-1.svg')}
#reader[data-model="iphone-se-1"]{--bench-scene:url('workspace-scenes/bench-2.svg')}
#reader[data-model="iphone-8"]{--bench-scene:url('workspace-scenes/bench-3.svg')}
#reader[data-model="iphone-7"]{--bench-scene:url('workspace-scenes/bench-4.svg')}
@media(max-width:650px){#reader#reader{background-size:100% auto,100% 100%;background-position:center 175px,center;background-repeat:no-repeat}}
