/* Provo mobile bottom navigation (v2). Phones/tablets only (<900px); desktop never shows it.
   A compact floating glass dock. The active tab gets a soft Provo-red gradient pill, no top bar, no warning-style colours.
   Markup, routes, data-attributes and translate.js hooks are unchanged; this only restyles the existing .bottom-nav. */

@media (max-width:899px){
  :root{--nav-h:74px}   /* dock height + its gap: pages that stack bars above the nav (and the body bottom padding) read this */
  .bottom-nav{
    --bn-bg:rgba(255,255,255,.80);--bn-edge:rgba(255,255,255,.9);--bn-line:rgba(120,30,40,.10);--bn-ink:#6B6165;--bn-shadow:0 10px 28px -12px rgba(60,14,20,.35),0 2px 6px -2px rgba(60,14,20,.10);
    position:fixed;z-index:120;left:12px;right:12px;bottom:max(10px,calc(var(--safe-b) - 4px));max-width:440px;margin-inline:auto;
    display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:2px;align-items:stretch;padding:5px;
    border:1px solid var(--bn-edge);border-radius:24px;background:var(--bn-bg);
    box-shadow:var(--bn-shadow),inset 0 0 0 1px var(--bn-line);
    -webkit-backdrop-filter:saturate(1.5) blur(14px);backdrop-filter:saturate(1.5) blur(14px);
    transform:translateZ(0)}
  @supports not ((backdrop-filter:blur(1px)) or (-webkit-backdrop-filter:blur(1px))){.bottom-nav{--bn-bg:rgba(255,255,255,.97)}}
  :root[data-theme=dark] .bottom-nav{--bn-bg:rgba(30,26,28,.82);--bn-edge:rgba(255,255,255,.09);--bn-line:rgba(255,255,255,.05);--bn-ink:#A99FA3;--bn-shadow:0 12px 30px -12px rgba(0,0,0,.85)}
  @media (prefers-color-scheme:dark){:root:not([data-theme]) .bottom-nav{--bn-bg:rgba(30,26,28,.82);--bn-edge:rgba(255,255,255,.09);--bn-line:rgba(255,255,255,.05);--bn-ink:#A99FA3;--bn-shadow:0 12px 30px -12px rgba(0,0,0,.85)}}
  @supports not ((backdrop-filter:blur(1px)) or (-webkit-backdrop-filter:blur(1px))){:root[data-theme=dark] .bottom-nav{--bn-bg:rgba(30,26,28,.98)}}

  .bn-item{position:relative;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:3px;min-width:0;min-height:50px;margin:0;padding:3px 2px;
    border:0;border-radius:18px;background:transparent;color:var(--bn-ink);font-family:inherit;font-size:.66rem;font-weight:700;line-height:1.15;letter-spacing:.01em;
    text-decoration:none!important;-webkit-appearance:none;appearance:none;-webkit-tap-highlight-color:transparent;-webkit-user-select:none;user-select:none;cursor:pointer}
  .bn-item>span:not(.pill){max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
  .bn-item .pill{display:grid;place-items:center;width:46px;height:28px;border-radius:999px;background:transparent;color:inherit;transition:background-color .2s,color .2s,transform .15s}
  html[data-tr] .bottom-nav .bn-item .pill{height:28px;min-height:0;padding:0;line-height:1;white-space:nowrap}   /* translate.css enlarges every .pill while a translation is active */
  .bn-item .pill svg{width:21px;height:21px;stroke-width:2}
  .bn-item:active .pill{transform:scale(.92)}
  .bn-item:focus-visible{outline:2px solid var(--primary);outline-offset:-2px}

  /* active tab: soft Provo-red gradient pill + clear label */
  .bn-item[aria-current=page]{color:var(--tint-ink)}
  .bn-item[aria-current=page]::before{content:none}
  .bn-item[aria-current=page] .pill{color:#fff;background:linear-gradient(135deg,#EF4444 0%,#DC2626 55%,#B91C1C 100%);
    box-shadow:0 6px 12px -6px rgba(185,28,28,.7),inset 0 1px 0 rgba(255,255,255,.28)}
  .bn-item[aria-current=page]>span:not(.pill){font-weight:800}
  :root[data-theme=dark] .bn-item[aria-current=page]{color:#FCA5A5}
  @media (prefers-color-scheme:dark){:root:not([data-theme]) .bn-item[aria-current=page]{color:#FCA5A5}}
}
@media (max-width:339px){
  .bottom-nav{left:8px;right:8px;padding:4px;border-radius:22px}
  .bn-item{font-size:.62rem}
  .bn-item .pill{width:40px}
}
@media (prefers-reduced-motion:reduce){.bn-item .pill{transition:none}.bn-item:active .pill{transform:none}}
