/* Frostfox, mobile layout.*/
:root { --dock-h: 62px; }
.topbar-wrap { padding: 8px 10px 0; }
.bars, .rail { display: none; }
.topbar { padding: 6px 8px; gap: 8px; flex-wrap: wrap; }
.menu { flex: 1 1 100%; justify-content: flex-start; }
.menu-link { padding: 7px 9px; font-size: 13px; }

.stage { display: block; max-width: 720px; padding: 10px 10px calc(var(--dock-h) + 28px + env(safe-area-inset-bottom, 0px)); }
.col-main { padding: 18px 16px 14px; }
.col-left, .col-right { display: none; }
.col-left .sticky-wrap, .col-right .sticky-wrap { position: static; max-height: none; display: block; }
.applist { max-height: none; }

.dock { display: flex; position: fixed; z-index: 80; left: 10px; right: 10px; bottom: calc(10px + env(safe-area-inset-bottom, 0px)); height: var(--dock-h); padding: 0; }
.dock button { flex: 1 1 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; padding: 4px; background: none; border: 0; color: var(--text); font-size: 11.5px; cursor: pointer; --r: 70px; }
.dock button[aria-expanded="true"], .dock button[aria-current="true"] { color: var(--link); box-shadow: inset 0 3px 0 var(--accent); }

.scrim { position: fixed; z-index: 70; inset: 0; background: rgba(0, 0, 0, .35); }
html[data-sheet] .scrim { display: block; }
html[data-sheet="posts"] .col-left { display: flex; }
html[data-sheet="calendar"] .col-right, html[data-sheet="gallery"] .col-right { display: block; }
html[data-sheet="posts"] .col-left, html[data-sheet="calendar"] .col-right, html[data-sheet="gallery"] .col-right {
  position: fixed; z-index: 75; left: 10px; right: 10px; top: calc(var(--bar-h) + 8px);
  bottom: calc(var(--dock-h) + 20px + env(safe-area-inset-bottom, 0px)); overflow: auto; padding: 0; }
html[data-sheet="posts"] .col-left .applist { max-height: none; height: 100%; }
html[data-sheet="calendar"] .gallery, html[data-sheet="gallery"] .calendar { display: none; }
html[data-sheet="gallery"] .gallery { max-height: none; }
html[data-sheet="gallery"] .gallery-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }

.flyout { left: 10px !important; right: 10px; top: auto !important; bottom: calc(var(--dock-h) + 20px + env(safe-area-inset-bottom, 0px)); width: auto; max-height: 70vh; }
.cookie { bottom: calc(var(--dock-h) + 20px + env(safe-area-inset-bottom, 0px)); }
