/* Star Mithila 11.1.691 — shared bottom navigation only.
   Keeps the white five-button bar from the Railway Tools screenshot,
   keeps the Post button intact, and highlights ONLY the active icon. */
@media (max-width:1024px) {
  html body.smn-app-page nav.smn-mobile-nav {
    position:fixed!important;
    display:grid!important;
    grid-template-columns:repeat(5,minmax(0,1fr))!important;
    align-items:center!important;
    justify-content:stretch!important;
    left:8px!important;
    right:8px!important;
    top:auto!important;
    bottom:calc(8px + env(safe-area-inset-bottom,0px))!important;
    width:auto!important;
    max-width:620px!important;
    height:76px!important;
    min-height:76px!important;
    margin:0 auto!important;
    padding:6px!important;
    gap:3px!important;
    transform:none!important;
    overflow:hidden!important;
    box-sizing:border-box!important;
    border:1px solid #dce4ef!important;
    border-radius:22px!important;
    background:#fff!important;
    color:#526174!important;
    box-shadow:0 8px 28px rgba(11,31,58,.17)!important;
    z-index:9990!important;
    isolation:isolate!important;
    pointer-events:auto!important;
  }
  /* The central red Post control is intentionally excluded from ALL item changes. */
  html body.smn-app-page nav.smn-mobile-nav > :is(a,button):not(.smn-mobile-create) {
    display:flex!important;
    position:relative!important;
    flex-direction:column!important;
    align-items:center!important;
    justify-content:center!important;
    gap:3px!important;
    width:100%!important;
    min-width:0!important;
    max-width:100%!important;
    height:62px!important;
    min-height:62px!important;
    padding:3px 1px!important;
    margin:0!important;
    overflow:hidden!important;
    box-sizing:border-box!important;
    border:0!important;
    border-radius:15px!important;
    background:transparent!important;
    color:#526174!important;
    text-decoration:none!important;
    box-shadow:none!important;
    opacity:1!important;
    transform:none!important;
    -webkit-tap-highlight-color:transparent;
  }
  html body.smn-app-page nav.smn-mobile-nav > :is(a,button):not(.smn-mobile-create) > i {
    display:grid!important;
    place-items:center!important;
    flex:0 0 28px!important;
    width:28px!important;
    min-width:28px!important;
    max-width:28px!important;
    height:28px!important;
    min-height:28px!important;
    max-height:28px!important;
    padding:0!important;
    margin:0!important;
    border:0!important;
    border-radius:9px!important;
    background:transparent!important;
    color:#526174!important;
    box-shadow:none!important;
    filter:none!important;
    opacity:1!important;
    font-size:21px!important;
    font-style:normal!important;
    line-height:1!important;
    transform:none!important;
  }
  html body.smn-app-page nav.smn-mobile-nav > :is(a,button):not(.smn-mobile-create) > span {
    display:block!important;
    max-width:100%!important;
    padding:0!important;
    margin:0!important;
    background:transparent!important;
    color:#526174!important;
    font-size:clamp(9px,2.55vw,12px)!important;
    font-weight:700!important;
    line-height:1.35!important;
    letter-spacing:0!important;
    text-align:center!important;
    white-space:nowrap!important;
  }
  html body.smn-app-page nav.smn-mobile-nav > :is(a,button):not(.smn-mobile-create) svg {
    display:block!important;
    position:static!important;
    width:22px!important;
    min-width:22px!important;
    max-width:22px!important;
    height:22px!important;
    min-height:22px!important;
    max-height:22px!important;
    padding:0!important;
    margin:auto!important;
    overflow:visible!important;
    fill:currentColor!important;
    color:inherit!important;
    stroke:none!important;
    transform:none!important;
  }
  html body.smn-app-page nav.smn-mobile-nav > :is(a,button):not(.smn-mobile-create) svg path {
    fill:currentColor!important;
  }
  /* Important: no filled state on the whole item; label stays the same grey. */
  html body.smn-app-page nav.smn-mobile-nav > :is(a,button).is-active:not(.smn-mobile-create) {
    background:transparent!important;
    color:#526174!important;
    box-shadow:none!important;
  }
  html body.smn-app-page nav.smn-mobile-nav > :is(a,button).is-active:not(.smn-mobile-create) > i {
    background:#edf4ff!important;
    color:#2563eb!important;
  }
  /* Each active item gets its original brand colour — icon ONLY. */
  html body.smn-app-page nav.smn-mobile-nav > a.is-active:not(.smn-mobile-create)[href*="/news-snap/"] > i {
    color:#cf2436!important;
    background:#fff0f1!important;
  }
  html body.smn-app-page nav.smn-mobile-nav > a.is-active:not(.smn-mobile-create)[href*="/train-journey/"] > i {
    color:#2465d9!important;
    background:#ebf2ff!important;
  }
  html body.smn-app-page nav.smn-mobile-nav > a.is-active:not(.smn-mobile-create)[data-smn-mobile-special] > i,
  html body.smn-app-page nav.smn-mobile-nav > a.is-active:not(.smn-mobile-create)[href*="/special-train/"] > i {
    color:#7c3aed!important;
    background:#f4efff!important;
  }
  html body.smn-app-page nav.smn-mobile-nav > a.is-active:not(.smn-mobile-create)[href*="/smn-videos/"] > i {
    color:#b47a00!important;
    background:#fff6dc!important;
  }
  html body.smn-app-page nav.smn-mobile-nav > :is(a,button):not(.smn-mobile-create)::after {
    display:none!important;
  }
  html body.smn-app-page nav.smn-mobile-nav > :is(a,button):focus-visible {
    outline:3px solid #2469cf!important;
    outline-offset:2px!important;
  }
  /* Honour dark mode without returning to solid active-button backgrounds. */
  html[data-smn-theme=dark] body.smn-app-page nav.smn-mobile-nav {
    background:#0c1b2b!important;
    border-color:#293d53!important;
    color:#bdcde0!important;
  }
  html[data-smn-theme=dark] body.smn-app-page nav.smn-mobile-nav > :is(a,button):not(.smn-mobile-create),
  html[data-smn-theme=dark] body.smn-app-page nav.smn-mobile-nav > :is(a,button):not(.smn-mobile-create) > span,
  html[data-smn-theme=dark] body.smn-app-page nav.smn-mobile-nav > :is(a,button):not(.smn-mobile-create):not(.is-active) > i {
    color:#bdcde0!important;
  }
  html[data-smn-theme=dark] body.smn-app-page nav.smn-mobile-nav > :is(a,button).is-active:not(.smn-mobile-create) {
    background:transparent!important;
  }
  html[data-smn-theme=dark] body.smn-app-page nav.smn-mobile-nav > :is(a,button).is-active:not(.smn-mobile-create) > i {
    background:#172f55!important;
  }
  html[data-smn-theme=dark] body.smn-app-page nav.smn-mobile-nav > a.is-active:not(.smn-mobile-create)[href*="/news-snap/"] > i {background:#38202b!important;}
  html[data-smn-theme=dark] body.smn-app-page nav.smn-mobile-nav > a.is-active:not(.smn-mobile-create)[href*="/special-train/"] > i,
  html[data-smn-theme=dark] body.smn-app-page nav.smn-mobile-nav > a.is-active:not(.smn-mobile-create)[data-smn-mobile-special] > i {background:#31254e!important;}
  html[data-smn-theme=dark] body.smn-app-page nav.smn-mobile-nav > a.is-active:not(.smn-mobile-create)[href*="/smn-videos/"] > i {background:#3c3422!important;}
}
@media (min-width:1025px) {
  html body.smn-app-page nav.smn-mobile-nav {display:none!important;}
}
