/* ========================
   Astra Child – Overrides
   ======================== */

/* Stack homepage sections vertically (Astra sets container as flex row) */
.home .site-content .ast-container {
    display: block;
}

.home .home-section,
.home .home-hero,
.home .home-about-snippet {
    width: 100%;
    display: block;
}

/* Hero basics */
.home-hero {
    position: relative;
    min-height: 70vh;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.home-hero__overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, .4);
}

.home-hero__inner {
    position: relative;
    z-index: 1;
    max-width: 800px;
    padding: 1rem;
}

/* Elementor-like H1 on homepage hero */
.home .home-hero__title {
    font-family: "Antonio", sans-serif;
    font-size: 60px;
    letter-spacing: -2.3px;
    line-height: 1.4;
    text-shadow: 0 0 40px #000;
    color: var(--e-global-color-astglobalcolor5, #fff);
    margin: 0 0 .5em;
}

.home .home-hero__subtext {
    font-size: 20px;
    line-height: 1.6;
    margin: 0;
}

/* Responsive tweak */
@media (max-width: 768px) {
    .home .home-hero__title {
        font-size: 36px;
        letter-spacing: -1.2px;
    }

    .home .home-hero__subtext {
        font-size: 18px;
    }
}

/* Carousel base spacing */
.home-latest-carousel, .home-collections{
    padding: 0 0 2rem 0;
}

.home-section.home-collections {
    padding: 2rem 0;
}

.home-collections .section-title , .home-latest-carousel .section-title {
    /* margin-bottom: 1rem; */
    text-align: center;
}

/* Slide card */
.swiper.recipe-swiper {
    padding: 4em;
}

.recipe-swiper .swiper-slide {
    height: auto;
}

/* let the card dictate height */
.recipe-slide-card {
    display: flex;
    flex-direction: column;
    height: 100%;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, .06);
    overflow: hidden;
}

.recipe-slide-thumb img {
    display: block;
    width: 100%;
    height: 420px;
    /* pick a height you like */
    object-fit: cover;
}

/* Responsive tweak */
@media (max-width: 768px) {
  .recipe-slide-thumb img {
    height: 300px;
  }
}

@media (max-width: 1200px) {
  .recipe-slide-thumb img {
    height: 360px;
  }
}

.recipe-slide-body {
    display: flex;
    flex-direction: column;
    padding: 16px 18px;
    gap: 10px;
    flex: 1 1 auto;
}

/* Title/excerpt sizing & clamping for consistency */
.recipe-slide-title {
    font-size: 1.1rem;
    margin: 0;
}

.recipe-slide-title a {
    text-decoration: none;
}

.recipe-slide-excerpt {
    margin: 0;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    color: #444;
    font-size: .95rem;
    line-height: 1.5;
    overflow: hidden;
    min-height: 3.6em;
}

.recipe-slide-actions {
    margin-top: auto;
    display: flex;
    gap: .5rem;
    flex-wrap: wrap;
}

/* Swiper controls (optional light styling; adjust to taste) */
.recipe-swiper .swiper-button-prev,
.recipe-swiper .swiper-button-next {
    color: currentColor;
}

.recipe-swiper .swiper-pagination-bullet {
    opacity: .5;
}

.recipe-swiper .swiper-pagination-bullet-active {
    opacity: 1;
}

/* Use Antonio for all headings, including Astra's template titles */
h1,
h2,
h3,
h4,
h5,
h6,
.entry-title,
/* Astra single post/page title */
.ast-single-post .entry-title,
.page .entry-title,
.site-title {
    /* site logo text if you use it */
    font-family: "Antonio", sans-serif;
}

/* Hero section */
.recipe-hero {
  position: relative;
  width: 100vw;
  margin-left: calc(-50vw + 50%); /* escape Astra container */
  background-size: cover;
  background-position: center;
  color: #fff;
  min-height: 70vh; /* adjust depending on how tall you want it */
  display: flex;
  align-items: center; /* vertical centering */
  justify-content: center; /* horizontal centering */
  text-align: center;
  padding: 4rem 2rem;
  margin-bottom: 4rem;
}

/* Dark overlay */
.recipe-hero__overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.2);
}

/* Content stays centered and above overlay */
.recipe-hero__content {
  position: relative;
  z-index: 1;
  max-width: var(--ast-container-width, 1200px);
  margin: 0 auto;
}

