/* Ready Korean — bottom tab bar on blog (and other non-RK plugin pages) */

@media (max-width: 900px) {
  body.rk-blog-nav-active.has-mobile-tabbar {
    padding-bottom: calc(4.25rem + env(safe-area-inset-bottom, 0)) !important;
  }

  body.rk-blog-nav-active #mobile-tabbar.mobile-tabbar {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 500;
    display: grid !important;
    grid-template-columns: repeat(5, 1fr);
    gap: 0.15rem;
    padding: 0.35rem 0.5rem calc(0.45rem + env(safe-area-inset-bottom, 0));
    background: rgba(255, 255, 255, 0.96);
    border-top: 1px solid #e5e0d8;
    box-shadow: 0 -8px 28px rgba(15, 22, 35, 0.08);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
  }

  body.rk-blog-nav-active .mobile-tabbar__item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.15rem;
    min-height: 52px;
    padding: 0.25rem 0.15rem;
    border: none;
    border-radius: 12px;
    background: transparent;
    color: #5c5a56;
    text-decoration: none;
    font-size: 0.62rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    touch-action: manipulation;
    cursor: pointer;
  }

  body.rk-blog-nav-active .mobile-tabbar__item.is-active {
    color: #c73e3a;
    background: #fde8e7;
  }

  body.rk-blog-nav-active .mobile-tabbar__icon {
    font-size: 1.15rem;
    line-height: 1;
  }

  body.rk-blog-nav-active .mobile-more-sheet,
  body.rk-blog-nav-active .mobile-more-backdrop {
    display: none;
  }

  body.rk-blog-nav-active .mobile-more-sheet.is-open,
  body.rk-blog-nav-active .mobile-more-backdrop.is-open {
    display: block;
  }

  body.rk-blog-nav-active .mobile-more-backdrop {
    position: fixed;
    inset: 0;
    z-index: 520;
    background: rgba(15, 22, 35, 0.42);
  }

  body.rk-blog-nav-active .mobile-more-sheet {
    position: fixed;
    left: 0;
    right: 0;
    bottom: calc(4.25rem + env(safe-area-inset-bottom, 0));
    z-index: 530;
    padding: 0.85rem 1rem 1rem;
    background: #fff;
    border-radius: 1rem 1rem 0 0;
    box-shadow: 0 -12px 40px rgba(15, 22, 35, 0.14);
  }

  body.rk-blog-nav-active .mobile-more-sheet h3 {
    margin: 0 0 0.65rem;
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #5c5a56;
  }

  body.rk-blog-nav-active .mobile-more-links {
    display: grid;
    gap: 0.45rem;
  }

  body.rk-blog-nav-active .mobile-more-links a {
    display: flex;
    align-items: center;
    min-height: 48px;
    padding: 0.65rem 0.85rem;
    border-radius: 12px;
    background: #f7f5f0;
    color: #0f1623;
    text-decoration: none;
    font-size: 0.92rem;
    font-weight: 600;
  }
}
