/* Gutenberg Essays
   Post body lives in Divi Theme Builder: .et_pb_post_content (not .entry-content).
   Enqueued via the live $styles array key childgutenbergessays.
   Do not replace style.css or functions.php.
*/

/* Drop cap: Group.article-drop-cap > Heading.et_pb_text_inner (letter only).
   Next paragraph still starts with the full word. */
.et_pb_post_content .article-drop-cap.wp-block-group {
  display: flex !important;
  justify-content: center;
  margin: 0 auto 100px !important;
}

.et_pb_post_content .article-drop-cap .wp-block-heading,
.et_pb_post_content .article-drop-cap .et_pb_text_inner {
  width: fit-content !important;
  max-width: max-content !important;
  display: inline-block !important;
}

.et_pb_post_content .article-drop-cap.is-layout-constrained > * {
  max-width: max-content !important;
  margin-left: auto !important;
  margin-right: auto !important;
}

body.photo-essays .et_pb_post_content .article-drop-cap .et_pb_text_inner,
body.art .et_pb_post_content .article-drop-cap .et_pb_text_inner {
  border-color: var(--white) !important;
}

/* Paragraphs: 35px visual gap, line-height 40px desktop / 30px at <=480px */
body:not(.et_pb_pagebuilder_layout):not(.woocommerce-page) .et_pb_post_content p.wp-block-paragraph {
  margin-bottom: 15px !important;
  line-height: 40px !important;
}

@media (max-width: 480px) {
  body:not(.et_pb_pagebuilder_layout):not(.woocommerce-page) .et_pb_post_content p.wp-block-paragraph {
    line-height: 30px !important;
  }
}

/* Section H3 — skip pullquote headings. 50px visual above, 30px below. */
body:not(.et_pb_pagebuilder_layout):not(.woocommerce-page) .et_pb_post_content h3.wp-block-heading:not(.pullquote) {
  font-family: var(--canela);
  font-size: var(--mediumFontMin);
  line-height: 1.25em;
  max-width: 820px;
  width: 90%;
  margin: 30px auto 30px !important;
  padding-bottom: 0 !important;
  font-weight: inherit;
  text-align: left;
}

@media only screen and (min-width: 981px) {
  body:not(.et_pb_pagebuilder_layout):not(.woocommerce-page) .et_pb_post_content h3.wp-block-heading:not(.pullquote) {
    font-size: var(--mediumFontMax);
  }
}

/* Pull quote: class pullquote on the quote heading (theme JS injects icons inside it).
   Do not use [pullquote-twitter-share] with this class. */
.et_pb_post_content .pullquote,
.et_pb_post_content h3.wp-block-heading.pullquote {
  display: block;
  max-width: 991px !important;
  width: 90% !important;
  margin: 45px auto 40px !important;
  padding-top: 50px !important;
  padding-bottom: 0 !important;
  position: relative;
  text-align: center !important;
  background: none !important;
  font-size: 30px !important;
  font-family: var(--canela);
  line-height: 37.5px !important;
  font-weight: 500 !important;
  overflow-wrap: break-word;
  color: #333;
}

.et_pb_post_content h3.wp-block-heading.pullquote em {
  font-style: italic;
  font-weight: inherit;
}