/* Spacing between hero title and button */
.recipe-hero__title {
  margin-bottom: 1rem; /* adjust as needed */
}

/* --- Recipe Post: stack content vertically --- */
.single-recipe_post .entry-content .wp-block-group.is-layout-flex {
  display: block !important;      /* stop row/column flex layouts that were causing side-by-side */
}

/* If any inner groups got alignfull inside the constrained container,
   keep them centered and within the container width so they don't poke out */
.single-recipe_post .entry-content .alignfull {
  width: 100%;
  margin-left: auto;
  margin-right: auto;
  max-width: var(--ast-container-width, 1200px);
}

/* --- WPRM: prevent floats from pulling content beside your story --- */
.single-recipe_post .wprm-container-float-right,
.single-recipe_post .wprm-container-float-left {
  float: none !important;
}

/* Make sure the recipe section starts on a new line and uses the site width */
.single-recipe_post .recipe-block {
  clear: both;
  margin-top: 4rem;
}
.single-recipe_post .recipe-block .wprm-recipe-container {
  max-width: var(--ast-container-width, 1200px);
  margin: 0 auto;
}

/* Optional: normalize spacing rhythm in the story */
.single-recipe_post .entry-content > * + * {
  margin-top: var(--wp--style--block-gap, 1.5rem);
}

.recipe_post .is-layout-flex > * {
  margin: 1rem 0;
}


/* === Recipe Collections (home) =============================== */

.home-collections .wrap {
  /* Banner/card feel: centered with gutters */
  --rc-max: 1160px;
  --rc-gutter: clamp(16px, 4vw, 28px);
  max-width: var(--rc-max);
  margin-inline: auto;
  padding-inline: var(--rc-gutter);
  display: grid;
  gap: clamp(16px, 2vw, 24px);
}

/* Base: make rows a two-column banner with image cropping */
/* .collection-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: stretch;
  gap: clamp(12px, 2vw, 24px);
  border-radius: 14px;
  overflow: hidden;
} */
.collection-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-areas: "media content";
  gap: clamp(16px, 2vw, 28px);
  align-items: stretch;
  border-radius: 14px;
  overflow: hidden;
}

/* Image should fill its cell and crop */
.collection-row__media,
.collection-row__media a,
.collection-row__media img {
  height: 100%;
  width: 100%;
  display: block;
  overflow: hidden;
}
.collection-row__media img {
  object-fit: cover;
}

.collection-row__content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(14px, 2.4vw, 28px);
  max-width: 520px;   /* optional, to keep it tighter */
}

/* Compact variant: cap height & tighten spacing */
.collection-row--compact {
  max-height: clamp(180px, 20vw, 280px); /* cap instead of minimum */
}
.collection-row--compact .collection-row__content {
  padding: clamp(10px, 1.6vw, 18px);
}

/* Optional: clamp text so compact banners don’t grow tall */
.collection-row__title {
  margin: 0 0 .5rem;
}
.collection-row--compact .collection-row__excerpt {
  display: -webkit-box;
  -webkit-line-clamp: 3;      /* show up to 3 lines */
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.collection-row--compact .collection-row__excerpt  p{
  margin-bottom: .5rem;
}

.collection-row.is-img-right {
  grid-template-areas: "content media";
}

.collection-row__media    { grid-area: media; }
.collection-row__content  { grid-area: content; }

.collection-row.is-img-right .collection-row__media {
  grid-column: 2;
}
.collection-row.is-img-right .collection-row__content {
  grid-column: 1;
}

.collection-row .wp-block-buttons {
  margin-top: 1em;
}

/* === mobile stack (image on top for BOTH variants) === */
@media (max-width: 900px) {
  .collection-row,
  .collection-row.is-img-right {
    grid-template-columns: 1fr;
    grid-template-areas:
      "media"
      "content";
  }

  /* ensure no leftover grid-column rules win */
  .collection-row__media   { grid-area: media; }
  .collection-row__content { grid-area: content; }

  /* optional: make banners a bit shorter on phones */
  .collection-row--compact {
    min-height: clamp(160px, 26vw, 280px);
  }
}





/* ===== Recipes Archive: make cards match home carousel slides ===== */

/* Grid spacing is already handled by Tailwind classes in template.
   Make sure cards stretch nicely and buttons align at the bottom. */
.recipes-grid .recipe-card.recipe-slide-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 8px 24px rgba(0,0,0,.06);
  overflow: hidden;
}

