/* Sticky-header clearance */
html body.single-mod_design {
  scroll-padding-top: 7.5rem;
}
html body.single-mod_design .mod-design-single,
html body.single-mod_design .mod-design-home.mod-home {
  padding-top: 1.25rem !important;
}
html body.single-mod_design .mod-hero {
  margin-top: 0 !important;
  padding-top: clamp(2.5rem, 6vw, 3.75rem) !important;
}
html body.single-mod_design .mod-design-split {
  scroll-margin-top: 7rem;
}
html body.single-mod_design .mod-design-media.mod-aside {
  top: 6.75rem !important; /* clear sticky header when image sticks */
}
@media (max-width: 1024px) {
  html body.single-mod_design {
    scroll-padding-top: 5.5rem;
  }
  html body.single-mod_design .mod-design-single,
  html body.single-mod_design .mod-design-home.mod-home {
    padding-top: 1rem !important;
  }
  html body.single-mod_design .mod-design-media.mod-aside {
    top: auto !important;
  }
}

/* =========================================================
   Single design — rides homepage layout language
   ========================================================= */
html body.single-mod_design,
html body.single-mod_design #inner-wrap,
html body.single-mod_design .content-area,
html body.single-mod_design .entry-content-wrap {
  background: #0e0b08 !important;
}
html body.single-mod_design .entry-hero,
html body.single-mod_design .entry-hero-container,
html body.single-mod_design .entry-title:not(.mod-hero h1):not(.mod-design-title) {
  display: none !important;
}
html body.single-mod_design .content-area,
html body.single-mod_design .entry-content-wrap,
html body.single-mod_design #primary,
html body.single-mod_design .site-main {
  margin: 0 !important;
  padding: 0 !important;
  max-width: none !important;
  width: 100% !important;
}

html body.single-mod_design .mod-design-home.mod-home {
  padding-bottom: 3.5rem !important;
}

/* Image sits in the aside card */
html body.single-mod_design .mod-design-split {
  grid-template-columns: .95fr 1.15fr !important;
  align-items: start !important;
}
@media (max-width: 820px) {
  html body.single-mod_design .mod-design-split {
    grid-template-columns: 1fr !important;
  }
}
html body.single-mod_design .mod-design-media.mod-aside {
  padding: .85rem !important;
  gap: 0 !important;
  justify-content: stretch !important;
  position: sticky;
  top: 1.15rem;
  overflow: hidden;
}
html body.single-mod_design .mod-design-media img,
html body.single-mod_design .mod-design-image {
  display: block !important;
  width: 100% !important;
  height: auto !important;
  aspect-ratio: 1 / 1 !important;
  object-fit: cover !important;
  border-radius: 12px !important;
  margin: 0 !important;
}
@media (max-width: 820px) {
  html body.single-mod_design .mod-design-media.mod-aside {
    position: static !important;
    max-width: 28rem !important;
    margin: 0 auto !important;
  }
}

/* Story panel */
html body.single-mod_design .mod-design-story.mod-panel {
  color: #f2e1cf !important;
}
html body.single-mod_design .mod-design-content,
html body.single-mod_design .mod-design-content.entry-content {
  color: #dcc9b3 !important;
  font-size: 1.02rem !important;
  line-height: 1.65 !important;
}
html body.single-mod_design .mod-design-content > *:first-child { margin-top: 0 !important; }
html body.single-mod_design .mod-design-content p {
  margin: 0 0 1rem !important;
  color: #dcc9b3 !important;
}
html body.single-mod_design .mod-design-content h2,
html body.single-mod_design .mod-design-content h3 {
  color: #d4b483 !important;
  margin: 1.35rem 0 .65rem !important;
  font-family: Georgia, "Times New Roman", serif !important;
}
html body.single-mod_design .mod-design-content a {
  color: #d4b483 !important;
}
html body.single-mod_design .mod-design-content figure,
html body.single-mod_design .mod-design-content img {
  max-width: 100% !important;
  height: auto !important;
  border-radius: 12px !important;
}
html body.single-mod_design .mod-design-content figcaption {
  color: #cbb59c !important;
  font-size: .85rem !important;
  text-align: center !important;
}
html body.single-mod_design .mod-design-content .wp-block-embed {
  margin: 1rem 0 !important;
}

/* Hide duplicate first content image when featured shows */
html body.single-mod_design article.has-post-thumbnail .mod-design-content > .wp-block-image:first-child,
html body.single-mod_design article.has-post-thumbnail .mod-design-content > figure.wp-block-image:first-of-type,
html body.single-mod_design article.has-post-thumbnail .mod-design-content > .wp-block-image:first-of-type,
html body.single-mod_design article.has-post-thumbnail .mod-design-content > p:first-child > img {
  display: none !important;
}

html body.single-mod_design .mod-desc-teaser,
html body.single-mod_design .mod-desc-toggle {
  display: none !important;
}

/* Inline CTA under story uses homepage pill styles */
html body.single-mod_design .mod-design-cta-inline {
  justify-content: flex-start !important;
  margin: 1.35rem 0 0 !important;
}
html body.single-mod_design .mod-design-cta-inline a.mod-primary {
  width: 100%;
  text-align: center;
  box-sizing: border-box;
}

/* Related mosaic: three equal cards */
html body.single-mod_design .mod-design-related .mod-card.mod-card-md {
  grid-column: span 4 !important;
}
@media (max-width: 900px) {
  html body.single-mod_design .mod-design-related .mod-card.mod-card-md {
    grid-column: span 6 !important;
  }
}
@media (max-width: 560px) {
  html body.single-mod_design .mod-design-related .mod-card.mod-card-md {
    grid-column: span 12 !important;
  }
}
