/* Blog row — eyebrow + heading + four post cards in a bordered panel.
 * Strict Lassori palette. */

.cc_srrpi96w_UmZhGiR3ZS .blog {
  background: var(--blog-bg, var(--color-surface));
  padding: 2.5rem 0 3rem;
}

.cc_srrpi96w_UmZhGiR3ZS .blog-inner {
  max-width: 82rem;
  margin: 0 auto;
  padding: 0 1rem;
}

/* ─── Header ──────────────────────────────────────────────── */

.cc_srrpi96w_UmZhGiR3ZS .blog-eyebrow {
  display: block;
  text-align: center;
  font-family: var(--font-label);
  font-size: var(--text-label);
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--blog-accent, var(--color-accent));
}

/* Centred as a flex row rather than by text-align alone: the theme shrink-wraps
 * its headings, so a text-align on a box that is only as wide as the word has
 * nothing to centre. Full width + auto margins + justify-content hold the
 * heading in the middle whatever the theme does to the h2 box. */
.cc_srrpi96w_UmZhGiR3ZS .blog .blog-title {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: center;
  gap: 0 0.3em;
  width: 100%;
  max-width: 82rem;
  margin: 0.375rem auto 0;
  text-align: center;
  font-size: var(--text-h3);
  font-weight: 600;
  letter-spacing: -0.01em;
  line-height: 1.2;
  color: var(--color-text-primary);
}

.cc_srrpi96w_UmZhGiR3ZS .blog .blog-title-accent {
  color: var(--blog-accent, var(--color-accent));
}

.cc_srrpi96w_UmZhGiR3ZS .blog-subtitle {
  margin: 0.5rem auto 0;
  text-align: center;
  max-width: 46rem;
  font-family: var(--font-body);
  font-size: var(--text-small);
  line-height: 1.6;
  color: var(--color-text-secondary);
}

/* ─── Panel + grid ────────────────────────────────────────── */

.cc_srrpi96w_UmZhGiR3ZS .blog-panel {
  margin-top: 1.75rem;
  padding: 1.25rem;
  border: 1px solid var(--color-border);
  border-radius: 6px;
  background: var(--color-surface);
}

.cc_srrpi96w_UmZhGiR3ZS .blog-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.75rem;
}

/* Mobile-first: the section would otherwise stack six full cards and make the
 * homepage enormous on a phone. One card reads in full, the second is cut to a
 * teaser, the rest wait behind the button. Every breakpoint from 640px up
 * restores the full grid. */
.cc_srrpi96w_UmZhGiR3ZS .blog-card:nth-child(n + 3) {
  display: none;
}

.cc_srrpi96w_UmZhGiR3ZS .blog-card:nth-child(2) {
  position: relative;
  max-height: 11rem;
  overflow: hidden;
}

.cc_srrpi96w_UmZhGiR3ZS .blog-card:nth-child(2)::after {
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  height: 6rem;
  background: linear-gradient(
    to bottom,
    rgba(255, 255, 255, 0),
    var(--color-surface)
  );
  pointer-events: none;
}

/* ─── All-posts button ────────────────────────────────────── */

.cc_srrpi96w_UmZhGiR3ZS .blog-more {
  display: flex;
  justify-content: center;
  margin-top: 1.5rem;
}

.cc_srrpi96w_UmZhGiR3ZS .blog-more-btn {
  display: inline-block;
  padding: 0.8125rem 2rem;
  border: 1px solid var(--color-text-primary);
  border-radius: 6px;
  font-size: var(--text-small);
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--color-text-primary);
  transition: background-color 200ms ease, color 200ms ease;
}

.cc_srrpi96w_UmZhGiR3ZS .blog-more-btn:hover, .cc_srrpi96w_UmZhGiR3ZS .blog-more-btn:focus-visible {
  background: var(--color-text-primary);
  color: var(--lassori-white, #fff);
}

/* ─── Card ────────────────────────────────────────────────── */

.cc_srrpi96w_UmZhGiR3ZS .blog-card {
  display: flex;
  flex-direction: column;
}

.cc_srrpi96w_UmZhGiR3ZS .blog-card-media {
  display: block;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border-radius: 4px;
  background: var(--color-surface-alt);
}

.cc_srrpi96w_UmZhGiR3ZS .blog-card-img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  transition: transform 400ms ease;
}

.cc_srrpi96w_UmZhGiR3ZS .blog-card-img--empty {
  background: var(--color-surface-alt);
}

.cc_srrpi96w_UmZhGiR3ZS .blog-card:hover .blog-card-img {
  transform: scale(1.03);
}