/* Thumbnail cropping to match carousel */
.recipes-grid .recipe-card .thumb.recipe-slide-thumb img {
  display: block;
  width: 100%;
  height: 420px;           /* match home slide */
  object-fit: cover;
}

@media (max-width: 1200px) {
  .recipes-grid .recipe-card .thumb.recipe-slide-thumb img {
    height: 360px;
  }
}
@media (max-width: 768px) {
  .recipes-grid .recipe-card .thumb.recipe-slide-thumb img {
    height: 300px;
  }
}

/* Body spacing and typography to mirror slides */
.recipes-grid .recipe-card .recipe-slide-body {
  display: flex;
  flex-direction: column;
  padding: 16px 18px;
  gap: 10px;
  flex: 1 1 auto;
}

.recipes-grid .recipe-card__title,
.recipes-grid .recipe-card__title a {
  font-size: 1.1rem;
  margin: 0;
  text-decoration: none;
}

.recipes-grid .recipe-card__excerpt {
  margin: 0;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  color: #444;
  font-size: .95rem;
  line-height: 1.5;
  overflow: hidden;
  min-height: 3.6em;      /* ~2 lines clamp feel */
}

/* Action buttons pinned to bottom like slides */
.recipes-grid .recipe-card__actions {
  margin-top: auto;
  display: flex;
  gap: .5rem;
  flex-wrap: wrap;
}

/* Optional: card hover subtle lift */
.recipes-grid .recipe-card.recipe-slide-card {
  transition: transform .16s ease, box-shadow .16s ease;
}
.recipes-grid .recipe-card.recipe-slide-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 28px rgba(0,0,0,.08);
}

/* ===== Pagination styling (preserves links you output) ===== */
.recipes-grid .pagination {
  display: flex;
  gap: 8px;
  justify-content: center;
  align-items: center;
  margin-top: 2.5rem;
  flex-wrap: wrap;
}
.recipes-grid .pagination a,
.recipes-grid .pagination span {
  display: inline-block;
  padding: .5rem .8rem;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  text-decoration: none;
  font-size: .95rem;
  line-height: 1;
}
.recipes-grid .pagination .current {
  background: #111827;
  color: #fff;
  border-color: #111827;
}

/* ===== Collapsible filters: height animation ===== */
.recipes-filters .filters-body {
  overflow: hidden;
  transition: height 180ms ease;
}

/* Provide a visual state during JS-driven animation */
.recipes-filters .filters-collapsible.is-animating .filters-body {
  will-change: height;
}

/* Reduced motion respect */
@media (prefers-reduced-motion: reduce) {
  .recipes-filters .filters-body {
    transition: none;
  }
}


/* ===============================
   Recipes – Filters UI polish
   =============================== */
.recipes-archive .recipes-filters {
  /* Section tint + breathing room */
  background: linear-gradient(180deg, #f7fafc 0%, #f3f6f9 100%);
  padding: 28px 0;
  margin-bottom: 24px;
  border-top: 1px solid #eef1f4;
  border-bottom: 1px solid #eef1f4;
}

/* Inner card */
.recipes-archive .recipes-filters .wrap {
  max-width: var(--ast-container-width, 1200px);
  margin-inline: auto;
}

/* <details> “card” */
.recipes-archive .filters-collapsible {
  border: 1px solid #e5e7eb;
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 8px 24px rgba(17,24,39,.04);
  overflow: clip; /* neatly clips animating body */
}

/* Summary bar */
.recipes-archive .filters-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .75rem;
  padding: 14px 18px;
  font-weight: 600;
  cursor: pointer;
  user-select: none;
  background: #ffffff;
}

.recipes-archive .filters-summary__title {
  font-size: 1.05rem;
  line-height: 1.4;
}

/* Chevron animation */
.recipes-archive .filters-summary__chevron {
  transition: transform .18s ease;
}
.recipes-archive details[open] .filters-summary__chevron {
  transform: rotate(180deg);
}

/* Animated body (works with your JS) */
.recipes-archive .filters-body {
  padding: 14px 18px 18px;
  border-top: 1px solid #eef1f4;
  overflow: hidden;
  transition: height 180ms ease;
}
@media (prefers-reduced-motion: reduce) {
  .recipes-archive .filters-body { transition: none; }
}

/* Notices */
.recipes-archive .filter-notices {
  background: #fff7ed;
  border: 1px solid #fed7aa;
  color: #7c2d12;
  padding: 10px 12px;
  border-radius: 10px;
  margin-bottom: 12px;
}

