.tei-view {
  display: flex;
  flex-direction: column;
  min-width: 0;
  padding: 1px;
}

.tei-view .tei-page {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-8);
  min-width: 0;
}

.tei-view [data-layer='rendering'], .tei-view [data-layer='translated-rendering'], .tei-view .tei-empty {
  padding: var(--spacing-16);
}

.tei-view .tei-page-raw .code-view, .tei-view .tei-page-raw .code-editor-view {
  border-radius: 0;
}

.tei-view .tei-run-alternative, .tei-view .tei-run-alternative .tooltip-trigger-content {
  display: inline;
  vertical-align: baseline;
  font: inherit;
}

.tei-view .tei-figure {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-4);
  align-items: flex-start;
  margin: 0;
  margin-block: var(--spacing-8);
  min-width: 0;
}

.tei-view .tei-figure-image {
  max-width: 100%;
  max-height: 320px;
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: var(--border-radius-base);
  border: var(--border-width-base) solid var(--border-color-subtle);
}

.tei-view .tei-initial-image {
  max-width: 96px;
  max-height: 96px;
  vertical-align: bottom;
}

.tei-view .tei-initial {
  position: relative;
  display: inline-block;
}

.tei-view .tei-initial-letter {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: transparent;
}

.tei-view .tei-figure-caption {
  font-family: var(--typography-font-sans);
  font-size: var(--font-size-medium-16);
  font-style: italic;
  color: var(--color-subtle);
}

.tei-view .tei-run[data-rend~='smallcaps'], .tei-view .tei-run[data-rend~='small-caps'] {
  font-variant-caps: small-caps;
}

.tei-view .tei-run[data-rend~='italic'], .tei-view .tei-run[data-rend~='ital'], .tei-view .tei-block[data-rend~='italic'] > .tei-line, .tei-view .tei-section > .tei-line[data-rend~='italic'], .tei-view .tei-frame[data-rend~='italic'] .tei-line {
  font-family: var(--typography-font-serif-italic);
  font-style: italic;
}

.tei-view .tei-run[data-rend~='roman'], .tei-view .tei-block[data-rend~='roman'] > .tei-line, .tei-view .tei-section > .tei-line[data-rend~='roman'], .tei-view .tei-frame[data-rend~='roman'] .tei-line {
  font-family: var(--typography-font-serif);
  font-style: normal;
}

.tei-view .tei-run[data-rend~='sans-serif'], .tei-view .tei-block[data-rend~='sans-serif'] > .tei-line, .tei-view .tei-section > .tei-line[data-rend~='sans-serif'], .tei-view .tei-frame[data-rend~='sans-serif'] .tei-line {
  font-family: var(--typography-font-sans);
}

.tei-view .tei-run[data-rend~='typewriter'], .tei-view .tei-block[data-rend~='typewriter'] > .tei-line, .tei-view .tei-section > .tei-line[data-rend~='typewriter'], .tei-view .tei-frame[data-rend~='typewriter'] .tei-line {
  font-family: var(--typography-font-mono);
}

.tei-view .tei-run[data-rend~='bold'] {
  font-weight: var(--font-weight-bold);
}

.tei-view .tei-run[data-rend~='underline'], .tei-view .tei-run[data-rend~='underlined'] {
  text-decoration: underline;
}

.tei-view .tei-run[data-rend~='sub'], .tei-view .tei-run[data-rend~='subscript'] {
  vertical-align: sub;
  font-size: 0.75em;
  line-height: 0;
}

.tei-view .tei-run[data-rend~='sup'], .tei-view .tei-run[data-rend~='super'], .tei-view .tei-run[data-rend~='superscript'] {
  vertical-align: super;
  font-size: 0.75em;
  line-height: 0;
}

.tei-view .tei-table-scroll {
  max-width: 100%;
  min-width: 0;
  overflow-x: auto;
}

.tei-view .tei-table {
  border-collapse: collapse;
  font-family: var(--typography-font-serif);
  font-size: var(--font-size-medium-16);
  color: var(--color-base);
}

.tei-view .tei-table td, .tei-view .tei-table th {
  border: var(--border-width-base) solid var(--border-color-subtle);
  padding: var(--spacing-8);
  vertical-align: middle;
  text-align: start;
}

.tei-view .tei-table td > .tei-line, .tei-view .tei-table th > .tei-line {
  display: block;
  white-space: nowrap;
}

.tei-view .tei-table[data-table-type='contents'] {
  width: 100%;
}

