/* Tablet layout (iPad portrait and other 761–1099px screens). Loaded with
   media="(min-width:761px) and (max-width:1439px)", after each page's own CSS.
   Desktop (1100px+) and phone (760px and under) are unchanged. Nov 15. */
@media (max-width:1099px){

/* Header: logo + account + cart on one row, the nav in one line under them */
.hdr{padding:14px 24px 0;gap:8px 12px;flex-wrap:wrap}
.brand{margin-right:auto}
.brand img{width:64px}
.brand b{font-size:34px}
.nav{order:3;flex:1 1 100%;flex-wrap:nowrap;justify-content:space-between;gap:0 10px;font-size:13px;border-top:1px solid var(--line)}
.nav a{padding:12px 0;white-space:nowrap}
.acct,.cart{height:44px}
.acct{width:44px}

/* Home: the new-release fan can't push the page sideways */
main,.ft,.hero{overflow-x:clip}

/* Shop: search, collapsible Filter card, then membership, count, Sort, and the grid */
.shead .wrap{display:flex;flex-direction:column}
.shead .srow{order:1;margin-top:20px}
.pstack{order:2;display:flex;flex-direction:column;gap:12px;margin-top:18px}
.shead .gchips{flex-wrap:nowrap;overflow-x:auto;scrollbar-width:none}
.shead .gchips::-webkit-scrollbar{display:none}
.shead .gchips button{flex:0 0 auto;white-space:nowrap}
.sbody{display:block;padding-top:24px}
.pstack > *{flex:none;max-width:none;min-width:0;width:auto}
.pstack .ssearch{margin:0}
.pstack .filters{display:block;position:static;margin:0;padding:0;border:1px solid var(--line2);border-radius:14px;background:#14110E}
.pstack .filters .fhead{display:flex;align-items:center;justify-content:space-between;min-height:52px;padding:0 18px;margin:0;cursor:pointer}
.pstack .filters .fhead > span::after{content:"";display:inline-block;width:9px;height:9px;margin-left:12px;border-right:2px solid var(--gold);border-bottom:2px solid var(--gold);transform:translateY(-4px) rotate(45deg);transition:transform .2s}
.pstack .filters.open .fhead > span::after{transform:translateY(1px) rotate(-135deg)}
.pstack .filters:not(.open) .fgroup,.pstack .filters:not(.open) #clear{display:none}
.pstack .filters .fgroup{margin:0 18px}
.pstack .filters.open .fgroup:last-of-type{padding-bottom:14px}
.pstack .fjoin{display:none}
.ftoggle{display:none!important}
.results .memb{margin-bottom:18px}
.results .rbar{margin-bottom:12px}
.results .psort{display:flex;align-items:center;justify-content:flex-end;gap:10px;margin:0 0 24px}
.grid{grid-template-columns:repeat(auto-fill,minmax(200px,1fr));gap:40px 20px}

/* Book: cover beside the title and format picker; story and details full width below */
.bgrid{flex-wrap:nowrap;gap:36px}
.bcover{flex:0 0 280px}
.binfo{flex:1 1 0;min-width:0}
.fmt{flex:1 1 100%;min-height:0}
button.fmt{padding:14px 18px}
button.fmt[aria-checked="true"]{padding:13px 17px}

.memnote{flex-direction:column;align-items:flex-start;gap:8px}
.addbtn{font-size:20px;white-space:nowrap}

/* Collection Builder: price card and the app video use the full width */
.chin .cprice{flex:1 1 100%;max-width:none}
.cwhyin{display:grid;grid-template-columns:minmax(0,1fr) 280px;gap:40px;align-items:center}
.cwhyin .cvidp{width:auto;max-width:280px;margin:0}

/* Authors: spotlight photo and copy side by side, books lined up under the copy */
.aspot{flex-wrap:wrap}
.aspot-ph{flex-basis:180px;width:180px;height:180px}
.aspot-tx{flex:1 1 0}
.aspot-covers{flex:1 1 100%;max-width:none;margin-left:228px;grid-template-columns:repeat(auto-fill,minmax(110px,130px))}

/* Collection plans: keep the Most Popular seal inside the page */
.seal{right:-10px;top:-36px;width:104px;height:104px}

/* Supply Drop: category buttons on one scrolling row */
.sdcats{flex-wrap:nowrap;overflow-x:auto;scrollbar-width:none;padding-bottom:2px}
.sdcats::-webkit-scrollbar{display:none}
.sdcats button{flex:0 0 auto;white-space:nowrap}
}

/* Landscape tablets and smaller laptops (1100–1439px): same desktop header, tighter so it stays on one row */
@media (min-width:1100px){
.hdr{padding:16px 24px;gap:12px 20px;flex-wrap:nowrap}
.brand img{width:64px}
.brand b{font-size:34px}
.nav{flex-wrap:nowrap;gap:4px 12px;font-size:13px;min-width:0}
.nav a{white-space:nowrap}
.acct,.cart{flex:none}
main,.ft,.hero,.app{overflow-x:clip}
}
