/* Source 19970: OmVeda-Blog-Template-V2 */
/*
 * OmVeda Blog Template V2
 * Reusable, responsive styles scoped to .ov-blog-template.
 */

.ov-blog-template {
  --ov-blog-green: #244d36;
  --ov-blog-green-soft: #5f8067;
  --ov-blog-cream: #f8f4e8;
  --ov-blog-highlight: #dfead9;
  --ov-blog-copy: #43564b;
  --ov-blog-border: rgba(36, 77, 54, 0.16);
  color: var(--ov-blog-copy);
  font-family: inherit;
}

.ov-blog-template,
.ov-blog-template * {
  box-sizing: border-box;
}

.ov-blog-template .ov-container {
  width: min(100% - 40px, 1180px);
  margin-inline: auto;
}

.ov-blog-template .ov-section {
  padding-block: 56px;
}

.ov-blog-template .ov-heading,
.ov-blog-template h2,
.ov-blog-template h3 {
  word-break: normal;
  overflow-wrap: normal;
  hyphens: auto;
}

.ov-blog-template .ov-body,
.ov-blog-template p,
.ov-blog-template li {
  line-height: 1.62;
}

.ov-blog-template .ovab-product-intro {
  padding-block: 32px;
}

.ov-blog-template .ovab-product-intro__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(180px, 240px);
  align-items: center;
  gap: 32px;
  padding: 28px;
  border: 1px solid var(--ov-blog-border);
  border-radius: 10px;
  background: linear-gradient(135deg, #fffdf7, var(--ov-blog-cream));
}

.ov-blog-template .ovab-product-intro__content {
  min-width: 0;
}

.ov-blog-template .ovab-product-intro__product {
  position: relative;
  display: grid;
  justify-items: center;
  gap: 10px;
}

.ov-blog-template .ovab-product-intro__product img {
  display: block;
  width: min(100%, 220px);
  height: auto;
  aspect-ratio: 1;
  object-fit: contain;
}

.ov-blog-template .ovab-image-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  max-width: 100%;
  padding: 7px 11px;
  border-radius: 999px;
  background: var(--ov-blog-highlight);
  color: var(--ov-blog-green);
  font-size: 14px;
  font-weight: 700;
  line-height: 1.25;
  text-align: center;
}

.ov-blog-template .ovab-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 20px;
}

.ov-blog-template .ov-btn {
  min-height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 18px;
  border: 1px solid transparent;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 700;
  line-height: 1.25;
  transition: background-color .2s ease, border-color .2s ease, color .2s ease;
}

.ov-blog-template .ov-btn--secondary {
  border-color: var(--ov-blog-green);
  background: transparent;
  color: var(--ov-blog-green);
}

.ov-blog-template .ov-btn--secondary:hover,
.ov-blog-template .ov-btn--secondary:focus-visible {
  background: var(--ov-blog-green);
  color: #fffdf7;
}