.tei-view .tei-table[data-table-type='contents'] td, .tei-view .tei-table[data-table-type='contents'] th {
  border: none;
  padding: var(--spacing-2) var(--spacing-0);
  font-weight: inherit;
  vertical-align: baseline;
}

.tei-view .tei-table[data-table-type='contents'] td:not(:last-child):not(:has(> .tei-line-leadered)), .tei-view .tei-table[data-table-type='contents'] th:not(:last-child):not(:has(> .tei-line-leadered)) {
  width: 0;
}

.tei-view .tei-table[data-table-type='contents'] tr:not(:has(> td)) > th {
  padding-block-end: var(--spacing-0);
}

.tei-view .tei-table[data-table-type='contents'] tr:not(:has(> td)) + tr > * {
  padding-block-start: var(--spacing-0);
}

.tei-view .tei-table[data-table-type='contents'] tr:not(:has(> td)) + tr > *, .tei-view .tei-table[data-table-type='contents'] tr:not(:has(> td)) + tr > * > .tei-line-leadered > * {
  text-box: trim-start text;
}

.tei-view .tei-table[data-table-type='contents'] td:last-child, .tei-view .tei-table[data-table-type='contents'] th:last-child {
  text-align: end;
  white-space: nowrap;
  vertical-align: bottom;
}

.tei-view .tei-table[data-table-type='contents'] td > .tei-line, .tei-view .tei-table[data-table-type='contents'] th > .tei-line {
  white-space: inherit;
}

.tei-view .tei-table td > .tei-line.tei-line-leadered, .tei-view .tei-table th > .tei-line.tei-line-leadered {
  display: flex;
  align-items: baseline;
}

.tei-view .tei-leader-title {
  flex-shrink: 0;
}

.tei-view .tei-leader {
  flex: 1 0 auto;
  text-align: end;
  white-space: nowrap;
}

.tei-view .tei-rule {
  flex-shrink: 0;
  align-self: stretch;
  height: 0;
  margin: 0;
  border: none;
  border-top-width: var(--border-width-base);
  border-top-style: solid;
  border-top-color: currentcolor;
  color: var(--color-base);
  font-size: var(--font-size-medium-16);
}

.tei-view .tei-rule[data-rend~='align(center)'] {
  margin-inline: auto;
}

.tei-view .tei-rule[data-rend~='align(right)'] {
  margin-inline-start: auto;
}

.tei-view .tei-document-boundary {
  width: 100%;
  border: none;
  border-top: var(--border-width-base) solid var(--border-color-subtle);
  margin-block: var(--spacing-8);
}

.tei-view .tei-block[data-rend~='align(center)'], .tei-view .tei-section > .tei-line[data-rend~='align(center)'] {
  text-align: center;
}

.tei-view .tei-block[data-rend~='align(justify)'], .tei-view .tei-section > .tei-line[data-rend~='align(justify)'] {
  text-align: justify;
}

.tei-view .tei-block[data-rend~='align(left)'], .tei-view .tei-section > .tei-line[data-rend~='align(left)'], .tei-view .tei-table :is(td, .tei-view th) > .tei-line[data-rend~='align(left)'], .tei-view .tei-block[data-rend~='align(right)']:dir(rtl), .tei-view .tei-section > .tei-line[data-rend~='align(right)']:dir(rtl), .tei-view .tei-table :is(td, .tei-view th) > .tei-line[data-rend~='align(right)']:dir(rtl) {
  text-align: start;
}

.tei-view .tei-block[data-rend~='align(right)'], .tei-view .tei-section > .tei-line[data-rend~='align(right)'], .tei-view .tei-table :is(td, .tei-view th) > .tei-line[data-rend~='align(right)'], .tei-view .tei-block[data-rend~='align(left)']:dir(rtl), .tei-view .tei-section > .tei-line[data-rend~='align(left)']:dir(rtl), .tei-view .tei-table :is(td, .tei-view th) > .tei-line[data-rend~='align(left)']:dir(rtl) {
  text-align: end;
}

.tei-view .tei-block[data-rend~='indent(1)'], .tei-view .tei-section > .tei-line[data-rend~='indent(1)'], .tei-view .tei-table .tei-line[data-rend~='indent(1)'] {
  padding-inline-start: calc(1 * var(--spacing-24));
}