/* Row spacing */
.recipes-archive .filter-row + .filter-row { margin-top: 14px; }

/* Fieldset + legend */
.recipes-archive .filter-group {
  border: none;
  padding: 0;
  margin: 0 0 10px;
}
.recipes-archive .filter-group > legend {
  font-size: .95rem;
  font-weight: 700;
  color: #111827;
  margin-bottom: .6rem;
}

/* Options grid */
.recipes-archive .filter-group__options {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 10px 12px;
}

/* --------- Custom “pill” checkboxes (accessible) --------- */
/* Hide native box but keep in flow for a11y */
.recipes-archive .filter-check {
  position: relative;
  display: inline-flex;
  align-items: center;
}
.recipes-archive .filter-check input[type="checkbox"] {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  cursor: pointer;
}

/* Pill base */
.recipes-archive .filter-check span {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .5rem .7rem;
  border-radius: 999px;
  border: 1px solid #e5e7eb;
  background: #fff;
  font-size: .95rem;
  line-height: 1;
  transition: background .15s ease, border-color .15s ease, box-shadow .15s ease, color .15s ease;
}

/* “Dot” icon made with a pseudo element */
.recipes-archive .filter-check span::before {
  content: "";
  width: .85em;
  height: .85em;
  border-radius: 999px;
  border: 2px solid #cbd5e1; /* slate-300 */
  background: #fff;
  box-sizing: border-box;
  transition: background .15s ease, border-color .15s ease, box-shadow .15s ease;
}

/* Hover */
.recipes-archive .filter-check:hover span {
  border-color: #d1d5db;
  background: #f9fafb;
}

/* Focus-visible ring on the (hidden) input applied to the pill */
.recipes-archive .filter-check input[type="checkbox"]:focus-visible + span {
  outline: 2px solid transparent;
  box-shadow: 0 0 0 3px rgba(59,130,246,.35); /* blue focus ring */
  border-color: #93c5fd;
}

/* Checked state */
.recipes-archive .filter-check input[type="checkbox"]:checked + span {
  background: #111827;     /* near-black, matches your pagination */
  color: #fff;
  border-color: #111827;
}
.recipes-archive .filter-check input[type="checkbox"]:checked + span::before {
  background: #fff;
  border-color: #fff;
  box-shadow: inset 0 0 0 4px #111827; /* white dot ring on dark bg */
}

/* Text search */
.recipes-archive .filter-text input[type="text"] {
  width: 100%;
  padding: .7rem .9rem;
  border-radius: 10px;
  border: 1px solid #e5e7eb;
  background: #fff;
  transition: border-color .15s ease, box-shadow .15s ease;
}
.recipes-archive .filter-text input[type="text"]:focus {
  border-color: #93c5fd;
  box-shadow: 0 0 0 3px rgba(59,130,246,.25);
  outline: none;
}
.recipes-archive .filter-text .hint {
  display: block;
  font-size: .85rem;
  color: #6b7280;
  margin-top: .35rem;
}

/* Actions */
.recipes-archive .filter-actions {
  display: flex;
  gap: .6rem;
  flex-wrap: wrap;
  margin-top: .5rem;
}
.recipes-archive .filter-actions .btn.btn-primary,
.recipes-archive .filter-actions .wp-element-button {
  padding: .65rem 1rem;
  line-height: 1;
}

/* Small screens */
@media (max-width: 640px) {
  .recipes-archive .filters-summary {
    padding: 12px 14px;
  }
  .recipes-archive .filters-body {
    padding: 12px 14px 14px;
  }
  .recipes-archive .filter-group__options {
    grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
  }
}

/* --- 1) Put the tint INSIDE the card so it reaches the edges --- */
.recipes-archive .recipes-filters { 
  background: transparent;           /* remove section tint */
  padding: 18px 0 22px;
}
.recipes-archive .filters-collapsible {
  background: linear-gradient(180deg, #f7fafc 0%, #f3f6f9 100%); /* tint fills card */
  border-radius: 14px;
}
.recipes-archive .filters-summary,
.recipes-archive .filters-body {
  background: transparent;           /* keep inner pieces transparent */
}

/* --- 2) Tighten spacing of options --- */
.recipes-archive .filter-group__options {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); /* was 160px */
  gap: 8px 10px;                       /* was 10px 12px */
  align-items: start;
}

