@font-face {
    font-family: "Junicode";
    src: url("https://eupt-dev.d.sub.uni-goettingen.de/api/eupt/fonts/Junicode-Regular_reduced.ttf");
  }



:root {
    --border-radius: calc((.375rem + 3px) / 2);
}

/*::::::::::::::::::::::::::::::::::{ EDXML: ANCHORS & LINKS }::::::::::::::::::::::::::::::::*/
.column-anchor,
.anchor {
    text-decoration: none;
}

.column-anchor,
.anchor {
    color: var(--theme-color-dark);
}



/*::::::::::::::::::::::::::::::::::{ EDXML: FACSIMILE }::::::::::::::::::::::::::::::::*/
/*----------------------------------{ FACSIMILE }--------------------------------*/
.facsimile,
.section {
    margin: 0em 0em;
}


/*----------------------------------{ SURFACES }--------------------------------*/
.surface {
    margin-bottom: 50px;
}

.milestone_surface {
    color: var(--theme-color-light);
    display: inline-block;
    font-weight: bold;
    margin-bottom: .6em;
    margin-left: 4em;
    margin-top: 1.2em;
    text-align: left;
}

.milestone_surface:first-child {
    margin-top: 0
}


/*----------------------------------{ COLUMNS }--------------------------------*/
div.column {
    margin-bottom: .8em;
}

.column .head .col-nr::before {
    content: attr(data-roman-n);
}


/*::::::::::::::::::::::::::::::::::{ LINE-LEVEL }::::::::::::::::::::::::::::::::*/
.surface .line,
.surface .note {
    line-height: 1.65em;
    margin-bottom: 0.5em;
}

/*----------------------------------{ LINES }--------------------------------*/
.line {
    clear: both;
    overflow: auto;
    padding-left: 4.2em; /* hanging indent */
    text-indent: -4.2em; /* hanging indent */
    word-break: break-word;
}

.line-body {
    font-style: italic;
}

.line-body .scribal,
.line-body .seg {
    overflow-wrap: break-word;  
    white-space: normal;
}

.line-container {
    width: 100%;
}

.line-container:has(.notes-icon ~ input[type=checkbox]:checked),
.line-container:hover {
    background-color: var(--theme-color-light-bg);
    border-radius: var(--border-radius);
}

.line-container:hover .line-nr {
    background-color: var(--theme-color-light);
    border-radius: var(--border-radius);
    color: var(--theme-color-dark);
}

.line-nr {
    display: inline-block;
    min-width: 4em;
}

.line-nr {
    font-family: var(--tech-font);
    font-size: smaller;
    text-align: right;
    margin-right: 1em;
    padding: 0 .3em;
    color: var(--theme-color-light);
}

.line-nr.calculated {
    color: lightgray;
    display: none;
}

/*::::::::::::::::::::::::::::::::::{ PARTS & SEGMENTS & GS }::::::::::::::::::::::::::::::::*/
/*----------------------------------{ SEGMENTS }--------------------------------*/

.akkadogram {
    font-style: italic;
    font-variant: small-caps;
}

.akkComplement {
    font-style: italic;
}

.determinative {
    font-style: normal;
}

.indexNo {
    font-style: normal;
}

.sumComplement {
    font-style: normal;
}

.sumerogram {
    font-style: normal;
    font-variant: small-caps;
}

/*----------------------------------{ METAMARKS }--------------------------------*/

hr.metamark-line::before {
    color: var(--theme-color-light);
    background: inherit;
    font-family: var(--tech-font);
    padding: 0 .3em 0 0;
    position: absolute;
}

hr.metamark-line {
    border-width:0;
    display: block;
    margin:0 0 45px 0;
}

hr.metamark-line.line {
    border-top:1px solid var(--theme-color-light);
    height:4px;
}

hr.metamark-line.doubleLine {
    border-bottom:1px solid var(--theme-color-light);
    border-top:1px solid var(--theme-color-light);
    height:4px;
}

/*::::::::::::::::::::::::::::::::::{ EDXML: PHILOLOGY }::::::::::::::::::::::::::::::::*/

.philology:last-child {
    margin-bottom: 5em;
}

.unit-container {
    align-items: center;
    display: flex;
    flex-direction: row;
}

.section-tab {
    min-width: 0;
    overflow-wrap: break-word;
    width: 50%;
}

.section-tab + .section-tab {
    border-left: solid 1px var(--theme-color-light);
    padding-left: 5px;
}

.section-tab:has(+ .section-tab) {
    border-right: solid 1px var(--theme-color-light);
    margin-right: -1px;
    padding-right: 5px;
}

.section-tab.notes {
    flex-basis: 1.5em;
    flex-grow: 0;
    flex-shrink: 0;
    overflow-x: hidden;
}

.section-tab.transcription {
    word-break: break-all;
}

.section-tab.translation {
    hyphens: auto;
    word-break: normal;
}

