.smd-articles,
.smd-recipe-shortcode {
  --smd-article-green: #0d4b3a;
  --smd-article-green-dark: #073d30;
  --smd-article-coral: #f5525f;
  --smd-article-orange: #ff765b;
  --smd-article-border: #eadfd7;
  --smd-article-muted: #65736e;
  box-sizing: border-box;
  width: 100%;
  font-family: var(--awb-typography4-font-family, inherit);
}

.smd-articles__title {
  margin: 0 0 24px;
  color: var(--smd-article-green-dark);
  font-family: var(--awb-typography1-font-family, inherit);
  font-size: clamp(30px, 4vw, 46px);
  line-height: 1.08;
}

.smd-articles__grid {
  display: grid;
  grid-template-columns: repeat(var(--smd-articles-columns, 3), minmax(0, 1fr));
  gap: clamp(16px, 2vw, 24px);
}

.smd-article-card {
  display: flex;
  min-width: 0;
  overflow: hidden;
  flex-direction: column;
  border: 1px solid var(--smd-article-border);
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 12px 30px rgba(13, 75, 58, 0.06);
  transition: border-color 180ms ease, box-shadow 180ms ease, transform 180ms ease;
}

.smd-article-card:hover,
.smd-article-card.is-current {
  border-color: rgba(245, 82, 95, 0.48);
  box-shadow: 0 18px 36px rgba(13, 75, 58, 0.11);
  transform: translateY(-3px);
}

.smd-article-card.is-current {
  box-shadow: 0 0 0 2px rgba(245, 82, 95, 0.14), 0 18px 36px rgba(13, 75, 58, 0.1);
}

.smd-article-card__image {
  position: relative;
  display: block;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: #f7f8f5;
}

.smd-article-card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 260ms ease;
}

.smd-article-card:hover .smd-article-card__image img {
  transform: scale(1.025);
}

.smd-article-card__image.is-placeholder {
  display: grid;
  place-items: center;
  background:
    radial-gradient(circle at 78% 18%, rgba(255, 118, 91, 0.2), transparent 32%),
    linear-gradient(145deg, #f4faf7, #fff3ee);
}

.smd-article-card__image.is-placeholder > span {
  display: grid;
  width: 62px;
  height: 62px;
  place-items: center;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.85);
  color: var(--smd-article-coral);
  font-size: 27px;
  box-shadow: 0 10px 24px rgba(13, 75, 58, 0.08);
}

.smd-article-card__status {
  position: absolute;
  top: 12px;
  right: 12px;
  padding: 6px 9px;
  border-radius: 999px;
  background: rgba(7, 61, 48, 0.92);
  color: #fff;
  font-size: 10px;
  font-weight: 800;
}

.smd-article-card__body {
  display: flex;
  flex: 1;
  align-items: flex-start;
  flex-direction: column;
  padding: clamp(17px, 2vw, 23px);
}

.smd-article-card__body h3 {
  margin: 0 0 10px;
  font-family: var(--awb-typography1-font-family, inherit);
  font-size: clamp(22px, 2.4vw, 29px);
  line-height: 1.08;
}

.smd-article-card__body h3 a {
  color: var(--smd-article-green-dark);
  text-decoration: none;
}

.smd-article-card__body p {
  margin: 0 0 15px;
  color: var(--smd-article-muted);
  font-size: 14px;
  line-height: 1.55;
}

.smd-article-card__facts {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin: auto 0 16px;
}

.smd-article-card__facts span {
  display: inline-flex;
  align-items: center;
  min-height: 27px;
  padding: 3px 9px;
  border: 1px solid #dce8e2;
  border-radius: 999px;
  background: #f5faf7;
  color: var(--smd-article-green);
  font-size: 11px;
  font-weight: 700;
}

