.hiddenAfterPage,
.hiddenBeforePage {
    display: none !important;
}


.textContainer {
    width: 61%;
    margin-left: -6px;
    position: relative;
    background-color: white;
    /* overflow: auto; */
}

.textContainer .columns {
    display: flex;
    height: 2rem;
}

.textContainer .columns div {
    width: 33.3%;
    display: flex;
    background-color: var(--white);
    cursor: pointer;
    align-items: center;
}

.textContainer .columns div.view {
    background-color: white;
    font-family: 'SohneHalbfett';
}

.textContainer .columns img {
    margin-left: 4rem;
}

.textContainer .columns p {
    margin-left: 0.5rem;
}

.text {
    margin-top: auto;
    margin-bottom: auto;
    font-size: 18px;
    /* line-height: 28px; */
    position: relative;
    overflow: auto;
    height: 95%;
}

.textContainer .text:focus {
    outline: none;
}



.pageSwitch img {
    height: 1rem;
}

.editionText .c {
    display: none;
}

.edition {
    /* min-height: 600px; */
}


.inactive {
    display: none;
}

.inactive + .tooltipC {
    display: none;
}

.text .editionText {
    width: 88%;
    margin-left: auto;
    margin-right: auto;
    line-height: 28px;
    max-width: 535px;
    margin-top: 2.8rem;
}

.text .chapterHeading {
    text-align: center;
    margin-bottom: 1rem;
}

.text .chapterHeading br {
    margin-bottom: 2rem;
    display: initial;
}

.text .tooltipC:has(.inactive){
    display: none;
}

.text .chapterHeading:has(.wit.t[data-wit="M3"]) .rdg{
    display: inline-grid;
    
}

.text .chapterHeading:has(.wit.t[data-wit="M3"]){
    text-align: left;
}

.text div[type="paragraph"]:has(.wits.active) {
    margin-bottom: 3rem;
}

.rdg br {
    display: none;
}

.text .pageNumber {
    margin-top: 1rem;
    text-align: right;
}

.text .pageNumber a {
    text-decoration: none;
    color: black;
}

.navLeft {
    height: 1.5rem;
    position: fixed;
    top: 50%;
    left: 61%;
    cursor: pointer;
    opacity: 0.5;
    z-index: 5;
}

.navRight {
    height: 1.5rem;
    position: fixed;
    top: 50%;
    right: 0.7rem;
    transform: rotate(180deg);
    cursor: pointer;
    opacity: 0.5;
    z-index: 5;
}

/* Edition hover changes */
.editionText .t:hover .activeDiff,
.editionText .clicked .activeDiff {
    background-color: rgba(192, 192, 192, 0.5)
}

.editionText .t:has(.activeDiff):hover,
.editionText .clicked {
    outline: 1px solid rgba(192, 192, 192, 1);
}

.editionText .t[data-page='p179'][data-wit='M3']:hover .activeDiff {
    display: inline-block;
}

.mark {
    outline: 1px solid rgba(192, 192, 192, 1);
    background-color: rgba(192, 192, 192, 0.5);
}

.inlineSection {
    width: 88%;
    margin-left: auto;
    margin-right: auto;
    font-size: 17px;
    line-height: 1.3rem;
    position: relative;
    margin-top: 2.8rem;
}

.inlineSection h4 {
    font-size: 1.25rem;
    font-family: SohneHalbfett;
}

.inlineSection .inlineSectionDiff {
    font-size: 1rem;
    margin-top: 0.5rem;
    position: relative;
    /* overflow: auto;
    max-height: 86%; */
}

.inlineSection .inlineSectionDiffContent {
    display: flex;
    margin-bottom: 0.8rem;
    position: relative;
}

.inlineSection .inlineSectionDiffContent.orientationVersion .inlineSectionVersionText .version {
    border-left: 4px var(--red) solid;
}

.inlineSection .inlineSectionDiffContent.orientationVersion .inlineSectionDiffText {
    margin-right: 5%;
}

.inlineSection .inlineSectionVersionText {
    display: flex;
    text-align: center;
    align-items: center;
    min-width: 3rem;

}

.inlineSection .inlineSectionVersionText .version {
    padding-left: 0.3rem;
}



.inlineSection .inlineSectionCircleContainer {
    display: flex;
    align-items: center;
    margin-left: 0.2rem;
}

.inlineSection .line {
    width: 3px;
    height: 107%;
    position: absolute;
    left: 55px;
    background-color: rgba(0, 0, 0, 0.7);
    top: 59%;
}

.inlineSection .inlineSectionCircle {
    position: relative;
    width: 10px;
    height: 10px;
    background-color: var(--red);
    border-radius: 50%;
}

