/**
 * Madhuma blog single / article detail styles.
 * Loaded only on blog article pages via $load_blog_article.
 */

/* Theme main.min.css sets `main { overflow: hidden }` which kills position:sticky
   on TOC / commerce rails. This stylesheet only loads on blog article pages. */
.mh-site main {
  overflow: visible;
}

/* ── Reading progress ─────────────────────────────── */
.mh-read-progress {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  z-index: 1080;
  pointer-events: none;
  background: transparent;
}

.mh-read-progress-bar {
  height: 100%;
  width: 0%;
  background: var(--mh-gold, #8f6a30);
  transform-origin: left center;
  transition: width 0.08s linear;
}

html[data-theme="dark"] .mh-read-progress-bar {
  background: var(--mh-gold-on-dark, #e0c089);
}

/* ── Hero (full-bleed image background) ───────────── */
.mh-blog-hero.section-header {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding-top: var(--mh-crumb-pad-top, 0.55rem);
  padding-bottom: 2rem;
  background-color: var(--secondary, #2b1d17);
}

.mh-blog-hero.section-header.mh-blog-hero--has-media {
  padding-top: var(--mh-crumb-pad-top, 0.55rem);
  padding-bottom: 2.5rem;
  min-height: clamp(18rem, 42vw, 26rem);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}

.mh-blog-hero-media {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

.mh-blog-hero-img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.mh-blog-hero-scrim {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    linear-gradient(
      180deg,
      rgba(24, 16, 12, 0.72) 0%,
      rgba(24, 16, 12, 0.55) 42%,
      rgba(24, 16, 12, 0.78) 100%
    ),
    linear-gradient(
      90deg,
      rgba(24, 16, 12, 0.35) 0%,
      transparent 55%
    );
}

.mh-blog-hero > .container {
  position: relative;
  z-index: 2;
  width: 100%;
}

.mh-blog-hero-inner {
  width: 100%;
  max-width: none;
  margin: 0;
}

.mh-blog-cat-badge {
  display: inline-block;
  padding: 0.28rem 0.75rem;
  font-size: var(--mh-fs-caption, 0.75rem);
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #fff8ef !important;
  background: rgba(255, 248, 239, 0.12);
  border: 1px solid rgba(255, 248, 239, 0.28);
  border-radius: 2px;
  text-decoration: none;
  transition: background 0.2s ease, border-color 0.2s ease;
  backdrop-filter: blur(4px);
}

.mh-blog-cat-badge:hover,
.mh-blog-cat-badge:focus {
  background: rgba(255, 248, 239, 0.2);
  border-color: rgba(255, 248, 239, 0.45);
  color: #fff !important;
  text-decoration: none;
}

.mh-blog-hero-title {
  font-family: var(--mh-display);
  font-size: clamp(1.85rem, 4.2vw, 2.85rem);
  font-weight: 600;
  line-height: 1.18;
  color: #fff8ef !important;
  margin: 0 0 0.85rem;
  letter-spacing: -0.01em;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.25);
}

.mh-blog-hero-excerpt {
  margin: 0 0 1.1rem;
  font-size: clamp(1rem, 1.6vw, 1.125rem);
  line-height: 1.55;
  color: rgba(255, 248, 239, 0.9);
  max-width: none;
  width: 100%;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

.mh-site .mh-blog-hero .mh-author-meta--hero.mh-blog-hero-meta {
  display: flex;
  justify-content: flex-start;
  align-items: center;
  flex-wrap: wrap;
  row-gap: 0.35rem;
  text-align: left;
  margin-top: 0.25rem;
  margin-bottom: 0;
}

.mh-blog-meta-sep {
  opacity: 0.55;
  margin: 0 0.15rem;
}

.mh-blog-meta-updated,
.mh-blog-meta-read {
  font-size: var(--mh-fs-caption, 0.8125rem);
  color: rgba(255, 248, 239, 0.82);
}

@media (min-width: 576px) {
  .mh-blog-hero.section-header {
    padding-top: var(--mh-crumb-pad-top, 0.55rem);
    padding-bottom: 2.25rem;
  }

  .mh-blog-hero.section-header.mh-blog-hero--has-media {
    padding-top: var(--mh-crumb-pad-top, 0.55rem);
    padding-bottom: 2.75rem;
  }
}

@media (min-width: 992px) {
  .mh-blog-hero.section-header {
    padding-top: var(--mh-crumb-pad-top, 0.55rem);
    padding-bottom: 2.5rem;
  }

  .mh-blog-hero.section-header.mh-blog-hero--has-media {
    padding-top: var(--mh-crumb-pad-top, 0.55rem);
    padding-bottom: 3.25rem;
    min-height: clamp(22rem, 38vw, 30rem);
  }
}

/* ── Key takeaways ────────────────────────────────── */
.mh-blog-takeaways {
  width: 100%;
  max-width: none;
  margin: -0.5rem 0 1.75rem;
  padding: 1.15rem 1.25rem 1.2rem;
  background: color-mix(in srgb, var(--mh-gold, #8f6a30) 8%, var(--mh-paper, #f6f1e8));
  border: 1px solid color-mix(in srgb, var(--mh-gold, #8f6a30) 28%, var(--mh-line, #ddd));
  border-left: 3px solid var(--mh-gold, #8f6a30);
  border-radius: 3px;
}

html[data-theme="dark"] .mh-blog-takeaways {
  background: color-mix(in srgb, var(--mh-gold, #e0c089) 10%, var(--mh-paper-2, #1e1712));
  border-color: color-mix(in srgb, var(--mh-gold, #e0c089) 35%, var(--mh-line, #333));
}

.mh-blog-takeaways-title {
  font-family: var(--mh-display);
  font-size: 1.2rem;
  font-weight: 600;
  margin: 0 0 0.65rem;
  color: var(--mh-ink);
}

.mh-blog-takeaways-list {
  margin: 0;
  padding: 0 0 0 1.15rem;
}

.mh-blog-takeaways-list li {
  margin: 0 0 0.45rem;
  font-size: 0.98rem;
  line-height: 1.55;
  color: var(--mh-text);
}

.mh-blog-takeaways-list li:last-child {
  margin-bottom: 0;
}

/* ── 3-column layout ──────────────────────────────── */
.mh-blog-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  align-items: start;
}

@media (min-width: 992px) {
  /* Stretch columns to middle height so sticky rails can travel to the end */
  .mh-blog-layout {
    align-items: stretch;
  }

  .mh-blog-layout--has-toc {
    grid-template-columns: 210px minmax(0, 1fr);
    gap: 2rem;
  }

  .mh-blog-layout--no-toc {
    grid-template-columns: minmax(0, 1fr);
  }

  /* Tablet / medium: commerce sidebar stacks full-width under article */
  .mh-blog-sidebar {
    display: grid;
    grid-column: 1 / -1;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
  }

  .mh-blog-sidebar .mh-side-rail,
  .mh-blog-sidebar .mh-side-promo {
    grid-column: 1 / -1;
  }
}

@media (min-width: 1200px) {
  .mh-blog-layout--has-toc {
    grid-template-columns: 210px minmax(0, 740px) 260px;
    justify-content: center;
    gap: 2rem 2.25rem;
  }

  .mh-blog-layout--no-toc {
    grid-template-columns: minmax(0, 740px) 260px;
    justify-content: center;
  }

  .mh-blog-sidebar {
    display: block;
    grid-column: auto;
    overflow: visible;
  }

  .mh-blog-sidebar-sticky {
    position: sticky;
    top: 5.5rem;
  }

  .mh-blog-sidebar .mh-side-rail,
  .mh-blog-sidebar .mh-side-promo {
    grid-column: auto;
  }
}

.mh-blog-main {
  min-width: 0;
  max-width: 46rem;
}

@media (min-width: 1200px) {
  .mh-blog-main {
    max-width: none;
  }
}

/* ── TOC ──────────────────────────────────────────── */
.mh-blog-toc-col {
  min-width: 0;
}

@media (min-width: 992px) {
  .mh-blog-toc-col {
    overflow: visible;
  }

  /* Sticky rail: pin heading, scroll the list when TOC is taller than the viewport */
  .mh-blog-toc--desktop {
    position: sticky;
    top: 5.5rem;
    max-height: calc(100vh - 6.5rem);
    display: flex;
    flex-direction: column;
    min-height: 0;
  }

  .mh-blog-toc--desktop .mh-blog-toc-list {
    flex: 1 1 auto;
    min-height: 0;
    overflow-x: hidden;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
    scrollbar-color: color-mix(in srgb, var(--mh-gold, #8f6a30) 45%, transparent) transparent;
    padding-right: 0.25rem;
  }

  .mh-blog-toc--desktop .mh-blog-toc-list::-webkit-scrollbar {
    width: 4px;
  }

  .mh-blog-toc--desktop .mh-blog-toc-list::-webkit-scrollbar-thumb {
    background: color-mix(in srgb, var(--mh-gold, #8f6a30) 45%, transparent);
    border-radius: 2px;
  }
}

.mh-blog-toc--desktop {
  display: none;
  padding-right: 0.35rem;
}

.mh-blog-toc-heading {
  font-size: var(--mh-fs-caption, 0.75rem);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--mh-muted, #6b5c4f);
  margin: 0 0 0.75rem;
}

.mh-blog-toc-list {
  list-style: none;
  margin: 0;
  padding: 0;
  border-left: 2px solid var(--mh-line, #e5dccf);
}

.mh-blog-toc-item {
  margin: 0;
}

.mh-blog-toc-item a {
  display: block;
  padding: 0.35rem 0 0.35rem 0.85rem;
  font-size: 0.8125rem;
  line-height: 1.4;
  color: var(--mh-muted, #6b5c4f) !important;
  text-decoration: none;
  border-left: 2px solid transparent;
  margin-left: -2px;
  transition: color 0.15s ease, border-color 0.15s ease;
}

.mh-blog-toc-item--h3 a {
  padding-left: 1.35rem;
  font-size: 0.78rem;
}

.mh-blog-toc-item a:hover,
.mh-blog-toc-item a:focus {
  color: var(--mh-ink) !important;
}

.mh-blog-toc-item.is-active a,
.mh-blog-toc-item a[aria-current="true"] {
  color: var(--mh-ink) !important;
  border-left-color: var(--mh-gold, #8f6a30);
  font-weight: 600;
}

.mh-blog-toc-mobile {
  display: block;
  margin-bottom: 0.5rem;
  border: 1px solid var(--mh-line, #e5dccf);
  border-radius: 3px;
  background: var(--mh-white, #fff);
}

html[data-theme="dark"] .mh-blog-toc-mobile {
  background: var(--mh-paper-2, #1e1712);
}

.mh-blog-toc-mobile-summary {
  cursor: pointer;
  padding: 0.75rem 1rem;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--mh-ink);
  list-style: none;
}

.mh-blog-toc-mobile-summary::-webkit-details-marker {
  display: none;
}

.mh-blog-toc-mobile[open] .mh-blog-toc-mobile-summary {
  border-bottom: 1px solid var(--mh-line, #e5dccf);
}

.mh-blog-toc-mobile .mh-blog-toc-list {
  border-left: 0;
  padding: 0.5rem 0.75rem 0.85rem;
}

.mh-blog-toc-mobile .mh-blog-toc-item a {
  border-left: 0;
  margin-left: 0;
  padding-left: 0.5rem;
}

@media (min-width: 992px) {
  .mh-blog-toc--desktop {
    display: flex;
  }

  .mh-blog-toc-mobile {
    display: none;
  }
}

/* ── Article typography ───────────────────────────── */
.mh-blog-prose {
  font-size: 1.0625rem;
  line-height: 1.7;
  color: var(--mh-text);
}

@media (min-width: 768px) {
  .mh-blog-prose {
    font-size: 1.125rem;
  }
}

.mh-blog-prose > *:first-child {
  margin-top: 0;
}

.mh-blog-prose p {
  margin: 0 0 1.15em;
}

.mh-blog-prose h2 {
  font-family: var(--mh-display);
  font-size: clamp(1.4rem, 2.2vw, 1.7rem);
  font-weight: 600;
  line-height: 1.28;
  color: var(--mh-ink);
  margin: 2rem 0 0.75rem;
  scroll-margin-top: 5.5rem;
}

.mh-blog-prose h3 {
  font-family: var(--mh-body);
  font-size: 1.15rem;
  font-weight: 700;
  line-height: 1.35;
  color: var(--mh-ink);
  margin: 1.55rem 0 0.55rem;
  scroll-margin-top: 5.5rem;
}

.mh-blog-prose h4 {
  font-size: 1.05rem;
  font-weight: 700;
  margin: 1.35rem 0 0.45rem;
  color: var(--mh-ink);
}

.mh-blog-prose ul,
.mh-blog-prose ol {
  margin: 0 0 1.15em;
  padding-left: 1.35em;
}

.mh-blog-prose li {
  margin-bottom: 0.4em;
}

.mh-blog-prose li + li {
  margin-top: 0.15em;
}

.mh-blog-prose a:not(.btn):not(.mh-btn-primary) {
  color: var(--mh-rosewood, #7a2e2e);
  text-decoration: underline;
  text-underline-offset: 0.15em;
}

html[data-theme="dark"] .mh-blog-prose a:not(.btn):not(.mh-btn-primary) {
  color: var(--mh-gold-on-dark, #e0c089);
}

.mh-blog-prose strong,
.mh-blog-prose b {
  font-weight: 700;
  color: var(--mh-ink);
}

.mh-blog-prose blockquote,
.mh-blog-prose .mh-callout--quote {
  margin: 1.5em 0;
  padding: 0.85rem 1.1rem;
  border-left: 3px solid var(--mh-gold, #8f6a30);
  background: color-mix(in srgb, var(--mh-paper-2, #efe7da) 70%, transparent);
  font-family: var(--mh-display);
  font-size: 1.2em;
  line-height: 1.45;
  color: var(--mh-ink);
}

.mh-blog-prose img {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 1.25em auto;
  border-radius: 3px;
}

.mh-blog-prose figure {
  margin: 1.5em 0;
}

.mh-blog-prose figcaption,
.mh-blog-prose .mh-caption {
  margin-top: 0.45rem;
  font-size: 0.85rem;
  line-height: 1.45;
  color: var(--mh-muted, #6b5c4f);
  text-align: center;
}

.mh-blog-prose table {
  width: 100%;
  margin: 1.25em 0;
  border-collapse: collapse;
  font-size: 0.95em;
  display: block;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.mh-blog-prose th,
.mh-blog-prose td {
  padding: 0.55rem 0.75rem;
  border: 1px solid var(--mh-line, #e5dccf);
  text-align: left;
  vertical-align: top;
}

.mh-blog-prose th {
  background: var(--mh-paper-2, #efe7da);
  font-weight: 700;
  color: var(--mh-ink);
}

html[data-theme="dark"] .mh-blog-prose th {
  background: var(--mh-paper-2, #1e1712);
}

.mh-blog-prose pre,
.mh-blog-prose code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.9em;
}

.mh-blog-prose pre {
  overflow-x: auto;
  padding: 0.9rem 1rem;
  background: var(--mh-paper-2, #efe7da);
  border-radius: 3px;
  margin: 1.25em 0;
}

/* Editorial callout blocks (optional content classes) */
.mh-blog-prose .mh-callout {
  margin: 1.4em 0;
  padding: 1rem 1.1rem;
  border-radius: 3px;
  border: 1px solid var(--mh-line, #e5dccf);
  background: var(--mh-paper, #f6f1e8);
}

.mh-blog-prose .mh-callout-title {
  display: block;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 0.4rem;
  color: var(--mh-gold, #8f6a30);
}

.mh-blog-prose .mh-callout p:last-child {
  margin-bottom: 0;
}

.mh-blog-prose .mh-callout--quick-answer {
  border-left: 3px solid var(--mh-gold, #8f6a30);
  background: color-mix(in srgb, var(--mh-gold, #8f6a30) 7%, var(--mh-paper));
}

.mh-blog-prose .mh-callout--important,
.mh-blog-prose .mh-callout--warning {
  border-left: 3px solid #a14a2e;
  background: color-mix(in srgb, #a14a2e 8%, var(--mh-paper));
}

.mh-blog-prose .mh-callout--tip,
.mh-blog-prose .mh-callout--madhuma-tip {
  border-left: 3px solid var(--mh-rosewood, #7a2e2e);
  background: color-mix(in srgb, var(--mh-rosewood, #7a2e2e) 7%, var(--mh-paper));
}

.mh-blog-prose .mh-callout--traditional,
.mh-blog-prose .mh-callout--regional,
.mh-blog-prose .mh-callout--note {
  border-left: 3px solid #5a6b4a;
  background: color-mix(in srgb, #5a6b4a 8%, var(--mh-paper));
}

.mh-blog-prose .mh-callout--checklist ul {
  list-style: none;
  padding-left: 0;
}

.mh-blog-prose .mh-callout--checklist li {
  position: relative;
  padding-left: 1.5rem;
}

.mh-blog-prose .mh-callout--checklist li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.4em;
  width: 0.7rem;
  height: 0.7rem;
  border: 1.5px solid var(--mh-gold, #8f6a30);
  border-radius: 2px;
}

/* ── Article footer ───────────────────────────────── */
.mh-blog-article-footer {
  margin-top: 2.25rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--mh-line, #e5dccf);
}

.mh-blog-article-footer:empty {
  display: none;
}

/* Share, author, commerce, FAQ — full container width under 3-col layout */
.mh-blog-below {
  margin-top: 2.5rem;
  padding-top: 1.75rem;
  border-top: 1px solid var(--mh-line, #e5dccf);
  width: 100%;
  min-width: 0;
}

.mh-blog-below > .mh-share {
  margin-bottom: 1.75rem;
}

.mh-blog-below > .mh-author-box {
  margin-bottom: 2rem;
}

.mh-blog-below > .mh-blog-faqs {
  margin-top: 0.5rem;
}

.mh-blog-reviewed {
  font-size: 0.875rem;
  color: var(--mh-muted, #6b5c4f);
  margin: 0 0 1rem;
}

.mh-blog-footer-heading,
.mh-blog-section-title {
  font-family: var(--mh-display);
  font-size: clamp(1.35rem, 2vw, 1.6rem);
  font-weight: 600;
  color: var(--mh-ink);
  margin: 0 0 1rem;
}

.mh-blog-sources {
  margin-bottom: 1.5rem;
}

.mh-blog-sources ul {
  margin: 0;
  padding-left: 1.15rem;
}

.mh-blog-sources li {
  font-size: 0.9rem;
  line-height: 1.5;
  color: var(--mh-muted, #6b5c4f);
  margin-bottom: 0.35rem;
}

.mh-blog-faqs {
  margin-top: 2.5rem;
}

/* ── Sidebar CTAs ─────────────────────────────────── */
.mh-blog-sidebar .mh-finder-cta,
.mh-blog-sidebar .mh-blog-sidebar-cta {
  margin: 0 0 1.25rem;
}

/* Narrow-rail Finder: stacked card (override banner/compact grid at ≥768px) */
.mh-blog-sidebar .mh-finder-cta .mh-finder-cta-inner {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 0.9rem;
  padding: 1.1rem 1.05rem 1.15rem;
  border: 1px solid color-mix(in srgb, var(--mh-gold, #8f6a30) 28%, var(--mh-line, #e5dccf));
  border-radius: 3px;
  border-left: 3px solid var(--mh-gold, #8f6a30);
  background:
    linear-gradient(
      165deg,
      color-mix(in srgb, var(--mh-gold, #8f6a30) 10%, var(--mh-paper, #f6f1e8)) 0%,
      var(--mh-white, #fff) 58%
    );
}

html[data-theme="dark"] .mh-blog-sidebar .mh-finder-cta .mh-finder-cta-inner {
  border-color: color-mix(in srgb, var(--mh-gold, #e0c089) 32%, var(--mh-line, #333));
  border-left-color: var(--mh-gold, #e0c089);
  background:
    linear-gradient(
      165deg,
      color-mix(in srgb, var(--mh-gold, #e0c089) 12%, var(--mh-paper-2, #1e1712)) 0%,
      var(--mh-paper-2, #1e1712) 60%
    );
}

.mh-blog-sidebar .mh-finder-cta-copy {
  min-width: 0;
}

.mh-blog-sidebar .mh-finder-cta-brand {
  margin: 0 0 0.35rem;
  font-size: 0.68rem;
  letter-spacing: 0.1em;
  color: var(--mh-gold, #8f6a30);
}

.mh-blog-sidebar .mh-finder-cta-title {
  margin: 0 0 0.4rem;
  font-size: 1.12rem;
  line-height: 1.28;
  letter-spacing: -0.01em;
}

.mh-blog-sidebar .mh-finder-cta-lead {
  margin: 0;
  font-size: 0.84rem;
  line-height: 1.45;
  max-width: none;
  color: var(--mh-muted, #6b5c4f);
}

.mh-blog-sidebar .mh-finder-cta-actions {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 0.5rem;
  margin: 0;
}

.mh-blog-sidebar .mh-finder-cta-btn {
  width: 100%;
  display: inline-flex;
  justify-content: center;
  align-items: center;
  min-height: 2.5rem;
  white-space: normal;
  text-align: center;
  font-size: 0.9rem;
  padding-left: 0.85rem;
  padding-right: 0.85rem;
}

.mh-blog-shop-cta {
  margin-bottom: 1.25rem;
  padding: 1.1rem 1.05rem 1.2rem;
  border: 1px solid var(--mh-line, #e5dccf);
  border-radius: 3px;
  background: var(--mh-white, #fff);
}

html[data-theme="dark"] .mh-blog-shop-cta {
  background: var(--mh-paper-2, #1e1712);
}

.mh-blog-shop-cta-eyebrow {
  margin: 0 0 0.3rem;
  font-size: var(--mh-fs-caption, 0.75rem);
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--mh-gold, #8f6a30);
}

.mh-blog-shop-cta-title {
  font-family: var(--mh-display);
  font-size: 1.25rem;
  font-weight: 600;
  line-height: 1.25;
  margin: 0 0 0.9rem;
  color: var(--mh-ink);
}

.mh-blog-shop-cta-btn {
  width: 100%;
  display: inline-flex;
  justify-content: center;
}

@media (max-width: 1199.98px) {
  .mh-blog-sidebar {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
    margin-top: 0.5rem;
  }
}

@media (min-width: 576px) and (max-width: 1199.98px) {
  .mh-blog-sidebar {
    grid-template-columns: 1fr 1fr;
  }

  .mh-blog-sidebar .mh-side-rail,
  .mh-blog-sidebar .mh-side-promo {
    grid-column: 1 / -1;
  }
}

/* ── Continue exploring ───────────────────────────── */
.mh-blog-continue {
  padding-top: 0.5rem;
  padding-bottom: 2.5rem;
}

.mh-blog-continue-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
}

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

@media (min-width: 992px) {
  .mh-blog-continue-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.mh-blog-continue-card {
  display: flex;
  flex-direction: column;
  text-decoration: none !important;
  color: inherit;
  border: 1px solid var(--mh-line, #e5dccf);
  border-radius: 3px;
  overflow: hidden;
  background: var(--mh-white, #fff);
  transition: border-color 0.2s ease, transform 0.2s ease;
}

html[data-theme="dark"] .mh-blog-continue-card {
  background: var(--mh-paper-2, #1e1712);
}

@media (hover: hover) and (pointer: fine) {
  .mh-blog-continue-card:hover {
    border-color: color-mix(in srgb, var(--mh-gold, #8f6a30) 45%, var(--mh-line));
    transform: translateY(-2px);
  }
}

.mh-blog-continue-media {
  display: block;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: var(--mh-paper-2, #efe7da);
}

.mh-blog-continue-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.mh-blog-continue-body {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  padding: 0.95rem 1rem 1.1rem;
}

.mh-blog-continue-cat {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--mh-gold, #8f6a30);
}

.mh-blog-continue-title {
  font-family: var(--mh-display);
  font-size: 1.2rem;
  font-weight: 600;
  line-height: 1.25;
  color: var(--mh-ink);
}

.mh-blog-continue-excerpt {
  font-size: 0.875rem;
  line-height: 1.5;
  color: var(--mh-muted, #6b5c4f);
}

/* ── Focus / a11y ─────────────────────────────────── */
.mh-blog-toc-item a:focus-visible,
.mh-blog-cat-badge:focus-visible,
.mh-blog-continue-card:focus-visible,
.mh-blog-shop-cta-btn:focus-visible {
  outline: 2px solid var(--mh-gold, #8f6a30);
  outline-offset: 2px;
}

/* Mobile: keep commerce CTAs after article */
@media (max-width: 991.98px) {
  .mh-blog-layout {
    display: flex;
    flex-direction: column;
  }

  .mh-blog-toc-col {
    order: 1;
  }

  .mh-blog-main {
    order: 2;
  }

  .mh-blog-sidebar {
    order: 3;
    display: grid;
  }
}

@media (max-width: 375px) {
  .mh-blog-hero-title {
    font-size: 1.7rem;
  }

  .mh-blog-takeaways {
    padding: 1rem;
  }

  .mh-blog-prose {
    font-size: 1.02rem;
  }
}

/* ── Commerce / shoppable guides ─────────────────── */
.mh-blog-product-shelf {
  margin: 1.75rem 0 2rem;
}

.mh-blog-product-shelf .mh-blog-section-title {
  margin-bottom: 1rem;
}

.mh-blog-product-grid {
  margin-left: -0.5rem;
  margin-right: -0.5rem;
}

.mh-blog-product-grid-item {
  padding-left: 0.5rem;
  padding-right: 0.5rem;
  margin-bottom: 1rem;
}

.mh-blog-collection-cta,
.mh-blog-festival-prep {
  margin: 1.5rem 0;
  padding: 1.15rem 1.2rem 1.25rem;
  border: 1px solid var(--mh-line, #e5dccf);
  border-radius: 3px;
  background: color-mix(in srgb, var(--mh-gold, #8f6a30) 6%, var(--mh-paper, #f6f1e8));
}

html[data-theme="dark"] .mh-blog-collection-cta,
html[data-theme="dark"] .mh-blog-festival-prep {
  background: color-mix(in srgb, var(--mh-gold, #e0c089) 8%, var(--mh-paper-2, #1e1712));
}

.mh-blog-collection-cta-eyebrow,
.mh-blog-festival-prep-eyebrow {
  margin: 0 0 0.3rem;
  font-size: var(--mh-fs-caption, 0.75rem);
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--mh-gold, #8f6a30);
}

.mh-blog-collection-cta-title,
.mh-blog-festival-prep-title {
  font-family: var(--mh-display);
  font-size: 1.35rem;
  font-weight: 600;
  margin: 0 0 0.45rem;
  color: var(--mh-ink);
}

.mh-blog-collection-cta-lead,
.mh-blog-festival-prep-lead {
  margin: 0 0 1rem;
  font-size: 0.95rem;
  line-height: 1.5;
  color: var(--mh-muted, #6b5c4f);
}

.mh-blog-collection-cta-btn,
.mh-blog-festival-prep-btn {
  display: inline-flex;
}

.mh-blog-checklist {
  margin: 1.75rem 0 2rem;
  padding: 1.15rem 1.2rem 1.25rem;
  border: 1px solid var(--mh-line, #e5dccf);
  border-radius: 3px;
  background: var(--mh-white, #fff);
}

html[data-theme="dark"] .mh-blog-checklist {
  background: var(--mh-paper-2, #1e1712);
}

.mh-blog-checklist-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.mh-blog-checklist-item {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 1rem;
  padding: 0.55rem 0;
  border-bottom: 1px solid var(--mh-line, #e5dccf);
}

.mh-blog-checklist-item:last-child {
  border-bottom: 0;
}

.mh-blog-checklist-label {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  margin: 0;
  flex: 1 1 auto;
  cursor: pointer;
  font-size: 0.98rem;
  color: var(--mh-text);
}

.mh-blog-checklist-input {
  margin-top: 0.2rem;
  width: 1.05rem;
  height: 1.05rem;
  flex-shrink: 0;
  accent-color: var(--mh-gold, #8f6a30);
}

.mh-blog-checklist-item.is-checked .mh-blog-checklist-text {
  text-decoration: line-through;
  opacity: 0.65;
}

.mh-blog-checklist-product {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--mh-rosewood, #7a2e2e) !important;
  text-decoration: none;
  white-space: nowrap;
}

html[data-theme="dark"] .mh-blog-checklist-product {
  color: var(--mh-gold-on-dark, #e0c089) !important;
}

.mh-blog-checklist-product:hover,
.mh-blog-checklist-product:focus {
  text-decoration: underline;
}

/* Finder: one visible at a time */
.mh-blog-finder-inline-wrap {
  display: none;
  margin: 1.5rem 0;
}

@media (max-width: 1199.98px) {
  .mh-blog-finder-inline-wrap {
    display: block;
  }

  .mh-blog-sidebar .mh-finder-cta {
    display: none;
  }
}

@media (min-width: 1200px) {
  .mh-blog-finder-inline-wrap {
    display: none !important;
  }
}