/* Smaller, tighter “pill” */
.recipes-archive .filter-check span {
  padding: .45rem .6rem;               /* was .5rem .7rem */
  font-size: .92rem;                   /* down a touch */
}
.recipes-archive .filter-check span::before {
  width: .8em;
  height: .8em;
}

/* Slightly smaller legends to reduce vertical space */
.recipes-archive .filter-group > legend {
  margin-bottom: .45rem;               /* was .6rem */
  font-size: .9rem;
}

/* Reduce vertical gaps between rows */
.recipes-archive .filter-row + .filter-row {
  margin-top: 10px;                    /* was 14px */
}

/* Actions sit tighter to input */
.recipes-archive .filter-actions {
  margin-top: .25rem;                  /* was .5rem */
}

/* Optional: compact text field */
.recipes-archive .filter-text input[type="text"] {
  padding: .6rem .75rem;               /* slightly smaller */
  border-radius: 8px;
}

/* Keep the card’s outer shadow subtle */
.recipes-archive .filters-collapsible {
  box-shadow: 0 10px 28px rgba(17,24,39,.05);
  border: 1px solid #e6eaef;
}

/* === 1) Center the page title === */
.recipes-archive .recipes-hero .wrap h1,
.recipes-archive .entry-title {        /* fallback if Astra prints the title */
  text-align: center;
  margin-bottom: .6rem;
}

/* === 2) Remove the horizontal lines === */
/* kill any section borders from earlier */
.recipes-archive .recipes-filters {
  border: 0 !important;
}
/* remove the divider inside the <details> between summary and body */
.recipes-archive .filters-body {
  /* border-top: 0 !important; */
}

/* === 3) Tighter, left-aligned options (no auto-justify) === */
/* switch options container from grid to flex so items wrap with consistent gaps */
.recipes-archive .filter-group__options {
  display: flex !important;
  flex-wrap: wrap;
  gap: 8px 10px;          /* controls spacing */
  justify-content: flex-start;
}
/* make each pill size to content */
.recipes-archive .filter-check {
  flex: 0 0 auto;
}

/* (optional) slightly reduce pill size for density */
.recipes-archive .filter-check span {
  padding: .42rem .62rem;
  font-size: .92rem;
}


.home-page-content h2 {
  margin-bottom: 1rem;
}

/* ==== Recipe Collections: mobile stack fix ==== */
@media (max-width: 900px) {
  /* 1) Always stack: image first, then content */
  .collection-row,
  .collection-row.is-img-right {
    grid-template-columns: 1fr !important;
    grid-template-areas:
      "media"
      "content" !important;
  }
  .collection-row__media   { grid-area: media !important; }
  .collection-row__content { grid-area: content !important; }

  /* 2) Remove compact cap that was choking the row height */
  .collection-row--compact {
    max-height: none !important;
  }

  /* 3) Make the image full-width and same height for ALL rows */
  :root { --rc-media-h: clamp(220px, 48vw, 320px); } /* tweak to taste */
  .collection-row__media,
  .collection-row__media a,
  .collection-row__media img {
    width: 100% !important;
    height: var(--rc-media-h) !important;
    display: block;
  }
  .collection-row__media img { object-fit: cover; }

  /* 4) Content spacing and width */
  .collection-row__content {
    max-width: none;
    padding: 16px 16px 18px;
  }
}

/* Optional: if you prefer aspect-ratio instead of fixed height on mobile, use this instead of rule #3 above */
/*
@media (max-width: 900px) {
  .collection-row__media { aspect-ratio: 16 / 9; }
  .collection-row__media a,
  .collection-row__media img {
    height: 100% !important;
    width: 100% !important;
    object-fit: cover;
  }
}
*/

/* Responsive auto-fit grid for recipes page */
.recipes-grid__cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); /* adjust 220→260 if you want bigger */
  gap: clamp(14px, 2vw, 22px);
}

/* Compact card tweaks to make items smaller */
.recipe-card--compact .recipe-slide-thumb img {
  height: 220px;          /* desktop */
}
@media (max-width: 1200px) {
  .recipe-card--compact .recipe-slide-thumb img { height: 200px; }
}
@media (max-width: 768px) {
  .recipe-card--compact .recipe-slide-thumb img { height: 180px; }
}