/*----------------------------------{ STANZA }--------------------------------*/
:not(.stanza > fieldset) > .verse {
    padding: 0 1.5px;
}

.stanza > fieldset {
    border-color: var(--theme-color-light);
    border-radius: var(--border-radius);
    border-style: solid;
    border-width: 1.5px;
    margin: 0;
    margin-bottom: 1.65em;
    padding: 0;
}

.stanza > fieldset .transcription {
    padding-left: 5px;
}

.stanza > fieldset > .verse:last-child {
    margin-bottom: 0 !important;
}

.stanza > fieldset > legend {
    color: var(--theme-color-light);
    font-size: smaller;
    margin-left: 5px;
    padding-left: 5px;
    padding-right: 5px;
}

/* hide stanza styling */
.stanza > fieldset { border: none !important; }
.stanza > fieldset > legend { display: none !important; }

/*----------------------------------{ VERSE }--------------------------------*/
.philology .verse {
    margin-bottom: 1.65em;
}

/*----------------------------------{ UNIT }--------------------------------*/
.philology .unit {
    line-height: 1.65em;
    margin-bottom: 0.5em;
}

.philology .unit:has(.notes-icon ~ input[type=checkbox]:checked),
.philology .unit:hover {
    background-color: var(--theme-color-light-bg);
    border-radius: var(--border-radius);
}


.philology .unit .head {
    display: inline-block;
    /* display: none; */
}

.philology .unit .head.hide {
    display: none;
}

.philology .unit .anchor .unit-nr::before {
    margin-left: 10px;
    content: attr(data-n);
    display: none;
}


.philology .unit .anchor .unit-count {
    margin-left: 10px;
}

/*---------------------------------{ TRANSCRIPTION }------------------------------*/

.transcription {
    font-style: italic;
}


/*---------------------------------{ TRANSLATION }------------------------------*/

.translation[data-lang="en"] {
    display: none;
}


/*----------------------------------{ LINEBREAKS }--------------------------------*/
.lb {
    color: var(--theme-color-light);
    font-family: var(--tech-font);
    font-size: smaller;
    font-style: normal;
    line-height: 1.5;
    vertical-align: super;
    white-space: nowrap;
}

.lb:before {
    margin-right: .1em;
}

.lb:after {
    margin-left: .1em;
}

/*----------------------------------{ PHRASES }--------------------------------*/
.phr {

}

/*----------------------------------{ HIGHLIGHTINGS }--------------------------------*/

.bold {
    font-weight: bold;
}

.italic {
    font-style: italic;
}

.small-caps {
    font-variant: small-caps;
}

.super {
    font-size: smaller;
    line-height: 0;
    vertical-align: super;
}

.underline {
    text-decoration: underline;
}


/*----------------------------------{ ITEMS }--------------------------------*/
/*.item {
    vertical-align: top;

}*/

.item {
    border: 0px solid var(--theme-color-dark);
    border-radius: min(var(--border-radius), 3px);
}

.item:not(:first-child) .value {
    text-align: center;
}

/*----------------------------------{ ITEMS: WORDS }--------------------------------*/

/*----------------------------------{ ITEMS: DISPLAY Annotations }--------------------------------*/

.ling_information {
    background-color: var(--theme-color-dark);
    border-radius: var(--border-radius);
    color: white;
    cursor: default;
    display: none;
    font-size: smaller;
    font-style: normal;
    left: 0;
    max-width: 11em;
    padding: 0 .25em;
    position: absolute;
    top: 1.75em;
    white-space: normal;
    width: max-content;
    word-break: break-word;
    z-index: 1;
}

.ling_information > span {
    display: block;
    line-height: 1.4em;
    padding-bottom: .5em;
}

.ling_information > span:first-child:not(:only-child) {
    border-bottom: 1px solid white;
    margin-bottom: .5em;
    padding-top: .5em;
}

.ling_information > span:last-child:not(:only-child) {
    padding-top: 0em;
}

.ling_information > span:only-child {
    padding-top: .5em;
}

.word_container {
    position: relative;
    text-indent: 0;
}

.word_container .item.w {
    display: inline-block;
    padding: 0 !important;
}

.word_container:focus-within .ling_information {
    display: block;
}

/*----- NOTES -----*/

.line-container span:has(> .notes-icon) {
    float: right;
    margin-left: .5em;
    text-indent: 0;
}

.notes-icon {
    cursor: pointer;
}

.notes-icon ~ input[type=checkbox] {
    display: none;
}

.notes-icon::after {
    color: var(--theme-color);
    content: "\F0185";
    font-family: "Material Design Icons";
}

.notes-icon:has(~ input[type=checkbox]:checked)::after {
    content: "\F0189";
}

.notes-container {
    display: none;
    font-size: 87.5%;
    margin-left: 1.25em;
    margin-right: 0.25em;
}