.cc_srrpi96w_UmZhGiR3ZS .blog-card-body {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.625rem;
  padding-top: 0.875rem;
}

.cc_srrpi96w_UmZhGiR3ZS .blog-card-title {
  margin: 0;
  font-family: var(--font-body);
  font-size: var(--text-h3);
  font-weight: 700;
  line-height: 1.3;
  color: var(--color-text-primary);
}

.cc_srrpi96w_UmZhGiR3ZS .blog-card-link {
  color: inherit;
  text-decoration: none;
}

.cc_srrpi96w_UmZhGiR3ZS .blog-card-link:hover, .cc_srrpi96w_UmZhGiR3ZS .blog-card-link:focus-visible {
  text-decoration: underline;
}

.cc_srrpi96w_UmZhGiR3ZS .blog-card-category {
  padding: 0.1875rem 0.5rem;
  border: 1px solid var(--blog-accent, var(--color-accent));
  border-radius: 3px;
  background: var(--color-surface);
  font-family: var(--font-label);
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--blog-accent, var(--color-accent));
}

.cc_srrpi96w_UmZhGiR3ZS .blog-card-excerpt {
  margin: 0;
  font-family: var(--font-body);
  font-size: var(--text-small);
  line-height: 1.6;
  color: var(--color-text-secondary);
}

.cc_srrpi96w_UmZhGiR3ZS .blog-card-more {
  margin-top: auto;
  padding-top: 0.75rem;
  align-self: flex-end;
  font-family: var(--font-label);
  font-size: var(--text-label);
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-text-primary);
  text-decoration: none;
  border-bottom: 1px solid var(--color-text-primary);
}

.cc_srrpi96w_UmZhGiR3ZS .blog-card-more:hover {
  color: var(--blog-accent, var(--color-accent));
  border-bottom-color: var(--blog-accent, var(--color-accent));
}

@media (min-width: 640px) {
  .cc_srrpi96w_UmZhGiR3ZS .blog-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  /* Full grid from here up — undo the mobile teaser. */
  .cc_srrpi96w_UmZhGiR3ZS .blog-card:nth-child(n + 3) {
    display: flex;
  }

  .cc_srrpi96w_UmZhGiR3ZS .blog-card:nth-child(2) {
    max-height: none;
    overflow: visible;
  }

  .cc_srrpi96w_UmZhGiR3ZS .blog-card:nth-child(2)::after {
    display: none;
  }

  .cc_srrpi96w_UmZhGiR3ZS .blog-more {
    margin-top: 2rem;
  }
}

@media (min-width: 768px) {
  .cc_srrpi96w_UmZhGiR3ZS .blog {
    padding: 3.5rem 0 4rem;
  }

  .cc_srrpi96w_UmZhGiR3ZS .blog-inner {
    padding: 0 1.5rem;
  }

  .cc_srrpi96w_UmZhGiR3ZS .blog .blog-title {
    font-size: var(--text-h2);
  }

  .cc_srrpi96w_UmZhGiR3ZS .blog-subtitle {
    font-size: var(--text-body);
  }

  .cc_srrpi96w_UmZhGiR3ZS .blog-panel {
    padding: 1.75rem;
  }
}

@media (min-width: 1024px) {
  .cc_srrpi96w_UmZhGiR3ZS .blog-inner {
    padding: 0 2rem;
  }

  /* Three across: six posts land as two complete rows rather than a
   * four-plus-two row with two orphans. */
  .cc_srrpi96w_UmZhGiR3ZS .blog-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
  }
}

/* ─── Editor-only placeholders ────────────────────────────
 * Shown only while the blog has no posts AND we are inside the
 * editor, so the merchant can see the layout before writing.
 * Never rendered on the storefront. */

.cc_srrpi96w_UmZhGiR3ZS .blog-note {
  margin: 0.875rem 0 0;
  padding: 0.5rem 0.75rem;
  border-left: 3px solid var(--blog-accent, var(--color-accent));
  background: var(--color-surface-alt);
  font-family: var(--font-body);
  font-size: var(--text-label);
  line-height: 1.5;
  color: var(--color-text-secondary);
}

.cc_srrpi96w_UmZhGiR3ZS .blog-card[data-placeholder="true"] {
  opacity: 0.55;
}

.cc_srrpi96w_UmZhGiR3ZS .blog-card[data-placeholder="true"] .blog-card-img--empty {
  background: repeating-linear-gradient(
    -45deg,
    var(--color-surface-alt) 0 0.625rem,
    var(--color-surface) 0.625rem 1.25rem
  );
}

.cc_srrpi96w_UmZhGiR3ZS .blog-card[data-placeholder="true"] .blog-card-more {
  border-bottom-style: dashed;
}