.recipe-card--compact .recipe-slide-body {
  padding: 12px 14px;
  gap: 8px;
}
.recipe-card--compact .recipe-card__title,
.recipe-card--compact .recipe-card__title a {
  font-size: 1rem;
}
.recipe-card--compact .recipe-card__excerpt {
  font-size: .92rem;
  min-height: 3.2em; /* ~2 lines */
}

/* Make pagination breathe a bit less for smaller cards */
.recipes-grid .pagination { margin-top: 1.75rem; }

/* =========================
   Recipes page grid fixes
   ========================= */

/* 1) Let archive cards size to content (no row-equal stretching) */
.recipes-grid__cards .recipe-slide-card {
  height: auto;                /* override global 100% */
}

/* 2) Don't pin actions to the bottom on archive cards */
.recipes-grid__cards .recipe-slide-body { display:flex; flex-direction:column; }
.recipes-grid__cards .recipe-card__actions { 
  margin-top: .75rem;          /* was margin-top:auto via .recipe-slide-actions */
}

/* 3) Smaller, consistent image heights just for archive */
.recipes-grid__cards .recipe-card--compact .recipe-slide-thumb img { height: 220px; }
@media (max-width: 1200px) { .recipes-grid__cards .recipe-card--compact .recipe-slide-thumb img { height: 200px; } }
@media (max-width: 768px)  { .recipes-grid__cards .recipe-card--compact .recipe-slide-thumb img { height: 180px; } }

/* 5) Grid: small responsive cards */
.recipes-grid__cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: clamp(14px, 2vw, 22px);
}

/* 6) Tighter text for archive compact cards */
.recipes-grid__cards .recipe-card--compact .recipe-slide-body { padding: 12px 14px; gap: 8px; }
.recipes-grid__cards .recipe-card--compact .recipe-card__title a { font-size: 1rem; }
.recipes-grid__cards .recipe-card--compact .recipe-card__excerpt { font-size: .92rem; min-height: 3.2em; }

/* ==== Recipes archive: kill the vertical stretch & bottom-pinned actions ==== */
.recipes-grid .recipe-card.recipe-slide-card {
  height: auto !important;            /* stop equal-height stretching */
}

.recipes-grid .recipe-card__actions {
  margin-top: .75rem !important;      /* let buttons sit under excerpt */
}

/* Smaller, consistent image height just for archive cards */
.recipes-grid .recipe-card .thumb.recipe-slide-thumb img {
  height: 220px !important;
}
@media (max-width: 1200px) {
  .recipes-grid .recipe-card .thumb.recipe-slide-thumb img { height: 200px !important; }
}
@media (max-width: 768px) {
  .recipes-grid .recipe-card .thumb.recipe-slide-thumb img { height: 180px !important; }
}

/* Auto-fit responsive grid (if you're using .recipes-grid__cards) */
.recipes-grid__cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: clamp(14px, 2vw, 22px);
}


/* was: .recipe-slide-card { … } */
.home-latest-carousel .recipe-slide-card {
  display:flex;
  flex-direction:column;
  height:100%;
  background:#fff;
  border-radius:12px;
  box-shadow:0 8px 24px rgba(0,0,0,.06);
  overflow:hidden;
}

/* was: .recipe-slide-actions { … } */
.home-latest-carousel .recipe-slide-actions {
  margin-top:auto;
  display:flex;
  gap:.5rem;
  flex-wrap:wrap;
}

/* === Recipes archive typography and layout tweaks === */
.recipes-grid .recipe-card__title a {
  font-size: 1.25rem;              /* slightly larger title */
  line-height: 1.25;
  font-weight: 400;                /* keep headings readable */
}

.recipes-grid .recipe-card__meta {
  font-size: 0.9rem;               /* smaller meta line */
  color: #6b7280;                  /* muted grey */
  margin: 0.35rem 0 0.25rem;
}

/* === Consistent card layout: equal height + bottom-aligned buttons === */
.recipes-grid .recipe-card.recipe-slide-card {
  display: flex;
  flex-direction: column;
  height: 100% !important;
}

.recipes-grid .recipe-slide-body {
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
}

