/* ---- SK OVERLAY MENU (2026-06-01) ---- */
#sk-overlay {
  display: none;
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  z-index: 999999;
  background: #242b3f;
  overflow-y: auto;
  font-family: "Work Sans", sans-serif;
  -webkit-overflow-scrolling: touch;
}
#sk-overlay.sk-is-open { display: block; }
.sk-overlay-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 22px;
  border-bottom: 1px solid rgba(255,255,255,0.10);
  position: sticky;
  top: 0;
  background: #242b3f;
  z-index: 1;
}
.sk-overlay-head a {
  color: #fff;
  text-decoration: none;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.5px;
}
.sk-close-btn {
  background: none;
  border: none;
  color: rgba(255,255,255,0.7);
  font-size: 26px;
  line-height: 1;
  cursor: pointer;
  padding: 0 2px;
  transition: color 0.15s;
}
.sk-close-btn:hover { color: #fff; }
.sk-nav {
  list-style: none;
  margin: 0;
  padding: 0;
}
.sk-nav li {
  border-bottom: 1px solid rgba(255,255,255,0.07);
}
.sk-nav > li > .sk-item-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 22px;
  color: #fff;
  text-decoration: none;
  font-size: 15px;
  font-weight: 500;
  letter-spacing: 0.3px;
  cursor: pointer;
}
.sk-nav > li > a.sk-item-row:hover { color: #ffd936; }
.sk-nav > li.sk-has-children > .sk-item-row:hover,
.sk-nav > li.sk-has-children.sk-open > .sk-item-row { color: #ffd936; }
.sk-arrow {
  display: inline-flex;
  align-items: center;
  font-size: 10px;
  opacity: 0.55;
  transition: transform 0.2s ease, opacity 0.2s;
  margin-left: 8px;
  flex-shrink: 0;
}
.sk-open > .sk-item-row .sk-arrow { transform: rotate(90deg); opacity: 1; }
.sk-sub-l2 {
  display: none;
  background: rgba(0,0,0,0.18);
  border-top: 1px solid rgba(255,255,255,0.05);
}
.sk-open > .sk-sub-l2 { display: block; }
.sk-sub-l2 li { border-bottom: 1px solid rgba(255,255,255,0.05); }
.sk-sub-l2 li > .sk-item-row {
  padding: 13px 22px 13px 34px;
  font-size: 14px;
  font-weight: 400;
  color: rgba(255,255,255,0.82);
  text-decoration: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
}
.sk-sub-l2 li > a.sk-item-row:hover { color: #ffd936; }
.sk-sub-l2 li.sk-has-children > .sk-item-row:hover,
.sk-sub-l2 li.sk-has-children.sk-open > .sk-item-row { color: #ffd936; }
.sk-sub-l3 {
  display: none;
  background: rgba(0,0,0,0.14);
  border-top: 1px solid rgba(255,255,255,0.04);
}
.sk-open > .sk-sub-l3 { display: block; }
.sk-sub-l3 li { border-bottom: 1px solid rgba(255,255,255,0.04); }
.sk-sub-l3 li:last-child { border-bottom: none; }
.sk-sub-l3 li > a.sk-item-row {
  display: block;
  padding: 11px 22px 11px 48px;
  font-size: 13px;
  font-weight: 400;
  color: rgba(255,255,255,0.60);
  text-decoration: none;
}
.sk-sub-l3 li > a.sk-item-row:hover { color: #ffd936; }
body.sk-menu-open { overflow: hidden; }

/* ---- SK RECIPE GRID — Compact 4:5 layout (2026-06-02) ---- */
.dr-archive-list-gridwrap.grid {
  grid-template-columns: repeat(4, 1fr) !important;
  gap: 16px !important;
}
.dr-archive-single img {
  aspect-ratio: 4 / 5 !important;
  width: 100% !important;
  height: auto !important;
  object-fit: cover !important;
}
@media (max-width: 768px) {
  .dr-archive-list-gridwrap.grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 12px !important;
  }
}

/* ---- SK SPECIAL INGREDIENTS — desktop dropdown text fix (2026-06-02) ---- */
/* Astra sets rgba(82,104,64,0.75) on all nav links — must use !important to override on white dropdown bg */
@media (min-width: 922px) {
  .menu-item-2826 .sub-menu a {
    color: #242B3F !important;
  }
  .menu-item-2826 .sub-menu a:hover {
    color: #786A37 !important;
  }
}

/* ---- SK WP DELICIOUS — recipe card CTA colour (PDD v3: Coral #E86A5A) ---- */
.wpdelicious-outer-wrapper {
  --primary-color: #E86A5A;
  --secondary-color: #E86A5A;
}

/* ---- SK HEADER NAV — desktop link colour to match mobile overlay (2026-06-02) ---- */
.main-header-bar .main-header-menu > li > a,
.main-header-bar .main-header-menu > li > a:visited {
  color: #ffffff !important;
}
.main-header-bar .main-header-menu > li > a:hover,
.main-header-bar .main-header-menu > li.current-menu-item > a {
  color: #ffd936 !important;
}

/* ---- SK SEARCH PAGE — full-width layout to match archive grid (2026-06-02) ---- */
.page-id-1702 article.post-1702 {
  padding-left: 0 !important;
  padding-right: 0 !important;
  padding-top: 0 !important;
}

/* ---- SK NAV DROPDOWN TEXT — all desktop sub-menus readable (2026-06-17) ---- */
/* Generalises the Special Ingredients fix so every dropdown (Cuisines etc.) has dark text on the white dropdown bg */
@media (min-width: 922px) {
  .main-header-menu .sub-menu a {
    color: #242B3F !important;
  }
  .main-header-menu .sub-menu a:hover {
    color: #786A37 !important;
  }
}

/* ---- SK CUISINE DIRECTORY — custom order (2026-09-11) ---- */
.page-id-52 .dr-block-wrapper {
  display: flex;
  flex-direction: column;
}
.page-id-52 .dr-archive-cat-wrap > ul > li:nth-child(1),
.page-id-52 .dr-block-wrapper > .dr-block:nth-child(1) { order: 1; }
.page-id-52 .dr-archive-cat-wrap > ul > li:nth-child(5),
.page-id-52 .dr-block-wrapper > .dr-block:nth-child(5) { order: 2; }
.page-id-52 .dr-archive-cat-wrap > ul > li:nth-child(3),
.page-id-52 .dr-block-wrapper > .dr-block:nth-child(3) { order: 3; }
.page-id-52 .dr-archive-cat-wrap > ul > li:nth-child(4),
.page-id-52 .dr-block-wrapper > .dr-block:nth-child(4) { order: 4; }
.page-id-52 .dr-archive-cat-wrap > ul > li:nth-child(7),
.page-id-52 .dr-block-wrapper > .dr-block:nth-child(7) { order: 5; }
.page-id-52 .dr-archive-cat-wrap > ul > li:nth-child(6),
.page-id-52 .dr-block-wrapper > .dr-block:nth-child(6) { order: 6; }
.page-id-52 .dr-archive-cat-wrap > ul > li:nth-child(2),
.page-id-52 .dr-block-wrapper > .dr-block:nth-child(2) { order: 7; }
.page-id-52 .dr-archive-cat-wrap > ul > li:nth-child(8),
.page-id-52 .dr-block-wrapper > .dr-block:nth-child(8) { order: 8; }


/* Keep the recipe index focused on the paginated recipe cards. */
body.post-type-archive-recipe .site-main > .dr-archive-all-categories,
body.post-type-archive-recipe .site-main > .dr-archive-recipe-ingrd,
body.post-type-archive-recipe .site-main > .dr-archive-recipe-by-alph {
    display: none !important;
}


/* Stop Jetpack from showing extra recipes below WP Delicious pagination. */
body.post-type-archive-recipe .infinite-loader,
body.post-type-archive-recipe .infinite-wrap,
body.post-type-archive-recipe #infinite-handle {
    display: none !important;
}


/* Apply the no-infinite-scroll rule to every recipe archive and taxonomy. */
body.archive .infinite-loader,
body.archive .infinite-wrap,
body.archive #infinite-handle {
    display: none !important;
}

/* Maltose Cracker Sandwiches: no recipe-card description. */
body.postid-3368 .dr-summary {
  display: none !important;
}
