/* RZ-LABEL
   Name:      rz-mbar-20261124.css
   What:      Phone-only bottom icon navigation bar (house skin)
   Does:      Fixed 4–5 icon bar under 768px, hidden on desktop and in print.
              Uses each site's skin variables (gold, panel, body font) with house fallbacks.
   Created:   2026-11-24 7:42 AM CT
   By:        Grok Bot executor for Aether (AETH-E96K)
   Reach:     Staged on Hall, Dhraconyx, Gothline, ruezals.chat and ruezals.wiki (not ruezals.com)
   Undo:      restore from the dated backup folder named in Continuity
   Label:     house-mbar-20261124-CT
   /RZ-LABEL */

:root {
  --rz-mbar-h: 56px;
  --rz-mbar-bg: var(--panel, var(--rz-ink-deep, var(--rz-obsidian, #0B0B0F)));
  --rz-mbar-ink: var(--rz-gold-bright, var(--gold, #e9c25a));
  --rz-mbar-muted: var(--parchment, var(--ink, var(--text, #F6F4EC)));
  --rz-mbar-line: var(--gold-line, rgba(200, 150, 42, 0.5));
  --rz-mbar-soft: var(--gold-soft, rgba(200, 150, 42, 0.12));
  --rz-mbar-glow: var(--gold-glow, rgba(200, 150, 42, 0.28));
  --rz-mbar-font: var(--rz-body, Inter, Arial, "Segoe UI", Helvetica, sans-serif);
}

.rz-mbar,
.rz-mbar-spacer,
.rz-mbar-sheet,
.rz-mbar-scrim {
  display: none;
}

.rz-mbar *,
.rz-mbar-sheet * {
  box-sizing: border-box;
}

@media (max-width: 768px) {
  .rz-mbar {
    display: block;
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 145;
    width: 100%;
    background-color: #0B0B0F;
    background: #0B0B0F;
    background: var(--rz-mbar-bg);
    color: var(--rz-mbar-ink);
    border-top: 1px solid var(--rz-mbar-line);
    box-shadow: 0 -8px 24px rgba(0, 0, 0, 0.35);
    padding: 0;
    padding-bottom: env(safe-area-inset-bottom, 0px);
    font-family: var(--rz-mbar-font);
  }

  .rz-mbar::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background: #0B0B0F;
    pointer-events: none;
  }
  .rz-mbar-list {
    display: flex;
    align-items: stretch;
    justify-content: space-around;
    gap: 0;
    margin: 0;
    padding: 0;
    list-style: none;
    min-height: var(--rz-mbar-h);
  }

  .rz-mbar-list li {
    flex: 1 1 0;
    min-width: 0;
    margin: 0;
    padding: 0;
    display: flex;
  }

  .rz-mbar a,
  .rz-mbar button {
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2px;
    min-height: 44px;
    min-width: 44px;
    margin: 0;
    padding: 6px 4px 4px;
    border: 0;
    background: transparent;
    color: var(--rz-mbar-muted);
    font: 600 11px/1.15 var(--rz-mbar-font);
    letter-spacing: 0.02em;
    text-decoration: none;
    text-transform: none;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
  }

  .rz-mbar a:hover,
  .rz-mbar button:hover {
    color: var(--rz-mbar-ink);
    text-decoration: none;
    background: var(--rz-mbar-soft);
  }

  .rz-mbar a:focus-visible,
  .rz-mbar button:focus-visible {
    outline: 2px solid var(--rz-mbar-ink);
    outline-offset: -2px;
    color: var(--rz-mbar-ink);
  }

  .rz-mbar a.is-active,
  .rz-mbar a[aria-current="page"],
  .rz-mbar button[aria-current="true"],
  .rz-mbar button.is-open {
    color: var(--rz-mbar-ink);
    background: var(--rz-mbar-soft);
    box-shadow: inset 0 2px 0 var(--rz-mbar-ink);
  }

  .rz-mbar svg {
    width: 22px;
    height: 22px;
    display: block;
    flex: 0 0 auto;
  }

  .rz-mbar-label {
    display: block;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    padding: 0 2px;
  }

  .rz-mbar-spacer {
    display: block;
    height: calc(var(--rz-mbar-h) + env(safe-area-inset-bottom, 0px));
    width: 100%;
    pointer-events: none;
  }

  /* Keep the Gothline ankh above the bar so both stay tappable */
  .ankh-btn {
    bottom: calc(var(--rz-mbar-h) + 8px + env(safe-area-inset-bottom, 0px)) !important;
  }

  /* Keep first-party cookie prompts above the bar */
  #rz-cookie-bar {
    bottom: calc(var(--rz-mbar-h) + env(safe-area-inset-bottom, 0px)) !important;
  }

  /* House credit mark and cookie sit just above the bar, not on top of the icons */
  #rz-house-mark {
    bottom: calc(var(--rz-mbar-h) + env(safe-area-inset-bottom, 0px)) !important;
  }
  /* Dhraconyx fixed footer (logos, legal links, Experience CTA) sits above the bar */
  #floating-footer,
  footer.floating-footer {
    bottom: calc(var(--rz-mbar-h) + env(safe-area-inset-bottom, 0px)) !important;
  }
  #rz-cookie-bar { z-index: 160 !important; }
  .ankh-btn { z-index: 155 !important; }
  #gl-menu, .gl-menu { z-index: 160 !important; }

  .rz-mbar-scrim {
    display: block;
    position: fixed;
    inset: 0;
    z-index: 144;
    background: rgba(5, 6, 8, 0.55);
    border: 0;
    padding: 0;
    margin: 0;
  }

  .rz-mbar-scrim[hidden],
  .rz-mbar-sheet[hidden] {
    display: none !important;
  }

  .rz-mbar-sheet {
    display: block;
    position: fixed;
    left: 0;
    right: 0;
    bottom: calc(var(--rz-mbar-h) + env(safe-area-inset-bottom, 0px));
    z-index: 146;
    max-height: min(70vh, 480px);
    overflow: auto;
    background: var(--rz-mbar-bg);
    color: var(--rz-mbar-muted);
    border-top: 1px solid var(--rz-mbar-line);
    box-shadow: 0 -12px 32px rgba(0, 0, 0, 0.4);
    padding: 10px 16px calc(12px + env(safe-area-inset-bottom, 0px));
    font-family: var(--rz-mbar-font);
  }

  .rz-mbar-sheet-h {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin: 0 0 8px;
  }

  .rz-mbar-sheet-h p {
    margin: 0;
    font: 700 15px/1.3 var(--rz-title, Cinzel, Georgia, serif);
    color: var(--rz-mbar-ink);
    letter-spacing: 0.04em;
  }

  .rz-mbar-sheet-x {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 44px;
    min-height: 44px;
    border: 0;
    background: transparent;
    color: var(--rz-mbar-ink);
    font: 500 28px/1 var(--rz-mbar-font);
    cursor: pointer;
  }

  .rz-mbar-sheet-x:focus-visible {
    outline: 2px solid var(--rz-mbar-ink);
    outline-offset: 2px;
  }

  .rz-mbar-sheet nav {
    display: flex;
    flex-direction: column;
    gap: 2px;
  }

  .rz-mbar-sheet a {
    display: flex;
    align-items: center;
    min-height: 44px;
    padding: 8px 10px;
    color: var(--rz-mbar-ink);
    text-decoration: none;
    font: 600 16px/1.3 var(--rz-mbar-font);
    border-radius: 8px;
  }

  .rz-mbar-sheet a:hover,
  .rz-mbar-sheet a:focus-visible {
    background: var(--rz-mbar-soft);
    text-decoration: none;
    outline: 2px solid var(--rz-mbar-ink);
    outline-offset: -2px;
  }
}

@media print {
  .rz-mbar,
  .rz-mbar-spacer,
  .rz-mbar-sheet,
  .rz-mbar-scrim {
    display: none !important;
  }
}

@media (prefers-reduced-motion: reduce) {
  .rz-mbar,
  .rz-mbar-sheet,
  .ankh-btn {
    transition: none !important;
  }
}


/* Phone-only header and footer menu swipe rows (Rue 7:52–7:53 AM CT).
   Stacked/wrapping top and footer link lists become one horizontal swipe row.
   Desktop rules are unchanged. Copyright, legal text and the house mark stay
   in normal flow (not in the swipe row) and clear the bottom icon bar. */
@media (max-width: 768px) {
  nav.gl-nav,
  header.topbar nav[aria-label="Main navigation"],
  nav.site-nav,
  .dhx-house-header .dhx-house-nav,
  ul.hn-top,
  nav.rz-nav,
  nav.rz-foot-nav,
  nav.rz-house-list,
  nav.house-logos,
  nav.rz-logo-row,
  nav.footer-logos,
  footer.site-footer > nav,
  footer .rz-swipe,
  .rz-swipe {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    align-items: center;
    gap: 4px 12px;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    -ms-overflow-style: none;
    box-sizing: border-box;
  }
  nav.gl-nav::-webkit-scrollbar,
  header.topbar nav[aria-label="Main navigation"]::-webkit-scrollbar,
  nav.site-nav::-webkit-scrollbar,
  .dhx-house-header .dhx-house-nav::-webkit-scrollbar,
  ul.hn-top::-webkit-scrollbar,
  nav.rz-nav::-webkit-scrollbar,
  nav.rz-foot-nav::-webkit-scrollbar,
  nav.rz-house-list::-webkit-scrollbar,
  nav.house-logos::-webkit-scrollbar,
  nav.rz-logo-row::-webkit-scrollbar,
  nav.footer-logos::-webkit-scrollbar,
  footer.site-footer > nav::-webkit-scrollbar,
  footer .rz-swipe::-webkit-scrollbar,
  .rz-swipe::-webkit-scrollbar { display: none; }

  nav.gl-nav > a,
  header.topbar nav[aria-label="Main navigation"] > a,
  nav.site-nav > a,
  .dhx-house-header .dhx-house-nav > a,
  ul.hn-top > li,
  nav.rz-nav > a,
  nav.rz-foot-nav > a,
  nav.rz-house-list > a,
  nav.house-logos > a,
  nav.rz-logo-row > a,
  nav.footer-logos > a,
  footer.site-footer > nav > a,
  .rz-swipe > a,
  .rz-swipe > li {
    flex: 0 0 auto;
    scroll-snap-align: start;
    min-height: 44px;
    min-width: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    white-space: nowrap;
    box-sizing: border-box;
  }

  /* Soft edge fades only when there is more to scroll */
  .rz-swipe-fade-l {
    -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 22px, #000 100%);
    mask-image: linear-gradient(90deg, transparent 0, #000 22px, #000 100%);
  }
  .rz-swipe-fade-r {
    -webkit-mask-image: linear-gradient(90deg, #000 0, #000 calc(100% - 22px), transparent 100%);
    mask-image: linear-gradient(90deg, #000 0, #000 calc(100% - 22px), transparent 100%);
  }
  .rz-swipe-fade-l.rz-swipe-fade-r {
    -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 22px, #000 calc(100% - 22px), transparent 100%);
    mask-image: linear-gradient(90deg, transparent 0, #000 22px, #000 calc(100% - 22px), transparent 100%);
  }

  /* ruezals.com: always show the header links as a swipe row under the brand, not a stacked drawer */
  .rz-top-inner { flex-wrap: wrap; }
  nav.rz-nav {
    flex-basis: 100%;
    padding: 4px 0 6px;
  }

  /* Chat: reveal the main header links as a swipe row; hide the short duplicate .mlinks */
  header.topbar { flex-wrap: wrap; height: auto; min-height: var(--bar-h, 64px); }
  header.topbar nav[aria-label="Main navigation"] {
    flex-basis: 100%;
    order: 8;
    padding: 0 8px 6px;
  }
  header.topbar .mlinks { display: none !important; }

  /* Hall top links sit in one swipe row beside the mark */
  ul.hn-top {
    list-style: none;
    margin: 0;
    padding: 0;
    flex: 1 1 auto;
  }

  /* Wiki (and similar) footer menus: heading stays above; links swipe in .rz-swipe */
  nav.live-doors {
    display: block;
    max-width: 100%;
    min-width: 0;
  }
  nav.live-doors > h2,
  nav.live-doors > h3,
  nav.live-doors > h4,
  nav.live-doors > .rz-line-h3 {
    margin-bottom: 6px;
  }

  /* Keep copyright, legal lines and the house mark readable above the icon bar */
  .foot-legal, .footer-legal, .legal, .rz-foot-base, #footer-copy, .foot-tail, .site-footer__path,
  .foot-mark, footer.foot > p {
    position: relative;
    z-index: 1;
  }
}

@media print {
  .rz-swipe { overflow: visible !important; mask-image: none !important; -webkit-mask-image: none !important; }
}