.et_pb_post_content .pullquote:before {
  content: '';
  width: 100%;
  height: 1px;
  border-top: 5px solid var(--black, #000);
  position: absolute;
  left: 50%;
  top: 0;
  max-width: 162px;
  transform: translateX(-50%);
}

.et_pb_post_content .pullquote .pullquote-social-icons {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 30px;
  margin-top: 40px !important;
  margin-bottom: 0 !important;
}

/* Desktop: quote→icons 40.5→38 (−2.5). Icons sit inside the h3, so this
   also lifts the next paragraph; bottom margin is +2px to land icons→p at 48. */
@media (min-width: 981px) {
  .et_pb_post_content .pullquote .pullquote-social-icons {
    margin-top: 37.5px !important;
  }
}

@media (max-width: 980px) {
  .et_pb_post_content .pullquote,
  .et_pb_post_content h3.wp-block-heading.pullquote {
    font-size: 26px !important;
    line-height: 32.5px !important;
    padding-top: 53px !important;
    width: calc(100% - 40px) !important;
  }
}

/* Excerpt / in-body quote — class article-text-excerpt.
   Production is a Divi text module: .article-text-excerpt.article-standard-width
   (820px border-box, padding 0 3rem, 1px #c7c7c7 rule). Not a <blockquote>. */
body .et_pb_post_content .article-text-excerpt,
body .et_pb_post_content .wp-block-quote.article-text-excerpt,
body .et_pb_post_content blockquote.wp-block-quote.article-text-excerpt,
body .et_pb_post_content blockquote.article-text-excerpt {
  box-sizing: border-box !important;
  border: none !important;
  border-left: 1px solid #c7c7c7 !important;
  padding: 0 3rem !important;
  margin: 5rem auto !important;
  display: block !important;
  max-width: 820px !important;
  width: 100% !important;
  background: none !important;
  box-shadow: none !important;
  font-family: inherit;
  font-size: var(--copyFontLarge);
  line-height: 1.5em;
  font-weight: 400;
  font-style: normal !important;
  color: var(--black, #000);
  quotes: none;
  text-align: left;
}

body .et_pb_post_content .article-text-excerpt::before,
body .et_pb_post_content .article-text-excerpt::after,
body .et_pb_post_content .wp-block-quote.article-text-excerpt::before,
body .et_pb_post_content .wp-block-quote.article-text-excerpt::after,
body .et_pb_post_content blockquote.article-text-excerpt::before,
body .et_pb_post_content blockquote.article-text-excerpt::after {
  content: none !important;
  display: none !important;
}

body .et_pb_post_content .article-text-excerpt p,
body .et_pb_post_content .wp-block-quote.article-text-excerpt p,
body .et_pb_post_content blockquote.article-text-excerpt p {
  font-family: inherit;
  font-size: var(--copyFontLarge);
  line-height: 1.5em;
  font-weight: 400;
  font-style: normal !important;
  color: var(--black, #000);
  margin: 0 !important;
  padding: 0 !important;
  text-indent: 0 !important;
}

/* Custom Blockquote: reduce padding on mobile, ensure border always shows */
@media (max-width: 767px) {
  body .et_pb_post_content .article-text-excerpt,
  body .et_pb_post_content .wp-block-quote.article-text-excerpt,
  body .et_pb_post_content blockquote.wp-block-quote.article-text-excerpt,
  body .et_pb_post_content blockquote.article-text-excerpt {
    border-left: 1px solid #c7c7c7 !important;
    padding: 0 24px !important;
    margin: 48px 24px !important;
    width: auto !important;
    max-width: calc(100% - 48px) !important;
  }
}

/* Full-column body image: fill the post-content well.
   Production 4/4 in .article-generic-row is 100% of the Divi row (90% / 1200).
   Do not cap at pull-quote 991. */
.et_pb_post_content .wp-block-image img {
  display: block;
}

body .et_pb_post_content figure.wp-block-image.article-image-full,
body .et_pb_post_content figure.wp-block-image.alignfull {
  width: 100%;
  max-width: 100%;
  margin: 35px 0 40px !important;
}

body .et_pb_post_content figure.wp-block-image.article-image-full img,
body .et_pb_post_content figure.wp-block-image.alignfull img {
  width: 100%;
  height: auto;
  display: block;
}

body .et_pb_post_content figure.wp-block-image.alignwide {
  width: 90%;
  max-width: 1200px;
  margin: 35px auto 40px !important;
}

body .et_pb_post_content figure.wp-block-image.article-image-inline {
  max-width: 50%;
  width: 50%;
  margin: 35px auto 40px !important;
}

body .et_pb_post_content .wp-block-columns.article-image-two-up,
body .et_pb_post_content .article-image-two-up {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 2rem;
  width: 90%;
  max-width: 1600px;
  margin: 35px auto 40px !important;
}

.et_pb_post_content .article-image-two-up > figure,
.et_pb_post_content .article-image-two-up > .wp-block-column {
  flex: 1 1 calc(50% - 1rem);
  min-width: 0;
  max-width: calc(50% - 1rem);
  margin: 0;
}

.et_pb_post_content .article-image-two-up img {
  width: 100%;
  height: auto;
  display: block;
}

@media (max-width: 980px) {
  .et_pb_post_content .article-image-two-up {
    flex-direction: column;
  }
  .et_pb_post_content .article-image-two-up > figure,
  .et_pb_post_content .article-image-two-up > .wp-block-column {
    flex-basis: 100%;
    max-width: 100%;
  }

  body .et_pb_post_content figure.wp-block-image.article-image-full,
  body .et_pb_post_content figure.wp-block-image.article-image-inline,
  body .et_pb_post_content figure.wp-block-image.alignwide,
  body .et_pb_post_content figure.wp-block-image.alignfull,
  body .et_pb_post_content .wp-block-columns.article-image-two-up,
  body .et_pb_post_content .article-image-two-up {
    margin-top: 35px !important;
    margin-bottom: 70px !important;
  }

  /* Match the text column (20px inset each side: 350px at a 390 viewport).
     .et_pb_post_content is full-bleed here; paragraphs/H3/lists are 90%. */
  body .et_pb_post_content figure.wp-block-image.article-image-inline {
    width: calc(100% - 40px) !important;
    max-width: calc(100% - 40px) !important;
    margin-left: auto !important;
    margin-right: auto !important;
    float: none !important;
  }
}

.et_pb_post_content .wp-block-image figcaption,
.et_pb_post_content .article-image-two-up figcaption,
.et_pb_post_content .post-image-foot-copy,
.et_pb_post_content .banner-cut-copy {
  font-family: inherit;
  font-size: var(--copyFontLarge);
  line-height: 1.5em;
  font-weight: 400;
  font-style: normal;
  color: var(--black, #000);
  opacity: 0.5;
  text-align: left;
  padding-left: 30px;
  margin: 0;
  max-width: none;
  width: 100%;
}

.et_pb_post_content .wp-block-image figcaption,
.et_pb_post_content .article-image-two-up figcaption {
  padding-top: 32px;
  font-size: 18px;
  line-height: 27px;
}

@media (max-width: 980px) {
  body .et_pb_post_content .wp-block-image figcaption,
  body .et_pb_post_content .article-image-two-up figcaption {
    padding-top: 30px;
    font-size: 16px;
    line-height: 24px;
  }
}

.et_pb_post_content .post-image-foot-copy,
.et_pb_post_content .banner-cut-copy {
  padding: 10px 0 0 30px;
}

.et_pb_post_content .wp-block-image figcaption em,
.et_pb_post_content .wp-block-image figcaption i,
.et_pb_post_content .post-image-foot-copy em,
.et_pb_post_content .post-image-foot-copy i,
.et_pb_post_content .banner-cut-copy em,
.et_pb_post_content .banner-cut-copy i {
  font-style: italic;
}

.et_pb_post_content hr.article-divider,
.et_pb_post_content .article-divider {
  display: block;
  border: none;
  border-top: 1px solid var(--lightGrey, #c7c7c7);
  width: 90%;
  max-width: 225px;
  height: 0;
  margin: 3rem auto !important;
  padding: 0;
  background: none;
}



/* Comment Divider block (core/separator .article-divider) - match production
   Divi .et_pb_divider.article-divider: 1px solid #000 line, 225px wide, centered,
   in a 61px box (30px + 1px line + 30px). Line drawn as background on the content
   box so the 30px padding stays clear. margin 0: the preceding paragraph's 15px
   margin-bottom adds to the top padding (45px above the line, 30px below), same as production. */
body .et_pb_post_content hr.wp-block-separator.article-divider {
  box-sizing: content-box !important;
  border: 0 !important;
  width: 225px !important;
  max-width: 225px !important;
  height: 1px !important;
  margin: 0 auto !important;
  padding: 30px 0 !important;
  background: #000 !important;
  background-clip: content-box !important;
  opacity: 1 !important;
}

/* Get Comment Button block — match production Subscribe CTA
   Production (comment.org essay end): centered uppercase Arnoldo 16px / 500,
   color #016FDD, transparent/no border, padding 10px 50px 10px 0.
   Arrow is ::before SVG (not Divi ETmodules ::after). Do NOT use .et_pb_button. */
body .et_pb_post_content .comment-get-comment-button {
  display: block !important;
  text-align: center !important;
  margin: 40px auto !important;
  padding: 20px 0 !important;
  max-width: 100% !important;
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
}

body .et_pb_post_content .comment-get-comment-button a,
body .et_pb_post_content .comment-get-comment-button a:visited {
  position: relative !important;
  display: inline-block !important;
  font-family: var(--lftArnoldoRegular, "LFT Arnoldo W01 Regular"), sans-serif !important;
  font-size: 16px !important;
  font-weight: 500 !important;
  font-style: normal !important;
  line-height: 27.2px !important;
  letter-spacing: normal !important;
  text-transform: uppercase !important;
  text-decoration: none !important;
  text-align: center !important;
  color: #016fdd !important;
  background: transparent !important;
  background-color: transparent !important;
  background-image: none !important;
  border: 0 none transparent !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  padding: 10px 50px 10px 0 !important;
  margin: 0 !important;
  transition: color 0.2s ease, opacity 0.2s ease !important;
}

body .et_pb_post_content .comment-get-comment-button a:hover,
body .et_pb_post_content .comment-get-comment-button a:focus {
  color: #016fdd !important;
  background: transparent !important;
  background-color: transparent !important;
  text-decoration: none !important;
  opacity: 0.85 !important;
}

body .et_pb_post_content .comment-get-comment-button a span {
  font: inherit !important;
  color: inherit !important;
  text-transform: inherit !important;
  letter-spacing: inherit !important;
}

/* Blue right-arrow SVG (same asset as theme a.et_pb_button::before) */
body .et_pb_post_content .comment-get-comment-button a::before {
  content: "" !important;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns=\"http://www.w3.org/2000/svg\" width=\"24.702\" height=\"17.292\" viewBox=\"0 0 24.702 17.292\"><path d=\"M364.943,425.473h0a1.614,1.614,0,0,0,0,2.282l4.277,4.277H351.614A1.614,1.614,0,0,0,350,433.646h0a1.614,1.614,0,0,0,1.614,1.614h17.552l-4.277,4.277a1.614,1.614,0,0,0,0,2.282h0a1.614,1.614,0,0,0,2.282,0l7.059-7.059a1.614,1.614,0,0,0,0-2.282l-7.005-7.005A1.614,1.614,0,0,0,364.943,425.473Z\" transform=\"translate(-350 -425)\" style=\"fill:%23016FDD;\"/></svg>") !important;
  background-size: contain !important;
  background-position: center center !important;
  background-repeat: no-repeat !important;
  width: 24px !important;
  height: 16px !important;
  font-family: helvetica, sans-serif !important;
  font-size: 20px !important;
  z-index: 3 !important;
  position: absolute !important;
  right: 12px !important;
  left: auto !important;
  top: 50% !important;
  transform: translateY(-50%) !important;
  margin: 0 !important;
  padding: 0 !important;
  opacity: 1 !important;
  display: block !important;
  pointer-events: none !important;
  transition: right 0.2s ease !important;
}

body .et_pb_post_content .comment-get-comment-button a:hover::before {
  right: 8px !important;
}

/* Kill Divi/icon ::after if any theme rule leaks onto the anchor */
body .et_pb_post_content .comment-get-comment-button a::after {
  content: none !important;
  display: none !important;
  opacity: 0 !important;
}
