/*
 * The blog (hs-blog.php): /blog/ and single posts. Loaded only on those pages.
 * Layout follows the mockup the user approved on 2026-09-29: index with chips, the newest post
 * large, the rest three to a row; posts in a narrow reading column under a wide cover.
 */

.hs-blog-index, .hs-blog-post { max-width: 1184px; margin: 0 auto; padding: 48px 48px 72px; color: var(--ink); }

.hs-blog-eyebrow {
  margin: 0 0 8px; font-size: 0.75rem; font-weight: 500; letter-spacing: 0.12em; text-transform: uppercase; color: var(--stone-2);
}
.hs-blog-more { font-size: 0.875rem; font-weight: 500; color: var(--clay-deep); text-decoration: none; }
.hs-blog-more:hover { text-decoration: underline; }

/* ---- index ---- */
.hs-blog-head { margin-bottom: 36px; }
.hs-blog-title { font-family: var(--font-display); font-weight: 400; font-size: clamp(2.25rem, 4vw, 3.25rem); line-height: 1.05; margin: 0 0 12px; }
.hs-blog-lead { max-width: 620px; margin: 0 0 24px; font-size: 1.0625rem; line-height: 1.6; color: var(--charcoal); }
.hs-blog-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.hs-blog-chip {
  padding: 7px 16px; border: 1px solid var(--oat); border-radius: 999px; font-size: 0.875rem;
  color: var(--charcoal); text-decoration: none; background: transparent;
}
.hs-blog-chip:hover { border-color: var(--ink); color: var(--ink); }
.hs-blog-chip.is-active { background: var(--ink); border-color: var(--ink); color: var(--paper); }
.hs-blog-empty { color: var(--stone); }

.hs-blog-card { display: flex; flex-direction: column; gap: 14px; }
.hs-blog-card-media { display: block; aspect-ratio: 3 / 2; overflow: hidden; border-radius: 4px; background: var(--canvas); }
.hs-blog-card-img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform var(--dur-base) var(--ease-out); }
.hs-blog-card-media:hover .hs-blog-card-img { transform: scale(1.03); }
.hs-blog-card-title { font-family: var(--font-display); font-weight: 400; font-size: 1.5rem; line-height: 1.2; margin: 0 0 8px; }
.hs-blog-card-title a { color: inherit; text-decoration: none; }
.hs-blog-card-title a:hover { color: var(--clay-deep); }
.hs-blog-card-excerpt { margin: 0 0 12px; font-size: 0.9375rem; line-height: 1.6; color: var(--charcoal); }

.hs-blog-card--lead { display: grid; grid-template-columns: 1.3fr 1fr; gap: 40px; align-items: center; margin-bottom: 56px; }
.hs-blog-card--lead .hs-blog-card-title { font-size: clamp(1.75rem, 3vw, 2.25rem); }
.hs-blog-card--lead .hs-blog-card-excerpt { font-size: 1.0625rem; }

.hs-blog-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 40px 32px; }

/* ---- post ---- */
.hs-blog-post-head { max-width: 760px; margin: 0 auto 28px; }
.hs-blog-crumb { font-size: 0.8125rem; color: var(--stone-2); margin-bottom: 16px; }
.hs-blog-crumb a { color: inherit; text-decoration: none; }
.hs-blog-crumb a:hover { color: var(--clay-deep); }
.hs-blog-post-title { font-family: var(--font-display); font-weight: 400; font-size: clamp(2rem, 4vw, 3rem); line-height: 1.1; margin: 0 0 14px; }
.hs-blog-post-meta { margin: 0; font-size: 0.875rem; color: var(--stone); }
.hs-blog-post-cover { margin: 0 0 40px; }
.hs-blog-post-cover img { width: 100%; max-height: 560px; object-fit: cover; display: block; border-radius: 4px; }