.ov-blog-template .ov-quickfacts {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.ov-blog-template .ov-quickfact,
.ov-blog-template .ov-toc {
  border-radius: 10px;
}

.ov-blog-template .ov-toc__list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.ov-blog-template .ov-features {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.ov-blog-template .ov-feature-card {
  min-width: 0;
  padding: 22px;
  border-radius: 10px;
}

.ov-blog-template .ov-feature-icon {
  width: 44px;
  height: 44px;
  margin-bottom: 14px;
}

.ov-blog-template .omv-benefit-list,
.ov-blog-template .omv-benefit-list--compact {
  display: grid;
  gap: 14px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.ov-blog-template .omv-benefit-list > li {
  position: relative;
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr);
  gap: 12px;
  align-items: start;
  margin: 0;
  padding: 0;
}

.ov-blog-template .omv-benefit-list > li::before {
  content: "✓";
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 8px;
  background: var(--ov-blog-cream);
  color: var(--ov-blog-green);
  font-size: 21px;
  font-weight: 800;
  line-height: 1;
}

.ov-blog-template .omv-benefit-copy {
  min-width: 0;
  padding-top: 2px;
}

.ov-blog-template .omv-benefit-copy strong {
  display: inline;
  color: var(--ov-blog-green);
  font-size: 17px;
  line-height: 1.45;
  background-image: linear-gradient(transparent 70%, var(--ov-blog-highlight) 70%);
}

.ov-blog-template .omv-benefit-detail {
  display: block;
  margin-top: 3px;
  color: var(--ov-blog-copy);
  font-size: 17px;
  line-height: 1.52;
}

.ov-blog-template .omv-benefit-copy a {
  color: var(--ov-blog-green);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

.ov-blog-template .ovab-recipe-layout {
  display: grid;
  grid-template-columns: minmax(260px, .85fr) minmax(0, 1.4fr);
  gap: 24px;
  align-items: start;
}

.ov-blog-template .ovab-recipe-box,
.ov-blog-template .ovab-steps-card {
  border-radius: 10px;
}

.ov-blog-template .ov-recipe-step {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr);
  gap: 14px;
  align-items: start;
}

.ov-blog-template .ov-recipe-step-number {
  position: static;
  flex: none;
}

.ov-blog-template .ovab-product-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.ov-blog-template .ovab-product-card {
  min-width: 0;
  padding: 20px;
  border-radius: 10px;
}

.ov-blog-template .ovab-product-card__image {
  display: grid;
  place-items: center;
  aspect-ratio: 1;
  overflow: hidden;
}

.ov-blog-template .ovab-product-card__image img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.ov-blog-template .ovab-link-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.ov-blog-template .ovab-link-card,
.ov-blog-template .ovab-about-section,
.ov-blog-template .omv-discover {
  border-radius: 10px;
}

.ov-blog-template .ov-cta-section .ov-btn--secondary {
  border-color: #f8f4e8;
  color: #f8f4e8;
}

.ov-blog-template .ov-cta-section .ov-btn--secondary:hover,
.ov-blog-template .ov-cta-section .ov-btn--secondary:focus-visible {
  border-color: #fff;
  background: #f8f4e8;
  color: var(--ov-blog-green);
}

.ov-blog-template > .ov-section:last-child {
  padding-bottom: 56px;
}

@media (max-width: 1023px) {
  .ov-blog-template .ov-features,
  .ov-blog-template .ovab-product-grid,
  .ov-blog-template .ovab-link-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .ov-blog-template .ov-quickfacts {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 767px) {
  .ov-blog-template {
    padding-bottom: 90px;
  }

  .ov-blog-template .ov-container {
    width: min(100% - 36px, 1180px);
  }

  .ov-blog-template .ov-section {
    padding-block: 38px;
  }

  .ov-blog-template .ov-heading--lg,
  .ov-blog-template h2 {
    font-size: clamp(27px, 8vw, 30px);
    line-height: 1.16;
  }

  .ov-blog-template .ov-heading--sm,
  .ov-blog-template h3 {
    font-size: clamp(19px, 5.8vw, 22px);
    line-height: 1.3;
  }

  .ov-blog-template .ov-body,
  .ov-blog-template p,
  .ov-blog-template li {
    font-size: 16px;
    line-height: 1.6;
  }

  .ov-blog-template .ovab-product-intro {
    padding-block: 24px 34px;
  }

  .ov-blog-template .ovab-product-intro__grid {
    grid-template-columns: 1fr;
    gap: 18px;
    padding: 18px;
  }

  .ov-blog-template .ovab-product-intro__product {
    grid-row: 1;
  }

  .ov-blog-template .ovab-product-intro__product img {
    width: min(100%, 150px);
  }

  .ov-blog-template .ovab-hero__actions,
  .ov-blog-template .ov-cta-section .ovab-hero__actions {
    display: grid;
    grid-template-columns: 1fr;
    gap: 11px;
  }

  .ov-blog-template .ovab-hero__actions .ov-btn {
    width: 100%;
  }

  .ov-blog-template .ov-quickfacts,
  .ov-blog-template .ov-toc__list,
  .ov-blog-template .ov-features,
  .ov-blog-template .ovab-recipe-layout,
  .ov-blog-template .ovab-product-grid,
  .ov-blog-template .ovab-link-grid {
    grid-template-columns: 1fr;
  }

  .ov-blog-template .ov-feature-card,
  .ov-blog-template .ovab-product-card {
    padding: 18px;
  }

  .ov-blog-template .ov-feature-icon {
    width: 42px;
    height: 42px;
  }

  .ov-blog-template .omv-benefit-list {
    gap: 13px;
  }

  .ov-blog-template .omv-benefit-list > li {
    grid-template-columns: 44px minmax(0, 1fr);
    gap: 12px;
  }

  .ov-blog-template .omv-benefit-list > li::before {
    width: 44px;
    height: 44px;
  }

  .ov-blog-template .omv-benefit-copy strong,
  .ov-blog-template .omv-benefit-detail {
    font-size: 16px;
  }

  .ov-blog-template .ov-recipe-step {
    grid-template-columns: 42px minmax(0, 1fr);
    gap: 12px;
  }
}

/*
 * V2.1 visual corrections
 * Added after frontend review of the Salbei article.
 */

/* Prevent awkward heading breaks such as "Kü-che". */
.ov-blog-template .ov-heading,
.ov-blog-template h2,
.ov-blog-template h3 {
  word-break: normal !important;
  overflow-wrap: normal !important;
  hyphens: none !important;
}

/* Let quick facts and the table of contents use the same full content width. */
.ov-blog-template .ovab-quickfacts,
.ov-blog-template .ovab-toc {
  width: 100% !important;
  max-width: none !important;
  margin-inline: 0 !important;
}

.ov-blog-template .ovab-toc {
  margin-top: 18px !important;
  padding: 26px 30px !important;
}

.ov-blog-template .ov-toc__list {
  align-items: center;
  column-gap: 32px;
  row-gap: 16px;
}

/* Font Awesome is not rendering reliably here: use clean numbered markers. */
.ov-blog-template .ov-feature-icon {
  display: grid !important;
  place-items: center;
  width: 42px !important;
  height: 42px !important;
  margin: 0 0 14px !important;
  border-radius: 8px !important;
  background: var(--ov-blog-highlight) !important;
  color: var(--ov-blog-green) !important;
  font-size: 15px !important;
  font-weight: 800 !important;
}

.ov-blog-template .ov-feature-icon > i {
  display: none !important;
}

.ov-blog-template .ov-feature-card:nth-child(1) .ov-feature-icon::before {
  content: "01";
}

.ov-blog-template .ov-feature-card:nth-child(2) .ov-feature-icon::before {
  content: "02";
}

.ov-blog-template .ov-feature-card:nth-child(3) .ov-feature-icon::before {
  content: "03";
}

.ov-blog-template .ov-feature-card {
  border-top: 3px solid var(--ov-blog-highlight);
}

/* Keep every recipe step separated; numbers must never collide with copy. */
.ov-blog-template .ovab-steps-card {
  display: grid !important;
  gap: 16px !important;
}

.ov-blog-template .ov-recipe-step {
  position: relative !important;
  display: grid !important;
  grid-template-columns: 44px minmax(0, 1fr) !important;
  gap: 16px !important;
  align-items: start !important;
  min-width: 0;
  margin: 0 !important;
  padding: 0 0 16px !important;
}

.ov-blog-template .ov-recipe-step:not(:last-child) {
  border-bottom: 1px solid var(--ov-blog-border);
}

.ov-blog-template .ov-recipe-step-number {
  position: static !important;
  display: grid !important;
  place-items: center;
  width: 40px !important;
  height: 40px !important;
  margin: 0 !important;
  flex: none !important;
}

.ov-blog-template .ov-recipe-step h3 {
  margin: 0 0 5px !important;
}

.ov-blog-template .ov-recipe-step p {
  margin: 0 !important;
}

/* The three category cards need the complete row, not half of a split grid. */
.ov-blog-template .ov-story-grid > .ovab-link-grid {
  grid-column: 1 / -1 !important;
  width: 100% !important;
  margin-top: 8px;
}

.ov-blog-template .ovab-link-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  gap: 18px !important;
}

.ov-blog-template .ovab-link-card {
  min-width: 0;
  min-height: 150px;
  padding: 22px !important;
}

.ov-blog-template .ovab-link-card small {
  display: block;
  margin-top: 6px;
  font-size: 15px !important;
  line-height: 1.5 !important;
}

/* Force readable contrast over the dark CTA, including theme overrides. */
.ov-blog-template .ov-cta-section .ov-btn--secondary,
.ov-blog-template .ov-cta-section .ov-btn--secondary:visited {
  border: 1px solid #f8f4e8 !important;
  background: transparent !important;
  color: #f8f4e8 !important;
  opacity: 1 !important;
}

.ov-blog-template .ov-cta-section .ov-btn--secondary:hover,
.ov-blog-template .ov-cta-section .ov-btn--secondary:focus-visible {
  border-color: #ffffff !important;
  background: #f8f4e8 !important;
  color: var(--ov-blog-green) !important;
}

@media (max-width: 767px) {
  .ov-blog-template .ovab-toc {
    padding: 20px 18px !important;
  }

  .ov-blog-template .ov-toc__list,
  .ov-blog-template .ovab-link-grid {
    grid-template-columns: 1fr !important;
  }

  .ov-blog-template .ov-feature-card {
    border-top-width: 3px;
  }

  .ov-blog-template .ov-recipe-step {
    grid-template-columns: 42px minmax(0, 1fr) !important;
    gap: 12px !important;
  }

  .ov-blog-template .ovab-link-card {
    min-height: 0;
    padding: 18px !important;
  }
}

/*
 * V2.2 icon, list and quick-fact corrections
 */

/* Give the quick facts a visible but restrained OmVeda background. */
.ov-blog-template .ov-quickfact {
  border: 1px solid #dce7d2 !important;
  background: linear-gradient(145deg, #f4f8ed, #edf4e4) !important;
  box-shadow: none !important;
}

.ov-blog-template .ov-quickfact__label {
  color: #5f7f32 !important;
}

.ov-blog-template .ov-quickfact__value {
  color: var(--ov-blog-green) !important;
}

/* Remove all theme bullets; the square check box is the only list marker. */
.ov-blog-template .omv-benefit-list,
.ov-blog-template .omv-benefit-list > li {
  list-style: none !important;
}

.ov-blog-template .omv-benefit-list > li::marker {
  content: "" !important;
  font-size: 0 !important;
}

.ov-blog-template .omv-benefit-detail {
  padding-left: 0 !important;
}

/* Reliable category symbols without depending on Font Awesome. */
.ov-blog-template .ovab-link-card .ov-pairing-card__icon {
  display: grid !important;
  place-items: center;
  width: 42px !important;
  height: 42px !important;
  min-width: 42px !important;
  border: 1px solid #cadbb9 !important;
  border-radius: 9px !important;
  background: #edf5e4 !important;
  color: var(--ov-blog-green) !important;
  font-family: Arial, sans-serif !important;
  font-size: 24px !important;
  font-weight: 700 !important;
  line-height: 1 !important;
}

.ov-blog-template .ovab-link-card .ov-pairing-card__icon > i {
  display: none !important;
}

.ov-blog-template .ovab-link-card:nth-child(1) .ov-pairing-card__icon::before {
  content: "☘";
}

.ov-blog-template .ovab-link-card:nth-child(2) .ov-pairing-card__icon::before {
  content: "✦";
}

.ov-blog-template .ovab-link-card:nth-child(3) .ov-pairing-card__icon::before {
  content: "≋";
}

/*
 * V2.3 refined quick facts and mixed title highlights
 */

.ov-blog-template .ov-quickfacts {
  gap: 12px !important;
}

.ov-blog-template .ov-quickfact {
  position: relative;
  display: flex !important;
  flex-direction: column;
  align-items: flex-start !important;
  justify-content: center;
  min-height: 92px;
  padding: 15px 17px 14px !important;
  overflow: hidden;
  border: 1px solid var(--ov-blog-border) !important;
  border-top: 4px solid var(--quick-accent, #7fae4f) !important;
  border-radius: 9px !important;
  background: #ffffff !important;
  box-shadow: 0 5px 16px rgba(36, 77, 54, 0.05) !important;
  text-align: left !important;
}

.ov-blog-template .ov-quickfact:nth-child(1) {
  --quick-accent: #79a84a;
  --quick-highlight: #dfeccf;
}

.ov-blog-template .ov-quickfact:nth-child(2) {
  --quick-accent: #d4a94d;
  --quick-highlight: #f5e8bd;
}

.ov-blog-template .ov-quickfact:nth-child(3) {
  --quick-accent: #a8875d;
  --quick-highlight: #eadbc8;
}

.ov-blog-template .ov-quickfact:nth-child(4) {
  --quick-accent: #6f9480;
  --quick-highlight: #d5e5dc;
}

.ov-blog-template .ov-quickfact__label {
  display: block;
  margin-bottom: 7px;
  color: var(--quick-accent) !important;
  font-size: 11px !important;
  font-weight: 800 !important;
  line-height: 1.2 !important;
  letter-spacing: .09em;
  text-transform: uppercase;
}

.ov-blog-template .ov-quickfact__value {
  display: block;
  min-width: 0;
  color: var(--ov-blog-green) !important;
  font-size: 16px !important;
  line-height: 1.35 !important;
}

.ov-blog-template .ov-quickfact__value strong,
.ov-blog-template .ov-feature-card h3,
.ov-blog-template .ov-recipe-step h3,
.ov-blog-template .ov-recipe-box__title,
.ov-blog-template .ovab-product-card h3 a,
.ov-blog-template .ov-pairing-card__content strong {
  color: var(--ov-blog-green) !important;
  font-weight: 750 !important;
  text-decoration: none !important;
  background-image: linear-gradient(
    transparent 68%,
    var(--title-highlight, var(--ov-blog-highlight)) 68%
  ) !important;
  background-repeat: no-repeat !important;
  background-size: 100% 100% !important;
}

.ov-blog-template .ov-quickfact__value strong {
  --title-highlight: var(--quick-highlight);
}

.ov-blog-template .ov-feature-card:nth-child(1) h3,
.ov-blog-template .ovab-product-card:nth-child(4n + 1) h3 a,
.ov-blog-template .ov-pairing-card:nth-child(1) strong {
  --title-highlight: #dfeccf;
}

.ov-blog-template .ov-feature-card:nth-child(2) h3,
.ov-blog-template .ovab-product-card:nth-child(4n + 2) h3 a,
.ov-blog-template .ov-pairing-card:nth-child(2) strong {
  --title-highlight: #f5e8bd;
}

.ov-blog-template .ov-feature-card:nth-child(3) h3,
.ov-blog-template .ovab-product-card:nth-child(4n + 3) h3 a,
.ov-blog-template .ov-pairing-card:nth-child(3) strong {
  --title-highlight: #d5e5dc;
}

.ov-blog-template .ovab-product-card:nth-child(4n) h3 a,
.ov-blog-template .ov-recipe-step:nth-child(2) h3 {
  --title-highlight: #eadbc8;
}

.ov-blog-template .ov-feature-card h3,
.ov-blog-template .ov-recipe-step h3,
.ov-blog-template .ov-recipe-box__title {
  width: fit-content;
}

@media (max-width: 767px) {
  .ov-blog-template .ov-quickfacts {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 10px !important;
  }

  .ov-blog-template .ov-quickfact {
    min-height: 86px;
    padding: 13px 12px 12px !important;
  }

  .ov-blog-template .ov-quickfact__label {
    margin-bottom: 6px;
    font-size: 10px !important;
  }

  .ov-blog-template .ov-quickfact__value {
    font-size: 14px !important;
  }
}

@media (max-width: 380px) {
  .ov-blog-template .ov-quickfacts {
    grid-template-columns: 1fr !important;
  }
}
