/* Faction webfonts and attribution: assets/fonts/factions/README.md. */
@font-face { font-family: 'Chult Gilded Ledger'; src: url('../fonts/factions/merchant_princes.woff2?v=hands-20261102c') format('woff2'); font-style: normal; font-weight: 400; font-display: swap; }
[data-handwriting-faction='merchant_princes'] .v042-chat-body { font-family: 'Chult Gilded Ledger', sans-serif; }
@font-face { font-family: 'Chult Fist Dispatch'; src: url('../fonts/factions/flaming_fist.woff2?v=hands-20261102c') format('woff2'); font-style: normal; font-weight: 400; font-display: swap; }
[data-handwriting-faction='flaming_fist'] .v042-chat-body { font-family: 'Chult Fist Dispatch', sans-serif; }
@font-face { font-family: 'Chult Enclave Leaf'; src: url('../fonts/factions/emerald_enclave.woff2?v=hands-20261102c') format('woff2'); font-style: normal; font-weight: 400; font-display: swap; }
[data-handwriting-faction='emerald_enclave'] .v042-chat-body { font-family: 'Chult Enclave Leaf', sans-serif; }
@font-face { font-family: 'Chult Black Network'; src: url('../fonts/factions/zhentarim.woff2?v=hands-20261102c') format('woff2'); font-style: normal; font-weight: 400; font-display: swap; }
[data-handwriting-faction='zhentarim'] .v042-chat-body { font-family: 'Chult Black Network', sans-serif; }
@font-face { font-family: 'Chult Grimskull Scratch'; src: url('../fonts/factions/grimskull_goblins.woff2?v=hands-20261102c') format('woff2'); font-style: normal; font-weight: 400; font-display: swap; }
[data-handwriting-faction='grimskull_goblins'] .v042-chat-body { font-family: 'Chult Grimskull Scratch', sans-serif; }
@font-face { font-family: 'Chult Thayan Quill'; src: url('../fonts/factions/red_wizards_of_thay.woff2?v=hands-20261102c') format('woff2'); font-style: normal; font-weight: 400; font-display: swap; }
[data-handwriting-faction='red_wizards_of_thay'] .v042-chat-body { font-family: 'Chult Thayan Quill', sans-serif; }
@font-face { font-family: 'Chult Jahaka Log'; src: url('../fonts/factions/jahaka_pirates.woff2?v=hands-20261102c') format('woff2'); font-style: normal; font-weight: 400; font-display: swap; }
[data-handwriting-faction='jahaka_pirates'] .v042-chat-body { font-family: 'Chult Jahaka Log', sans-serif; }
@font-face { font-family: 'Chult Shilku Ember'; src: url('../fonts/factions/shilku.woff2?v=hands-20261102c') format('woff2'); font-style: normal; font-weight: 400; font-display: swap; }
[data-handwriting-faction='shilku'] .v042-chat-body { font-family: 'Chult Shilku Ember', sans-serif; }
@font-face { font-family: 'Chult Omgar Palm'; src: url('../fonts/factions/clan_of_omgar.woff2?v=hands-20261102c') format('woff2'); font-style: normal; font-weight: 400; font-display: swap; }
[data-handwriting-faction='clan_of_omgar'] .v042-chat-body { font-family: 'Chult Omgar Palm', sans-serif; }
@font-face { font-family: 'Chult Samarach Veil'; src: url('../fonts/factions/samarach.woff2?v=hands-20261102c') format('woff2'); font-style: normal; font-weight: 400; font-display: swap; }
[data-handwriting-faction='samarach'] .v042-chat-body { font-family: 'Chult Samarach Veil', sans-serif; }
@font-face { font-family: 'Chult Serpent Coil'; src: url('../fonts/factions/fane_of_the_night_serpent.woff2?v=hands-20261102c') format('woff2'); font-style: normal; font-weight: 400; font-display: swap; }
[data-handwriting-faction='fane_of_the_night_serpent'] .v042-chat-body { font-family: 'Chult Serpent Coil', sans-serif; }
[data-handwriting-faction]:not([data-handwriting-faction='']) .v042-chat-body { font-size: 1.2em; line-height: 1.55; font-weight: 400; }

/* Script faces have a smaller x-height than the surrounding interface text. */
[data-handwriting-faction='flaming_fist'] .v042-chat-body,
[data-handwriting-faction='samarach'] .v042-chat-body { font-size: 1.35em; line-height: 1.65; }

