/*
 * Unforsaken scholar's-folio blockquote.
 * The footer quotation and Scripture preview have their own purpose-built art.
 */
:root {
  --ufs-quote-ink: #27221f;
  --ufs-quote-ink-soft: #584b42;
  --ufs-quote-copper: #b85e31;
  --ufs-quote-copper-deep: #7b4428;
  --ufs-quote-paper: #f6f3ed;
  --ufs-quote-rule: rgba(84, 61, 45, 0.25);
  --ufs-quote-serif: "EB Garamond Local", "Iowan Old Style", Baskerville, Georgia, "Times New Roman", serif;
  --ufs-quote-sans: "Roboto Flex", "Segoe UI", Arial, sans-serif;
}

body #main-content :is(
  .entry-content,
  .et_pb_post_content,
  .et_pb_text_inner,
  .ufs-standard-post-content,
  .ufs-question-content,
  .ufs-user-content
) blockquote:not(.ufs-footer-quote):not(.uss-scripture-preview-passage) {
  position: relative;
  isolation: isolate;
  margin: clamp(2rem, 4vw, 2.65rem) 0 !important;
  padding: clamp(1.65rem, 3.4vw, 2.05rem) clamp(1.35rem, 3.7vw, 2.35rem) clamp(1.35rem, 3vw, 1.75rem) clamp(1.65rem, 4vw, 2.6rem) !important;
  overflow: visible;
  border: 1px solid var(--ufs-quote-rule) !important;
  border-left: 7px solid var(--ufs-quote-ink) !important;
  border-radius: 1px !important;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.82), rgba(240, 235, 227, 0.76)),
    repeating-linear-gradient(2deg, rgba(61, 43, 31, 0.018) 0, rgba(61, 43, 31, 0.018) 1px, transparent 1px, transparent 6px),
    var(--ufs-quote-paper) !important;
  box-shadow:
    inset 3px 0 0 var(--ufs-quote-copper),
    inset 0 1px rgba(255, 255, 255, 0.82),
    0 13px 30px rgba(44, 31, 23, 0.11) !important;
  color: var(--ufs-quote-ink) !important;
  font-family: var(--ufs-quote-serif) !important;
  font-size: clamp(1.14rem, 1.06rem + 0.22vw, 1.28rem) !important;
  font-style: normal !important;
  font-weight: 500 !important;
  letter-spacing: 0.002em;
  line-height: 1.62 !important;
  text-align: left;
}

body #main-content :is(
  .entry-content,
  .et_pb_post_content,
  .et_pb_text_inner,
  .ufs-standard-post-content,
  .ufs-question-content,
  .ufs-user-content
) blockquote:not(.ufs-footer-quote):not(.uss-scripture-preview-passage)::before {
  position: absolute;
  z-index: 2;
  top: -18px;
  left: 22px;
  display: grid;
  width: 42px;
  height: 36px;
  place-items: center;
  border: 1px solid rgba(206, 150, 99, 0.42);
  background:
    radial-gradient(circle at 30% 20%, rgba(255, 255, 255, 0.08), transparent 38%),
    #292522;
  box-shadow: 0 5px 12px rgba(35, 24, 18, 0.22);
  color: #dda06d;
  content: "“";
  font-family: Georgia, "Times New Roman", serif;
  font-size: 2.35rem;
  font-style: normal;
  font-weight: 400;
  line-height: 1.28;
  text-indent: -0.04em;
}

body #main-content :is(
  .entry-content,
  .et_pb_post_content,
  .et_pb_text_inner,
  .ufs-standard-post-content,
  .ufs-question-content,
  .ufs-user-content
) blockquote:not(.ufs-footer-quote):not(.uss-scripture-preview-passage)::after {
  position: absolute;
  top: -1px;
  right: 0;
  width: clamp(62px, 14%, 118px);
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--ufs-quote-copper));
  content: "";
}

body #main-content :is(
  .entry-content,
  .et_pb_post_content,
  .et_pb_text_inner,
  .ufs-standard-post-content,
  .ufs-question-content,
  .ufs-user-content
) blockquote:not(.ufs-footer-quote):not(.uss-scripture-preview-passage) > :first-child {
  margin-top: 0 !important;
}

body #main-content :is(
  .entry-content,
  .et_pb_post_content,
  .et_pb_text_inner,
  .ufs-standard-post-content,
  .ufs-question-content,
  .ufs-user-content
) blockquote:not(.ufs-footer-quote):not(.uss-scripture-preview-passage) > :last-child {
  margin-bottom: 0 !important;
}

