/* Compatibility tokens for templates that still consume the original WB API.
   Keep the botanical brand authoritative without changing content or media. */
body.botanical-site,
body.botanical-site .bloor-study {
  --wb-sans: 'Geist Study', Arial, sans-serif;
  --wb-ui: 'Geist Study', Arial, sans-serif;
  --wb-font-display: 'Newsreader Study', Georgia, serif;
  --color-wipe: #e7eadf;
  --color-muted: #625c55;
  --color-focus: #97734d;
  --wb-paper: #fbfaf6;
  --wb-ink: #292623;
  --wb-muted: #625c55;
  --wb-line: rgb(41 38 35 / 18%);
  --wb-keyline: #292623;
  --wb-accent: #e8c7b3;
  --wb-palette-lead: #e7eadf;
  --wb-palette-lead-soft: #f1ede5;
  --wb-palette-accent: #e8c7b3;
  --wb-palette-accent-soft: #f1ede5;
  --wb-palette-paper: #fbfaf6;
  --wb-palette-canvas: #fbfaf6;
  --wb-palette-ink-lead: #292623;
  --wb-palette-ink-accent: #292623;
  --wb-palette-ink-neutral: #292623;
  --wb-palette-ink-muted: #625c55;
}

/* The legacy reset addresses every descendant, including the mast's dot. */
body.botanical-site .bloor-brand,
body.botanical-site .bloor-brand * {
  font-family: 'Newsreader Study', Georgia, serif !important;
}
body.botanical-site .bee-opening__status {
  font-family: 'Newsreader Study', Georgia, serif !important;
}
body.botanical-site .bloor-study > :is(.bloor-mast,.bloor-menu) {
  --color-paper: #fbfaf6;
  --color-ink: #292623;
  --color-line: rgb(41 38 35 / 18%);
}

body.botanical-site .bloor-study .thinking-article__opening--specimen {
  background: var(--color-paper);
}
body.botanical-site .thinking-article__qualification {
  background: var(--color-wipe);
}

/* Prospect chapters previously introduced a second display system below the
   mast. Resolve that system through the same brand tokens as the site frame. */
body.botanical-site .prospect-story,
body.botanical-site .prospect-story .cs-sequence {
  --font-display: 'Newsreader Study', Georgia, serif;
  --faculty-story-display: 'Newsreader Study', Georgia, serif;
  --faculty-story-superhead: 'Geist Study', Arial, sans-serif;
  --ps-reading-color: #292623;
  --ps-heading-weight: 350;
  --ps-feature-weight: 450;
  --wb-title-weight: 350;
  --ps-pitch-field: #292623;
}
body.botanical-site .prospect-story :is(h1,h2,h3,h4,.ps-framework__pitch-line) {
  font-weight: 350 !important;
  text-transform: none !important;
}
body.botanical-site .prospect-story .ps-opening :is(.ps-opening__rotating-title,.ps-opening__rotating-title span,.ps-opening__hypothesis) {
  font-family: 'Newsreader Study', Georgia, serif !important;
  font-weight: 350 !important;
  color: #fbfaf6 !important;
}
/* Legacy hero rules made every nested span a block. The native character
   reveal needs inline word/mask boxes, including after its DOM enhancement. */
body.botanical-site .prospect-story .ps-opening .ps-opening__rotating-title {
  width: 100%;
  max-width: 100%;
  line-height: 1.06 !important;
}
body.botanical-site .prospect-story .ps-opening .ps-opening__rotating-title :is(.work-type-word,.work-type-mask,.work-type-char) {
  display: inline-block;
  white-space: nowrap;
}
body.botanical-site .prospect-story .ps-opening .ps-opening__rotating-title .work-type-mask {
  padding-block: .2em;
  margin-block: -.2em;
}
body.botanical-site .prospect-story :is(.ps-opening,.ps-opening .wb-superhero__stage,.ps-opening .wb-superhero__scene,.faculty-story-chapter__visual,.ps-framework__pitch-media) {
  background-color: #292623;
}
body.botanical-site .prospect-story .ps-framework__pitch {
  --ps-pitch-field: #292623;
  --ps-pitch-ink: #fbfaf6;
}
body.botanical-site .prospect-story :is(.ps-framework__pitch-label,.faculty-brand-routes__introduction-label,.faculty-brand-routes__see-ideas,.faculty-brand-routes__field-label,.faculty-brand-routes__label) {
  color: #e8c7b3;
}
body.botanical-site .prospect-story .faculty-evidence {
  background: #e8c7b3;
}
body.botanical-site .faculty-chapter-rail a[data-active='true'] {
  --faculty-rail-color: #e8c7b3;
}
body.botanical-site .prospect-story .faculty-story-chapter--opportunity,
body.botanical-site .prospect-story .faculty-opportunity-comparison {
  background: #e7eadf;
  color: #292623;
}
body.botanical-site .prospect-story :is(.faculty-story-chapter--provocation,.faculty-story-chapter--approach,.faculty-brand-routes,.ps-framework__pitch-step,.ps-conversation) {
  background-color: #292623;
  color: #fbfaf6;
}
body.botanical-site .prospect-story :is(.faculty-story-chapter--provocation,.faculty-story-chapter--approach) .faculty-story-chapter__rationale p {
  color: #fbfaf6;
}
body.botanical-site .faculty-brand-routes__tab[aria-selected='true'],
body.botanical-site .faculty-brand-routes__tab[aria-selected='true']:hover {
  background: #e8c7b3;
  border-color: #e8c7b3;
  color: #292623;
}
