/*
 * Guided editorial quotes.
 * The same visual language is applied to the custom Guided block and to
 * Gutenberg's native Quote block so existing articles are upgraded in place.
 */
.gn-post-content .gn-guided-quote,
.gn-page-content .gn-guided-quote,
.gn-post-content .wp-block-quote,
.gn-page-content .wp-block-quote {
  position: relative;
  box-sizing: border-box;
  width: 100%;
  margin: 34px 0;
  padding: 32px 28px 24px;
  border: 0 !important;
  border-top: 2px solid var(--gn-color-brand, #3AAFA9) !important;
  border-bottom: 2px solid var(--gn-color-brand, #3AAFA9) !important;
  border-radius: 0;
  background: linear-gradient(180deg, rgba(18, 27, 42, .22), rgba(11, 17, 27, .08));
  color: var(--gn-color-text-secondary, #B8C0CC);
  box-shadow: none;
}

.gn-post-content .gn-guided-quote::before,
.gn-page-content .gn-guided-quote::before,
.gn-post-content .wp-block-quote::before,
.gn-page-content .wp-block-quote::before {
  content: "“";
  position: absolute;
  top: -23px;
  left: 20px;
  z-index: 1;
  min-width: 46px;
  padding: 0 9px;
  background: var(--gn-color-bg-primary, #070C14);
  color: var(--gn-color-brand, #3AAFA9);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 52px;
  font-weight: 800;
  line-height: 42px;
  text-align: center;
}

.gn-post-content .gn-guided-quote__text,
.gn-page-content .gn-guided-quote__text,
.gn-post-content .wp-block-quote > p,
.gn-page-content .wp-block-quote > p {
  color: var(--gn-color-text-secondary, #B8C0CC);
  font-size: 1em;
  font-style: normal;
  font-weight: 400;
  line-height: 1.72;
}

.gn-post-content .gn-guided-quote__text > :first-child,
.gn-page-content .gn-guided-quote__text > :first-child,
.gn-post-content .wp-block-quote > p:first-of-type,
.gn-page-content .wp-block-quote > p:first-of-type {
  margin-top: 0;
}

.gn-post-content .gn-guided-quote__text > :last-child,
.gn-page-content .gn-guided-quote__text > :last-child,
.gn-post-content .wp-block-quote > p:last-of-type,
.gn-page-content .wp-block-quote > p:last-of-type {
  margin-bottom: 0;
}

.gn-post-content .gn-guided-quote__citation,
.gn-page-content .gn-guided-quote__citation,
.gn-post-content .wp-block-quote > cite,
.gn-page-content .wp-block-quote > cite {
  display: block;
  margin-top: 16px;
  color: var(--gn-color-text-muted, #7D8795);
  font-size: 13px;
  font-style: normal;
  font-weight: 700;
  line-height: 1.45;
  letter-spacing: .01em;
}

.gn-post-content .gn-guided-quote__citation::before,
.gn-page-content .gn-guided-quote__citation::before,
.gn-post-content .wp-block-quote > cite::before,
.gn-page-content .wp-block-quote > cite::before {
  content: "— ";
  color: var(--gn-color-brand, #3AAFA9);
}

/* Native Gutenberg may wrap the citation in a footer in some versions/themes. */
.gn-post-content .wp-block-quote footer,
.gn-page-content .wp-block-quote footer {
  margin-top: 16px;
  color: var(--gn-color-text-muted, #7D8795);
  font-size: 13px;
  line-height: 1.45;
}

@media (max-width: 640px) {
  .gn-post-content .gn-guided-quote,
  .gn-page-content .gn-guided-quote,
  .gn-post-content .wp-block-quote,
  .gn-page-content .wp-block-quote {
    margin: 30px 0;
    padding: 28px 18px 20px;
  }

  .gn-post-content .gn-guided-quote::before,
  .gn-page-content .gn-guided-quote::before,
  .gn-post-content .wp-block-quote::before,
  .gn-page-content .wp-block-quote::before {
    left: 12px;
    min-width: 42px;
    padding-inline: 7px;
    font-size: 48px;
  }
}
