.contents-page{background:#151515}.contents-page header{z-index:100}.contents-page main{height:calc(100svh - var(--header-height));min-height:440px;overflow:hidden}.thumbnail-wall{height:100%;display:grid;grid-template-columns:repeat(10,minmax(0,1fr));grid-template-rows:repeat(5,minmax(0,1fr));gap:5px;padding:5px;isolation:isolate}.wave-tile{display:block;position:relative;min-width:0;min-height:0;transform:scale(var(--scale,1));transform-origin:center;z-index:var(--layer,1);background:#252525;border-radius:2px;box-shadow:0 3px 22px rgb(0 0 0 / var(--shadow,0));will-change:transform}.wave-tile img{display:block;width:100%;height:100%;object-fit:cover;border-radius:inherit}.wave-tile:focus-visible{outline:3px solid #fae100;outline-offset:2px;z-index:90}.sr-only{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}@media(min-width:761px) and (max-aspect-ratio:1/1){.thumbnail-wall{grid-template-columns:repeat(5,minmax(0,1fr));grid-template-rows:repeat(10,minmax(0,1fr))}}@media(max-width:760px){.contents-page main{height:auto;min-height:calc(100svh - var(--header-height));overflow:visible}.thumbnail-wall{height:auto;grid-template-columns:repeat(2,minmax(0,1fr));grid-template-rows:none;grid-auto-rows:auto;gap:4px;padding:4px}.wave-tile{aspect-ratio:16/9;will-change:auto}.contents-page nav.is-open{display:flex}}@media(prefers-reduced-motion:reduce){.wave-tile{will-change:auto}}
/* Natural thumbnail proportions, dense responsive tiles, native page scrolling. */
.contents-page main{height:auto;min-height:calc(100svh - var(--header-height));overflow:clip;overflow-clip-margin:0}.thumbnail-wall{position:relative;height:auto;grid-template-columns:repeat(auto-fill,minmax(100px,1fr));grid-template-rows:none;grid-auto-rows:auto;align-items:start;gap:5px;padding:5px}.wave-tile{aspect-ratio:16/9}.wave-tile img{object-fit:contain}.wave-tile{will-change:auto}@media(min-width:761px) and (max-aspect-ratio:1/1){.thumbnail-wall{grid-template-columns:repeat(auto-fill,minmax(100px,1fr));grid-template-rows:none}}@media(max-width:760px){.thumbnail-wall{grid-template-columns:repeat(3,minmax(0,1fr));gap:3px;padding:3px}}@media(max-width:420px){.thumbnail-wall{grid-template-columns:repeat(2,minmax(0,1fr))}}

/* Compact thumbnails across screen sizes, retaining their native ratio. */
@media(max-width:760px){.thumbnail-wall{grid-template-columns:repeat(auto-fill,minmax(100px,1fr))}}

#contents.contents-preview{height:calc(100svh - var(--header-height));min-height:0;display:flex;flex-direction:column;background:#151515;color:#f6f5f0;overflow:hidden;padding:0;isolation:isolate}.contents-toolbar{height:56px;flex:0 0 56px;display:flex;align-items:center;justify-content:space-between;padding:0 4%;gap:20px}.contents-toolbar h2{font-size:24px;font-weight:400;margin:0}.contents-toolbar>a{font-size:14px;border-bottom:1px solid currentColor;padding:4px 0}.contents-preview .thumbnail-wall{flex:1;min-height:0;overflow:hidden;align-content:start;grid-template-columns:repeat(auto-fill,minmax(100px,1fr));grid-template-rows:none}.contents-preview .wave-tile{aspect-ratio:16/9}@media(max-width:760px){.contents-toolbar{padding:0 6%}.contents-toolbar h2{font-size:20px}.contents-toolbar>a{font-size:13px}}

/* Match the information chapters' title inset without changing thumbnail width. */
#contents .contents-toolbar{height:149px;flex:0 0 149px;align-items:flex-start;padding:60px var(--chapter-gutter) 45px}
#contents .contents-toolbar h2{font-size:var(--chapter-title-size);font-weight:400;line-height:1.2;letter-spacing:-1px;margin:0}
#contents .contents-toolbar>a{margin-top:0}
@media(max-width:760px){#contents .contents-toolbar{height:108px;flex-basis:108px;padding:40px var(--chapter-gutter) 32px}}

/* Touch-only flowing rows remain inside the fixed Contents chapter. */
@media(max-width:760px){
 #contents .thumbnail-wall.mobile-flow{display:flex;flex-direction:column;gap:5px;padding:5px;overflow:hidden;justify-content:center}
 .contents-preview .flow-row{position:relative;flex:0 0 auto;height:calc(var(--flow-width)*9/16);width:100%;overflow:hidden;touch-action:pan-y pinch-zoom;user-select:none}
 .contents-preview .flow-track{display:flex;gap:5px;width:max-content;height:100%;will-change:transform}
 .contents-preview .flow-track .wave-tile{flex:0 0 var(--flow-width);width:var(--flow-width);height:100%;transform:none;box-shadow:none}
 .contents-preview .flow-track img{-webkit-user-drag:none;pointer-events:none}
}
