/* ==========================================================================
   QUOTE BLOCKS IN IMPACT STORIES AND NEWS POSTS = THE COMMUNITY CONNECTIONS QUOTE (Kate Shawver, ClickUp 1amzwvgd237:
   spec comment 1500830000123604 00:31Z, credit gap 1500830000123606 00:32Z, centring 1500830000123608 00:33Z).
   Reference: the .cae-voice testimonial on /programs-places/community-connections/ ("My son had seconds and thirds...").
   Markup (inc/cae-news-quote.php, the_content 45): figure.cae-news-quote.cae-news-quote--voice[.has-photo]
     > [figure.cae-news-photo] + blockquote.cae-news-quote__text > span.cae-news-quote__mark + p ... (last p ends in
     span.cae-news-quote__close) + [hr.cae-news-quote__rule + figcaption.cae-news-quote__by.cae-news-quote__credit
     > span.cae-news-quote__name + span.cae-news-quote__role]
   The two marks are the .cae-voice drawings (the same SVG masks as kate-global-rules-cae.css .cae-voice__mark and
   .cae-voice__quote::after), never a font glyph. Scope: single News / Impact Story pages only (body class + the
   record-detail content); .cae-voice and every other page are untouched. Overrides cae-news-post-global.css RULE 13
   (the old card) where they differ; RULE 13's photo column width (38%) is left as it is.
   ========================================================================== */

/* card: padding 48 / 56 / 48 / 40, gap 56; without a photo 96 left and right. The text group (quote, rule, credit) is
 * centred beside the photo by the reference's spacer rows (minmax(0, 1fr) above and below), with or without a byline
 * (Kate 123608: the photo spans every row, the text is centred on it) */
body:is(.single-news, .single-case_study) :is(.cae-website-redesign-record-detail--news, .cae-website-redesign-record-detail--case-study) .cae-website-redesign-record-detail__content .cae-news-quote.cae-news-quote--voice {
  display: grid !important;
  grid-template-rows: minmax(0, 1fr) auto auto auto minmax(0, 1fr) !important;
  align-items: center !important;
  column-gap: 56px !important;
  row-gap: 0 !important;
  padding: 48px 56px 48px 40px !important;
}
body:is(.single-news, .single-case_study) :is(.cae-website-redesign-record-detail--news, .cae-website-redesign-record-detail--case-study) .cae-website-redesign-record-detail__content .cae-news-quote.cae-news-quote--voice:not(.has-photo) {
  padding-left: 96px !important;
  padding-right: 96px !important;
}
body:is(.single-news, .single-case_study) :is(.cae-website-redesign-record-detail--news, .cae-website-redesign-record-detail--case-study) .cae-website-redesign-record-detail__content .cae-news-quote--voice.has-photo > .cae-news-photo {
  grid-column: 1 !important;
  grid-row: 1 / -1 !important;
  align-self: center !important;
}

