pre.language-txt {
    border-radius: 0;
}

code[class*="language-"],
pre[class*="language-"] {
    /* font-size: 12px; */
}

blockquote.trialuse {
    border-left: 5px solid #2196F3;
    background-color: #e7f3fe;
}

.stu-note.normative::before {
    content: "Proposed Normative Content\A ";
    display: flex;
    padding: 4px 0;
    margin-bottom: 4px;
    background-color: unset;
}

.stu-note::before {
    display: flex;
    padding: 4px;
    margin-bottom: 4px;
}

.stu-note.normative {
    border-left-color: green;
    border-left-style: double;
    background-color: #e0ffe0;
}

.stu.normative:after {
    border-left-color: green;
    border-left-style: double;
}

.stu-bg.normative {
    background-color: #e0ffe0;
}

table.grid th:has(.stu-bg.normative),
th:has(.stu-bg.normative),
td:has(.stu-bg.normative) {
    background-color: #e0ffe0;
}

.stu {
    /* border-left: 5px solid #2196F3;
    background-color: #e7f3fe;*/
    padding-left: 20px; 
    position: relative;
}

.stu:after {
    content: '';
    position: absolute;
    left: 5px;
    top: -4px;
    bottom: -6px;
    width: 4px;
    border-left: 5px solid var(--stu-note-border-left-color);
    /* background-color: #e7f3fe;
    background: linear-gradient(90deg, rgba(255,160,255,1) 0%, rgba(255,255,255,1) 100%); */
}

pre.language-fhirpath.stu {
    margin-left: 20px;
    overflow: unset;
}
pre.language-fhirpath.stu:after {
    left: -16px;
}

table.stu {
    margin-left: 20px;
}

table.stu:after {
    left: -15.5px;
}

blockquote.stu {
    padding-left: 32px;
    position: relative;
    margin-left: 20px;
}

blockquote.stu:after {
    left: -20px;
}

blockquote.stu:before {
    left: 0.5px;
    top: 0;
    bottom: 0;
    width: 4px;
    position: absolute;
}

ul.stu {
    padding-left: 32px;
}

table.grid th:has(.stu-bg),
th:has(.stu-bg),
td:has(.stu-bg) {
    background-color: var(--stu-note-background-color);
}

/* STU background */
.stu-bg {
    background-color: var(--stu-note-background-color);
}

/* Include a color on the table headers as was in the original normative release */
table.grid th {
    background-color: #D9E6FC;
}

table.grid {
    min-width: 70vw;
}

/* overload the section numbering to be consistent with the original published version of the specification */
body {
    counter-reset: section appendix
}

h2:before {
    color: silver;
    counter-increment: section;
    content: counter(section) ". ";
}

h3:before {
    color: silver;
    counter-increment: sub-section;
    content: counter(section) "." counter(sub-section) ". ";
}

h4:before {
    color: silver;
    counter-increment: composite;
    content: counter(section) "." counter(sub-section) "." counter(composite) ". ";
}

h5:before {
    color: silver;
    counter-increment: detail;
    content: counter(section) "." counter(sub-section) "." counter(composite) "." counter(detail) ". ";
}

h6:before {
    color: silver;
    counter-increment: more-detail;
    content: counter(section) "." counter(sub-section) "." counter(composite) "." counter(detail) "." counter(more-detail) ". ";
}

h2.appendix {
    counter-reset: sub-section;
    counter-increment: appendix;
}

h3.appendix {
    counter-reset: composite
}

h2.appendix:before {
    color: silver;
    counter-increment: section;
    content: "Appendix " counter(appendix, upper-alpha) ": ";
}

h3.appendix:before {
    color: silver;
    counter-increment: sub-section;
    content: "Appendix " counter(appendix, upper-alpha) "." counter(sub-section) ": ";
}

h4.appendix:before {
    color: silver;
    counter-increment: composite;
    content: "Appendix " counter(appendix, upper-alpha) "." counter(sub-section) "." counter(composite) ": ";
}

h5.appendix:before {
    color: silver;
    counter-increment: detail;
    content: "Appendix " counter(appendix, upper-alpha) "." counter(sub-section) "." counter(composite) "." counter(detail) ": ";
}

h6.appendix:before {
    color: silver;
    counter-increment: more-detail;
    content: "Appendix " counter(appendix, upper-alpha) "." counter(sub-section) "." counter(composite) "." counter(detail) "." counter(more-detail) ": ";
}

/* override the fhir label formatting inside the ANTLR code formatted block */
.language-antlr4 .token.label {
    font-size: unset;
    background-color: unset;
}

/* Accessibility tweaks */
:root {
    --link-color: #3470a2; /* 13. Hyperlink text color */
    --toc-box-bg-color: #ffff8a; /* 14. Table of Contents box background color */
    --footer-hyperlink-text-color: #94daff; /* 15. Footer hyperlink text color */
}
        
a {
    font-weight: 500;
}

code.language-typescript, code.language-regex, code.language-txt {
    white-space: pre-wrap;
    overflow: unset;
    word-break: break-word;
}

.language-antlr4 .token.punctuation {
    color: #6e6e6e;
}