.blog-archive-hero,
.blog-post-hero,
.blog-sidebar-box,
.blog-card,
.blog-product-ad,
.blog-empty,
.blog-seo-text {
  border: 1px solid rgba(229, 231, 235, 0.82);
  background: rgba(255, 255, 255, 0.92);
  box-shadow: var(--shadow-md);
}

.blog-archive-hero {
  display: grid;
  gap: 18px;
  padding: 22px;
  border-radius: 24px;
}

.blog-archive-hero h1,
.blog-post-hero h1 {
  margin: 0;
  color: var(--text-primary);
  font-size: 28px;
  line-height: 1.45;
}

.blog-archive-hero p,
.blog-post-hero p {
  margin: 0;
  color: var(--text-secondary);
  line-height: 2;
}

.blog-layout {
  display: grid;
  gap: 20px;
  align-items: start;
}

.blog-archive {
  display: grid;
  gap: 18px;
  min-width: 0;
}

.blog-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.blog-toolbar > span {
  color: var(--text-secondary);
  font-weight: 800;
}

.blog-sort {
  display: inline-flex;
  gap: 6px;
  padding: 5px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.86);
  border: 1px solid var(--border-soft);
}

.blog-sort a {
  min-height: 36px;
  padding: 7px 12px;
  border-radius: 14px;
  color: var(--text-secondary);
  font-size: 13px;
  font-weight: 800;
}

.blog-sort a.is-active {
  background: var(--action-primary);
  color: #fff;
}

.blog-layout.is-loading .blog-archive {
  opacity: 0.68;
  pointer-events: none;
}

.blog-sort-feedback {
  margin: 0;
  padding: 10px 12px;
  border-radius: 16px;
  background: rgba(239, 68, 68, 0.08);
  color: var(--error);
  font-size: 13px;
  font-weight: 800;
}

.blog-grid {
  display: grid;
  gap: 16px;
}

.blog-card {
  display: grid;
  overflow: hidden;
  border-radius: 24px;
}

.blog-card__media {
  position: relative;
  display: block;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: var(--bg-soft);
}

.blog-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 240ms ease;
}

.blog-card:hover .blog-card__media img {
  transform: scale(1.035);
}

.blog-card__body {
  display: grid;
  gap: 10px;
  padding: 16px;
}

.blog-card__meta,
.blog-post-hero__meta {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  color: var(--text-muted);
  font-size: 12px;
  font-weight: 800;
}

.blog-card__meta a,
.blog-card__meta span,
.blog-post-hero__meta span {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  min-height: 28px;
  padding-inline: 9px;
  border-radius: 999px;
  background: rgba(201, 162, 39, 0.1);
  color: var(--gold-deep);
}

.blog-card h2 {
  margin: 0;
  color: var(--text-primary);
  font-size: 18px;
  line-height: 1.65;
}

.blog-card h2 a {
  color: inherit;
}

.blog-card__link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  width: fit-content;
  min-height: 40px;
  padding: 8px 14px;
  border-radius: 16px;
  background: var(--action-primary);
  color: #fff;
  font-size: 13px;
  font-weight: 900;
  box-shadow: 0 8px 18px rgba(15, 23, 42, 0.12);
  transition: background 180ms ease, transform 180ms ease, box-shadow 180ms ease;
}

.blog-card__link:hover,
.blog-card__link:focus-visible {
  background: var(--action-primary-hover);
  color: #fff;
  transform: translateY(-1px);
  box-shadow: 0 10px 22px rgba(15, 23, 42, 0.16);
}

.blog-card__link i {
  font-size: 18px;
  line-height: 1;
}

.blog-sidebar {
  display: grid;
  gap: 14px;
}

.blog-sidebar-box {
  display: grid;
  gap: 12px;
  padding: 16px;
  border-radius: 24px;
}

.blog-sidebar-box h2 {
  margin: 0;
  font-size: 16px;
}

.blog-sidebar-list,
.blog-sidebar-products,
.blog-sidebar-chiplist {
  display: grid;
  gap: 8px;
}

.blog-sidebar-list a,
.blog-sidebar-products a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  min-height: 44px;
  padding: 10px 12px;
  border-radius: 16px;
  background: var(--bg-soft);
  color: var(--text-primary);
  font-size: 13px;
  font-weight: 800;
}