body #main-content :is(
  .entry-content,
  .et_pb_post_content,
  .et_pb_text_inner,
  .ufs-standard-post-content,
  .ufs-question-content,
  .ufs-user-content
) blockquote:not(.ufs-footer-quote):not(.uss-scripture-preview-passage) p {
  color: inherit !important;
  font: inherit !important;
  line-height: inherit !important;
}

body #main-content :is(
  .entry-content,
  .et_pb_post_content,
  .et_pb_text_inner,
  .ufs-standard-post-content,
  .ufs-question-content,
  .ufs-user-content
) blockquote:not(.ufs-footer-quote):not(.uss-scripture-preview-passage) cite {
  display: inline-block;
  margin-top: 0.18rem;
  color: var(--ufs-quote-copper-deep) !important;
  font-family: var(--ufs-quote-sans) !important;
  font-size: 0.72rem !important;
  font-style: normal !important;
  font-weight: 800 !important;
  letter-spacing: 0.09em;
  line-height: 1.35 !important;
  text-transform: uppercase;
}

body #main-content :is(
  .entry-content,
  .et_pb_post_content,
  .et_pb_text_inner,
  .ufs-standard-post-content,
  .ufs-question-content,
  .ufs-user-content
) blockquote:not(.ufs-footer-quote):not(.uss-scripture-preview-passage) a {
  color: #9d481f !important;
  font-weight: 700;
  text-decoration-color: rgba(157, 72, 31, 0.42);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

body #main-content :is(
  .entry-content,
  .et_pb_post_content,
  .et_pb_text_inner,
  .ufs-standard-post-content,
  .ufs-question-content,
  .ufs-user-content
) blockquote:not(.ufs-footer-quote):not(.uss-scripture-preview-passage) a:hover,
body #main-content :is(
  .entry-content,
  .et_pb_post_content,
  .et_pb_text_inner,
  .ufs-standard-post-content,
  .ufs-question-content,
  .ufs-user-content
) blockquote:not(.ufs-footer-quote):not(.uss-scripture-preview-passage) a:focus-visible {
  color: #c05a2a !important;
  text-decoration-color: currentColor;
}

/* Forum replies use the same visual language at a deliberately quieter scale. */
body #main-content .ufs-user-content blockquote:not(.ufs-footer-quote):not(.uss-scripture-preview-passage) {
  margin: 1.45rem 0 !important;
  padding: 1.35rem 1.25rem 1.15rem 1.55rem !important;
  border-left-width: 6px !important;
  font-size: 1.02rem !important;
  line-height: 1.58 !important;
}

body #main-content .ufs-user-content blockquote:not(.ufs-footer-quote):not(.uss-scripture-preview-passage)::before {
  top: -15px;
  left: 17px;
  width: 36px;
  height: 31px;
  font-size: 2rem;
}

@media (max-width: 767px) {
  body #main-content :is(
    .entry-content,
    .et_pb_post_content,
    .ufs-standard-post-content,
    .ufs-question-content,
    .ufs-user-content
  ) blockquote:not(.ufs-footer-quote):not(.uss-scripture-preview-passage) {
    margin: 1.9rem 0 !important;
    padding: 1.55rem 1.15rem 1.2rem 1.4rem !important;
    border-left-width: 6px !important;
    font-size: 1.08rem !important;
    line-height: 1.57 !important;
    box-shadow:
      inset 2px 0 0 var(--ufs-quote-copper),
      inset 0 1px rgba(255, 255, 255, 0.8),
      0 9px 22px rgba(44, 31, 23, 0.1) !important;
  }

  body #main-content :is(
    .entry-content,
    .et_pb_post_content,
    .ufs-standard-post-content,
    .ufs-question-content,
    .ufs-user-content
  ) blockquote:not(.ufs-footer-quote):not(.uss-scripture-preview-passage)::before {
    top: -15px;
    left: 16px;
    width: 36px;
    height: 31px;
    font-size: 2rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  body #main-content :is(
    .entry-content,
    .et_pb_post_content,
    .ufs-standard-post-content,
    .ufs-question-content,
    .ufs-user-content
  ) blockquote:not(.ufs-footer-quote):not(.uss-scripture-preview-passage),
  body #main-content :is(
    .entry-content,
    .et_pb_post_content,
    .ufs-standard-post-content,
    .ufs-question-content,
    .ufs-user-content
  ) blockquote:not(.ufs-footer-quote):not(.uss-scripture-preview-passage) * {
    transition: none !important;
  }
}
