.sakinah-mobile-nav {
  display: none;
}

@media screen and (max-width: 760px) {
  html.sakinah-mobile-nav-ready {
    --sakinah-mobile-nav-floor: var(--sakinah-mobile-nav-height, calc(68px + env(safe-area-inset-bottom, 0px)));
    scroll-padding-bottom: calc(var(--sakinah-mobile-nav-floor) + 14px);
  }

  .sakinah-mobile-nav-ready body {
    padding-bottom: var(--sakinah-mobile-nav-floor);
  }

  .sakinah-mobile-nav-ready .site-header .main-nav {
    display: none;
  }

  .sakinah-mobile-nav-ready .site-header .header-inner {
    min-height: 72px;
    padding-block: 8px;
  }

  .sakinah-mobile-nav-ready #home {
    scroll-margin-top: 72px;
  }

  .sakinah-mobile-nav {
    position: fixed;
    z-index: 14;
    inset-inline: 0;
    bottom: 0;
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    align-items: stretch;
    gap: 2px;
    padding-top: 5px;
    padding-bottom: calc(5px + env(safe-area-inset-bottom, 0px));
    padding-left: max(5px, env(safe-area-inset-left, 0px));
    padding-right: max(5px, env(safe-area-inset-right, 0px));
    background: var(--surface);
    color: var(--ink);
    border-top: 1px solid var(--line);
    box-shadow: 0 -5px 22px rgb(23 78 67 / 10%);
  }

  .sakinah-mobile-nav__link {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2px;
    min-width: 0;
    min-height: 54px;
    padding: 1px 3px 3px;
    border-radius: 8px;
    color: inherit;
    text-decoration: none;
    -webkit-tap-highlight-color: transparent;
  }

  .sakinah-mobile-nav__icon {
    display: grid;
    place-items: center;
    width: min(44px, 100%);
    min-height: 27px;
    border-radius: 16px;
  }

  .sakinah-mobile-nav__icon svg {
    width: 21px;
    height: 21px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.65;
    stroke-linecap: round;
    stroke-linejoin: round;
  }

  .sakinah-mobile-nav__text {
    font-size: clamp(0.675rem, 2.85vw, 0.75rem);
    font-weight: 500;
    line-height: 1.22;
    text-align: center;
    overflow-wrap: anywhere;
  }

  .sakinah-mobile-nav__link[aria-current="location"] {
    color: var(--green);
  }

  .sakinah-mobile-nav__link[aria-current="location"] .sakinah-mobile-nav__text {
    font-weight: 700;
  }

  .sakinah-mobile-nav__link[aria-current="location"] .sakinah-mobile-nav__icon,
  .sakinah-mobile-nav__link:active .sakinah-mobile-nav__icon {
    background: var(--soft);
  }

  .sakinah-mobile-nav__link:focus-visible {
    outline: 2px solid var(--green);
    outline-offset: -2px;
  }

  .sakinah-mobile-nav-ready .toast {
    bottom: calc(var(--sakinah-mobile-nav-floor) + 12px);
  }

  .sakinah-mobile-nav-keyboard .sakinah-mobile-nav {
    visibility: hidden;
    pointer-events: none;
  }
}