.hs-blog-post-body { max-width: 760px; margin: 0 auto; font-size: 1.0625rem; line-height: 1.75; color: var(--ink-2); }
.hs-blog-post-body > p:first-child { font-size: 1.1875rem; color: var(--ink); }
.hs-blog-post-body h2 { font-family: var(--font-display); font-weight: 400; font-size: 1.75rem; line-height: 1.2; color: var(--ink); margin: 44px 0 12px; }
.hs-blog-post-body h3 { font-size: 1.125rem; font-weight: 500; color: var(--ink); margin: 28px 0 8px; }
.hs-blog-post-body p { margin: 0 0 18px; }
.hs-blog-post-body ul { margin: 0 0 20px; padding-left: 1.2em; }
.hs-blog-post-body li { margin-bottom: 6px; }
.hs-blog-post-body a { color: var(--clay-deep); text-underline-offset: 3px; }
.hs-blog-post-body strong { font-weight: 600; color: var(--ink); }
.hs-blog-post-body table { width: 100%; border-collapse: collapse; margin: 8px 0 28px; font-size: 0.9375rem; line-height: 1.45; }
.hs-blog-post-body th, .hs-blog-post-body td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--canvas-2); vertical-align: top; }
.hs-blog-post-body th { font-weight: 500; color: var(--stone); font-size: 0.8125rem; letter-spacing: 0.04em; background: var(--paper); }
.hs-blog-post-body figure.wp-block-table { margin: 0; overflow-x: auto; }

.hs-blog-product {
  display: grid; grid-template-columns: 112px 1fr auto; gap: 18px; align-items: center;
  margin: 12px 0 28px; padding: 14px; border: 1px solid var(--canvas-2); border-radius: 6px; background: var(--paper);
}
.hs-blog-product-img { display: block; aspect-ratio: 4 / 3; overflow: hidden; border-radius: 4px; background: #fff; }
.hs-blog-product-img img { width: 100%; height: 100%; object-fit: contain; display: block; }
.hs-blog-product .hs-blog-eyebrow { margin-bottom: 4px; }
.hs-blog-product-name { display: block; font-size: 1rem; line-height: 1.35; color: var(--ink); text-decoration: none; }
.hs-blog-product-name:hover { color: var(--clay-deep); }
.hs-blog-product-price { display: block; margin-top: 4px; font-size: 0.9375rem; font-weight: 500; color: var(--clay-deep); }
.hs-blog-post-body .hs-blog-product a { text-decoration: none; }

.hs-blog-faq { margin-top: 48px; }
.hs-blog-faq-item { border-top: 1px solid var(--canvas-2); }
.hs-blog-faq-item:last-child { border-bottom: 1px solid var(--canvas-2); }
.hs-blog-faq-item summary {
  cursor: pointer; list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 16px;
  padding: 16px 0; font-weight: 500; color: var(--ink);
}
.hs-blog-faq-item summary::-webkit-details-marker { display: none; }
.hs-blog-faq-item summary::after {
  content: ""; flex: 0 0 8px; width: 8px; height: 8px; margin-right: 4px; border-right: 1.7px solid var(--stone);
  border-bottom: 1.7px solid var(--stone); transform: rotate(45deg); transition: transform var(--dur-base) var(--ease-out);
}
.hs-blog-faq-item[open] summary::after { transform: rotate(-135deg); }
.hs-blog-faq-item p { margin: 0 0 16px; }

.hs-blog-related { margin: 72px auto 0; padding-top: 40px; border-top: 1px solid var(--canvas-2); }
.hs-blog-related h2 { font-family: var(--font-display); font-weight: 400; font-size: 1.75rem; margin: 0 0 24px; }

@media (max-width: 1024px) {
  .hs-blog-index, .hs-blog-post { padding: 36px 32px 56px; }
  .hs-blog-card--lead { grid-template-columns: 1fr; gap: 20px; }
  .hs-blog-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 767px) {
  .hs-blog-index, .hs-blog-post { padding: 28px 16px 48px; }
  .hs-blog-grid { grid-template-columns: 1fr; }
  .hs-blog-product { grid-template-columns: 88px 1fr; }
  .hs-blog-product > .hs-blog-more { grid-column: 1 / -1; }
  .hs-blog-post-body { font-size: 1rem; }
}
@media (prefers-reduced-motion: reduce) {
  .hs-blog-card-img, .hs-blog-faq-item summary::after { transition: none; }
  .hs-blog-card-media:hover .hs-blog-card-img { transform: none; }
}