.recipes-grid .recipe-card__actions {
  margin-top: auto !important;      /* push to bottom */
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

/* Compact, consistent image height */
.recipes-grid .recipe-card .thumb.recipe-slide-thumb img {
  height: 220px !important;
  object-fit: cover;
}
@media (max-width: 1200px) {
  .recipes-grid .recipe-card .thumb.recipe-slide-thumb img {
    height: 200px !important;
  }
}
@media (max-width: 768px) {
  .recipes-grid .recipe-card .thumb.recipe-slide-thumb img {
    height: 180px !important;
  }
}



/* ===========================
   Nourishly — Unified Buttons
   =========================== */
:root{
  --btn-bg: #e85a41;
  --btn-bg-hover: #f7bd0a;
  --btn-text: #fff;
  --btn-outline: #e85a41;
  --btn-radius: 999px;
  --btn-py: .65rem;
  --btn-px: 1.25rem;
  --btn-fs: .95rem;
  --btn-fw: 100; /* you want light everywhere */
}

/* Base: catch Gutenberg, Astra, and our custom .btn */
body .wp-block-button__link,
body .wp-element-button,
body .btn,
body button[type="submit"],
body input[type="submit"],
body input[type="button"]{
  display: inline-block;
  padding: var(--btn-py) var(--btn-px);
  border-radius: var(--btn-radius);
  font-size: var(--btn-fs);
  line-height: 1.2;
  font-weight: var(--btn-fw) !important;
  text-decoration: none;
  border: 1px solid transparent;
  background: var(--btn-bg);
  color: var(--btn-text);
  transition: background .18s ease, color .18s ease, border-color .18s ease, box-shadow .18s ease;
  white-space: nowrap;
}

/* Hover / focus */
body .wp-block-button__link:hover,
body .wp-element-button:hover,
body .btn:hover,
body button[type="submit"]:hover,
body input[type="submit"]:hover,
body input[type="button"]:hover,
body .wp-block-button__link:focus-visible,
body .wp-element-button:focus-visible,
body .btn:focus-visible{
  background: var(--btn-bg-hover);
  color: var(--btn-text);
  border-color: var(--btn-bg-hover);
  outline: none;
  font-weight: var(--btn-fw) !important;
}

/* Outline variant (Gutenberg “outline” style or opt-in .btn-outline) */
body .is-style-outline .wp-block-button__link,
body .btn-outline{
  background: transparent !important;
  color: var(--btn-outline) !important;
  border-color: var(--btn-outline) !important;
  font-weight: var(--btn-fw) !important;
}
body .is-style-outline .wp-block-button__link:hover,
body .btn-outline:hover{
  background: var(--btn-bg-hover) !important;
  color: var(--btn-text) !important;
  border-color: var(--btn-bg-hover) !important;
  font-weight: var(--btn-fw) !important;
}

/* Make filters’ buttons match too */
.recipes-archive .filter-actions .btn,
.recipes-archive .filter-actions .wp-element-button{
  /* already covered by the base rule */
}

/* Optional: compact buttons on small screens */
@media (max-width: 600px){
  body .wp-block-button__link,
  body .wp-element-button,
  body .btn{
    padding: .55rem 1rem;
    font-size: .92rem;
  }
}

/* Normalize Wonder Blocks button weight everywhere */
.nfd-btn-lg:not([style*="font-weight"]) > .wp-block-button__link,
.nfd-btn-md:not([style*="font-weight"]) > .wp-block-button__link,
.nfd-btn:not([style*="font-weight"]) > .wp-block-button__link {
  font-weight: 100 !important; /* your global choice */
}

/* Nuclear option: anything inside an nfd button wrapper uses 100 */
.nfd-btn-lg > .wp-block-button__link,
.nfd-btn-md > .wp-block-button__link,
.nfd-btn > .wp-block-button__link {
  font-weight: 100 !important;
}

.recipe-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  /* background: linear-gradient(to bottom, rgba(0,0,0,0.5), rgba(0,0,0,0.2)); */
  z-index: 1;
}
.recipe-hero .recipe-hero__title {
  position: relative;
  z-index: 2;
  color: #fff;
}

.footer-instagram {
  background: #EAF1EC;
  padding: clamp(2rem, 4vw, 4rem) 0;
}

.footer-instagram .container {
  max-width: 1200px; /* match your site container */
  margin: 0 auto;
  padding: 0 1rem;
}

.footer-instagram__title {
  text-align: center;
  margin: 0 0 .5rem;
  line-height: 1.2;
  color: var(--e-global-color-astglobalcolor2);
}

.footer-instagram__subtitle {
  text-align: center;
  margin: 0 0 2rem;
  opacity: .85;
}

.footer-instagram__feed {
  /* Let the feed define its own grid; just ensure edges align nicely */
}

.footer-instagram img {
  border-radius: 6px; /* optional nicety */
}

