/* 5etools renderer CSS — scoped to .ve-stats-wrapper */

/* Stats table */
.ve-stats {
  font-family:
    PT Serif,
    serif;
  width: 100%;
  font-size: 0.875rem;
  table-layout: fixed;
  overflow-wrap: break-word;
  word-break: break-word;
  background: transparent;
  --sz-font-h0: 1.8em;
  --sz-font-h1: 1.5em;
  --sz-font-h2: 1.35em;
}

.ve-stats td,
.ve-stats th {
  padding: 1px 4px;
  vertical-align: top;
}

/* Name header */
.ve-stats__th-name {
  position: relative;
  font-size: 1.8em;
  font-family:
    PT Serif,
    serif;
  font-variant: small-caps;
  font-weight: 500;
  padding-left: 0.2em !important;
}
.ve-stats__h-name {
  font-size: 1.8em;
  line-height: 1.2;
  color: var(--t-accent);
}

/* Section headers (e.g. Actions, Traits) */
.ve-stats__sect-header-inner {
  display: block;
  margin-top: 3px;
  margin-bottom: -1px;
  font-weight: 100;
  color: var(--t-accent);
  font-size: 17px;
  line-height: 18px;
  font-family: Convergence, Arial, sans-serif;
  font-variant: small-caps;
  border-bottom: 1px solid var(--t-accent);
}

/* Rendered entry headings */
.ve-rd__h {
  margin: 0;
  line-height: inherit;
}
.ve-rd__h--0 {
  color: var(--t-accent);
  font-family:
    PT Serif,
    serif;
  font-variant: small-caps;
  font-weight: 500;
  font-size: var(--sz-font-h0);
}
.ve-rd__h--1 {
  color: var(--t-accent);
  font-family:
    PT Serif,
    serif;
  font-variant: small-caps;
  font-weight: 500;
  font-size: var(--sz-font-h1);
  border-bottom: 1px solid var(--t-accent);
  margin: 0 0 0.2em;
}
.ve-rd__h--2 {
  color: var(--t-accent);
  font-family:
    PT Serif,
    serif;
  font-variant: small-caps;
  font-weight: 500;
  font-size: var(--sz-font-h2);
}
.ve-rd__h--2-inset {
  font-variant: small-caps;
  font-weight: bolder;
  font-size: 1.1em;
}
.ve-rd__h--3 {
  font-weight: bold;
  font-style: italic;
}
.ve-rd__h--4 {
  font-style: italic;
}

/* Detailed entry panel overrides for narrow sidebar */
.detailed-entry .ve-stats table {
  table-layout: auto;
}
.detailed-entry .ve-stats__th-name {
  font-size: 1.4em;
}

/* Name/source metadata */
.ve-stats__wrp-h-source {
  display: flex;
  align-items: center;
}
.ve-stats__h-source-abbreviation {
  font-family: Convergence, Arial, sans-serif;
  font-size: 12px;
  color: var(--t-text-secondary);
  font-weight: 100;
}
.ve-stats__rd-name-page {
  font-family: Convergence, Arial, sans-serif;
  font-size: 12px;
  color: var(--t-text-secondary);
  font-weight: 100;
}

/* Borders */
.ve-tbl-border {
  height: 3px;
  background: var(--t-border-subtle);
}
.ve-tbl-border--small {
  height: 2px;
}
.ve-tbl-divider {
  background: var(--t-accent);
  height: 2px;
  margin: 0.5rem 0;
}

/* Renderer blocks */
.ve-rd__b p {
  margin-bottom: 5px;
}
.ve-rd__b--0,
.ve-rd__b--1,
.ve-rd__b--2,
.ve-rd__b--3,
.ve-rd__b--4 {
  margin-bottom: 5px;
}
.ve-rd__b--0:last-child,
.ve-rd__b--1:last-child,
.ve-rd__b--2:last-child,
.ve-rd__b--3:last-child,
.ve-rd__b--4:last-child {
  margin-bottom: 0;
}
.ve-rd__hr {
  border-color: rgba(170, 170, 170, 0.4);
  margin: 17px 0 5px;
}

/* Lists */
.ve-rd__list {
  margin-top: 0;
  margin-bottom: 5px;
  padding-left: 24px;
  list-style-type: disc;
}
.ve-rd__list-name {
  margin: 0 0 3px;
  font-weight: bold;
  list-style-type: none;
}
.ve-rd__li {
  margin-bottom: 5px;
}
.ve-rd__list-hang-notitle {
  padding: 0;
  list-style: none;
}
.ve-rd__list-hang-notitle > .ve-rd__list-name {
  margin-left: -24px;
}
.ve-rd__list-hang-notitle > .ve-rd__li {
  margin-bottom: 3px;
  text-indent: -1.1em;
  margin-left: 1.1em;
}
.ve-rd__list-hang-notitle > .ve-rd__li a,
.ve-rd__list-hang-notitle > .ve-rd__li span {
  text-indent: initial;
}
.ve-rd__list-item-name {
  font-weight: bold;
}
.ve-rd__p-list-item {
  font-style: initial;
}
.ve-rd__li-spell {
  margin: 0;
}
.ve-rd__list-no-bullets {
  list-style: none;
  padding: 0 0 0 10px;
}

