/* HL Blog editorial — archive + article detail (canonical).
 * Grey media slabs removed: frames are white; images object-fit:contain.
 * Scoped under .hl-blog / .hl-blog-* — do not restyle commerce grids.
 */

/* Pull content up: Hummingbird breadcrumb band is ~40px margin-bottom */
body#ets_blog_page .breadcrumb__wrapper {
  margin: 0;
  padding: 0;
  min-height: 0;
  height: 0;
  overflow: hidden;
  border: 0;
}

.hl-blog {
  padding: 0.15rem 0 2.25rem;
  background: #fff;
}

.hl-blog__shell {
  max-width: var(--hl-container-max, 1320px);
}

/* Editorial column inside 1320 shell */
.hl-blog-index {
  max-width: 1240px;
  margin: 0 auto;
}

/* ——— Article detail reading column ——— */
.hl-blog-article {
  max-width: 900px;
  margin: 0 auto;
}

.hl-blog-article__header {
  margin-bottom: 0.95rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid #eef0f3;
}

.hl-blog-article__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  margin: 0 0 0.4rem;
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #6b7280;
}

.hl-blog-article__eyebrow::before {
  content: "";
  display: block;
  width: 1.1rem;
  height: 2px;
  background: var(--hl-red, #d71920);
  flex-shrink: 0;
}

.hl-blog-article__topic {
  margin: 0 0 0.35rem;
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #6b7280;
}

.hl-blog-article__topic a {
  color: inherit;
  text-decoration: none;
}

.hl-blog-article__topic a:hover {
  color: #111827;
  text-decoration: underline;
}

.hl-blog-article__title {
  margin: 0 0 0.45rem;
  font-size: clamp(1.4rem, 1.15rem + 0.9vw, 1.85rem);
  line-height: 1.2;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: #111827;
}

.hl-blog-article__meta {
  margin: 0 0 0.7rem;
  font-size: 0.8125rem;
  color: #6b7280;
}

.hl-blog-article__lead {
  margin: 0;
  font-size: 1rem;
  line-height: 1.5;
  color: #374151;
}

.hl-blog-article__body {
  font-size: 1.015rem;
  line-height: 1.68;
  color: #1f2937;
}

.hl-blog-article__body p {
  margin: 0 0 1em;
}

.hl-blog-article__body h2,
.hl-blog-article__body h3 {
  margin: 1.35em 0 0.5em;
  line-height: 1.3;
  color: #111827;
}

.hl-blog-article__body ul,
.hl-blog-article__body ol {
  margin: 0 0 1em;
  padding-left: 1.25em;
}

.hl-blog-article__body img {
  max-width: 100%;
  height: auto;
}

.hl-blog-article__archive {
  margin: 1.5rem 0 0;
  font-size: 0.875rem;
}

.hl-blog-article__archive a {
  color: #111827;
  font-weight: 600;
  text-decoration: none;
}

.hl-blog-article__archive a:hover {
  color: var(--hl-red, #d71920);
}

/* ——— Shared media (white canvas, no grey slabs) ——— */
.hl-blog-media {
  display: block;
  width: 100%;
  margin: 0;
}

.hl-blog-media__frame {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  overflow: hidden;
  background: #fff;
  border: 0;
  border-radius: 0;
  box-shadow: none;
}

.hl-blog-media__frame img {
  display: block;
  max-width: 88%;
  max-height: 92%;
  width: auto;
  height: auto;
  object-fit: contain;
  object-position: center;
}

.hl-blog-media--hero .hl-blog-media__frame {
  aspect-ratio: auto;
  height: 100%;
  min-height: 160px;
  max-height: 200px;
  margin: 0;
  border: 0;
  border-radius: 0;
  background: #fff;
}

.hl-blog-media--lead .hl-blog-media__frame {
  aspect-ratio: auto;
  max-height: none;
}

.hl-blog-media--card .hl-blog-media__frame {
  aspect-ratio: auto;
  max-height: none;
}

.hl-blog-article__media {
  margin: 0;
}

.hl-blog-article__hero .hl-blog-article__media {
  margin: 0;
  height: 100%;
}

/* ——— Archive intro ——— */
.hl-blog-index__header {
  margin: 0 0 0.85rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid #eef0f3;
}

/* Restrained workshop niche — small editorial mark, not a hero badge */
.hl-blog-index__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  margin: 0 0 0.35rem;
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #6b7280;
}

.hl-blog-index__eyebrow::before {
  content: "";
  display: block;
  width: 1.1rem;
  height: 2px;
  background: var(--hl-red, #d71920);
  flex-shrink: 0;
}

.hl-blog-index__title {
  margin: 0 0 0.3rem;
  font-family: Mulish, "Segoe UI", sans-serif;
  font-size: clamp(1.55rem, 1.3rem + 0.85vw, 1.95rem);
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: -0.02em;
  color: #111827;
}

.hl-blog-index__lead {
  margin: 0;
  max-width: 34rem;
  font-size: 0.875rem;
  line-height: 1.45;
  color: #4b5563;
}

/* ——— Topic chips ——— */
.hl-blog-topics {
  margin: 0 0 1.15rem;
}

.hl-blog-topics__list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 0.4rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.hl-blog-topics__link {
  display: inline-flex;
  align-items: center;
  min-height: 1.9rem;
  padding: 0.25rem 0.7rem;
  font-size: 0.75rem;
  font-weight: 600;
  line-height: 1.2;
  color: #374151;
  text-decoration: none;
  border: 1px solid #e5e7eb;
  border-radius: 3px;
  background: #fff;
  transition: background-color 160ms ease, color 160ms ease, border-color 160ms ease;
}

.hl-blog-topics__link:hover {
  border-color: #9ca3af;
  color: #111827;
}

/* Quiet active state — hairline red underline instead of heavy black slab.
 * custom.css forces `a { color: black !important }` — keep readable contrast. */
.hl-blog-topics__link.is-active {
  border-color: #d1d5db;
  background: #f9fafb;
  color: #111827 !important;
  box-shadow: inset 0 -2px 0 var(--hl-red, #d71920);
}

.hl-blog-topics__link.is-active:hover {
  border-color: #9ca3af;
  background: #f3f4f6;
  color: #111827 !important;
  text-decoration: none;
}

.hl-blog-topics__link:focus-visible {
  outline: 2px solid var(--hl-red, #d71920);
  outline-offset: 2px;
}

/* Lead: soft surface so it doesn't melt into the grid */
.hl-blog-lead {
  margin: 0 0 1.15rem;
  padding: 0.85rem 0.95rem 0.95rem;
  border: 1px solid #e6e9ee;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 1px 2px rgba(17, 24, 39, 0.035);
}

.hl-blog-lead__layout {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
  gap: 1.1rem 1.5rem;
  align-items: center;
}

.hl-blog-lead__media-link {
  display: block;
  text-decoration: none;
}

.hl-blog-lead__body {
  min-width: 0;
  max-width: 31rem;
}

.hl-blog-lead__title {
  margin: 0.25rem 0 0.35rem;
  font-size: clamp(1.25rem, 1.05rem + 0.7vw, 1.55rem);
  font-weight: 700;
  line-height: 1.22;
  color: #111827;
}

.hl-blog-lead__title a {
  color: inherit;
  text-decoration: none;
}

.hl-blog-lead__title a:hover {
  color: var(--hl-red, #d71920);
}

.hl-blog-lead__excerpt {
  margin: 0.4rem 0 0.65rem;
  font-size: 0.875rem;
  line-height: 1.5;
  color: #4b5563;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  overflow: hidden;
}

/* ——— Lower card grid ——— */
.hl-blog-card-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  column-gap: 1rem;
  row-gap: 1rem;
  margin: 0 0 1.25rem;
  padding: 0;
  list-style: none;
}

.hl-blog-card {
  display: flex;
  flex-direction: column;
  min-width: 0;
  height: 100%;
  padding: 0.75rem 0.75rem 0.9rem;
  background: #fff;
  border: 1px solid #e6e9ee;
  border-radius: 8px;
  box-shadow: 0 1px 2px rgba(17, 24, 39, 0.035);
  box-sizing: border-box;
  transition: border-color 160ms ease, box-shadow 160ms ease;
}

.hl-blog-card:hover {
  border-color: #d5dae2;
  box-shadow: 0 4px 14px rgba(17, 24, 39, 0.06);
}

.hl-blog-card__media-link {
  display: block;
  text-decoration: none;
  margin: 0 0 0.15rem;
}

.hl-blog-card .hl-blog-media--card .hl-blog-media__frame {
  border-radius: 4px;
  border-bottom: 1px solid #eef0f3;
}

.hl-blog-card__body {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  padding: 0.55rem 0.1rem 0;
  flex: 1;
}

.hl-blog-card__topic {
  margin: 0;
  font-size: 0.625rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #6b7280;
}

.hl-blog-card__title {
  margin: 0;
  min-height: 2.5em;
  font-size: 0.975rem;
  font-weight: 700;
  line-height: 1.28;
  color: #111827;
}

.hl-blog-card__title a {
  color: inherit;
  text-decoration: none;
}

.hl-blog-card__title a:hover {
  color: var(--hl-red, #d71920);
}

.hl-blog-card__meta {
  margin: 0;
  font-size: 0.75rem;
  color: #9ca3af;
}

.hl-blog-card__excerpt {
  margin: 0.15rem 0 0;
  font-size: 0.875rem;
  line-height: 1.55;
  color: #4b5563;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  overflow: hidden;
}

.hl-blog-card__cta {
  display: inline-block;
  margin-top: auto;
  padding-top: 0.45rem;
  font-size: 0.8125rem;
  font-weight: 600;
  color: #1f2937;
  text-decoration: none;
  transition: color 160ms ease;
}

.hl-blog-card__cta:hover {
  color: var(--hl-red, #d71920);
}

.hl-blog-lead__media-link:hover img,
.hl-blog-card__media-link:hover img {
  transform: scale(1.015);
}

.hl-blog-media__frame img {
  transition: transform 180ms ease;
}

@media (prefers-reduced-motion: reduce) {
  .hl-blog-topics__link,
  .hl-blog-card__cta,
  .hl-blog-media__frame img {
    transition: none;
  }

  .hl-blog-lead__media-link:hover img,
  .hl-blog-card__media-link:hover img {
    transform: none;
  }
}

/* ——— Related (article detail) — full shell width, mixed topics ——— */
.hl-blog-related {
  max-width: 1240px;
  margin: 1.75rem auto 0;
  padding: 1.35rem 0 0;
  border-top: 1px solid #eef0f3;
}

.hl-blog-related__head {
  margin: 0 0 0.95rem;
  max-width: 36rem;
}

.hl-blog-related__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin: 0 0 0.3rem;
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #6b7280;
}

.hl-blog-related__eyebrow::before {
  content: "";
  display: block;
  width: 1rem;
  height: 2px;
  background: var(--hl-red, #d71920);
  flex-shrink: 0;
}

.hl-blog-related__lead {
  margin: 0.3rem 0 0;
  font-size: 0.875rem;
  line-height: 1.45;
  color: #6b7280;
}

.hl-blog-sec-title {
  margin: 0;
  font-size: 1.2rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: #111827;
}

.hl-blog-card-grid--related {
  margin-bottom: 0.5rem;
}

/* ——— Pagination / count ——— */
.hl-blog-pagination {
  margin-top: 0.5rem;
  text-align: center;
}

.hl-blog-pagination__count {
  margin: 0 0 0.5rem;
  font-size: 0.875rem;
  color: #6b7280;
}

.hl-blog-pagination__nav .results {
  display: none !important;
}

.hl-blog-pagination__nav a,
.hl-blog-pagination__nav span {
  display: inline-block;
  margin: 0 0.15rem;
  padding: 0.3rem 0.55rem;
  font-size: 0.875rem;
  text-decoration: none;
  color: #111827;
}

.hl-blog-pagination__nav a:hover {
  color: var(--hl-red, #d71920);
}

.hl-blog-empty {
  margin: 1.5rem 0;
  font-size: 0.95rem;
  color: #6b7280;
}

/* Hide legacy ETS sidebar chrome if parent still injects it.
 * !important: ETS module CSS is high-specificity; required to keep full-width archive. */
body#ets_blog_page #left-column,
.hl-blog #left-column,
.hl-blog .ets_blog_sidebar,
.ets_blog_content #left-column {
  display: none !important;
}

/* Neutralize ETS owl/module chrome on archive shell */
body#ets_blog_page .owl-carousel,
body#ets_blog_page .owl-theme {
  display: block;
}

body#ets_blog_page .ets_blog_content .title_block,
body#ets_blog_page .block_categories,
body#ets_blog_page .block-categories {
  display: none;
}

@media (max-width: 991.98px) {
  .hl-blog-lead__layout {
    grid-template-columns: 1fr;
    gap: 0.75rem;
  }

  .hl-blog-lead__body {
    max-width: none;
  }

  .hl-blog-media--lead .hl-blog-media__frame {
    max-height: 240px;
  }

  .hl-blog-card-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: 0.85rem;
    row-gap: 1rem;
  }
}

@media (max-width: 767.98px) {
  .hl-blog {
    padding: 0.1rem 0 1.75rem;
  }

  .hl-blog-index__header {
    margin-bottom: 0.7rem;
    padding-bottom: 0.6rem;
  }

  .hl-blog-index__title {
    font-size: 1.5rem;
  }

  .hl-blog-index__lead {
    font-size: 0.8125rem;
  }

  .hl-blog-topics {
    margin-bottom: 0.95rem;
  }

  .hl-blog-lead {
    margin-bottom: 0.95rem;
    padding: 0.75rem 0.75rem 0.85rem;
  }

  .hl-blog-lead__title {
    font-size: 1.2rem;
  }

  .hl-blog-media--lead .hl-blog-media__frame {
    aspect-ratio: 16 / 10;
    max-height: 200px;
  }

  .hl-blog-media--card .hl-blog-media__frame {
    max-height: 160px;
  }

  .hl-blog-card-grid {
    grid-template-columns: 1fr;
    row-gap: 0.75rem;
  }

  .hl-blog-card {
    padding: 0.7rem 0.7rem 0.85rem;
    margin: 0;
  }

  .hl-blog-card__title {
    min-height: 0;
    font-size: 1rem;
  }

  .hl-blog-media--hero .hl-blog-media__frame {
    max-height: 220px;
  }
}

/* ——— Blog Studio generated article body / product cards ——— */
.hl-blog-article__body a {
  color: #111827;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.hl-blog-article__body a:hover {
  color: var(--hl-red, #d71920);
}

.hl-blog-article__body h2 {
  font-size: 1.28rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  padding-top: 0.35rem;
  border-top: 1px solid #eef0f3;
}

.hl-blog-article__body h2:first-child {
  border-top: 0;
  padding-top: 0;
}

.hl-blog-article__body h3 {
  font-size: 1.05rem;
  font-weight: 700;
}

.hl-blog-cat-heading a {
  color: inherit;
  text-decoration: none;
}

.hl-blog-cat-heading a:hover {
  color: var(--hl-red, #d71920);
  text-decoration: underline;
}

.hl-blog-cat-block {
  margin: 0 0 0.35rem;
}

/* Generated product rows (Blog Studio) */
.hl-blog-product-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.85rem;
  margin: 1.15rem 0 1.4rem;
  clear: both;
}

.hl-blog-pcard {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  padding: 0.7rem;
  border: 1px solid #e6e9ee;
  border-radius: 10px;
  background: #fff;
  min-width: 0;
  box-shadow: 0 1px 3px rgba(17, 24, 39, 0.05);
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.hl-blog-pcard:hover {
  transform: translateY(-3px);
  border-color: #d5dae2;
  box-shadow: 0 8px 22px rgba(17, 24, 39, 0.1);
}

@media (prefers-reduced-motion: reduce) {
  .hl-blog-pcard {
    transition: none;
  }
  .hl-blog-pcard:hover {
    transform: none;
  }
}

.hl-blog-pcard__img {
  display: flex;
  align-items: center;
  justify-content: center;
  aspect-ratio: 1 / 1;
  max-height: 170px;
  background: #fff;
  border-radius: 8px;
  overflow: hidden;
}

.hl-blog-pcard__img img {
  display: block;
  max-width: 88%;
  max-height: 88%;
  width: auto;
  height: auto;
  object-fit: contain;
}

.hl-blog-pcard__img--empty {
  background: #f8fafc;
}

.hl-blog-pcard__title {
  margin: 0;
  min-height: 2.6em;
  font-size: 0.875rem;
  font-weight: 650;
  line-height: 1.3;
}

.hl-blog-pcard__title a {
  color: #111827;
  text-decoration: none;
}

.hl-blog-pcard__title a:hover {
  color: var(--hl-red, #d71920);
}

.hl-blog-pcard__cta {
  margin-top: auto;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--hl-red, #d71920);
  text-decoration: none;
}

.hl-blog-pcard__cta:hover {
  text-decoration: underline;
}

.hl-blog-related-cats {
  margin: 1.5rem 0 0.5rem;
  padding: 1rem 1.05rem;
  border: 1px solid #e6e9ee;
  border-radius: 10px;
  background: #fafbfc;
}

.hl-blog-related-cats h3 {
  margin: 0 0 0.55rem;
  font-size: 0.95rem;
  font-weight: 700;
  color: #111827;
}

.hl-blog-related-cats ul {
  margin: 0;
  padding-left: 1.1rem;
}

.hl-blog-related-cats li {
  margin: 0.3rem 0;
}

@media (max-width: 767.98px) {
  .hl-blog-product-row {
    grid-template-columns: 1fr;
    gap: 0.7rem;
  }

  .hl-blog-pcard__img {
    max-height: 200px;
  }

  .hl-blog-pcard__title {
    min-height: 0;
  }
}

@media (min-width: 768px) and (max-width: 980px) {
  .hl-blog-product-row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