.line-container:has(.notes-icon ~ input[type=checkbox]:checked) > .notes-container,
.unit-container:has(.notes-icon ~ input[type=checkbox]:checked) ~ .notes-container {
    display: block;
}

.notes-container input[type=checkbox] {
    display: none;
}

.notes-container label {
    cursor: pointer;
}

.notes-container > ul {
    /* Insert right margin in which `ling_information` elements  can expand.*/
    --notes-container-ul-margin-right: 1.4em;
    list-style: none;
    margin-bottom: .5em;
    margin-left: -1.5em;
    margin-right: var(--notes-container-ul-margin-right);
    margin-top: 1em;
    text-indent: -0.5em;
    padding-bottom: 1em;
    padding-left: 1.2em;
}
.facsimile .notes-container > ul {
    /* Use half-sized margin for the `facsimile` panel. */
    --notes-container-ul-margin-right: 0.7em;
}

.notes-container > ul .ling_information {
    text-align: left;
    white-space: normal;
    width: calc(100% + var(--notes-container-ul-margin-right) + 0.5em);
    word-break: break-word;
}

.note-item:first-child:last-child > input[type=checkbox]:checked ~ span,
.note-item:not(:first-child:last-child) > input[type=checkbox]:not(:checked) ~ span {
    display: none;
}

.note-item:first-child:last-child:has(> input[type=checkbox]:not(:checked)) button label:before,
.note-item:not(:first-child:last-child):has(> input[type=checkbox]:checked) button label:before {
    transform: rotate(90deg);
}

.note-item {
    text-align: justify;
}

.note-item:first-child {
    border-top: dotted 1px var(--theme-color-light);
    padding-top: .8em;
}

.note-item:not(:first-child) {
    margin-top: 1em;
}

.note-item > button {
    background: var(--theme-color) !important;
    border-radius: var(--border-radius);
    box-sizing: content-box;
    color: white;
    cursor: default;
    line-height: normal;
    padding: .285em 8px;
    padding-left: calc(1.3em + 8px); /* hanging indent */
    position: relative;
    text-align: left;
    text-indent: -1.3em; /* hanging indent */
    top: -0.1em;
    vertical-align: middle;
}

.note-item > button > label:before {
    content: "\F0142";
    display: inline-block;
    font-family: "Material Design Icons";
    margin-right: .3em;
    text-indent: 0;
    transition: transform 0.3s;
}

.note-item label > .noteType {
    font-variant: small-caps;
}

.note-item label > .noteType::after {
    content: ": "
}

.note-item > span::before {
    content: " ";
}

.note-item > span > p {
    margin: 0;
    margin-top: 0.5em;
    padding: 0;
    text-indent: 0;
}

.note-item > span > p:first-child {
    display: inline;
    margin-top: 0;
}

.note-item > span .lb {
    line-height: 0;
}

/*----------------------------------{ NOTES: TEXTBLOCK }--------------------------------*/

.textBlock {
    font-style: italic;
}

.textBlockSum {
    font-style: normal;
    text-transform: lowercase;
}

/*::::::::::::::::::::::::::::::::::{ TEI: Transcriptional }::::::::::::::::::::::::::::::::*/

.junicode {
    font-family: 'Junicode', sans-serif;
    line-height: 0;
}

.scribal {
    font-style: normal;
}

.tei {
    font-style: normal;
}

/*::::::::::::::::::::::::::::::::::{ Hover effects }::::::::::::::::::::::::::::::::*/

.line-container .corresp-hovered,
.line-container .target-hovered,
.unit-container .corresp-hovered,
.unit-container .target-hovered,
.word_container:focus-within .item.w label {
    background-color: var(--theme-color-dark) !important;
    border-radius: min(var(--border-radius), 3px) !important;
    box-decoration-break: clone !important;
    color: white !important;
    padding: .2em 0;
}

/*::::::::::::::::::::::::::::::::::{ TIDO annotations }::::::::::::::::::::::::::::::::*/

.corresp-hovered [data-annotation-level="1"],
.target-hovered [data-annotation-level="1"] {
    background-color: var(--theme-color-dark) !important;
}

[data-annotation-level="0"]:not(.corresp-hovered):not(.target-hovered),
[color-scheme=dark] [data-annotation-level="0"]:not(.corresp-hovered):not(.target-hovered) {
    background-color: transparent !important;
}
  
[data-annotation-level="1"],
[color-scheme=dark] [data-annotation-level="1"] {
    border-bottom: 0 !important;
}

body:has(.panel[style*="display: none"]):has(.annotations-list) > [color-scheme=dark] [data-annotation-level="1"]:not(.corresp-hovered):not(.target-hovered),
body:has(.panel[style*="display: none"]):has(.annotations-list) > [color-scheme=light] [data-annotation-level="1"]:not(.corresp-hovered):not(.target-hovered) {
    /* when annotations panel is not displayed */
    background-color: transparent !important;
}
