/* Fullscreen Mobile Menu Overlay (Astra-compatible) */
@media (max-width: 920px) {
  .arde-menu {
    position: fixed;
    inset: 0;
    z-index: 999999;
    background: #ffffff;

    display: grid;
    grid-template-rows: auto 1fr;

    opacity: 0;
    pointer-events: none;
    transform: translateY(10px);
    transition: opacity 180ms ease, transform 180ms ease;
  }

  .arde-menu.is-open {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
  }

  .arde-menu__header {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 12px;

    padding: calc(env(safe-area-inset-top) + 14px) 16px 14px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
    background: inherit;
  }

  .arde-menu__close {
    appearance: none;
    border: 0;
    background: transparent;
    padding: 10px;
    margin: -10px;

    font-size: 16px;
    line-height: 1;
    cursor: pointer;
  }

  .arde-menu__body {
    overflow: auto;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
    padding: 16px;
    padding-bottom: calc(env(safe-area-inset-bottom) + 16px);
  }

  /* Clone UL becomes the menu list */
  .arde-menu__list {
    list-style: none;
    margin: 0;
    padding: 0;
  }

  /* Optional: make links look like Astra's rows (adjust to taste) */
  .arde-menu__list > li > a {
    display: block;
    padding: 14px 8px;
    text-decoration: none;
    color: inherit;
  }

  /* Background scroll lock */
  html.arde-menu-open,
  body.arde-menu-open {
    height: 100%;
    overflow: hidden;
  }
}

.offcanvas-latest-post__taxonomy {
  font-size: 11px;
  color: #777;
  margin-bottom: 4px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}


/* ============================
   Hide Astra default mobile menu panel (mobile only)
   We keep the toggle button visible.
============================ */
@media (max-width: 920px) {
  /* When Astra tries to open its panel */
  .ast-header-break-point .main-header-bar-navigation,
  .ast-header-break-point .main-header-bar-navigation.toggle-on {
    display: none !important;
  }

  /* Safety: Astra nav container */
  .ast-header-break-point #ast-mobile-site-navigation {
    display: none !important;
  }
}



/* Remove bullets from WPML language switcher on mobile */
@media (max-width: 768px) {
  li.wpml-ls-menu-item,
  li.wpml-ls-menu-item ul,
  li.wpml-ls-menu-item li {
    list-style: none !important;
  }

  li.wpml-ls-menu-item::marker {
    content: none;
  }
}