/* Council conversation, gallery, expanded text and public records share the
   same author-to-font mapping as private correspondence. */
:is(.v042-council-chat-message, .v042-council-scene, .v042-council-full-message, .council-post)[data-faction] {
  --council-voice-style: normal;
  --council-voice-variant: normal;
  --council-voice-tracking: normal;
}
:is(.v042-council-chat-message, .v042-council-scene, .v042-council-full-message, .council-post)[data-faction='merchant_princes'] { --council-voice-font: 'Chult Gilded Ledger', sans-serif; --council-voice-style: normal; --council-voice-variant: normal; --council-voice-tracking: normal; }
:is(.v042-council-chat-message, .v042-council-scene, .v042-council-full-message, .council-post)[data-faction='flaming_fist'] { --council-voice-font: 'Chult Fist Dispatch', sans-serif; --council-voice-style: normal; --council-voice-variant: normal; --council-voice-tracking: normal; }
:is(.v042-council-chat-message, .v042-council-scene, .v042-council-full-message, .council-post)[data-faction='emerald_enclave'] { --council-voice-font: 'Chult Enclave Leaf', sans-serif; --council-voice-style: normal; --council-voice-variant: normal; --council-voice-tracking: normal; }
:is(.v042-council-chat-message, .v042-council-scene, .v042-council-full-message, .council-post)[data-faction='zhentarim'] { --council-voice-font: 'Chult Black Network', sans-serif; --council-voice-style: normal; --council-voice-variant: normal; --council-voice-tracking: normal; }
:is(.v042-council-chat-message, .v042-council-scene, .v042-council-full-message, .council-post)[data-faction='grimskull_goblins'] { --council-voice-font: 'Chult Grimskull Scratch', sans-serif; --council-voice-style: normal; --council-voice-variant: normal; --council-voice-tracking: normal; }
:is(.v042-council-chat-message, .v042-council-scene, .v042-council-full-message, .council-post)[data-faction='red_wizards_of_thay'] { --council-voice-font: 'Chult Thayan Quill', sans-serif; --council-voice-style: normal; --council-voice-variant: normal; --council-voice-tracking: normal; }
:is(.v042-council-chat-message, .v042-council-scene, .v042-council-full-message, .council-post)[data-faction='jahaka_pirates'] { --council-voice-font: 'Chult Jahaka Log', sans-serif; --council-voice-style: normal; --council-voice-variant: normal; --council-voice-tracking: normal; }
:is(.v042-council-chat-message, .v042-council-scene, .v042-council-full-message, .council-post)[data-faction='shilku'] { --council-voice-font: 'Chult Shilku Ember', sans-serif; --council-voice-style: normal; --council-voice-variant: normal; --council-voice-tracking: normal; }
:is(.v042-council-chat-message, .v042-council-scene, .v042-council-full-message, .council-post)[data-faction='clan_of_omgar'] { --council-voice-font: 'Chult Omgar Palm', sans-serif; --council-voice-style: normal; --council-voice-variant: normal; --council-voice-tracking: normal; }
:is(.v042-council-chat-message, .v042-council-scene, .v042-council-full-message, .council-post)[data-faction='samarach'] { --council-voice-font: 'Chult Samarach Veil', sans-serif; --council-voice-style: normal; --council-voice-variant: normal; --council-voice-tracking: normal; }
:is(.v042-council-chat-message, .v042-council-scene, .v042-council-full-message, .council-post)[data-faction='fane_of_the_night_serpent'] { --council-voice-font: 'Chult Serpent Coil', sans-serif; --council-voice-style: normal; --council-voice-variant: normal; --council-voice-tracking: normal; }

.v042-council-scene[data-faction] .v042-council-speaker { font-family: var(--council-voice-font, Georgia, serif); font-style: normal; font-variant: normal; font-weight: 400; letter-spacing: normal; text-transform: none; transform: none; }
.council-post[data-faction] .council-post-body { font-family: var(--council-voice-font, Georgia, serif); font-size: 1.15em; line-height: 1.6; white-space: pre-wrap; overflow-wrap: anywhere; }
.council-post[data-faction='flaming_fist'] .council-post-body,
.council-post[data-faction='samarach'] .council-post-body { font-size: 1.3em; }
