.site-nav .buybtn{display:none}
.site-nav{display:flex;gap:6px;overflow-x:auto;flex-shrink:0;padding:6px 0;scrollbar-width:thin}
.site-nav a{flex-shrink:0;color:#ecebe6;font:700 12px/1.2 Arial,sans-serif;padding:10px;text-decoration:none;border:1px solid #555;border-radius:4px}
.site-nav a:focus-visible{outline:2px solid #fccc0a}
.site-nav .btn.icon{width:19px;height:19px;align-self:center}
.site-nav .menu-links{display:flex;gap:3px;align-items:center;margin-left:var(--menu-left,0px)}
.site-nav .reader-shortcuts{display:flex;gap:4px;align-items:center;margin-left:auto;flex-shrink:0}
@media (max-width:700px),(pointer:coarse){.site-nav .reader-shortcuts{margin-right:var(--shortcut-inset,0px)}}
@media (min-width:701px) and (pointer:fine){.site-nav .menu-links{justify-content:space-between}
  /* Dan, 2026-11-27: the icon boxes sit right beside the banners, same height: home left of Store, grid + info right of Exhibitions */
  .site-nav{position:relative;overflow:visible}.site-nav .reader-shortcuts{display:contents}
  .site-nav .menu-links a{font-size:11.06px;line-height:1;height:var(--banner-h,24px);box-sizing:border-box;padding:0 6px;display:flex;align-items:center;justify-content:center;text-align:center;white-space:nowrap;letter-spacing:0;background:#4b4b47;border:1px solid #cfcec7;color:#f4f3ee}   /* middle links: centred text, brighter outline, grey background */
  .site-nav .reader-shortcuts .btn.icon svg{width:13.25px;height:13.25px}
  .site-nav .menu-links a[href*="book-buy"]{display:none}   /* Buy Now moves to the tall button on the right */
  .site-nav .buybtn{display:flex;flex-direction:column;align-items:center;justify-content:center;position:absolute;top:var(--buy-top,3px);left:calc(var(--menu-left,0px) + var(--span-w,0px) + 6px);height:var(--buy-h,50px);padding:0 4px;box-sizing:border-box;background:#fff;color:#111;border:2px solid #111;border-radius:4px;font:800 9.5px/1.15 var(--f-sign,Arial,sans-serif);letter-spacing:.03em;text-decoration:none;z-index:5;box-shadow:0 1px 0 #000,0 2px 4px rgba(0,0,0,.5)}
  .site-nav .buybtn:hover{background:#ecebe6}
  .site-nav .reader-shortcuts .btn.icon{position:absolute;top:50%;transform:translateY(-50%);height:var(--banner-h,19px);width:var(--banner-h,19px)}
  .site-nav .menu-links{margin-left:calc(var(--menu-left,0px) + 2 * var(--banner-h,19px) + 12px)}
  .site-nav #homeB{left:var(--menu-left,0px)}
  .site-nav #gridB2{left:calc(var(--menu-left,0px) + var(--banner-h,19px) + 6px)}
  .site-nav #gridB{left:calc(var(--menu-left,0px) + var(--span-w,0px) - 2 * var(--banner-h,19px) - 6px)}
  .site-nav #infoB{left:calc(var(--menu-left,0px) + var(--span-w,0px) - var(--banner-h,19px))}}
html body .bar{display:flex;justify-content:center;gap:6px}
html body .bar .hub{display:none}
html body .bar .lbanners,html body .bar .rbanners{position:static;display:flex;gap:4px;transition:none}
html body .bar #titleB{display:none}
.bar .lbanners{order:0}.bar .grp.l{order:1}.bar .grp.r{order:2}.bar .rbanners{order:3}
.bar #topicsB,.bar #artistsB{height:19px;padding:3px 6px;font-size:8.85px;white-space:nowrap;text-decoration:none}
@media (min-width:701px) and (pointer:fine){.bar #topicsB,.bar #artistsB{height:23.75px;padding:3.75px 7.5px;font-size:11.06px;display:inline-flex;align-items:center}}  /* 25% bigger (Dan, 2026-11-27) */
.grid-topic-filter{padding:10px 16px;display:flex;gap:16px;align-items:center;flex-wrap:wrap;flex-shrink:0;background:#191919}
.grid-topic-filter select{font:inherit;font-size:16px;background:#222;color:#fff;padding:8px;border:1px solid #777;max-width:75vw}
#grid .tile[hidden]{display:none!important}
@media (max-width:700px),(pointer:coarse){html body .bar #topicsB,html body .bar #artistsB{height:22px;font-size:8.5px;padding:3px 5px;display:inline-flex;align-items:center}}
@media (orientation:landscape) and (max-height:600px){html body .bar #topicsB,html body .bar #artistsB{height:24px;font-size:9px;padding:3px 6px}}
@media (min-width:701px) and (pointer:fine){
 .site-nav{gap:4px;padding:3px 0}
 .site-nav a{font-size:9px;line-height:1.2;padding:3px 6px;border-radius:3px}
}
.reader-topics{width:min(1000px,94vw);max-height:90dvh;background:#191919;color:#ecebe6;border:1px solid #777;border-radius:8px;padding:20px}
.reader-topics::backdrop{background:#000b}
.reader-topics header{display:flex;align-items:center;justify-content:space-between;gap:12px}
.reader-topics button{min-height:44px;padding:10px 14px;background:#0b6a45;color:#fff;border:1px solid #aaa;border-radius:4px;font:inherit;cursor:pointer}
.reader-topics button[aria-pressed=true]{background:#fccc0a;color:#111}
.topic-options{display:flex;flex-wrap:wrap;gap:8px}.topic-pages{display:grid;grid-template-columns:repeat(auto-fill,minmax(130px,1fr));gap:12px}.topic-pages a{color:inherit}.topic-pages img{width:100%;height:140px;object-fit:contain}.topic-pages span{display:block;text-align:center}
@media(max-width:700px),(pointer:coarse){
 html body .app{height:100dvh;padding-left:max(8px,env(safe-area-inset-left));padding-right:max(8px,env(safe-area-inset-right))}
 html body .bar{display:flex;flex-wrap:nowrap;justify-content:center;gap:4px;padding:3px 0;flex-shrink:0}
 html body .bar .hub{display:none}
 html body .bar .grp{flex:0 0 auto;gap:3px}
 html body .bar .btn.icon{width:22px;height:22px}
 html body .bar .btn.icon svg{width:12px;height:12px}
 html body .bar .lbanners,html body .bar .rbanners{position:static;display:flex;gap:3px;transition:none}
 html body .bar #titleB{display:none}
 html body .bar #zoomB,html body .bar #tagB{height:22px;font-size:8.5px;padding:3px 5px}
 html body .bar.vert #homeB{position:relative!important;left:auto!important;top:auto!important;bottom:auto!important;transform:none!important}
 html body .foot{padding:16px 4px 18px!important}
 html body .scrub{height:44px;top:-16px;bottom:auto}
 html body .ovbar{flex-wrap:wrap;gap:6px;padding:8px}
 html body .ovbar .btn{min-width:24px;min-height:24px;font-size:10px}
 html body .tcard{width:min(360px,calc(100vw - 24px));max-height:65dvh;overflow-y:auto;font-size:15px}
 html body .tcard input,html body .tcard textarea{width:100%;font-size:16px;min-height:44px}
 html body .tcard button{min-height:44px;min-width:44px;font-size:13px}
 html body .tcard .tc-artist{font-size:20px}
 html body .tcard .tc-desc,html body .tcard .tc-credit{font-size:14px;line-height:1.5}
 html body .tip{font-size:10px;padding:3px;margin:0}
 html body .stage{overflow:hidden}
 html body .site-nav{gap:3px;padding:3px 0}
 html body .site-nav a{min-height:20px;display:flex;align-items:center;font-size:8.5px;line-height:1;padding:3px 5px}
}
/* Landscape is a viewing surface: keep the spread large and the chrome small. */
@media (orientation:landscape) and (max-height:600px){
 html body .app{padding-left:max(4px,env(safe-area-inset-left));padding-right:max(4px,env(safe-area-inset-right))}
 html body .site-nav{gap:4px;padding:1px 0;min-height:0;scrollbar-width:none}
 html body .site-nav a{min-height:18px;padding:2px 6px;font-size:9px;line-height:1;border-color:#454540}
 html body .bar{display:flex;flex-wrap:nowrap;justify-content:center;gap:5px;padding:2px 0;min-height:0}
 html body .bar .grp{gap:3px;flex:0 0 auto}
 html body .bar .hub{display:none}
 html body .bar .btn.icon{width:24px;height:24px}
 html body .bar .btn.icon svg{width:13px;height:13px}
 html body .bar .lbanners,html body .bar .rbanners{position:static;gap:4px}
 html body .bar #titleB{display:none}
 html body .bar #zoomB,html body .bar #tagB{height:24px;font-size:9px;padding:3px 7px}
 html body .tip{display:none}
 html body .foot{padding:4px 3px 5px!important;gap:4px;grid-template-columns:1fr minmax(110px,240px) 1fr;font-size:7px}
 html body .foot .cap{display:block}
 html body .rail{height:9px}
 html body .scrub{height:17px;top:-4px;bottom:auto}
 html body .bullet{width:12px;height:12px;font-size:6px;line-height:12px;margin-top:-6px}
}
@media (orientation:landscape) and (max-height:360px){
 html body .site-nav{display:none}
 html body .foot .cap{display:none}
 html body .foot{grid-template-columns:minmax(0,240px);justify-content:center;padding:3px!important}
}

/* Bigger desktop controls (Dan, 2026-12-01; Fable's critique: tiny top buttons). Mouse-and-laptop screens only; phones and touch screens keep their own sizes above.
   Menu links and the toolbar go to 13px type and 30px high. The layout script measures the menu link height, so everything else follows. */
@media (min-width:701px) and (pointer:fine){
  html body .site-nav .menu-links a{font-size:13px;height:30px;padding:0 11px}
  html body .bar .btn.icon{width:30px;height:30px}
  html body .bar .btn.icon svg{width:16px;height:16px}
  html body .site-nav .reader-shortcuts .btn.icon svg{width:16px;height:16px}
  html body .bar #zoomB,html body .bar #titleB,html body .bar #tagB,html body .bar #topicsB,html body .bar #artistsB{height:30px;font-size:13px;padding:0 11px;display:inline-flex;align-items:center;letter-spacing:.07em}
  html body .site-nav .buybtn{font-size:12px;padding:0 8px}
}