.tei-view .tei-block[data-rend~='indent(2)'], .tei-view .tei-section > .tei-line[data-rend~='indent(2)'], .tei-view .tei-table .tei-line[data-rend~='indent(2)'] {
  padding-inline-start: calc(2 * var(--spacing-24));
}

.tei-view .tei-block[data-rend~='indent(3)'], .tei-view .tei-section > .tei-line[data-rend~='indent(3)'], .tei-view .tei-table .tei-line[data-rend~='indent(3)'] {
  padding-inline-start: calc(3 * var(--spacing-24));
}

.tei-view .tei-block[data-rend~='indent(4)'], .tei-view .tei-section > .tei-line[data-rend~='indent(4)'], .tei-view .tei-table .tei-line[data-rend~='indent(4)'] {
  padding-inline-start: calc(4 * var(--spacing-24));
}

.tei-view .tei-block[data-rend~='indent(5)'], .tei-view .tei-section > .tei-line[data-rend~='indent(5)'], .tei-view .tei-table .tei-line[data-rend~='indent(5)'] {
  padding-inline-start: calc(5 * var(--spacing-24));
}

.tei-view .tei-block[data-rend~='indent(6)'], .tei-view .tei-section > .tei-line[data-rend~='indent(6)'], .tei-view .tei-table .tei-line[data-rend~='indent(6)'] {
  padding-inline-start: calc(6 * var(--spacing-24));
}

.tei-view .tei-block {
  display: block;
  min-width: 0;
}

.tei-view .tei-block > * {
  display: inline;
}

.tei-view .tei-page-text:not([data-reflow='true'] *) {
  white-space: nowrap;
  overflow-x: auto;
}

.tei-view .tei-page-text[data-framed='true']:not([data-reflow='true'] *) {
  display: grid;
  grid-template-areas: "top-left top top-right" "margin-left frame margin-right" "bottom-left bottom bottom-right";
  grid-template-columns: auto max-content auto;
  grid-template-rows: auto auto auto;
  justify-content: center;
  align-content: center;
  box-sizing: border-box;
  font-size: var(--font-size-medium-16);
  padding: calc(var(--tei-frame-margin) * 1em);
  inline-size: max-content;
  min-inline-size: calc(var(--tei-page-width) * 1em);
  min-block-size: calc(var(--tei-page-height) * 1em);
}

.tei-view .tei-page-text[data-framed='true']:not([data-reflow='true'] *) > .tei-text-block {
  grid-area: frame;
  display: flex;
  flex-direction: column;
  box-sizing: content-box;
  inline-size: calc(var(--tei-frame-measure) * 1em);
  min-inline-size: max-content;
  min-block-size: calc(var(--tei-frame-height) * 1em);
}

.tei-view .tei-page-text[data-framed='true']:not([data-reflow='true'] *) > .tei-margin {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.tei-view .tei-page-text[data-framed='true']:not([data-reflow='true'] *) > .tei-margin[data-place='top-left'] {
  grid-area: top-left;
  align-self: end;
  justify-self: end;
}

.tei-view .tei-page-text[data-framed='true']:not([data-reflow='true'] *) > .tei-margin[data-place='top'] {
  grid-area: top;
  align-self: end;
  justify-self: start;
}

.tei-view .tei-page-text[data-framed='true']:not([data-reflow='true'] *) > .tei-margin[data-place='top-right'] {
  grid-area: top-right;
  align-self: end;
  justify-self: start;
}

.tei-view .tei-page-text[data-framed='true']:not([data-reflow='true'] *) > .tei-margin[data-place='margin-left'] {
  grid-area: margin-left;
  align-self: start;
  justify-self: end;
}

.tei-view .tei-page-text[data-framed='true']:not([data-reflow='true'] *) > .tei-margin[data-place='margin-right'] {
  grid-area: margin-right;
  align-self: start;
  justify-self: start;
}

.tei-view .tei-page-text[data-framed='true']:not([data-reflow='true'] *) > .tei-margin[data-place='bottom-left'] {
  grid-area: bottom-left;
  align-self: start;
  justify-self: end;
}

.tei-view .tei-page-text[data-framed='true']:not([data-reflow='true'] *) > .tei-margin[data-place='bottom'] {
  grid-area: bottom;
  align-self: start;
  justify-self: start;
}

.tei-view .tei-page-text[data-framed='true']:not([data-reflow='true'] *) > .tei-margin[data-place='bottom-right'] {
  grid-area: bottom-right;
  align-self: start;
  justify-self: start;
}

.tei-view .tei-page-text:not([data-framed='true']):not([data-reflow='true'] *) > * {
  min-inline-size: calc(var(--size-640) - 2 * var(--spacing-16));
}

.tei-view .tei-page-text:not([data-reflow='true'] *) .tei-block > * {
  display: block;
  text-indent: 0;
}

.tei-view .tei-page-text:not([data-reflow='true'] *) .tei-block > :first-child {
  text-indent: inherit;
}

.tei-view .tei-page-text:not([data-reflow='true'] *) .tei-block:is([data-part='F'], .tei-view[data-part='M']) > :first-child {
  text-indent: 0;
}

.tei-view .tei-page-text:not([data-reflow='true'] *) .tei-block[data-rend~='align(justify)'] > .tei-line:not(:last-child), .tei-view .tei-page-text:not([data-reflow='true'] *) .tei-block[data-rend~='align(justify)']:is([data-part='I'], .tei-view[data-part='M']) > .tei-line {
  text-align: justify;
  text-align-last: justify;
}

.tei-view .tei-page-text:not([data-reflow='true'] *)::-webkit-scrollbar-track, .tei-view .tei-page-text:not([data-reflow='true'] *)::-webkit-scrollbar-track-piece, .tei-view .tei-page-text:not([data-reflow='true'] *)::-webkit-scrollbar-corner {
  background-color: transparent !important;
}

.tei-view .tei-block[data-rend~='hanging'] {
  padding-inline-start: var(--spacing-24);
  text-indent: calc(-1 * var(--spacing-24));
}

.tei-view .tei-forme-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  gap: var(--spacing-8);
  align-items: baseline;
}