/* quote text: Acumin Pro 400, 23.88 / 32, #606055 */
body:is(.single-news, .single-case_study) :is(.cae-website-redesign-record-detail--news, .cae-website-redesign-record-detail--case-study) .cae-website-redesign-record-detail__content .cae-news-quote--voice > .cae-news-quote__text {
  grid-column: -2 / -1 !important;
  grid-row: 2 !important;
  position: relative !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  background: none !important;
  quotes: none;
  font-family: var(--wp--preset--font-family--acumin-pro), "Acumin Pro", sans-serif !important;
  font-size: 23.88px !important;
  line-height: 32px !important;
  font-weight: 400 !important;
  font-style: normal !important;
  color: #606055 !important;
}
body:is(.single-news, .single-case_study) :is(.cae-website-redesign-record-detail--news, .cae-website-redesign-record-detail--case-study) .cae-website-redesign-record-detail__content .cae-news-quote--voice > .cae-news-quote__text::before,
body:is(.single-news, .single-case_study) :is(.cae-website-redesign-record-detail--news, .cae-website-redesign-record-detail--case-study) .cae-website-redesign-record-detail__content .cae-news-quote--voice > .cae-news-quote__text p::after {
  content: none !important; /* RULE 13's typed glyph marks */
  display: none !important;
}
body:is(.single-news, .single-case_study) :is(.cae-website-redesign-record-detail--news, .cae-website-redesign-record-detail--case-study) .cae-website-redesign-record-detail__content .cae-news-quote--voice > .cae-news-quote__text p {
  margin: 0 !important;
  font: inherit !important;
  color: inherit !important;
}
body:is(.single-news, .single-case_study) :is(.cae-website-redesign-record-detail--news, .cae-website-redesign-record-detail--case-study) .cae-website-redesign-record-detail__content .cae-news-quote--voice > .cae-news-quote__text p + p { margin-top: 16px !important; }
body:is(.single-news, .single-case_study) :is(.cae-website-redesign-record-detail--news, .cae-website-redesign-record-detail--case-study) .cae-website-redesign-record-detail__content .cae-news-quote--voice > .cae-news-quote__text :is(strong, b) { font-weight: 400 !important; }

/* opening mark: 44 x 128, 44 left of the text; the reference's margin 0 0 -81px -44px puts it 47 above the text
 * (128 - 81). Out of flow (Kate 123608: absolute in the relative blockquote, so it adds no height to the centred text):
 * top -47px is that same place in CSS px (Kate's -38 is the same distance measured on screen, at the site's zoom .8) */
body:is(.single-news, .single-case_study) :is(.cae-website-redesign-record-detail--news, .cae-website-redesign-record-detail--case-study) .cae-website-redesign-record-detail__content .cae-news-quote--voice > .cae-news-quote__text > .cae-news-quote__mark {
  position: absolute !important;
  left: -44px !important;
  top: -47px !important;
  display: block !important;
  width: 44px !important;
  height: 128px !important;
  margin: 0 !important;
  padding: 0 !important;
  background: #B15533 !important;
  -webkit-mask: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%20100%2080%22%3E%3Cg%3E%3Cpath%20d%3D%22M4%2058C4%2034%2016%2014%2038%204L42%2011C28%2019%2021%2030%2021%2040A18%2018%200%201%201%204%2058Z%22%2F%3E%3Cpath%20transform%3D%22translate%2854%200%29%22%20d%3D%22M4%2058C4%2034%2016%2014%2038%204L42%2011C28%2019%2021%2030%2021%2040A18%2018%200%201%201%204%2058Z%22%2F%3E%3C%2Fg%3E%3C%2Fsvg%3E") no-repeat 0 19.8px / 36.96px auto !important;
  mask: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%20100%2080%22%3E%3Cg%3E%3Cpath%20d%3D%22M4%2058C4%2034%2016%2014%2038%204L42%2011C28%2019%2021%2030%2021%2040A18%2018%200%201%201%204%2058Z%22%2F%3E%3Cpath%20transform%3D%22translate%2854%200%29%22%20d%3D%22M4%2058C4%2034%2016%2014%2038%204L42%2011C28%2019%2021%2030%2021%2040A18%2018%200%201%201%204%2058Z%22%2F%3E%3C%2Fg%3E%3C%2Fsvg%3E") no-repeat 0 19.8px / 36.96px auto !important;
  pointer-events: none;
}
/* closing mark: inline right after the last word */
body:is(.single-news, .single-case_study) :is(.cae-website-redesign-record-detail--news, .cae-website-redesign-record-detail--case-study) .cae-website-redesign-record-detail__content .cae-news-quote--voice > .cae-news-quote__text .cae-news-quote__close {
  display: inline-block !important;
  width: 27.46px !important;
  height: 21.97px !important;
  margin: 0 0 0 4.78px !important;
  padding: 0 !important;
  vertical-align: 2.39px !important;
  background: #B15533 !important;
  -webkit-mask: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%20100%2080%22%3E%3Cg%20transform%3D%22rotate%28180%2050%2040%29%22%3E%3Cpath%20d%3D%22M4%2058C4%2034%2016%2014%2038%204L42%2011C28%2019%2021%2030%2021%2040A18%2018%200%201%201%204%2058Z%22%2F%3E%3Cpath%20transform%3D%22translate%2854%200%29%22%20d%3D%22M4%2058C4%2034%2016%2014%2038%204L42%2011C28%2019%2021%2030%2021%2040A18%2018%200%201%201%204%2058Z%22%2F%3E%3C%2Fg%3E%3C%2Fsvg%3E") no-repeat 0 0 / contain !important;
  mask: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%20100%2080%22%3E%3Cg%20transform%3D%22rotate%28180%2050%2040%29%22%3E%3Cpath%20d%3D%22M4%2058C4%2034%2016%2014%2038%204L42%2011C28%2019%2021%2030%2021%2040A18%2018%200%201%201%204%2058Z%22%2F%3E%3Cpath%20transform%3D%22translate%2854%200%29%22%20d%3D%22M4%2058C4%2034%2016%2014%2038%204L42%2011C28%2019%2021%2030%2021%2040A18%2018%200%201%201%204%2058Z%22%2F%3E%3C%2Fg%3E%3C%2Fsvg%3E") no-repeat 0 0 / contain !important;
}

