/* Shared article presentation. Scope every rule to the MU-plugin body marker. */

body.dy-article-shell {
  --dy-article-reading-width: 880px;
  --dy-article-media-width: 560px;
}

body.dy-article-shell main.dy-main {
  overflow-x: clip;
}

body.dy-article-shell main.dy-main > .dy-container,
body.dy-article-shell main.dy-main > article.dy-container,
body.dy-article-shell article.dy-article-shell-content {
  box-sizing: border-box;
  width: 100%;
  max-width: var(--dy-article-reading-width);
  margin-inline: auto;
}

body.dy-article-shell article.dy-article-shell-content {
  color: var(--dy-cream, #fff2df);
}

body.dy-article-shell .dy-article-layout:not(:has(> .dy-article-sidebar)) {
  display: block;
}

body.dy-article-shell .dy-article-main,
body.dy-article-shell .entry-content {
  box-sizing: border-box;
  width: 100%;
  max-width: var(--dy-article-reading-width);
  min-width: 0;
}

body.dy-article-shell .dy-article-header {
  margin-bottom: 24px;
  border-bottom: 1px solid rgb(216 180 122 / 24%);
  padding-bottom: 24px;
}

body.dy-article-shell .dy-article-header .dy-kicker {
  margin: 0 0 12px;
}

body.dy-article-shell .dy-page-title,
body.dy-article-shell .dy-en-content .dy-page-title,
body.dy-article-shell article.dy-es-article .dy-page-title {
  max-width: var(--dy-article-reading-width) !important;
  margin: 0 !important;
  font-size: 32px !important;
  line-height: 1.12 !important;
  overflow-wrap: anywhere;
  hyphens: auto;
}

body.dy-article-shell .dy-article-byline,
body.dy-article-shell .dy-article-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 8px 14px;
  border-left: 3px solid rgb(216 180 122 / 44%);
  margin: 24px 0 0;
  padding: 12px 0 12px 16px;
  color: var(--dy-muted, #d8c8ad);
  font-size: 15px;
  line-height: 1.45;
}

body.dy-article-shell .dy-article-byline a {
  color: var(--dy-gold, #d8b47a);
  font-weight: 800;
  text-decoration: none;
}

body.dy-article-shell .dy-article-byline a:hover,
body.dy-article-shell .dy-article-byline a:focus-visible {
  text-decoration: underline;
  text-underline-offset: 4px;
}

body.dy-article-shell .dy-article-byline-separator {
  color: rgb(234 216 189 / 62%);
}

body.dy-article-shell .entry-content {
  font-size: 16px;
  line-height: 1.72;
}

body.dy-article-shell .entry-content > :where(p, ul, ol, h2, h3, h4, blockquote, .dy-article-summary, .dy-article-faq) {
  box-sizing: border-box;
  max-width: none;
  margin-right: 0;
  margin-left: 0;
}

body.dy-article-shell .entry-content .dy-article-summary {
  box-sizing: border-box;
  width: 100%;
  max-width: 100%;
  margin: 34px 0;
  border: 1px solid rgb(216 180 122 / 22%);
  border-radius: 6px;
  padding: 18px 20px 20px;
  overflow: hidden;
  background: rgb(0 0 0 / 24%);
}

body.dy-article-shell .entry-content .dy-article-summary-title {
  margin: 0 0 10px;
  color: var(--dy-gold, #d8b47a);
  font-size: 14px;
  font-weight: 850;
  letter-spacing: .06em;
  line-height: 1.3;
  text-transform: uppercase;
}

body.dy-article-shell .entry-content .dy-article-summary > :last-child {
  margin-bottom: 0;
}

body.dy-article-shell .dy-article-hero-image,
body.dy-article-shell .dy-article-featured-image,
body.dy-article-shell .entry-content > figure:not(.dy-article-mini-image):not(.dy-article-context-product),
body.dy-article-shell .entry-content .dy-article-inline-image,
body.dy-article-shell .entry-content .dy-restored-inline-image,
body.dy-article-shell .entry-content .wp-block-image {
  box-sizing: border-box;
  width: fit-content;
  max-width: min(var(--dy-article-media-width), 88%);
  margin: 26px auto 34px;
  border: 1px solid rgb(216 180 122 / 50%);
  border-radius: 8px;
  padding: 6px;
  overflow: hidden;
  background:
    linear-gradient(180deg, rgb(216 180 122 / 8%), rgb(255 255 255 / 1%)),
    rgb(0 0 0 / 26%);
  box-shadow: 0 14px 34px rgb(0 0 0 / 30%);
}

body.dy-article-shell .dy-article-hero-image img,
body.dy-article-shell .dy-article-featured-image img,
body.dy-article-shell .entry-content img {
  position: relative;
  z-index: 1;
  display: block;
  width: auto !important;
  max-width: 100% !important;
  height: auto !important;
  max-height: min(500px, 62vh);
  margin-inline: auto;
  border-radius: 5px;
  object-fit: contain !important;
}

body.dy-article-shell .entry-content figure,
body.dy-article-shell .entry-content figure > a,
body.dy-article-shell .entry-content picture {
  max-width: 100%;
}

body.dy-article-shell .entry-content figcaption {
  position: relative;
  z-index: 1;
  max-width: 100%;
  overflow-wrap: anywhere;
}

body.dy-article-shell .entry-content :where(.wp-block-table, .dy-article-table, .dy-table-scroll) {
  box-sizing: border-box;
  width: 100%;
  max-width: 100%;
  margin: 28px 0 34px;
  overflow-x: auto;
  overscroll-behavior-inline: contain;
  -webkit-overflow-scrolling: touch;
}

body.dy-article-shell .entry-content :where(.wp-block-table, .dy-article-table, .dy-table-scroll):focus-visible {
  outline: 2px solid var(--dy-gold, #d8b47a);
  outline-offset: 3px;
}

body.dy-article-shell .entry-content :where(.wp-block-table, .dy-article-table, .dy-table-scroll) table {
  width: 100%;
  min-width: 560px;
  border-collapse: collapse;
}

body.dy-article-shell .entry-content :where(.wp-block-table, .dy-article-table, .dy-table-scroll) :where(th, td) {
  border: 1px solid rgb(216 180 122 / 22%);
  padding: 12px 14px;
  color: #fff2df;
  font-size: 15px;
  line-height: 1.45;
  text-align: left;
  vertical-align: top;
}

body.dy-article-shell .entry-content :where(.wp-block-table, .dy-article-table, .dy-table-scroll) th {
  color: var(--dy-gold, #d8b47a);
  background: rgb(216 180 122 / 10%);
  font-weight: 850;
}

body.dy-article-shell .entry-content :where(.dy-faq-group, .dy-faq-block, .dy-article-faq) {
  margin-top: 40px;
  border-top: 1px solid rgb(216 180 122 / 24%);
  padding-top: 26px;
}

body.dy-article-shell .entry-content :where(.dy-faq-group, .dy-faq-block, .dy-article-faq) details {
  margin: 0 0 12px;
  border: 1px solid rgb(216 180 122 / 20%);
  border-radius: 5px;
  overflow: hidden;
  background: rgb(0 0 0 / 24%);
}

body.dy-article-shell .entry-content :where(.dy-faq-group, .dy-faq-block, .dy-article-faq) summary {
  min-height: 48px;
  padding: 13px 16px;
  color: #fff2df;
  font-weight: 850;
  cursor: pointer;
}

body.dy-article-shell .entry-content :where(.dy-faq-group, .dy-faq-block, .dy-article-faq) details > :not(summary) {
  padding-right: 16px;
  padding-left: 16px;
}

body.dy-article-shell .dy-related-panel,
body.dy-article-shell .dy-product-cta {
  box-sizing: border-box;
  width: 100%;
  max-width: var(--dy-article-reading-width);
}

body.dy-article-shell .dy-article-nav {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  width: 100%;
  margin-top: 42px;
}

body.dy-article-shell .dy-article-nav a {
  min-width: 0;
}

body.dy-article-shell .dy-article-layout:has(> .dy-article-sidebar) {
  display: grid;
  grid-template-columns: minmax(0, 780px) minmax(280px, 330px);
  gap: clamp(42px, 5vw, 74px);
  align-items: start;
  justify-content: center;
}

body.dy-article-shell article.dy-article-shell-content:has(.dy-article-sidebar) {
  max-width: 1260px;
}

body.dy-article-shell main.dy-main > .dy-container:has(article.dy-article-shell-content .dy-article-sidebar) {
  max-width: none;
}

body.dy-article-shell .entry-content .dy-article-summary-title {
  margin-bottom: 14px;
  font-family: var(--dy-serif, "Cormorant Garamond", Georgia, serif);
  font-size: 26px;
  line-height: 1.2;
}

body.dy-article-shell .entry-content .dy-article-summary ul {
  margin: 0;
  padding-left: 22px;
}

body.dy-article-shell .entry-content .dy-article-summary li {
  margin: 8px 0;
  line-height: 1.72;
}

@media (max-width: 1020px) {
  body.dy-article-shell .dy-article-nav {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 1199px) {
  body.dy-article-shell .dy-article-layout:has(> .dy-article-sidebar) {
    grid-template-columns: minmax(0, 1fr);
    gap: 28px;
  }
}

@media (max-width: 767px) {
  body.dy-article-shell .dy-page-title,
  body.dy-article-shell .dy-en-content .dy-page-title,
  body.dy-article-shell article.dy-es-article .dy-page-title {
    font-size: 32px !important;
  }

  body.dy-article-shell .dy-article-byline,
  body.dy-article-shell .dy-article-meta {
    gap: 6px 10px;
  }

  body.dy-article-shell .dy-article-hero-image,
  body.dy-article-shell .dy-article-featured-image,
  body.dy-article-shell .entry-content > figure:not(.dy-article-mini-image):not(.dy-article-context-product),
  body.dy-article-shell .entry-content .dy-article-inline-image,
  body.dy-article-shell .entry-content .dy-restored-inline-image,
  body.dy-article-shell .entry-content .wp-block-image {
    max-width: 100%;
    margin: 22px auto 28px;
    padding: 5px;
  }

  body.dy-article-shell .entry-content .dy-article-summary {
    padding: 18px 18px 20px;
  }

  body.dy-article-shell .dy-article-nav {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (prefers-reduced-motion: reduce) {
  body.dy-article-shell *,
  body.dy-article-shell *::before,
  body.dy-article-shell *::after {
    scroll-behavior: auto !important;
    transition-duration: .01ms !important;
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
  }
}
