/* Phase 19: scoped editorial templates, leaving approved shared components intact. */
.mwc-editorial {
  color: #0c0c0c;
  font-family: "Open Sans", sans-serif;
}

.mwc-editorial-hero {
  max-width: calc(100% - 13.2%);
  margin: 20px auto 100px;
  border-radius: 16px;
  overflow: hidden;
  text-align: center;
}

.mwc-editorial-hero h1 {
  color: #fff;
  font-family: "Playfair Display", Georgia, serif;
  font-size: 65px;
  font-weight: 500;
  line-height: 1;
  max-width: 1090px;
  margin: 0 auto 35px;
}

.mwc-blog .mwc-editorial-hero h1 {
  font-family: Georgia, serif;
  font-size: 90px;
  margin: 0;
}

.mwc-editorial-wrap {
  width: calc(100% - 40px);
  max-width: 1140px;
  margin: 0 auto;
}

.mwc-article .mwc-editorial-wrap {
  padding-bottom: 100px;
}

.mwc-article-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 16px 32px;
  font-size: 16px;
}

.mwc-article-meta > * {
  margin: 0;
}

.mwc-article-meta a {
  color: inherit;
}

.mwc-article-intro {
  display: grid;
  grid-template-columns:1fr 1fr;
  gap: 60px;
  align-items: start;
  margin-bottom: 65px;
}

.mwc-article-intro figure {
  margin: 0;
}

.mwc-article-intro img {
  width: 100%;
  height: auto;
  border-radius: 12px;
}

.mwc-article-intro-text {
  margin: 0;
  font-size: 18px;
  line-height: 30px;
}

.mwc-article-intro-text p {
  margin: 0 0 16px;
}

.mwc-article .wp-block-post-content {
  font-size: 17px;
  line-height: 30px;
  overflow-wrap: break-word;
}

.mwc-article .wp-block-post-content h1, .mwc-article .wp-block-post-content h2 {
  font-family: "Playfair Display", Georgia, serif;
  font-size: 46px;
  font-weight: 500;
  line-height: 54px;
  margin: 0 0 14px;
}

.mwc-article .wp-block-post-content p {
  margin: 0 0 16px;
}

.mwc-article .wp-block-post-content a {
  color: #a72e56;
  text-decoration: underline;
}

.mwc-article .wp-block-post-content img, .mwc-article .wp-block-post-content iframe {
  max-width: 100%;
}

.mwc-article-navigation {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 24px;
  margin-top: 80px;
}

.mwc-blog-query {
  padding-bottom: 100px;
}

.mwc-blog-query .wp-block-post-template {
  gap: 35px 30px;
}

.mwc-blog-query .wp-block-post {
  position: relative;
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 0 10px #0000001f;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.mwc-blog-query .wp-block-post-featured-image {
  margin: 0;
}

.mwc-blog-query .wp-block-post-featured-image img {
  display: block;
}

.mwc-card-category {
  position: absolute;
  right: 20px;
  top: 20px;
  background: #000;
  color: #fff;
  border-radius: 16px;
  padding: 4px 14px;
  font-size: 12px;
  line-height: 20px;
  text-transform: uppercase;
  margin: 0;
}

.mwc-card-category a {
  color: inherit;
  text-decoration: none;
}

.mwc-card-category a:not(:first-child), .mwc-card-category .wp-block-post-terms__separator {
  display: none;
}

.mwc-card-copy {
  padding: 40px 30px 16px;
  flex: 1;
}

.mwc-card-copy h2 {
  font-family: "Playfair Display", Georgia, serif;
  font-size: 26px;
  font-weight: 500;
  line-height: 34px;
  margin: 0 0 25px;
}

.mwc-card-copy h2 a {
  color: #000;
  text-decoration: none;
}

.mwc-card-copy .wp-block-post-excerpt {
  font-size: 16px;
  line-height: 24px;
  margin: 0;
}

.mwc-card-copy .wp-block-post-excerpt__excerpt {
  margin: 0;
}

.mwc-card-copy .wp-block-post-excerpt__more-text {
  margin: 25px 0 0;
  font-size: 12px;
}

.mwc-card-copy .wp-block-post-excerpt__more-link {
  color: #111;
  text-decoration: none;
}

.mwc-blog-query .wp-block-post-date {
  font-size: 12px;
  line-height: 20px;
  padding: 12px 30px;
  border-top: 1px solid #eee;
  margin: 0;
}

.mwc-editorial .wp-block-query-pagination {
  margin: 52px 0 0;
  gap: 24px;
}

.mwc-editorial .wp-block-query-pagination a {
  color: #111;
  text-decoration: none;
}

.mwc-editorial .wp-block-query-pagination-numbers {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
}

.mwc-editorial .wp-block-query-pagination .current {
  font-weight: 700;
  text-decoration: underline;
}