body:is(.single-news, .single-case_study) :is(.cae-website-redesign-record-detail--news, .cae-website-redesign-record-detail--case-study) .cae-website-redesign-record-detail__content .cae-news-quote--voice > .cae-news-quote__text .cae-news-quote__end { white-space: nowrap; } /* last word + mark stay together */

/* rule + credit: 1px #C7C6C6 rule 24 under the text, name 24 under the rule; 18 / 26 Acumin 400, name rust, role grey */
body:is(.single-news, .single-case_study) :is(.cae-website-redesign-record-detail--news, .cae-website-redesign-record-detail--case-study) .cae-website-redesign-record-detail__content .cae-news-quote--voice > hr.cae-news-quote__rule {
  grid-column: -2 / -1 !important;
  grid-row: 3 !important;
  display: block !important;
  width: auto !important;
  max-width: none !important;
  height: 0 !important;
  margin: 24px 0 0 !important;
  padding: 0 !important;
  border: 0 !important;
  border-top: 1px solid #C7C6C6 !important;
  background: none !important;
  opacity: 1 !important;
}
body:is(.single-news, .single-case_study) :is(.cae-website-redesign-record-detail--news, .cae-website-redesign-record-detail--case-study) .cae-website-redesign-record-detail__content .cae-news-quote--voice > .cae-news-quote__credit {
  grid-column: -2 / -1 !important;
  grid-row: 4 !important;
  display: block !important;
  margin: 24px 0 0 !important;
  padding: 0 !important;
  border: 0 !important;
  font-family: var(--wp--preset--font-family--acumin-pro), "Acumin Pro", sans-serif !important;
  font-size: 18px !important;
  line-height: 26px !important;
  font-weight: 400 !important;
  font-style: normal !important;
}
body:is(.single-news, .single-case_study) :is(.cae-website-redesign-record-detail--news, .cae-website-redesign-record-detail--case-study) .cae-website-redesign-record-detail__content .cae-news-quote--voice > .cae-news-quote__credit > :is(.cae-news-quote__name, .cae-news-quote__role) {
  display: block !important;
  margin: 0 !important;
  font: inherit !important;
}
body:is(.single-news, .single-case_study) :is(.cae-website-redesign-record-detail--news, .cae-website-redesign-record-detail--case-study) .cae-website-redesign-record-detail__content .cae-news-quote--voice > .cae-news-quote__credit > .cae-news-quote__name { color: #B15533 !important; }
body:is(.single-news, .single-case_study) :is(.cae-website-redesign-record-detail--news, .cae-website-redesign-record-detail--case-study) .cae-website-redesign-record-detail__content .cae-news-quote--voice > .cae-news-quote__credit > .cae-news-quote__role { color: #606055 !important; }

/* below 1024: stacked the way .cae-voice stacks at 375 (fix-mkdescriptions-cae.css): padding 24 / 24 / 32, photo first
 * with 24 under it, the mark in flow at the text's left edge (margin 0 0 -81px 0), the quote in the P1 Acumin preset
 * (16.15px at 375) with the closing mark at the drawing's em sizes, rule 16 under the text and 8 above the name */
@media (max-width: 1023.98px) {
  body:is(.single-news, .single-case_study) :is(.cae-website-redesign-record-detail--news, .cae-website-redesign-record-detail--case-study) .cae-website-redesign-record-detail__content .cae-news-quote.cae-news-quote--voice,
  body:is(.single-news, .single-case_study) :is(.cae-website-redesign-record-detail--news, .cae-website-redesign-record-detail--case-study) .cae-website-redesign-record-detail__content .cae-news-quote.cae-news-quote--voice:not(.has-photo) {
    display: flex !important;
    flex-direction: column !important;
    align-items: stretch !important;
    padding: 24px 24px 32px !important;
  }
  body:is(.single-news, .single-case_study) :is(.cae-website-redesign-record-detail--news, .cae-website-redesign-record-detail--case-study) .cae-website-redesign-record-detail__content .cae-news-quote--voice.has-photo > .cae-news-photo { margin: 0 0 24px !important; }
  body:is(.single-news, .single-case_study) :is(.cae-website-redesign-record-detail--news, .cae-website-redesign-record-detail--case-study) .cae-website-redesign-record-detail__content .cae-news-quote--voice > .cae-news-quote__text {
    font-size: var(--wp--preset--font-size--p-1-pro-regular) !important;
    line-height: var(--wp--custom--line-heights--p-1-pro-regular) !important;
  }
  body:is(.single-news, .single-case_study) :is(.cae-website-redesign-record-detail--news, .cae-website-redesign-record-detail--case-study) .cae-website-redesign-record-detail__content .cae-news-quote--voice > .cae-news-quote__text > .cae-news-quote__mark {
    position: static !important;
    margin: 0 0 -81px 0 !important;
  }
  body:is(.single-news, .single-case_study) :is(.cae-website-redesign-record-detail--news, .cae-website-redesign-record-detail--case-study) .cae-website-redesign-record-detail__content .cae-news-quote--voice > .cae-news-quote__text .cae-news-quote__close {
    width: 1.15em !important;
    height: 0.92em !important;
    margin-left: 0.2em !important;
    vertical-align: 0.1em !important;
  }
  body:is(.single-news, .single-case_study) :is(.cae-website-redesign-record-detail--news, .cae-website-redesign-record-detail--case-study) .cae-website-redesign-record-detail__content .cae-news-quote--voice > hr.cae-news-quote__rule { margin: 16px 0 8px !important; width: 100% !important; }
  body:is(.single-news, .single-case_study) :is(.cae-website-redesign-record-detail--news, .cae-website-redesign-record-detail--case-study) .cae-website-redesign-record-detail__content .cae-news-quote--voice > .cae-news-quote__credit { margin: 0 !important; }
}

/* the callout variant (inc/cae-news-quote.php $isNote): a definition ("Silage: ...") or a capitals-heading callout the
 * source boxed as a blockquote is not a quotation: the same box and spacing, no marks (none are emitted), its bold term
 * stays bold, no credit */
body:is(.single-news, .single-case_study) :is(.cae-website-redesign-record-detail--news, .cae-website-redesign-record-detail--case-study) .cae-website-redesign-record-detail__content .cae-news-quote--voice.cae-news-quote--note > .cae-news-quote__text :is(strong, b) { font-weight: 700 !important; }