.smd-article-card__link {
  display: inline-flex;
  min-height: 42px;
  align-items: center;
  justify-content: center;
  padding: 8px 16px;
  border-radius: 9px;
  background: linear-gradient(135deg, var(--smd-article-coral), var(--smd-article-orange));
  color: #fff !important;
  font-size: 12px;
  font-weight: 800;
  text-decoration: none !important;
  box-shadow: 0 9px 18px rgba(245, 82, 95, 0.16);
  transition: background 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

.smd-article-card__link:hover {
  background: #e42b2d;
  box-shadow: 0 11px 22px rgba(228, 43, 45, 0.2);
  transform: translateY(-1px);
}

.smd-articles-empty {
  padding: 22px;
  border: 1px dashed var(--smd-article-border, #eadfd7);
  border-radius: 14px;
  background: #fffaf7;
  color: var(--smd-article-muted, #65736e);
  text-align: center;
}

.smd-recipe-shortcode {
  max-width: 1180px;
  margin: 0 auto;
}

.smd-recipe-hero {
  display: grid;
  grid-template-columns: minmax(280px, 0.9fr) minmax(0, 1.1fr);
  min-height: 390px;
  overflow: hidden;
  border: 1px solid var(--smd-article-border);
  border-radius: 20px;
  background: linear-gradient(135deg, #fffaf7 0%, #f3f8f5 100%);
  box-shadow: 0 20px 48px rgba(13, 75, 58, 0.08);
}

.smd-recipe-hero__media {
  position: relative;
  min-height: 390px;
  overflow: hidden;
  background: #f7f3ee;
}

.smd-recipe-hero__image {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 390px;
  object-fit: cover;
  object-position: center;
}

.smd-recipe-hero__content {
  display: flex;
  min-width: 0;
  justify-content: center;
  flex-direction: column;
  padding: clamp(30px, 5vw, 62px);
}

.smd-recipe-hero__eyebrow {
  margin: 0 0 10px;
  color: var(--smd-article-coral);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.smd-recipe-hero h1 {
  max-width: 690px;
  margin: 0;
  color: var(--smd-article-green-dark);
  font-family: var(--awb-typography1-font-family, inherit);
  font-size: clamp(34px, 4.4vw, 54px);
  line-height: 1.02;
  text-wrap: balance;
}

.smd-recipe-hero__intro {
  max-width: 620px;
  margin: 18px 0 0;
  color: #52645e;
  font-size: clamp(15px, 1.5vw, 18px);
  line-height: 1.65;
}

.smd-recipe-hero__fallback {
  position: absolute;
  inset: 0;
  display: grid;
  place-content: center;
  background:
    radial-gradient(circle at 20% 22%, rgba(255, 118, 91, 0.24) 0 11%, transparent 11.5%),
    radial-gradient(circle at 78% 72%, rgba(13, 75, 58, 0.14) 0 19%, transparent 19.5%),
    linear-gradient(145deg, #fff2eb, #edf6f1);
  color: var(--smd-article-green);
  text-align: center;
}

.smd-recipe-hero__fallback small {
  margin-top: 16px;
  color: var(--smd-article-green);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.smd-recipe-hero__glass {
  position: relative;
  display: block;
  width: 82px;
  height: 104px;
  margin: auto;
  border: 4px solid var(--smd-article-green);
  border-top-width: 7px;
  border-radius: 8px 8px 30px 30px;
  background: linear-gradient(to top, rgba(245, 82, 95, 0.72) 0 55%, transparent 56%);
  transform: rotate(-3deg);
}

.smd-recipe-hero__glass::after {
  position: absolute;
  right: -25px;
  top: -23px;
  width: 54px;
  height: 4px;
  border-radius: 99px;
  background: var(--smd-article-green);
  content: "";
  transform: rotate(-58deg);
  transform-origin: right;
}

.smd-recipe-shortcode > .sm-recipe {
  display: grid;
  width: 100%;
  max-width: none;
  grid-template-columns: minmax(280px, 0.82fr) minmax(0, 1.18fr);
  gap: 18px;
  margin-top: 18px;
}

.smd-recipe-shortcode .sm-recipe__facts,
.smd-recipe-shortcode .sm-recipe__section--shop {
  grid-column: 1 / -1;
}

.smd-recipe-shortcode .sm-recipe__facts {
  grid-template-columns: repeat(auto-fit, minmax(105px, 1fr));
  box-shadow: 0 12px 28px rgba(13, 75, 58, 0.055);
}

.smd-recipe-shortcode .sm-recipe__facts > span {
  min-height: 68px;
  padding: 10px 13px;
}

.smd-recipe-shortcode .sm-recipe__facts small {
  font-size: 9px;
}

.smd-recipe-shortcode .sm-recipe__facts strong {
  font-size: 14px;
}

.smd-recipe-shortcode .sm-recipe__section {
  min-width: 0;
  margin-top: 0;
  padding: clamp(22px, 3vw, 32px);
  border-radius: 16px;
  box-shadow: 0 13px 30px rgba(13, 75, 58, 0.05);
}

.smd-recipe-shortcode .sm-recipe__section h2 {
  margin: 4px 0 18px;
  font-family: var(--awb-typography1-font-family, inherit);
  font-size: clamp(25px, 2.8vw, 32px);
  line-height: 1.08;
}

.smd-recipe-shortcode .sm-recipe__eyebrow {
  font-size: 9px;
}

.smd-recipe-shortcode .sm-recipe__ingredients {
  grid-template-columns: 1fr;
}

.smd-recipe-shortcode .sm-recipe__ingredients li {
  grid-template-columns: minmax(58px, auto) minmax(0, 1fr);
  gap: 11px;
  padding: 12px 0;
  font-size: 14px;
}

.smd-recipe-shortcode .sm-recipe__amount {
  font-size: 13px;
}

.smd-recipe-shortcode .sm-recipe__ingredient-shop {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 8px;
  color: var(--smd-article-green-dark);
  text-decoration: none;
}

.smd-recipe-shortcode .sm-recipe__ingredient-cta {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 4px;
  padding: 4px 7px;
  border-radius: 99px;
  background: #fff0ec;
  color: var(--smd-article-coral);
  font-size: 9px;
  font-weight: 800;
  line-height: 1.2;
  text-transform: uppercase;
  transition: background 160ms ease, color 160ms ease;
}

.smd-recipe-shortcode .sm-recipe__ingredient-shop:hover .sm-recipe__ingredient-cta {
  background: var(--smd-article-coral);
  color: #fff;
}

.smd-recipe-shortcode .sm-recipe__steps li {
  min-height: 48px;
  padding: 0 0 21px 56px;
}

.smd-recipe-shortcode .sm-recipe__steps li::before {
  width: 38px;
  height: 38px;
  border-radius: 12px;
  font-size: 10px;
}

.smd-recipe-shortcode .sm-recipe__steps li:not(:last-child)::after {
  top: 40px;
  left: 19px;
}

.smd-recipe-shortcode .sm-recipe__steps li > strong {
  font-size: 15px;
}

.smd-recipe-shortcode .sm-recipe__steps li p {
  font-size: 14px;
  line-height: 1.55;
}

.smd-recipe-shortcode .sm-recipe__products {
  gap: 14px;
}

.smd-recipe-shortcode .sm-recipe-product {
  grid-template-columns: 68px minmax(0, 1fr);
}

.smd-recipe-shortcode .sm-recipe-product img {
  width: 68px;
  height: 68px;
}

.smd-recipe-shortcode .sm-recipe-product > b {
  background: linear-gradient(135deg, var(--smd-article-green), #17634e);
  font-size: 11px;
}

@media (max-width: 1024px) {
  .smd-articles__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .smd-recipe-hero {
    min-height: 340px;
  }

  .smd-recipe-hero__media,
  .smd-recipe-hero__image {
    min-height: 340px;
  }
}

@media (max-width: 860px) {
  .smd-recipe-hero {
    grid-template-columns: 1fr;
  }

  .smd-recipe-hero__media,
  .smd-recipe-hero__image {
    min-height: 0;
    aspect-ratio: 16 / 10;
  }

  .smd-recipe-shortcode > .sm-recipe {
    grid-template-columns: 1fr;
  }

  .smd-recipe-shortcode .sm-recipe__facts,
  .smd-recipe-shortcode .sm-recipe__section {
    grid-column: 1;
  }
}

@media (max-width: 640px) {
  .smd-articles__grid {
    grid-template-columns: 1fr;
  }

  .smd-article-card__body {
    padding: 17px;
  }

  .smd-article-card__body h3 {
    font-size: 24px;
  }

  .smd-article-card__link {
    width: 100%;
    box-sizing: border-box;
  }

  .smd-recipe-hero {
    border-radius: 16px;
  }

  .smd-recipe-hero__content {
    padding: 25px 20px 28px;
  }

  .smd-recipe-hero h1 {
    font-size: clamp(31px, 10vw, 40px);
  }

  .smd-recipe-hero__intro {
    margin-top: 13px;
    font-size: 15px;
  }

  .smd-recipe-shortcode > .sm-recipe {
    gap: 14px;
    margin-top: 14px;
  }

  .smd-recipe-shortcode .sm-recipe__facts {
    grid-template-columns: repeat(2, 1fr);
  }

  .smd-recipe-shortcode .sm-recipe__section {
    padding: 20px 17px;
    border-radius: 14px;
  }

  .smd-recipe-shortcode .sm-recipe__ingredient-shop {
    flex-direction: column;
  }
}

@media (prefers-reduced-motion: reduce) {
  .smd-article-card,
  .smd-article-card__image img,
  .smd-article-card__link {
    transition: none;
  }
}