.blog-sidebar-list small,
.blog-sidebar-empty {
  color: var(--text-muted);
  font-size: 12px;
}

.blog-sidebar-chiplist {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.blog-sidebar-chiplist a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  padding-inline: 10px;
  border-radius: 14px;
  background: var(--bg-soft);
  color: var(--text-secondary);
  font-size: 12px;
  font-weight: 800;
  text-align: center;
}

.blog-sidebar-products a {
  justify-content: flex-start;
}

.blog-sidebar-products img {
  width: 58px;
  height: 58px;
  border-radius: 16px;
  object-fit: cover;
  background: var(--bg-soft);
}

.blog-sidebar-products strong,
.blog-sidebar-products small {
  display: block;
}

.blog-sidebar-products small {
  color: var(--gold-deep);
}

.blog-post-hero {
  display: grid;
  gap: 18px;
  overflow: hidden;
  border-radius: 24px;
  max-width: 1180px;
  margin-inline: auto;
}

.blog-post-hero__copy {
  display: grid;
  gap: 14px;
  padding: 20px;
}

.blog-post-hero__media {
  width: 100%;
  aspect-ratio: 1200 / 630;
  overflow: hidden;
  background: #fff;
}

.blog-post-hero__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.blog-post-body {
  display: grid;
  gap: 22px;
  min-width: 0;
  padding: 18px;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(229, 231, 235, 0.82);
  box-shadow: var(--shadow-md);
}

.blog-product-ad {
  display: grid;
  gap: 14px;
  margin-block: 22px;
  padding: 16px;
  border-radius: 24px;
  font-family: inherit;
}

.blog-product-ad * {
  font-family: inherit;
}

.blog-product-ad__head {
  display: grid;
  gap: 4px;
}

.blog-product-ad__head h2 {
  margin: 0;
  font-size: 18px;
}

.blog-product-ad__grid {
  display: grid;
  gap: 10px;
}

.blog-product-card {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px;
  border-radius: 18px;
  background: var(--bg-soft);
}

.blog-product-card__media {
  width: 64px;
  height: 64px;
  flex: 0 0 auto;
  overflow: hidden;
  border-radius: 16px;
  background: #fff;
}

