.lpc-blog-refresh,
.lpc-blog-products,
.lpc-blog-related,
.lpc-blog-author {
  margin: clamp(1.8rem, 4vw, 3.2rem) 0;
}

.lpc-article__header h1 {
  font-size: clamp(2.15rem, 4vw, 3.35rem);
  line-height: 1.06;
  text-wrap: balance;
}

.lpc-article .entry-content .lpc-legacy-v2 > h2.lpc-legacy-heading {
  margin-top: clamp(1.65rem, 4vw, 2.8rem);
  padding: 0;
  background: transparent;
  border: 0;
  box-shadow: none;
  font-size: clamp(1.85rem, 3vw, 2.4rem);
  line-height: 1.08;
}

.lpc-article .entry-content .lpc-legacy-v2 > h3.lpc-legacy-heading {
  width: 100%;
  margin: clamp(1rem, 2.5vw, 1.6rem) 0 0.25rem;
  padding: 0 0 0.42rem;
  color: var(--violet, #6d557d);
  background: transparent;
  border: 0;
  border-bottom: 1px dashed rgba(109, 85, 125, 0.42);
  box-shadow: none;
  font-size: clamp(1.25rem, 2vw, 1.65rem);
  font-weight: 600;
  line-height: 1.2;
  text-align: left;
}

.lpc-blog-refresh {
  padding: clamp(1.25rem, 3vw, 2.2rem);
  background:
    linear-gradient(rgba(255, 250, 240, 0.96), rgba(248, 235, 211, 0.96)),
    url("../../themes/lpc-v2/assets/images/paper-texture.jpg") center / cover;
  border: 1px solid rgba(74, 49, 31, 0.15);
  box-shadow: 0 16px 34px rgba(70, 46, 28, 0.12);
  transform: rotate(-0.2deg);
}

.lpc-blog-refresh > h2,
.lpc-blog-products > h2,
.lpc-blog-related > h2,
.lpc-blog-author h2 {
  margin-top: 0;
}

.lpc-blog-refresh__date {
  margin-bottom: 1.35rem;
  color: rgba(31, 23, 18, 0.68);
  font-size: 0.92rem;
}

.lpc-article__updated {
  display: block;
  margin-top: 0.35rem;
  color: var(--violet, #6d557d);
  font-family: var(--sans, sans-serif);
  font-size: 0.92rem;
  font-weight: 700;
}

.lpc-blog-toc {
  margin: 1.35rem 0;
  padding: 1rem 1.1rem;
  background: rgba(255, 255, 255, 0.48);
  border: 1px dashed rgba(109, 85, 125, 0.38);
  border-radius: 8px;
}

.lpc-blog-toc ol {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 0.55rem;
  margin: 0.8rem 0 0;
  padding: 0;
  list-style: none;
}

.lpc-blog-toc a {
  display: block;
  padding: 0.58rem 0.7rem;
  color: var(--ink, #1f1712);
  background: rgba(255, 248, 235, 0.86);
  border: 1px solid rgba(74, 49, 31, 0.13);
  border-radius: 999px;
  font-size: 0.9rem;
  text-align: center;
  text-decoration: none;
}

.lpc-blog-toc a:hover,
.lpc-blog-toc a:focus-visible {
  color: #fff;
  background: var(--violet, #6d557d);
}

.lpc-blog-safety {
  margin-top: 1.35rem;
  padding: 1.1rem 1.2rem;
  background: rgba(221, 210, 222, 0.48);
  border-left: 6px solid var(--violet, #6d557d);
}

.lpc-blog-safety h2 {
  margin: 0 0 0.65rem;
  font-size: clamp(1.35rem, 2.5vw, 1.75rem);
}

.lpc-blog-safety p:last-of-type {
  margin-bottom: 0.7rem;
}

.lpc-blog-products {
  padding: clamp(1.25rem, 3vw, 2rem);
  background: rgba(221, 210, 222, 0.38);
  border: 1px solid rgba(109, 85, 125, 0.2);
}

.lpc-blog-products__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(220px, 100%), 1fr));
  gap: 1rem;
  margin: 1.25rem 0 1.4rem;
}

.lpc-blog-products__grid:has(> .lpc-blog-product-card:only-child) {
  grid-template-columns: minmax(min(220px, 100%), 444px);
  justify-content: center;
}

.lpc-blog-product-card {
  overflow: hidden;
  background: #fffaf0;
  border: 1px solid rgba(74, 49, 31, 0.13);
  border-radius: 8px;
  box-shadow: 0 10px 24px rgba(70, 46, 28, 0.1);
}

.lpc-blog-product-card a {
  display: grid;
  height: 100%;
  color: var(--ink, #1f1712);
  text-decoration: none;
}

.lpc-blog-product-card img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
}

.lpc-blog-product-card a > span {
  display: grid;
  gap: 0.35rem;
  align-content: start;
  padding: 0.9rem;
}

.lpc-blog-product-card small {
  display: inline-flex;
  align-items: baseline;
  gap: 0.18em;
  color: var(--violet, #6d557d);
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.35;
}

.lpc-blog-product-card small .woocommerce-Price-amount,
.lpc-blog-product-card small .woocommerce-Price-currencySymbol {
  display: inline;
  width: auto;
  margin: 0;
  padding: 0;
  line-height: inherit;
}

.lpc-blog-related ul {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  margin: 1.2rem 0 0;
  padding: 0;
  list-style: none;
}

.lpc-blog-related a {
  display: grid;
  gap: 0.55rem;
  height: 100%;
  padding: 1.05rem;
  color: var(--ink, #1f1712);
  background: #fffaf0;
  border: 1px solid rgba(74, 49, 31, 0.13);
  box-shadow: 0 9px 20px rgba(70, 46, 28, 0.09);
  text-decoration: none;
}

.lpc-blog-related a:hover,
.lpc-blog-related a:focus-visible,
.lpc-blog-product-card a:hover,
.lpc-blog-product-card a:focus-visible {
  border-color: var(--violet, #6d557d);
  transform: translateY(-2px);
}

.lpc-blog-related span {
  color: rgba(31, 23, 18, 0.7);
  font-size: 0.92rem;
  line-height: 1.55;
}

.lpc-blog-author {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 1.5rem;
  align-items: center;
  padding: clamp(1.25rem, 3vw, 2rem);
  background:
    linear-gradient(rgba(255, 250, 240, 0.94), rgba(248, 235, 211, 0.94)),
    url("../../themes/lpc-v2/assets/images/paper-texture.jpg") center / cover;
  border: 1px solid rgba(74, 49, 31, 0.15);
}

.lpc-blog-author__actions {
  display: grid;
  gap: 0.75rem;
  justify-items: center;
  text-align: center;
}

.lpc-blog-author__actions > a:not(.button) {
  max-width: 240px;
  font-size: 0.92rem;
}

.lpc-article .entry-content > h2[id] {
  scroll-margin-top: 8rem;
}

@media (max-width: 820px) {
  .lpc-blog-toc ol,
  .lpc-blog-related ul {
    grid-template-columns: 1fr;
  }

  .lpc-blog-author {
    grid-template-columns: 1fr;
  }

  .lpc-blog-author__actions {
    justify-items: start;
    text-align: left;
  }
}

@media (prefers-reduced-motion: reduce) {
  .lpc-blog-related a,
  .lpc-blog-product-card a {
    transform: none !important;
  }
}
