/* Plain reference prose only. The landing page, chronology, navigation,
 * opening sections, profiles, cards, buttons and captions keep their own design.
 */
:is(body.kf-reference-reading, .kf-reference-design-sample) {
  --kf-reference-font: var(--wp--preset--font-family--serif);
  --kf-reference-body-size: var(--kf-font-16);
  --kf-reference-line-height: 2;
  --kf-reference-letter-spacing: 0.02em;
  --kf-reference-link: #1769aa;
  --kf-reference-link-hover: #0f4f86;
  --kf-reference-h4-marker-space: 0px;
  --kf-reference-h4-marker-display: none;
}

:is(body.kf-reference-reading, .kf-reference-design-sample) :is(.entry-content, .kf-reference-person-content, .kf-reference-form-content) > p:not(.kf-reference-person-role),
:is(body.kf-reference-reading, .kf-reference-design-sample) :is(.entry-content, .kf-reference-person-content, .kf-reference-form-content) > :is(ul, ol) > li,
body.kf-reference-reading .entry-content .kf-reference-form-content .swell-block-column > p {
  font-family: var(--kf-reference-font);
  font-size: var(--kf-reference-body-size);
  line-height: var(--kf-reference-line-height);
  letter-spacing: var(--kf-reference-letter-spacing);
}

:is(body.kf-reference-reading, .kf-reference-design-sample) :is(.entry-content, .kf-reference-person-content, .kf-reference-form-content) > :is(p, ul, ol) a:not(:has(img)) {
  color: var(--kf-reference-link) !important;
  text-decoration: underline !important;
  text-decoration-color: currentColor !important;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;
}

:is(body.kf-reference-reading, .kf-reference-design-sample) :is(.entry-content, .kf-reference-person-content, .kf-reference-form-content) > :is(p, ul, ol) a:not(:has(img)) :is(span, strong, b) {
  color: inherit;
}

:is(body.kf-reference-reading, .kf-reference-design-sample) :is(.entry-content, .kf-reference-person-content, .kf-reference-form-content) > :is(p, ul, ol) a:not(:has(img)):is(:hover, :focus-visible) {
  color: var(--kf-reference-link-hover) !important;
}

/* Approved lineage pages: identity belongs to the title scene; the profile stays unboxed. */
body.kf-reference-lineage-person .kf-page-title-scene .kf-page-title-scene__eyebrow {
  margin-left: 0 !important;
  margin-right: 0 !important;
  max-width: none;
}
body.kf-reference-lineage-person .kf-page-title-scene__eyebrow {
  font-size: var(--kf-font-12);
  letter-spacing: 0.08em;
  line-height: 1.8;
}
body.kf-reference-lineage-person .kf-page-title-scene .kf-reference-title-reading {
  display: inline-block;
  margin-left: 0.65em;
  font-size: var(--kf-font-19-12);
  font-weight: 400;
  line-height: 1.6;
  letter-spacing: 0.04em;
  vertical-align: baseline;
  white-space: nowrap;
  color: rgb(255 255 255 / 82%);
}
body.kf-reference-person-page .kf-reference-person-profile.kf-reference-person-profile--plain {
  padding: 0;
  border: 0;
  border-radius: 0;
  background: none;
}

/* Approved lineage pages: use the study-journal title gradient. */
body.kf-reference-lineage-person .kf-page-title-scene .wp-block-cover__background {
  background: linear-gradient(90deg, rgba(25, 29, 26, .76) 0%, rgba(35, 39, 35, .56) 40%, rgba(35, 39, 35, .36) 65%, rgba(35, 39, 35, .10) 100%) !important;
  opacity: 1 !important;
}