.tei-view .tei-forme-row-start {
  justify-self: start;
}

.tei-view .tei-forme-row-center {
  justify-self: center;
}

.tei-view .tei-forme-row-end {
  justify-self: end;
}

.tei-view .tei-page-text {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.tei-view .tei-spread, .tei-view .tei-columns {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-16);
  min-width: 0;
  box-sizing: border-box;
}

.tei-view .tei-spread-page, .tei-view .tei-column {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.tei-view .tei-page-text:not([data-reflow='true'] *) .tei-spread, .tei-view .tei-page-text:not([data-reflow='true'] *) .tei-columns {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 1fr;
  gap: var(--spacing-32);
  width: max-content;
  min-width: 100%;
}

.tei-view .tei-section {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.tei-view .tei-frame {
  display: flex;
  flex-direction: column;
  min-width: 0;
  max-width: 100%;
  box-sizing: border-box;
  border-width: var(--border-width-base);
  border-color: currentcolor;
  color: var(--color-base);
}

.tei-view .tei-frame[data-rend~='align(center)'] {
  align-self: center;
}

.tei-view .tei-frame[data-rend~='align(right)'] {
  align-self: flex-end;
}

.tei-view .tei-frame[data-rend~='align(left)'] {
  align-self: flex-start;
}

.tei-view .tei-run[data-rend~='color(pink)'], .tei-view .tei-block[data-rend~='color(pink)'] > .tei-line, .tei-view .tei-frame[data-rend~='color(pink)'], .tei-view .tei-section > .tei-line[data-rend~='color(pink)'], .tei-view .tei-frame[data-rend~='color(pink)'] .tei-line {
  color: var(--color-pink);
}

.tei-view .tei-run[data-rend~='color(red)'], .tei-view .tei-block[data-rend~='color(red)'] > .tei-line, .tei-view .tei-frame[data-rend~='color(red)'], .tei-view .tei-section > .tei-line[data-rend~='color(red)'], .tei-view .tei-frame[data-rend~='color(red)'] .tei-line {
  color: var(--color-red);
}

.tei-view .tei-run[data-rend~='color(orange)'], .tei-view .tei-block[data-rend~='color(orange)'] > .tei-line, .tei-view .tei-frame[data-rend~='color(orange)'], .tei-view .tei-section > .tei-line[data-rend~='color(orange)'], .tei-view .tei-frame[data-rend~='color(orange)'] .tei-line {
  color: var(--color-orange);
}

.tei-view .tei-run[data-rend~='color(brown)'], .tei-view .tei-block[data-rend~='color(brown)'] > .tei-line, .tei-view .tei-frame[data-rend~='color(brown)'], .tei-view .tei-section > .tei-line[data-rend~='color(brown)'], .tei-view .tei-frame[data-rend~='color(brown)'] .tei-line {
  color: var(--color-orange);
}

.tei-view .tei-run[data-rend~='color(yellow)'], .tei-view .tei-block[data-rend~='color(yellow)'] > .tei-line, .tei-view .tei-frame[data-rend~='color(yellow)'], .tei-view .tei-section > .tei-line[data-rend~='color(yellow)'], .tei-view .tei-frame[data-rend~='color(yellow)'] .tei-line {
  color: var(--color-yellow);
}

.tei-view .tei-run[data-rend~='color(olive)'], .tei-view .tei-block[data-rend~='color(olive)'] > .tei-line, .tei-view .tei-frame[data-rend~='color(olive)'], .tei-view .tei-section > .tei-line[data-rend~='color(olive)'], .tei-view .tei-frame[data-rend~='color(olive)'] .tei-line {
  color: var(--color-yellow);
}

.tei-view .tei-run[data-rend~='color(yellow-green)'], .tei-view .tei-block[data-rend~='color(yellow-green)'] > .tei-line, .tei-view .tei-frame[data-rend~='color(yellow-green)'], .tei-view .tei-section > .tei-line[data-rend~='color(yellow-green)'], .tei-view .tei-frame[data-rend~='color(yellow-green)'] .tei-line {
  color: var(--color-lime);
}

.tei-view .tei-run[data-rend~='color(green)'], .tei-view .tei-block[data-rend~='color(green)'] > .tei-line, .tei-view .tei-frame[data-rend~='color(green)'], .tei-view .tei-section > .tei-line[data-rend~='color(green)'], .tei-view .tei-frame[data-rend~='color(green)'] .tei-line {
  color: var(--color-green);
}

.tei-view .tei-run[data-rend~='color(blue)'], .tei-view .tei-block[data-rend~='color(blue)'] > .tei-line, .tei-view .tei-frame[data-rend~='color(blue)'], .tei-view .tei-section > .tei-line[data-rend~='color(blue)'], .tei-view .tei-frame[data-rend~='color(blue)'] .tei-line {
  color: var(--color-blue);
}

.tei-view .tei-run[data-rend~='color(purple)'], .tei-view .tei-block[data-rend~='color(purple)'] > .tei-line, .tei-view .tei-frame[data-rend~='color(purple)'], .tei-view .tei-section > .tei-line[data-rend~='color(purple)'], .tei-view .tei-frame[data-rend~='color(purple)'] .tei-line {
  color: var(--color-magenta);
}

.tei-view .tei-run[data-rend~='color(gray)'], .tei-view .tei-block[data-rend~='color(gray)'] > .tei-line, .tei-view .tei-frame[data-rend~='color(gray)'], .tei-view .tei-section > .tei-line[data-rend~='color(gray)'], .tei-view .tei-frame[data-rend~='color(gray)'] .tei-line {
  color: var(--color-gray);
}

.tei-view .tei-run[data-rend~='color(black)'], .tei-view .tei-block[data-rend~='color(black)'] > .tei-line, .tei-view .tei-frame[data-rend~='color(black)'], .tei-view .tei-section > .tei-line[data-rend~='color(black)'], .tei-view .tei-frame[data-rend~='color(black)'] .tei-line {
  color: var(--color-base);
}

.tei-view .tei-run[data-rend~='color(white)'], .tei-view .tei-block[data-rend~='color(white)'] > .tei-line, .tei-view .tei-section > .tei-line[data-rend~='color(white)'], .tei-view .tei-frame[data-rend~='color(white)'] .tei-line {
  color: var(--color-inverted-fixed);
  background-color: var(--background-color-gray);
}

.tei-view .tei-run[data-rend~='larger'], .tei-view .tei-block[data-rend~='larger'] > .tei-line, .tei-view .tei-section > .tei-line[data-rend~='larger'], .tei-view .tei-frame[data-rend~='larger'] .tei-line {
  font-size: var(--font-size-large-18);
}

.tei-view .tei-run[data-rend~='smaller'], .tei-view .tei-block[data-rend~='smaller'] > .tei-line, .tei-view .tei-section > .tei-line[data-rend~='smaller'], .tei-view .tei-frame[data-rend~='smaller'] .tei-line {
  font-size: var(--font-size-small-14);
}

.tei-view .tei-section > :first-child:not([style*='margin-']), .tei-view .tei-section > :first-child:not([style*='margin-']) > .tei-line:first-child:not([style*='margin-']) {
  margin-block-start: 0 !important;
}

.tei-view .tei-space {
  flex-shrink: 0;
  font-size: var(--font-size-medium-16);
  line-height: var(--line-height-content);
}

.tei-view[data-editable='true'] .tei-page-text {
  cursor: default;
}

.tei-view .tei-page-edit {
  display: flex;
  flex-direction: column;
  min-width: 0;
  margin: 0;
}

.tei-view .tei-line {
  font-family: var(--typography-font-serif);
  font-size: var(--font-size-medium-16);
  line-height: var(--line-height-content);
  color: var(--color-base);
  overflow-wrap: break-word;
}

.tei-view .tei-block[style*='font-size'] > .tei-line {
  font-size: inherit;
}

.tei-view .tei-block[style*='line-height'] > .tei-line {
  line-height: inherit;
}

.tei-view .tei-block[style*='letter-spacing'] > .tei-line {
  letter-spacing: inherit;
}

.tei-view .tei-block[style*='word-spacing'] > .tei-line {
  word-spacing: inherit;
}

.tei-view .tei-line-heading {
  font-size: inherit;
  font-weight: inherit;
  margin: 0;
}

.tei-view .tei-line-speaker {
  margin-block-start: var(--spacing-8);
}

.tei-view .tei-line-forme-header {
  text-align: center;
  margin-block-end: var(--spacing-8);
}

.tei-view .tei-line-forme-pageNumber {
  text-align: center;
}

.tei-view .tei-line-forme-catchword {
  text-align: end;
  margin-block-start: var(--spacing-8);
}

.tei-view .tei-line-forme-signature {
  text-align: start;
  margin-block-start: var(--spacing-8);
}

.tei-view .tei-run[data-rend~='del'] {
  text-decoration: line-through;
}

.tei-view .tei-line-gap {
  font-family: var(--typography-font-sans);
  font-size: var(--font-size-medium-16);
  font-style: italic;
  color: var(--color-subtle);
}

.tei-view .tei-line-mark {
  font-family: var(--typography-font-mono);
  font-size: var(--font-size-medium-16);
  color: var(--color-subtle);
  margin-block-start: var(--spacing-8);
}

.tei-view .tei-page-raw {
  display: none;
  margin: 0;
  min-width: 0;
}

.tei-view .tei-page-translation {
  display: none;
  flex-direction: column;
  gap: var(--spacing-12);
  min-width: 0;
}

.tei-view .tei-page-raw {
  display: none;
  padding: 0;
  background-color: var(--background-color-base);
  font-family: var(--typography-font-mono);
  font-size: var(--font-size-medium-16);
  line-height: var(--line-height-small-22);
  color: var(--color-syntax-plain-text);
  white-space: pre-wrap;
  overflow-wrap: break-word;
  margin: 0;
}

.tei-view .tei-run[data-space='preserve'] {
  white-space: pre-wrap;
}

.tei-view .tei-run-space {
  display: inline-block;
}

.tei-view .tei-page-raw {
  font-family: var(--typography-font-mono);
  background-color: transparent;
  padding: 0;
}

.tei-view .tei-highlight {
  background-color: var(--background-color-yellow-subtle);
  color: inherit;
}

.tei-view .tei-highlight[data-highlight='title'] {
  background-color: var(--background-color-red-subtle);
  border: var(--border-width-base) solid var(--border-color-red);
}

.tei-view .tei-word, .tei-view [data-gloss-element], .tei-view .tei-noted {
  cursor: pointer;
  border-radius: var(--border-radius-minimal);
  outline: none;
}

.tei-view .tei-word:focus-visible, .tei-view [data-gloss-element]:focus-visible, .tei-view .tei-noted:focus-visible {
  outline: var(--border-width-thick) solid var(--border-color-blue-focus);
  outline-offset: var(--border-width-base);
}

.tei-view .tei-word:hover, .tei-view .tei-word:focus-visible, .tei-view .tei-word[aria-expanded='true'], .tei-view [data-gloss-element]:hover, .tei-view [data-gloss-element]:focus-visible, .tei-view [data-gloss-element][aria-expanded='true'], .tei-view .tei-noted:hover, .tei-view .tei-noted:focus-visible, .tei-view .tei-noted[aria-expanded='true'] {
  color: var(--color-blue);
}

.tei-view .tei-empty {
  font-family: var(--typography-font-sans);
  font-size: var(--font-size-medium-16);
  color: var(--color-subtle);
  margin: 0;
}
