/* One continuous row per family; overflow belongs to the shelf, never the page. */
.iphone-library,.family-shelf{min-width:0;max-width:100%}
.family-bay,.family-16 .family-bay{display:flex;flex-wrap:nowrap;width:100%;max-width:100%;padding:0 14px;overflow-x:auto;overflow-y:hidden;overscroll-behavior-x:contain;scroll-snap-type:x proximity;scroll-padding-inline:14px;scrollbar-width:thin;scrollbar-color:#7a85a3 #e7ebf5;-webkit-overflow-scrolling:touch}
.family-bay:focus-visible{outline:3px solid #6552a4;outline-offset:4px}
.family-bay .book-bay{flex:1 0 214px;scroll-snap-align:start;min-width:0}
.family-bay .book-stage{height:294px}
.family-bay .book-stage .closed-book{width:169px;height:250px}
.family-bay .book-stage .book-cover{padding:14px 11px 11px;grid-template-rows:12px 43px minmax(0,1fr) 1px 23px;gap:6px}
.family-bay .book-stage .cover-title{font-size:22px}
.family-bay .book-stage .book-overline{font-size:5.3px}
.family-bay .book-stage .cover-footer{font-size:5.2px}
.family-bay .book-caption{min-height:69px;padding:23px 4px 13px;gap:8px}
.family-bay .book-caption strong{font-size:12px}
.family-bay .book-caption small{font-size:9px}
.shelf-controls{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:10px 2px 0;color:#495771}
.shelf-controls[hidden]{display:none}
.shelf-scroll-hint{font-size:11px;line-height:1.6;margin:0}
.shelf-scroll-hint span{display:block;font-size:10px;color:#64718a}
.shelf-arrows{display:flex;gap:7px;flex-shrink:0}
.shelf-arrow{display:grid;place-items:center;width:44px;height:44px;border:1px solid #b7c1d6;border-radius:50%;background:#f9faff;color:#3e4965;font-size:21px;cursor:pointer}
.shelf-arrow:hover:not(:disabled){background:#e4e8f5;border-color:#7a83a7}
.shelf-arrow:disabled{opacity:.4;cursor:default}
.shelf-arrow:focus-visible{outline:3px solid #6552a4;outline-offset:3px}
@media(max-width:650px){.family-bay,.family-16 .family-bay{padding-inline:12px;scroll-padding-inline:12px}.family-bay .book-bay{flex-basis:210px}.shelf-scroll-hint{font-size:10px}.shelf-scroll-hint span{font-size:9px}.family-shelf{margin-bottom:28px}}
@media(prefers-reduced-motion:reduce){.family-bay{scroll-behavior:auto}}
.reduce-motion .family-bay{scroll-behavior:auto}