.mwc-editorial a:focus-visible, .mwc-editorial button:focus-visible {
  outline: 3px solid #a72e56;
  outline-offset: 4px;
}

.mwc-archives .mwc-editorial-wrap {
  padding: 60px 0 100px;
}

.mwc-archives h1 {
  font-family: Georgia, serif;
  font-size: clamp(36px, 6.25vw, 90px);
  font-weight: 500;
  line-height: 1.1;
  margin: 0 0 50px;
  overflow-wrap: anywhere;
}

.mwc-archive-query .wp-block-post {
  margin-bottom: 40px;
}

.mwc-archive-query h2 {
  font-family: "Playfair Display", Georgia, serif;
  font-size: 46px;
  line-height: 54px;
  font-weight: 500;
  margin: 0 0 18px;
  overflow-wrap: anywhere;
}

.mwc-archive-query h2 a {
  color: #a72e56;
}

.mwc-archives .wp-block-search {
  margin-bottom: 40px;
}

@media (max-width: 767px) {
  .mwc-editorial-hero {
    max-width: calc(100% - 20px);
    margin: 20px auto 60px;
    padding: 40px 16px;
    min-height: 550px !important;
  }

  .mwc-editorial-hero h1 {
    font-size: clamp(36px, 10vw, 52px);
    line-height: 1.08;
  }

  .mwc-blog .mwc-editorial-hero h1 {
    font-size: 65px;
  }

  .mwc-editorial-wrap {
    width: calc(100% - 40px);
  }

  .mwc-article-intro {
    grid-template-columns:1fr;
    gap: 30px;
    margin-bottom: 40px;
  }

  .mwc-article-meta {
    gap: 12px 18px;
    font-size: 14px;
  }

  .mwc-article .wp-block-post-content h1, .mwc-article .wp-block-post-content h2, .mwc-archive-query h2 {
    font-size: 32px;
    line-height: 1.2;
  }

  .mwc-blog-query .wp-block-post-template {
    grid-template-columns:1fr;
  }

  .mwc-editorial .wp-block-query-pagination {
    gap: 16px;
  }

  .mwc-editorial .wp-block-query-pagination-numbers {
    gap: 18px;
  }
}

@media (min-width: 768px) and (max-width: 1024px) {
  .mwc-blog-query .wp-block-post-template {
    grid-template-columns:repeat(2, minmax(0, 1fr));
  }
}

.mwc-article-share {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
  margin-top: 80px;
  font-size: 16px;
}

.mwc-article-share a {
  background: #111;
  color: #fff;
  border-radius: 24px;
  padding: 10px 16px;
  text-decoration: none;
}

.mwc-article-navigation > * {
  margin: 0;
}

main.is-style-section:has(.mwc-blog) {
  padding: 0;
  margin-block: 0;
  max-width: none;
}

.wp-block-post-content:has(> .mwc-blog) {
  margin: 0;
  max-width: none;
}

.mwc-blog {
  width: 100%;
  max-width: none !important;
  margin: 0 !important;
}

.mwc-blog .mwc-editorial-hero {
  width: calc(100% - 40px);
  max-width: 1250px;
}

.mwc-article .mwc-editorial-hero {
  align-items: flex-end;
  padding: 80px 80px 100px;
}

.mwc-article .wp-block-post-content h3 {
  font-size: 30px;
  line-height: 44px;
  margin: 0 0 14px;
}

@media (max-width: 767px) {
  .mwc-article .mwc-editorial-hero {
    padding: 60px 16px;
  }

  .mwc-article .wp-block-post-content h3 {
    font-size: 26px;
    line-height: 1.35;
  }

  .mwc-blog .mwc-editorial-hero {
    width: calc(100% - 20px);
  }
}

/* Preserve the source's distinct large body-heading treatment on wider screens. */
@media (min-width: 768px) {
  .mwc-article .wp-block-post-content h1 {
    font-size: 90px;
    line-height: 90px;
  }
}

.mwc-article .wp-block-post-content p {
  font-size: 17px;
  line-height: 30px;
}

/* Native inherited archive/search loop retains the reference image/excerpt order. */
.mwc-archives h1 {
  font-family: "Playfair Display", Georgia, serif;
  margin-bottom: 16px;
}

.mwc-archive-query .wp-block-post {
  margin-bottom: 14px;
}

.mwc-archive-query .wp-block-post-featured-image {
  margin: 0 0 10px;
}

.mwc-archive-query .wp-block-post-featured-image img {
  display: block;
  width: 100%;
  height: auto;
  max-height: 500px;
  object-fit: cover;
}

.mwc-archive-query .wp-block-post-excerpt {
  margin: 0;
  font-size: 17px;
  line-height: 30px;
}

.mwc-archive-query .wp-block-post-excerpt__excerpt {
  margin: 0;
}