.inlineSection .inlineSectionDiffContent.is-last-visible .line {
    top: 0;
    height: 0;
}

.inlineSection .inlineSectionCircle::after {
    /* content: ''; REQUIRED */
    position: absolute;
    top: 100%;
    /* places it just below the circle */
    left: 50%;
    /* center horizontally */
    transform: translateX(-50%);
    width: 2px;
    height: 10rem;
    background-color: black;
}

/* Hide the line manually on the very last one */
.inlineSection .inlineSectionCircleContainer.last .inlineSectionCircle:after {
    display: none;
}

.inlineSection .inlineSectionDiffText {
    margin-left: 1rem;
    min-width: 60%;
}

.inlineSection .orientationVersion .inlineSectionDiffText {
    color: rgba(0, 0, 0, 1);
}

.inlineSection .inlineSectionDiffText {
    color: rgba(0, 0, 0, 0.4);
    line-height: 1.55rem;
}

.inlineSection .tooltipC img{
    display: none;
}


/* Core diff coloring */

.inlineSection .activeRdg {
    color: rgba(0, 0, 0, 1);
    text-underline-offset: 2px;

}

.inlineSection .activeRdg[data-title='inhoudelijk'] {
    text-decoration: underline 2px solid var(--inhoudelijk);
}


.inlineSection .activeRdg[data-title='spelling'] {
    text-decoration: underline 2px solid var(--spelling);
}


.inlineSection .activeRdg[data-title='formeel'] {
    text-decoration: underline 2px solid var(--formeel);
}

.inlineSection .activeRdg[data-title='leesteken'] {
    text-decoration: underline 2px solid var(--leesteken);
    ;
}

.inlineSection .activeRdg[data-title='grammatica'] {
    text-decoration: underline 2px solid var(--grammatica);
}

.inlineSection .eye {
    margin-top: 0.3rem;
    margin-right: 0.3rem;
    margin-left: auto;
    padding-left: 0.3rem;
    min-width: 4%;
    cursor: pointer;
}

.inlineSection .eye img {
    height: 1.3rem;
}

.inlineSection hr {
    display: none;
}

.inlineSection .pageNumber {
    display: none;
}

.inlineSection .top {
    padding-left: 1.5rem;
    margin-top: 1rem;
    border-bottom: solid 2px rgba(0, 0, 0, 0.1);
    padding-bottom: 0.5rem;
}

.inlineSection .top>p {
    font-weight: bold;
}

.inlineSection .top ul {
    display: flex;
    margin-top: 0.3rem;
    flex-wrap: wrap;
}

.inlineSection .top li {
    display: flex;
    align-items: center;
    user-select: none;
    cursor: pointer;
}


.inlineSection .top .option {
    margin-right: 0.5rem;
    color: white;
    border-radius: 1rem;
    padding-top: 0.05rem;
    padding-bottom: 0.05rem;
    padding-left: 0.5rem;
    padding-right: 0.5rem;
    font-size: 0.8rem;
    line-height: 18px !important;
}

.inlineSection .top .option:hover {
    transform: scale(1.025);
    box-shadow: 0 0 1px rgba(0, 0, 0, 0.5);
}

.embeddedRoundCheckbox {
    display: inline-block;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: white;
    cursor: pointer;
    position: relative;
    transition: background-color 0.2s ease;
    margin-right: 0.2rem;
}

.embeddedRoundCheckbox::after {
    content: '';
    position: absolute;
    top: 1px;
    left: 4px;
    width: 2px;
    height: 7px;
    border: solid #000;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
    opacity: 0;
    transition: opacity 0.2s ease;
}

.embeddedRoundCheckbox.activeVar {
    background-color: white;
    font-weight: bold;
}

.top li.activeVar .embeddedRoundCheckbox::after {
    opacity: 1;
}

.inlineSection .top .inhoudelijk {
    background-color: var(--inhoudelijk);
}

.inlineSection .top .leesteken {
    background-color: var(--leesteken);
}

.inlineSection .top .formeel {
    background-color: var(--formeel);
}

.inlineSection .top .spelling {
    background-color: var(--spelling);
}

.inlineSection .top .grammatica {
    background-color: var(--grammatica);
}

.inlineSection .top .allVarTypes {
    box-shadow: inset 0 1px 3px rgba(1, 1, 1, 0.25);
    /* existing inner shadow */
    color: black;
    display: none;
}

.inlineSection .top .label {
    font-size: 14px;
    margin-right: 1rem;
}




/* NEW EDITION VARIANT RENDERING  */
.inlineSection .sectionHeader {
    display: flex;
    margin-top: 0.4rem;
    margin-bottom: 0.4rem;
    padding-bottom: 0.4rem;
}

