/* shell.css: one page, three views. The body's data-view says which is shown; the others take no room. */
body[data-view="home"] :is(#browse,#rel,.pagefoot),
body[data-view="browse"] :is(#home,#rel),
body[data-view="releases"] :is(#browse,#home,.pagefoot){display:none}
body[data-view="home"],body[data-view="releases"]{padding-bottom:48px}

/* Phones: the three views are reached from a floating bar at the bottom, inside the thumb's reach; the tabs in the top strip step aside. */
.bnav{display:none}
@media (max-width:640px){
  .kbar .tabs{display:none}
  .bnav{position:fixed;left:50%;bottom:calc(12px + env(safe-area-inset-bottom,0px));transform:translateX(-50%);z-index:60;display:flex;gap:6px;padding:6px;border-radius:26px;background:linear-gradient(180deg,#2b2d34,#131417);box-shadow:inset 0 1px 0 rgba(255,255,255,.22),inset 0 0 0 1px rgba(255,255,255,.08),0 3px 0 #08090b,0 18px 34px -8px rgba(0,0,0,.6)}
  .bnav a{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:3px;min-width:86px;min-height:54px;border-radius:20px;color:#fff;font:650 12.5px/1 "Inter",system-ui,sans-serif;text-decoration:none}
  .bnav a[aria-current="page"]{background:linear-gradient(180deg,#ffab87,#f0703f);color:#2a0d02;box-shadow:inset 0 1px 0 rgba(255,255,255,.5),0 2px 0 #a8431d}
  body[data-view="home"],body[data-view="releases"]{padding-bottom:104px}
  body[data-view="browse"] .pagefoot{padding-bottom:96px}
}
/* a view's own id is also its address, so the browser would scroll it under the strip; this keeps the page at its top */
#home,#browse,#rel{scroll-margin-top:100vh}
@media (max-width:640px){
  .kbar{row-gap:8px}
  .kbar .sharebtn{width:44px;padding:0;justify-content:center}.kbar .sharebtn::after,.kbar .sharebtn:hover::after{content:none}
  .kbar .qfs{flex:0 1 auto}.kbar .ico,.kbar .sharewrap{margin-left:0}
  .kbar .brand{flex-basis:100%}
}
.msgs{display:block;margin:0 2px;padding:10px 16px;border-radius:14px;background:#17181c;color:#fff !important;font:650 15px/22px var(--ui)}
.msgs b{color:#ff9466}

/* Phones, second pass (after the Broking and Wealth Library's phone app): filters open as a sheet from the bottom, reached from a floating
   round button above the bar; every control a thumb needs sits in the lower third. */
@media (max-width:640px){
  #rail .railtop{padding:0}
  #rail .msearch{flex:1 1 100%}
  #rail .rbtn.fbtn{position:fixed;right:14px;bottom:calc(92px + env(safe-area-inset-bottom,0px));z-index:61;flex:none;width:auto;min-height:54px;padding:0 20px;gap:8px;border-radius:27px;
    background:linear-gradient(180deg,#ffab87,#f0703f);color:#2a0d02;font:700 15px/1 var(--ui);box-shadow:inset 0 1px 0 rgba(255,255,255,.5),0 2px 0 #a8431d,0 14px 24px -6px rgba(240,112,63,.6)}
  #rail .rbtn.fbtn svg{display:none}
  #rail.open .body{position:fixed;left:0;right:0;bottom:0;z-index:70;max-height:76vh;overflow-y:auto;padding:18px 14px calc(96px + env(safe-area-inset-bottom,0px));border-radius:26px 26px 0 0;background:var(--rail);box-shadow:0 -18px 40px -10px rgba(0,0,0,.45)}
  #rail.open .showres{position:fixed;left:14px;right:14px;bottom:calc(14px + env(safe-area-inset-bottom,0px));z-index:71;min-height:54px;border-radius:27px}
  #rail.open .rbtn.fbtn,#rail.open .clr{display:none}
  body:has(#rail.open) .bnav{display:none}
  body:has(#rail.open)::after{content:"";position:fixed;inset:0;z-index:65;background:rgba(8,10,16,.5)}
  .rhead{flex-direction:row;flex-wrap:nowrap;overflow-x:auto;gap:8px;padding-bottom:6px;scrollbar-width:none}
  .rhead .sortw{flex:none}.rhead .sortbtn{width:auto}
  .spills{flex-wrap:nowrap}.spill{flex:none}.spill b{display:inline}
  #list{padding-bottom:110px}
  .rpills{grid-template-columns:repeat(2,minmax(0,1fr))}
  .rp{min-height:48px;flex-direction:row;gap:8px}
  .rtop{flex-direction:column;align-items:stretch}
  .msgs{font-size:14px}
}
