/* Load after the unchanged Parchment /ds/_ds_bundle.css and /site.css.
 * All header, menu, theme, account and link styling remains those source rules.
 * The fixed bottom placement below is the owner's later Grimoire instruction.
 */
.grimoire-app { min-width: 0; width: 100%; max-width: 100%; }
.grimoire-app [hidden] { display: none !important; }
.grimoire-app .site-main { min-width: 0; max-width: 100%; box-sizing: border-box; }
.grimoire-bottom-nav { display: none; }
@media (max-width: 1279.98px) {
  .grimoire-has-bottom-nav .site-main { padding-bottom: calc(72px + env(safe-area-inset-bottom, 0px)); }
  .grimoire-bottom-nav {
    position: fixed; inset: auto 0 0; z-index: 39; box-sizing: border-box;
    display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr);
    width: 100%; max-width: 100%; padding: 4px 2px calc(4px + env(safe-area-inset-bottom, 0px));
    background: var(--gl-shelf); border-top: 1px solid var(--gl-rule);
  }
  .grimoire-bottom-nav .site-nav-link {
    min-width: 0; min-height: 44px; padding: 6px 2px;
    justify-content: center; text-align: center; white-space: normal;
    overflow-wrap: anywhere; font-size: 11px; line-height: 1.3;
  }
}