.sectionHeader img {
    margin-right: 0.5rem;
    margin-left: 0.2rem;
    cursor: pointer;
}

.orientationDisplaySection {
    width: 95%;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 1rem;
    border-top: solid 1px rgba(0, 0, 0, 0.2);
    border-bottom: solid 1px rgba(0, 0, 0, 0.2);
    padding-top: 0.5rem;
    padding-bottom: 0.5rem;
}

.orientationText .orientation {
    margin-left: 0.5rem;
}

.orientationText {
    line-height: 1.5rem;
}

.orientationText br {
    display: none;
}

.ISlabel {
    color: white;
    display: inline-block;
    padding-left: 0.5rem;
    padding-right: 0.5rem;
    padding-top: 0.05rem;
    padding-bottom: 0.1rem;
    font-size: 13px;
    border-radius: 0.25rem;
    line-height: 1rem;
    background-color: black;
    margin-right: 0.5rem;
    cursor: pointer;
    position: relative;
}

.ISlabel.viewing::after,
.changesSection .ISlabel.orientation::after {
    content: "";
    position: absolute;
    bottom: -6px;
    right: -7px;
    width: 15px;
    height: 12px;
    background: white url(../icons/eye-transparent.svg) no-repeat center;
    background-size: 114%;
    border-radius: 100%;
    z-index: 5;
}



.changesSection .ISlabel:last-of-type {
    margin-bottom: 1rem;
}

.EQlabel {
    display: inline-block;
    padding-left: 0.1rem;
    padding-right: 0.1rem;
    padding-top: 0.05rem;
    padding-bottom: 0.05rem;
    font-size: 13px;
    border-radius: 0.25rem;
    line-height: 1rem;
    background-color: white;
    border: 2px solid black;
    margin-right: 0.3rem;
    color: black;
}

.ISlabel.orientation {
    background-color: var(--red);
    color: white;
    cursor: default;
}

.variationSection {
    font-size: 0.8rem;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 1rem;
    width: 95%;
}

.variationSection ul {
    display: flex;
    height: 1.2rem;
    align-items: center;
}

.variationSection .option {
    display: flex;
    cursor: pointer;
    margin-left: 1rem;
    height: 1rem;
    align-items: center;
}

/* ===== Disabled state ===== */

/* Generic disabled style */
.disabled,
.disabled * {
    pointer-events: none;
    opacity: 0.5;
    cursor: not-allowed !important;
}

/* Checkbox specific */
.embeddedRoundCheckbox.disabled,
.disabled .embeddedRoundCheckbox {
    background-color: #f3f3f3;
    border-color: #aaa;
    cursor: not-allowed;
}

.embeddedRoundCheckbox.disabled::after,
.disabled .embeddedRoundCheckbox::after {
    border-color: #999;
}

/* When disabled but "active", show a lighter checkmark */
.disabled .activeVar .embeddedRoundCheckbox::after,
.embeddedRoundCheckbox.disabled.activeVar::after {
    opacity: 0.6;
}

/* Variation types disabled look */
.variationTypes.disabled .inhoudelijk,
.variationTypes.disabled .leesteken,
.variationTypes.disabled .formeel,
.variationTypes.disabled .grammatica,
.variationTypes.disabled .spelling {
    border-color: #ccc;
    background-color: #f9f9f9;
    color: #777;
}

/* Optional hover override (prevent color change on hover) */
.disabled .embeddedRoundCheckbox:hover {
    background-color: #f3f3f3;
}


.embeddedRoundCheckbox {
    display: inline-block;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: white;
    cursor: pointer;
    position: relative;
    transition: background-color 0.2s ease;
    margin-right: 0.2rem;
    border: 1px solid black;
    padding: 0.01rem
}

.embeddedRoundCheckbox::after {
    content: '';
    position: absolute;
    top: 1px;
    left: 4px;
    width: 2px;
    height: 7px;
    border: solid #000;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
    opacity: 0;
    transition: opacity 0.2s ease;
}

.activeVar .embeddedRoundCheckbox::after {
    opacity: 1;
}

.embeddedRoundCheckbox::after {
    opacity: 0;
}

.variationTypes .inhoudelijk {
    border: solid 2px var(--inhoudelijk);
    border-radius: 0.8rem;
    padding-left: 0.2rem;
    padding-right: 0.2rem;
    padding-top: 0.05rem;
    padding-bottom: 0.05rem;
}

.variationTypes .leesteken {
    border: solid 2px var(--leesteken);
    border-radius: 0.8rem;
    padding-left: 0.2rem;
    padding-right: 0.2rem;
    padding-top: 0.05rem;
    padding-bottom: 0.05rem;
}

