/* Mayana Core 7.7.12 — Blocksy mobile off-canvas visual balance.
   Scope: 999px and below, Mayana's two generated menu hosts only.
   Navigation URLs, accordion controls, desktop mega menu and other theme menus are untouched. */
@media (max-width: 999px) {
  /* =========================================================
     TYPOGRAPHY SYSTEM
     Level 1: TARİFLER / MUTFAK REHBERİ
     Level 2: Tarif groups / Mutfak Rehberi section links
     Level 3: Open recipe-category links
  ========================================================= */
  .mayana-mega-host,
  .mobile-menu .mayana-mega-host,
  .ct-panel .mayana-mega-host,
  [data-id="mobile-menu"] .mayana-mega-host {
    --mayana-mobile-main-size: clamp(21px, 5.35vw, 24px);
    --mayana-mobile-main-weight: 500;
    --mayana-mobile-sub-size: clamp(17px, 4.45vw, 20px);
    --mayana-mobile-sub-weight: 600;
    --mayana-mobile-leaf-size: clamp(14px, 3.75vw, 16px);
    --mayana-mobile-leaf-weight: 500;
    --mayana-mobile-line: rgba(255, 255, 255, 0.09);
    --mayana-mobile-main-color: rgba(247, 244, 239, 0.78);
    --mayana-mobile-sub-color: #f7f4ef;

    display: block !important;
    width: 100% !important;
    max-width: 100% !important;
    grid-template-columns: none !important;
    grid-template-rows: none !important;
  }

  /* =========================================================
     BLOCK 1 — BOTH MAIN HEADINGS, EXACTLY THE SAME
  ========================================================= */
  .mayana-mega-host--recipes > a.mayana-mega-main-link,
  .mayana-mega-host--mastery > a.mayana-mega-main-link,
  .mobile-menu .mayana-mega-host--recipes > a.mayana-mega-main-link,
  .mobile-menu .mayana-mega-host--mastery > a.mayana-mega-main-link,
  .ct-panel .mayana-mega-host--recipes > a.mayana-mega-main-link,
  .ct-panel .mayana-mega-host--mastery > a.mayana-mega-main-link,
  [data-id="mobile-menu"] .mayana-mega-host--recipes > a.mayana-mega-main-link,
  [data-id="mobile-menu"] .mayana-mega-host--mastery > a.mayana-mega-main-link {
    display: flex !important;
    align-items: center !important;
    justify-content: flex-start !important;
    width: 100% !important;
    max-width: 100% !important;
    min-height: 52px !important;
    margin: 0 !important;
    padding: 11px 10px 11px 0 !important;
    box-sizing: border-box !important;

    color: var(--mayana-mobile-main-color) !important;
    font-family: inherit !important;
    font-size: var(--mayana-mobile-main-size) !important;
    font-style: normal !important;
    font-weight: var(--mayana-mobile-main-weight) !important;
    line-height: 1.2 !important;
    letter-spacing: 0.01em !important;
    text-transform: uppercase !important;
    text-decoration: none !important;
    white-space: nowrap !important;
    opacity: 1 !important;

    cursor: pointer !important;
    touch-action: manipulation !important;
  }

  /* Blocksy can wrap a menu label in span/strong. Keep every possible label
     wrapper on the exact same inherited type scale instead of allowing a
     theme-specific child rule to shrink only one of the two headings. */
  .mayana-mega-host > a.mayana-mega-main-link > span,
  .mayana-mega-host > a.mayana-mega-main-link > strong,
  .mayana-mega-host > a.mayana-mega-main-link > .ct-label {
    color: inherit !important;
    font: inherit !important;
    letter-spacing: inherit !important;
    text-transform: inherit !important;
    opacity: 1 !important;
  }

  .mayana-mega-host.is-mayana-mega-open > a.mayana-mega-main-link,
  .mayana-mega-host > a.mayana-mega-main-link:hover,
  .mayana-mega-host > a.mayana-mega-main-link:focus-visible {
    color: var(--mayana-mobile-main-color) !important;
    font-size: var(--mayana-mobile-main-size) !important;
    font-weight: var(--mayana-mobile-main-weight) !important;
  }

  /* =========================================================
     BLOCK 2 — SUBMENU LAYOUT
  ========================================================= */
  .mayana-mega-host > .mayana-mega-panels {
    display: none !important;
  }

  .mayana-mega-host > .mayana-offcanvas-submenu {
    display: none;
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 !important;
    padding: 3px 0 10px 16px !important;
    border: 0 !important;
    border-radius: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
  }

  .mayana-mega-host.is-mayana-mega-open > .mayana-offcanvas-submenu:not([hidden]) {
    display: block !important;
  }

  .mayana-offcanvas-submenu[hidden],
  .mayana-mobile-menu-group ul[hidden] {
    display: none !important;
  }

  /* =========================================================
     BLOCK 3 — ALL LEVEL-2 HEADINGS, EXACTLY THE SAME
     Recipe group buttons and Mutfak Rehberi links share one scale,
     one row height and one separator treatment.
  ========================================================= */
  .mayana-mega-host--recipes .mayana-mobile-menu-group,
  .mayana-mega-host--mastery .mayana-mobile-mastery-link {
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 !important;
    border: 0 !important;
    border-bottom: 1px solid var(--mayana-mobile-line) !important;
    border-radius: 0 !important;
    box-sizing: border-box !important;
  }

  .mayana-mega-host--recipes .mayana-mobile-menu-group__toggle,
  .mayana-mega-host--mastery .mayana-mobile-mastery-link {
    display: flex !important;
    align-items: center !important;
    justify-content: flex-start !important;
    gap: 9px !important;
    width: 100% !important;
    max-width: 100% !important;
    min-height: 50px !important;
    margin: 0 !important;
    padding: 11px 7px 11px 0 !important;
    border-radius: 0 !important;
    background: transparent !important;
    box-shadow: none !important;

    color: var(--mayana-mobile-sub-color) !important;
    font-family: inherit !important;
    font-size: var(--mayana-mobile-sub-size) !important;
    font-style: normal !important;
    font-weight: var(--mayana-mobile-sub-weight) !important;
    line-height: 1.25 !important;
    letter-spacing: 0 !important;
    text-align: left !important;
    text-decoration: none !important;
    text-transform: none !important;
    opacity: 1 !important;
    box-sizing: border-box !important;
    cursor: pointer !important;
    touch-action: manipulation !important;
  }

  .mayana-mobile-menu-group__label,
  .mayana-mobile-menu-group__label > span:last-child,
  .mayana-mobile-mastery-link > span:last-child {
    color: inherit !important;
    font: inherit !important;
    line-height: inherit !important;
    letter-spacing: inherit !important;
    text-transform: inherit !important;
  }

  .mayana-mobile-menu-group__label {
    display: flex !important;
    min-width: 0 !important;
    align-items: center !important;
    gap: 9px !important;
  }

  .mayana-mega-host--recipes .mayana-mobile-menu-group__toggle:hover,
  .mayana-mega-host--recipes .mayana-mobile-menu-group__toggle:focus-visible,
  .mayana-mega-host--recipes .mayana-mobile-menu-group__toggle[aria-expanded="true"],
  .mayana-mega-host--mastery .mayana-mobile-mastery-link:hover,
  .mayana-mega-host--mastery .mayana-mobile-mastery-link:focus-visible {
    background: rgba(216, 174, 99, 0.08) !important;
    color: #e3bd77 !important;
    outline: none !important;
    transform: none !important;
  }

  /* Keep icon boxes equal in both submenu families. */
  .mayana-mega-host--recipes .mayana-mobile-menu-group__toggle .mayana-menu-icon-emoji,
  .mayana-mega-host--mastery .mayana-mobile-mastery-link .mayana-menu-icon-emoji {
    flex: 0 0 21px !important;
    width: 21px !important;
    min-width: 21px !important;
    height: 21px !important;
    font-size: 16px !important;
    line-height: 21px !important;
  }

  /* =========================================================
     BLOCK 4 — LEVEL-3 RECIPE LINKS
  ========================================================= */
  .mayana-mobile-menu-group ul {
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 0 7px !important;
    padding: 2px 0 5px 30px !important;
    list-style: none !important;
  }

  .mayana-mobile-menu-group li {
    margin: 0 !important;
    padding: 0 !important;
  }

  .mayana-mobile-menu-group li > a {
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
    width: 100% !important;
    max-width: 100% !important;
    min-height: 42px !important;
    margin: 0 !important;
    padding: 8px 7px !important;
    border: 0 !important;
    border-radius: 2px !important;
    background: transparent !important;
    color: #e9e5df !important;
    font-family: inherit !important;
    font-size: var(--mayana-mobile-leaf-size) !important;
    font-weight: var(--mayana-mobile-leaf-weight) !important;
    line-height: 1.35 !important;
    letter-spacing: 0 !important;
    text-decoration: none !important;
    text-transform: none !important;
    box-shadow: none !important;
    box-sizing: border-box !important;
    touch-action: manipulation !important;
  }

  /* =========================================================
     BLOCK 5 — REMOVE ALL ARROWS AND THEIR RESERVED SPACE
  ========================================================= */
  .mayana-mega-host > .mayana-mega-toggle,
  .mayana-mega-host > .ct-toggle-dropdown-mobile,
  .mayana-mega-host > .child-indicator,
  .mayana-mega-host > .toggle-dropdown,
  .mayana-mega-host > .dropdown-indicator,
  .mayana-mega-host > button.sub-menu-toggle,
  .mayana-mega-host > a.mayana-mega-main-link > .ct-toggle-dropdown-mobile,
  .mayana-mega-host > a.mayana-mega-main-link > .child-indicator,
  .mayana-mega-host > a.mayana-mega-main-link > .toggle-dropdown,
  .mayana-mega-host > a.mayana-mega-main-link > .dropdown-indicator,
  .mayana-mega-host > a.mayana-mega-main-link > svg,
  .mayana-mega-host > a.mayana-mega-main-link > .ct-icon-container,
  .mayana-mobile-menu-chevron,
  .mayana-mobile-menu-group__toggle > .child-indicator,
  .mayana-mobile-menu-group__toggle > .ct-toggle-dropdown-mobile,
  .mayana-mobile-menu-group__toggle > svg,
  .mayana-mobile-menu-group__toggle > .ct-icon-container {
    display: none !important;
    visibility: hidden !important;
    pointer-events: none !important;
    width: 0 !important;
    min-width: 0 !important;
    max-width: 0 !important;
    height: 0 !important;
    min-height: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    overflow: hidden !important;
  }

  .mayana-mega-host > a.mayana-mega-main-link::before,
  .mayana-mega-host > a.mayana-mega-main-link::after,
  .mayana-mobile-menu-group__toggle::before,
  .mayana-mobile-menu-group__toggle::after {
    content: none !important;
    display: none !important;
  }

  /* Mobile-only “view all” rows stay hidden. Desktop links use another class. */
  .mayana-offcanvas-submenu .mayana-mobile-menu-all {
    display: none !important;
    visibility: hidden !important;
    width: 0 !important;
    height: 0 !important;
    min-height: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    overflow: hidden !important;
  }
}

/* 7.7.30 — Tarifler ve Mutfak Rehberi ikinci seviye bağlantılarını kesin eşitle. */
@media (max-width: 999px) {
  .mayana-mega-host--recipes .mayana-mobile-menu-group__toggle,
  .mayana-mega-host--mastery .mayana-mobile-mastery-link {
    min-height: 48px !important;
    padding: 10px 7px 10px 0 !important;
    font-size: clamp(15px, 4vw, 17px) !important;
    font-weight: 600 !important;
    line-height: 1.28 !important;
    letter-spacing: 0 !important;
  }

  .mayana-mega-host--recipes .mayana-mobile-menu-group__toggle .mayana-menu-icon-emoji,
  .mayana-mega-host--mastery .mayana-mobile-mastery-link .mayana-menu-icon-emoji {
    flex-basis: 20px !important;
    width: 20px !important;
    min-width: 20px !important;
    height: 20px !important;
    font-size: 15px !important;
    line-height: 20px !important;
  }
}