.blog-product-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.blog-product-card__copy {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.blog-product-card__copy strong {
  color: var(--text-primary);
  font-size: 13px;
  line-height: 1.7;
}

.blog-product-card__copy small {
  color: var(--gold-deep);
  font-size: 12px;
  font-weight: 900;
}

.blog-tags {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.blog-tags a {
  display: inline-flex;
  min-height: 34px;
  align-items: center;
  padding-inline: 12px;
  border-radius: 999px;
  background: var(--bg-soft);
  color: var(--text-secondary);
  font-size: 12px;
  font-weight: 800;
}

.blog-pagination {
  display: flex;
  justify-content: center;
  gap: 8px;
  flex-wrap: wrap;
}

.blog-pagination a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 15px;
  background: #fff;
  border: 1px solid var(--border-soft);
  color: var(--text-secondary);
  font-weight: 900;
}

.blog-pagination a.is-active {
  background: var(--action-primary);
  color: #fff;
}

.blog-empty {
  display: grid;
  gap: 6px;
  padding: 24px;
  border-radius: 24px;
  text-align: center;
}

.blog-empty span {
  color: var(--text-secondary);
}

.blog-seo-text {
  padding: 20px;
  border-radius: 24px;
}

.blog-home-showcase {
  overflow: hidden;
}

.blog-home-rail {
  display: grid;
  gap: 16px;
}

@media (min-width: 760px) {
  .blog-grid,
  .blog-home-rail {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .blog-product-ad__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 1080px) {
  .blog-archive-hero {
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: end;
    padding: 28px;
  }

  .blog-layout {
    grid-template-columns: minmax(0, 1fr) 320px;
  }

  .blog-layout--post {
    grid-template-columns: minmax(0, 820px) 320px;
    justify-content: center;
  }

  .blog-post-hero {
    grid-template-columns: minmax(0, 1fr) minmax(360px, 500px);
    align-items: center;
    min-height: 0;
  }

  .blog-post-hero__copy {
    align-content: center;
    padding: 34px;
  }

  .blog-post-hero__media {
    justify-self: center;
    max-width: 500px;
    max-height: 360px;
    margin: 20px;
    border-radius: 22px;
  }

  .blog-post-hero h1 {
    font-size: 34px;
  }

  .blog-post-body {
    padding: 28px;
  }

  .blog-sidebar {
    position: sticky;
    top: 112px;
  }
}

@media (max-width: 759px) {
  .blog-archive-hero,
  .blog-post-hero,
  .blog-card,
  .blog-sidebar-box,
  .blog-post-body,
  .blog-product-ad {
    border-radius: 22px;
  }

  .blog-grid,
  .blog-home-rail {
    display: flex;
    gap: 14px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    padding-bottom: 4px;
  }

  .blog-grid > .blog-card,
  .blog-home-rail > .blog-card {
    min-width: min(86vw, 340px);
    scroll-snap-align: start;
  }

  .blog-layout .blog-grid {
    display: grid;
    overflow: visible;
  }

  .blog-layout .blog-grid > .blog-card {
    min-width: 0;
  }

  .blog-post-hero h1 {
    font-size: 26px;
  }

  .blog-post-hero {
    gap: 0;
  }

  .blog-post-hero__media {
    order: -1;
  }

  .blog-post-hero__copy h1 {
    order: -1;
  }
}

@media (max-width: 1023.98px), (display-mode: standalone) {
  body.page-home .blog-home-showcase {
    display: grid;
    gap: 12px;
    padding: 14px;
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.94);
    border: 1px solid rgba(229, 231, 235, 0.86);
    box-shadow: var(--shadow-md);
    overflow: hidden;
  }

  body.page-home .blog-home-showcase .section-head {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
  }

  body.page-home .blog-home-showcase .section-head > div:first-child {
    display: grid;
    gap: 4px;
    min-width: 0;
  }

  body.page-home .blog-home-showcase .eyebrow {
    min-height: 20px;
    font-size: 10px;
  }

  body.page-home .blog-home-showcase .section-head h2 {
    max-width: 22ch;
    font-size: 16px;
    line-height: 1.55;
  }

  body.page-home .blog-home-showcase .section-head .button {
    flex: 0 0 auto;
    min-height: 34px;
    padding-inline: 11px;
    border-radius: 999px;
    font-size: 11px;
  }

  body.page-home .blog-home-rail {
    display: grid;
    gap: 10px;
    overflow: visible;
    padding: 0;
    scroll-snap-type: none;
  }

  body.page-home .blog-home-rail > .blog-card {
    display: grid;
    grid-template-columns: 88px minmax(0, 1fr);
    min-width: 0;
    overflow: hidden;
    border-radius: 18px;
    background: var(--bg-soft);
    border: 1px solid rgba(229, 231, 235, 0.78);
    box-shadow: none;
    scroll-snap-align: unset;
  }

  body.page-home .blog-home-rail > .blog-card:nth-child(n+5) {
    display: none;
  }

  body.page-home .blog-home-rail .blog-card__media {
    height: 100%;
    min-height: 94px;
    aspect-ratio: auto;
    border-radius: 0;
  }

  body.page-home .blog-home-rail .blog-card__body {
    align-content: center;
    gap: 6px;
    min-width: 0;
    padding: 10px 11px;
  }

  body.page-home .blog-home-rail .blog-card__meta {
    gap: 5px;
    flex-wrap: nowrap;
    min-width: 0;
    overflow: hidden;
    font-size: 10px;
  }

  body.page-home .blog-home-rail .blog-card__meta a,
  body.page-home .blog-home-rail .blog-card__meta span {
    min-height: 22px;
    max-width: 100%;
    padding-inline: 7px;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
  }

  body.page-home .blog-home-rail .blog-card h2 {
    display: -webkit-box;
    overflow: hidden;
    color: var(--text-primary);
    font-size: 13px;
    line-height: 1.75;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
  }

  body.page-home .blog-home-rail .blog-card__link {
    justify-content: flex-start;
    width: fit-content;
    min-height: 0;
    padding: 0;
    border-radius: 0;
    background: transparent;
    color: var(--action-primary);
    box-shadow: none;
    font-size: 11px;
  }

  body.page-home .blog-home-rail .blog-card__link i {
    font-size: 16px;
  }
}
