/* Phone-only geometry and arrangement. Shared appearance is in common.css. */
@media (max-width:370px){
.nav{gap:7px;padding:0 9px;}
.brand-mark-window{width:65px;}
.navlinks button{padding:8px 3px;}
.wrap{padding-left:12px;padding-right:12px;}
.inv-controlrow{flex-wrap:wrap;}
.inv-sort{flex-basis:100%;}
}
@media (max-width: 767px), (orientation: landscape) and (max-height: 600px){
#home>.hero{display:none;border:0;padding:12px 0 6px;min-height:0;overflow:visible;}
#home>.hero::before{display:none;}
#home>.hero h1{margin:8px 0 6px;}
#home .cz-home-cue-heading{margin:24px 0 12px;}
#home .cz-home-explore-mobile{display:flex!important;width:100%;min-height:52px;justify-content:center;align-items:center;gap:10px;margin:20px 0 26px;}
#home .cz-daily-grid .cz-open-top{display:none;}
#home .cz-daily-grid .cardtop{padding-right:42px;}
.brand-mark-window{width:60px;height:43px;}
#home>.hero .sub{display:none;}
#home>.cz-why-home{border:0;border-top:1px solid var(--line);padding:28px 0 0;margin:8px 0 24px;}
#home>.cz-why-home h2{margin-bottom:10px;}
#home>.cz-why-home p{margin-bottom:12px;}
.cz-mobile-header-search{display:flex;align-items:center;justify-content:center;margin-left:auto;border:0;padding:10px;cursor:pointer;}
.cz-mobile-header-search svg{width:24px;height:24px;stroke-linecap:round;}
.nav{justify-content:flex-start;gap:10px;}
.logo{position:static;transform:none;order:1;}
.cz-dashboard-tagline{display:flex;flex-direction:column;justify-content:center;order:2;flex:1 1 auto;min-width:0;}
.cz-dashboard-tagline>span{display:none;}
.cz-tag-br{display:block;height:0;overflow:hidden;}
.cz-mobile-header-search{order:3;}
.desktop-menu-btn{order:4;min-width:44px;min-height:44px;display:flex;align-items:center;justify-content:center;}
.desktop-menu{left:auto;right:10px;}
.cz-mobile-bottom-nav{position:fixed;bottom:0;left:0;right:0;z-index:110;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));border-top:1px solid #B9D6DA;padding:7px 14px calc(7px + env(safe-area-inset-bottom));}
.cz-mobile-bottom-nav button{border:0;font:600 12px system-ui,-apple-system,"Segoe UI",sans-serif;display:flex;align-items:center;justify-content:center;flex-direction:column;gap:2px;padding:5px 0;}
.cz-mobile-bottom-nav svg{width:22px;height:22px;stroke-linecap:round;stroke-linejoin:round;}
.cz-dark .cz-mobile-bottom-nav{border-top-color:#254157;}
body{padding-bottom:calc(78px + env(safe-area-inset-bottom));}
.navlinks{display:none;}
html:not(.cz-dark){--paper:#F6FBFC;--line:#d3e5e8;}
.library-right-controls{flex-wrap:wrap;margin:6px 0 4px;}
.library-right-controls .topic-filter-wrap,.library-right-controls .sort-filter-wrap,.library-right-controls .library-save-row{display:none;}
.library-controls.cz-filters-open .library-right-controls .topic-filter-wrap,.library-controls.cz-filters-open .library-right-controls .sort-filter-wrap{display:block;}
.library-controls.cz-filters-open .library-right-controls .library-save-row{display:flex;}
.library-controls.cz-filters-open .library-right-controls{margin-bottom:6px;}
.library-right-controls .topic-filter-wrap,.library-right-controls .sort-filter-wrap{flex:1 1 calc(50% - 4px);}
.library-right-controls .topic-filter-wrap select,.library-right-controls .sort-filter-wrap select{padding:11px 10px;}
.cz-filters-btn{display:inline-flex;align-items:center;gap:8px;min-height:44px;padding:0 16px;border:1px solid rgba(80,150,170,.3);}
.cz-filters-count{display:inline-grid;place-items:center;min-width:20px;height:20px;padding:0 6px;}
.cz-filters-count[hidden]{display:none;}
.results-head{margin:8px 0 12px;}
.inv-controlrow{flex-wrap:wrap;gap:10px;margin:14px 0 4px;}
.inv-tabs{flex:1 1 100%;gap:6px;}
.inv-tab{flex:1 1 0;min-width:0;padding:10px 6px;text-align:center;}
.inv-sort{flex:1 1 100%;min-width:0;padding:11px 10px;}
}

@media (orientation:landscape) and (max-height:600px) and (pointer:coarse){
html.cz-device-mobile .wrap{width:100%;max-width:none;}
html.cz-device-mobile #home{min-width:0;}
html.cz-device-mobile #home .cz-daily-grid,html.cz-device-mobile #home .cz-daily-grid>*,html.cz-device-mobile #home .cz-daily-grid .card{width:100%;max-width:none;min-width:0;}
html.cz-device-mobile .cz-mobile-bottom-nav{box-sizing:border-box;}
html.cz-device-mobile body{padding-bottom:calc(90px + env(safe-area-inset-bottom));}
}

/* Mobile menu: scroll within available viewport above fixed navigation. */
@media (max-width:767px), (orientation:landscape) and (max-height:600px) and (pointer:coarse){
 html.cz-device-mobile .header{z-index:120;}
 html.cz-device-mobile .desktop-menu{
   position:absolute;top:calc(100% - 2px);right:10px;left:auto;
   max-height:calc(100dvh - 78px - 88px - env(safe-area-inset-bottom));
   overflow-y:auto;overscroll-behavior:contain;-webkit-overflow-scrolling:touch;
 }
 html.cz-device-mobile .cz-mobile-bottom-nav{z-index:110;}
}
