/* MatAdel Ceramic | Blog detail | v1.0
   Add alongside the existing blog listing CSS.
   Scoped to Shoptet news detail pages, not product pages.
*/

body:has(.news-detail) #content {
  background-color: #f8f6f2;
}

body:has(.news-detail) .content-inner {
  max-width: 1120px;
  margin-inline: auto;
}

/* Keep the reading column comfortable, while allowing full-size photographs. */
body:has(.news-detail) .news-detail {
  max-width: 860px;
  margin: 0 auto 64px;
  color: #38332f;
}

body:has(.news-detail) .news-detail h1,
body:has(.news-detail) #content > h1,
body:has(.news-detail) .content-inner > h1 {
  color: #38332f;
  font-size: clamp(30px, 3.2vw, 44px);
  line-height: 1.2;
  letter-spacing: -0.025em;
  font-weight: 600;
  text-align: center;
  margin-bottom: 30px;
}

body:has(.news-detail) .news-detail p,
body:has(.news-detail) .news-detail li {
  font-size: 17px;
  line-height: 1.85;
  color: #514b45;
}

body:has(.news-detail) .news-detail p {
  margin: 0 0 22px;
}

body:has(.news-detail) .news-detail h2 {
  color: #38332f;
  font-size: clamp(24px, 2.3vw, 30px);
  line-height: 1.3;
  font-weight: 600;
  letter-spacing: -0.015em;
  margin: 48px 0 18px;
}

body:has(.news-detail) .news-detail h3 {
  color: #38332f;
  font-size: 22px;
  line-height: 1.35;
  margin: 34px 0 14px;
}

body:has(.news-detail) .news-detail img {
  max-width: 100%;
  height: auto;
  border-radius: 5px;
}

body:has(.news-detail) .news-detail p > img,
body:has(.news-detail) .news-detail figure {
  display: block;
  margin: 30px auto 36px;
}

body:has(.news-detail) .news-detail a {
  text-underline-offset: 3px;
}
body:has(.news-detail) .news-detail a:hover {
  color: #a34f36;
}

@media (max-width: 767px) {
  body:has(.news-detail) .news-detail {
    margin-bottom: 42px;
  }
  body:has(.news-detail) .news-detail p,
  body:has(.news-detail) .news-detail li {
    font-size: 16px;
    line-height: 1.75;
  }
  body:has(.news-detail) .news-detail h2 {
    margin-top: 34px;
  }
}