/* Headings */
.ve-rd__h {
  margin: 0;
  line-height: inherit;
}
.ve-rd__h--0 {
  color: var(--t-accent);
  font-family:
    PT Serif,
    serif;
  font-variant: small-caps;
  font-weight: 500;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 1.8em;
}
.ve-rd__h--1 {
  color: var(--t-accent);
  font-family:
    PT Serif,
    serif;
  font-variant: small-caps;
  font-weight: 500;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 1.5em;
  border-bottom: 1px solid var(--t-accent);
  margin: 0 0 0.2em;
}
.ve-rd__h--2 {
  color: var(--t-accent);
  font-family:
    PT Serif,
    serif;
  font-variant: small-caps;
  font-weight: 500;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 1.35em;
}
.ve-rd__h--2-inset {
  font-variant: small-caps;
  font-weight: bolder;
  font-size: 1.1em;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.ve-rd__h--3 {
  font-weight: bold;
  font-style: italic;
}
.ve-rd__h--4 {
  font-style: italic;
}

/* Inline blocks */
.ve-rd__b--3 > p,
.ve-rd__b--4 > p {
  margin-bottom: 0;
}
.ve-rd__b--3 > p + p {
  text-indent: 0.7em;
}
.ve-rd__b-inset {
  margin: 7px 15px;
  padding: 5px 10px;
  box-shadow: 0 0 4px 0 rgba(128, 128, 128, 0.3);
  border: 1px solid var(--t-border-subtle);
  border-top: 2px solid var(--t-border-subtle);
  border-bottom: 2px solid var(--t-border-subtle);
  background-color: var(--t-bg-secondary);
  text-indent: initial;
}
.ve-rd__b-inset > *:last-child {
  margin-bottom: 0;
}

/* Images */
.ve-rd__wrp-image {
  margin: 5px auto 0;
  text-align: center;
}
.ve-rd__image {
  max-width: 100%;
  max-height: 60vh;
}
.ve-rd__image-title {
  width: 100%;
  text-align: center;
  font-style: italic;
  margin-top: 3px;
}

/* Misc */
.ve-rd__prerequisite {
  font-style: italic;
  display: block;
}
.ve-rd__quote-by {
  width: 100%;
  text-align: right;
  display: block;
}
.ve-rd__stats-name-page {
  font-family: Convergence, Arial, sans-serif;
  font-size: 12px;
  color: var(--t-text-secondary);
  font-weight: 100;
}
.ve-rd__compact-stat {
}
.ve-rd__dc {
}
.ve-rd__p-cont-indent {
  display: block;
  text-indent: 0.7em;
}
.ve-rd__table {
  width: 100%;
  margin-bottom: 5px;
  white-space: initial;
}
.ve-rd__th {
  text-align: left;
}

/* Utility classes */
.ve-bold {
  font-weight: bold !important;
}
.ve-italic {
  font-style: italic !important;
}
.ve-muted {
  color: #777 !important;
}
.ve-muted a,
.ve-muted .ve-roller {
  color: #7096b7;
}
.ve-small {
  font-size: 85% !important;
}
.ve-large {
  font-size: 125% !important;
}
.ve-code {
  font-family: monospace !important;
}
.ve-dnd-font {
  font-family:
    PT Serif,
    serif;
  font-variant: small-caps;
  font-weight: 500;
}
.ve-underline {
  text-decoration: underline !important;
}
.ve-no-underline {
  text-decoration: none !important;
}
.ve-help {
  cursor: help !important;
  text-decoration: underline !important;
  text-decoration-style: dotted !important;
}
.ve-help-subtle,
.ve-help--hover {
  cursor: help !important;
}
.ve-roller {
  cursor: pointer;
  color: var(--t-subclass);
}
.ve-copyable {
  cursor: pointer;
}

/* Flex utilities */
.ve-flex {
  display: flex !important;
}
.ve-flex-col {
  display: flex !important;
  flex-direction: column !important;
}
.ve-flex-v-center {
  display: flex !important;
  align-items: center !important;
}
.ve-flex-v-baseline {
  display: flex !important;
  align-items: baseline !important;
}
.ve-flex-wrap {
  display: flex !important;
  flex-wrap: wrap !important;
}
.ve-grow {
  flex-grow: 1 !important;
}
.ve-split-v-end {
  display: flex !important;
  justify-content: space-between !important;
  align-items: flex-end !important;
}
.ve-relative {
  position: relative !important;
}

/* Spacing */
.ve-m-0 {
  margin: 0 !important;
}
.ve-mt-1 {
  margin-top: 0.25rem !important;
}
.ve-mt-2 {
  margin-top: 0.5rem !important;
}
.ve-mb-1 {
  margin-bottom: 0.25rem !important;
}
.ve-ml-1 {
  margin-left: 0.25rem !important;
}
.ve-my-1 {
  margin-top: 0.25rem !important;
  margin-bottom: 0.25rem !important;
}
.ve-pb-0 {
  padding-bottom: 0 !important;
}
.ve-pb-2 {
  padding-bottom: 0.5rem !important;
}
.ve-pt-2 {
  padding-top: 0.5rem !important;
}
.ve-pr-2 {
  padding-right: 0.5rem !important;
}

/* Width */
.ve-w-100,
.w100 {
  width: 100% !important;
}
.ve-min-w-25 {
  min-width: 25% !important;
}
.ve-col-2 {
  width: 16.66667% !important;
}
.ve-text-center {
  text-align: center !important;
}
.ve-text-left {
  text-align: left !important;
}
.ve-table-layout-fixed {
  table-layout: fixed !important;
}
.ve-summary-noback {
  background: none !important;
}

/* Source colors */
.ve-source__PHB {
  color: #4a6898 !important;
}
.ve-source__DMG {
  color: purple !important;
}
.ve-source__MM {
  color: green !important;
}
.ve-source__XGE,
.ve-source__TTP {
  color: #ba7c00 !important;
}
.ve-source__TCE {
  color: #a24d08 !important;
}
.ve-source__XPHB {
  color: #ed7c00 !important;
}
.ve-source__XDMG {
  color: #c43c4c !important;
}
.ve-source__XMM {
  color: #5686b6 !important;
}
.ve-source__VGM {
  color: gray !important;
}
.ve-source__MTF {
  color: #1f6e7b !important;
}
.ve-source__MPMM {
  color: #5c758d !important;
}
.ve-source__FTD {
  color: #b82a15 !important;
}
.ve-source__SCAG {
  color: #76af76 !important;
}
.ve-source__EGW {
  color: #855a6e !important;
}
.ve-source__ERLW {
  color: #983426 !important;
}
.ve-source__GGR {
  color: #bfa76c !important;
}
.ve-source__MOT {
  color: #556b2e !important;
}
.ve-source__AI {
  color: #5baf04 !important;
}
.ve-source__BGG {
  color: #469cb7 !important;
}
.ve-source__SCC {
  color: #be9c56 !important;
}
.ve-source__AAG,
.ve-source__BAM {
  color: #056b97 !important;
}

.dark .ve-source__PHB {
  color: #337ab7 !important;
}
.dark .ve-source__DMG {
  color: #ba1eba !important;
}

/* Source marker */
.ve-source-marker {
  position: relative;
  font-size: 80%;
  display: inline-block;
  margin-left: 1px;
  align-self: start;
}
.ve-source-marker--stats-name {
  font-size: 14px;
  margin-right: -1px;
}
.ve-source-marker--legacy {
  color: #777;
}
.ve-source-marker--list {
  left: 1px;
  margin-top: 1px;
  margin-left: -20px;
  padding-left: 20px;
  line-height: 8px;
  height: 8px;
  width: 8px;
}

/* Spell school colors */
.ve-sp__school--a {
  color: #00b921;
}
.ve-sp__school--v {
  color: #bb0100;
}
.ve-sp__school--e {
  color: #b30083;
}
.ve-sp__school--i {
  color: #006dbd;
}
.ve-sp__school--d {
  color: #00adb3;
}
.ve-sp__school--n {
  color: #6c00cc;
}
.ve-sp__school--t {
  color: #ccbe00;
}
.ve-sp__school--c {
  color: #bd0044;
}

/* Item rarity */
.ve-itm__rarity-common {
  color: hsl(0, 0%, 35%);
}
.ve-itm__rarity-uncommon {
  color: #c27341;
}
.ve-itm__rarity-rare {
  color: #ac99d3;
}
.ve-itm__rarity-very {
  color: #de993f;
}
.ve-itm__rarity-legendary {
  color: #6dcff7;
}
.ve-itm__rarity-artifact {
  color: #b61a1a;
}

/* Hide export-only elements */
.ve-lst-is-exporting-image__no-wrap {
  white-space: nowrap;
}

/* Render roller */
.render-roller {
  cursor: pointer;
}

/* "One" style ability score table */
.ve-stats-tbl-ability-scores__lbl-abv {
  width: 2.2em;
  text-align: center;
}
.ve-stats-tbl-ability-scores__lbl-score {
  text-align: center;
}
.ve-stats-tbl-ability-scores__lbl-spacer {
  width: 0.8em;
}

/* Additional utility classes for "one" style */
.ve-small-caps {
  font-variant: small-caps !important;
}
.ve-no-wrap {
  white-space: nowrap !important;
}
.ve-text-right {
  text-align: right !important;
}
.ve-py-0 {
  padding-top: 0 !important;
  padding-bottom: 0 !important;
}
.ve-pb-1 {
  padding-bottom: 0.25rem !important;
}
.ve-pb-3 {
  padding-bottom: 0.75rem !important;
}
.ve-pt-0 {
  padding-top: 0 !important;
}
.ve-my-1p {
  margin-top: 1px !important;
  margin-bottom: 1px !important;
}