.variationTypes .formeel {
    border: solid 2px var(--formeel);
    border-radius: 0.8rem;
    padding-left: 0.2rem;
    padding-right: 0.2rem;
    padding-top: 0.05rem;
    padding-bottom: 0.05rem;
}

.variationTypes .grammatica {
    border: solid 2px var(--grammatica);
    border-radius: 0.8rem;
    padding-left: 0.2rem;
    padding-right: 0.2rem;
    padding-top: 0.05rem;
    padding-bottom: 0.05rem;
}

.variationTypes .spelling {
    border: solid 2px var(--spelling);
    border-radius: 0.8rem;
    padding-left: 0.2rem;
    padding-right: 0.2rem;
    padding-top: 0.05rem;
    padding-bottom: 0.05rem;
}

.changesSection {
    width: 95%;
    margin-left: auto;
    margin-right: auto;
}

.changesSection {
    color: rgba(0, 0, 0, 0.3);
}

.changeText {
    padding-bottom: 0.3rem
}

.change {
    margin-top: 1rem;
}

.inlineSection hr {
    display: none;
}

.inlineSection .pageSwitch {
    display: none;
}

.editionText .breadCrumbs {
    position: fixed;
    top: 7.4rem;
    background-color: white;
    margin-top: 0;
    padding-top: 0.6rem;
    width: 100%;
}

.breadCrumbs>ul {
    position: relative;
    cursor: pointer;
    padding-right: 1rem;
    user-select: none;
    ;
}

.breadCrumbs {
    display: flex;
    font-size: 13px;
    color: #505050;
    margin-top: 0.6rem;
    margin-bottom: 0.6rem;
}

.inlineSection .breadCrumbs {
    position: fixed;
    top: 7.4rem;
    background-color: white;
    margin-top: 0;
    padding-top: 0.6rem;
    z-index: 500;
    width: 100%;
}

.breadCrumbs .breadcrumbOption {
    display: none;
}

.breadCrumbs>ul::after {
    content: "";
    position: absolute;
    top: 50%;
    inset-inline-end: 0;
    transform: translateY(-50%) rotate(180deg);
    width: 10px;
    height: 10px;
    background: white url('../icons/chevron-down.png') no-repeat center center;
    background-size: contain;
}

.breadCrumbs ul.ov {
    margin-right: 0.4rem;
}

.breadCrumbs ul.chapter {
    display: block;
    white-space: nowrap;
    max-width: 200px;
    margin-right: 0.4rem;
}

/* anchor */
.breadCrumbs ul {
    position: relative;
    overflow: visible;
    font-size: 14px;
}

.breadCrumbs ul.open::after {
    transform: translateY(-50%) rotate(0deg);
}

/* the absolute dropdown panel */
.breadCrumbs ul .dropdownMenu {
    position: absolute;
    top: 100%;
    left: 0;
    display: none;
    /* hidden until open */
    background: #fff;
    border: 1px solid #e6e6e6;
    /* no box-shadow per request */
    border-radius: 0.4rem;
    min-width: max-content;
    /* grow to largest option */
    max-height: 160px;
    /* fixed height */
    overflow-y: auto;
    /* scrollable */
    z-index: 9999;
    white-space: nowrap;
}

.breadcrumbSelected {
    display: contents !important;
    color: var(--red);
    font-family: 'SohneHalbfett';
}

/* show menu only for the clicked ul */
.breadCrumbs ul.open>.dropdownMenu {
    display: block;
}

/* options look like normal list items */
.breadCrumbs ul .dropdownMenu>.breadcrumbOption {
    position: static;
    display: block;
    animation: dropdownFade 0.16s ease-out;
    user-select: none;
    padding-left: 10px;
    padding-right: 16px;
    padding-bottom: 0.1rem;
    padding-top: 0.1rem;
}

.breadCrumbs ul .dropdownMenu>.breadcrumbOption:hover {
    background-color: rgba(0, 0, 0, 0.1)
}

/* subtle appear */
@keyframes dropdownFade {
    from {
        opacity: 0;
        transform: translateY(-4px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.button {
    color: black;
    width: 11rem;
    display: inline-block;
    border-radius: 25px;
    border: 1px solid black;
    text-decoration: none;
    font-weight: 500;
    text-align: center;
    font-size: 1rem;
}

.button:hover {
    background-color: black;
    color: white;
}

.nextChapter {
    text-align: center;
}

.highlightMark {
    outline: 1px solid rgba(192, 192, 192, 1);
}

.queryMark {
    background-color: yellow;
}

.search .options {
    display: none;
}

.search .page {
    display: none;
}

.search .breadCrumbs {
    line-height: 1.1rem;
}

.search .breadcrumbOption {
    line-height: 1.6rem;
}