/* FPC Wire v2.3.0j — Seven-slot mobile navigation */
.wire-mobile-nav-v230j,
.wire-mobile-drawer,
.wire-mobile-drawer-backdrop {
  display: none;
}

@media (max-width: 799px) {
  body {
    padding-bottom: calc(72px + env(safe-area-inset-bottom)) !important;
  }

  .wire-mobile-nav-v230j {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 9990;
    display: grid;
    grid-template-columns: repeat(7, minmax(0, 1fr));
    align-items: end;
    min-height: 66px;
    padding: 5px 2px calc(5px + env(safe-area-inset-bottom));
    border-top: 1px solid rgba(105, 130, 165, .28);
    background: rgba(3, 7, 13, .97);
    box-shadow: 0 -10px 30px rgba(0, 0, 0, .38);
    backdrop-filter: blur(18px);
  }

  .wire-mobile-nav-item {
    position: relative;
    min-width: 0;
    height: 57px;
    padding: 4px 1px 1px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-end;
    gap: 2px;
    border: 0;
    background: transparent;
    color: #9da8bd;
    text-decoration: none;
    font: inherit;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
  }

  .wire-mobile-nav-item > svg,
  .wire-mobile-icon-wrap > svg {
    width: 22px;
    height: 22px;
    stroke-width: 1.9;
  }

  .wire-mobile-nav-item > span:last-child {
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 9px;
    line-height: 12px;
    font-weight: 680;
    letter-spacing: -.15px;
  }

  .wire-mobile-nav-item.active {
    color: #f4f7fb;
  }

  .wire-mobile-nav-item.active::before {
    content: "";
    position: absolute;
    top: -5px;
    left: 23%;
    right: 23%;
    height: 3px;
    border-radius: 999px;
    background: #ef2f43;
  }

  .wire-mobile-nav-post {
    transform: translateY(-7px);
    color: #fff;
  }

  .wire-mobile-nav-post::before {
    display: none !important;
  }

  .wire-mobile-post-circle {
    width: 47px;
    height: 47px;
    display: grid;
    place-items: center;
    border: 2px solid rgba(255, 105, 118, .75);
    border-radius: 50%;
    background: linear-gradient(180deg, #f22f47, #d91f38);
    box-shadow: 0 7px 20px rgba(238, 47, 69, .38);
  }

  .wire-mobile-post-circle svg {
    width: 24px;
    height: 24px;
    stroke-width: 2;
  }

  .wire-mobile-nav-post > span:last-child {
    color: #fff;
    font-size: 10px;
    font-weight: 800;
  }

  .wire-mobile-icon-wrap {
    position: relative;
    display: inline-grid;
    place-items: center;
  }

  .wire-mobile-badge {
    position: absolute;
    top: -8px;
    right: -11px;
    min-width: 18px;
    height: 18px;
    padding: 0 4px;
    display: grid;
    place-items: center;
    border: 2px solid #05090f;
    border-radius: 999px;
    background: #ef2f43;
    color: #fff;
    font-size: 9px;
    line-height: 1;
    font-weight: 850;
  }

  .wire-mobile-drawer-backdrop {
    position: fixed;
    inset: 0;
    z-index: 9995;
    display: block;
    background: rgba(0, 0, 0, .58);
    opacity: 0;
    transition: opacity .2s ease;
    pointer-events: none;
  }

  .wire-mobile-drawer-backdrop.is-open {
    opacity: 1;
    pointer-events: auto;
  }

  .wire-mobile-drawer {
    position: fixed;
    top: 0;
    bottom: 0;
    z-index: 9996;
    display: flex;
    flex-direction: column;
    width: min(88vw, 360px);
    background: #07101b;
    border-color: rgba(105, 130, 165, .28);
    box-shadow: 0 0 42px rgba(0, 0, 0, .55);
    transition: transform .24s ease;
    overflow: hidden;
  }

  .wire-mobile-left-drawer {
    left: 0;
    border-right: 1px solid;
    transform: translateX(-105%);
  }

  .wire-mobile-pulse-drawer {
    right: 0;
    border-left: 1px solid;
    transform: translateX(105%);
  }

  .wire-mobile-drawer.is-open {
    transform: translateX(0);
  }

  .wire-mobile-drawer > header {
    min-height: 58px;
    padding: calc(10px + env(safe-area-inset-top)) 14px 10px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid rgba(105, 130, 165, .22);
  }

  .wire-mobile-drawer > header strong {
    font-size: 18px;
  }

  .wire-mobile-drawer > header button {
    width: 36px;
    height: 36px;
    border: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, .07);
    color: #fff;
    font-size: 25px;
  }

  .wire-mobile-drawer-body {
    flex: 1;
    overflow-y: auto;
    padding: 12px 12px calc(86px + env(safe-area-inset-bottom));
    overscroll-behavior: contain;
  }
.wire-mobile-pulse-drawer .right-rail {
    display: grid !important;
    position: static !important;
    width: auto !important;
    max-width: none !important;
    padding: 0 !important;
    margin: 0 !important;
    gap: 12px;
  }

  .wire-mobile-pulse-drawer .side-card,
  .wire-mobile-pulse-drawer .radio-card {
    margin: 0 !important;
  }

  body.wire-mobile-drawer-open {
    overflow: hidden;
  }

  /* Hide every previous mobile nav implementation. */
  .mobile-nav,
  .mobile-bottom-nav,
  [data-mobile-nav]:not(.wire-mobile-nav-v230j),
  nav[class*="mobile-nav"]:not(.wire-mobile-nav-v230j) {
    display: none !important;
  }
}


  /* Preserve the original desktop left-rail appearance inside the mobile drawer. */
  .wire-mobile-left-drawer .left-rail {
    display: flex !important;
    position: static !important;
    inset: auto !important;
    transform: none !important;
    visibility: visible !important;
    opacity: 1 !important;
    width: 100% !important;
    max-width: none !important;
    min-height: 100% !important;
    height: auto !important;
  }

  .wire-mobile-left-drawer .left-rail .brand,
  .wire-mobile-left-drawer .left-rail .create-post,
  .wire-mobile-left-drawer .left-rail .primary-nav,
  .wire-mobile-left-drawer .left-rail .rail-account {
    visibility: visible !important;
    opacity: 1 !important;
  }
}

@media (max-width: 390px) {
  .wire-mobile-nav-item > svg,
  .wire-mobile-icon-wrap > svg {
    width: 20px;
    height: 20px;
  }

  .wire-mobile-nav-item > span:last-child {
    font-size: 8px;
  }

  .wire-mobile-post-circle {
    width: 44px;
    height: 44px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .wire-mobile-drawer,
  .wire-mobile-drawer-backdrop {
    transition: none;
  }
}
