:root {
    --primarycolordark: #a1cef6;
    --primarycolor: #007AD7;
    /* Blue 500 */
    --secondarycolor: #2196F3;
    --tertiarycolor: #186d7a;
    --linkcolor: #0d6efd;
    /* Bootstrap primary - more vibrant */
    --linkcolorhover: #0a58ca;
    --toc-width: 280px;

    /* Neutral colors */
    --gray-100: #f8f9fa;
    --gray-200: #e9ecef;
    --gray-300: #dee2e6;
    --gray-500: #adb5bd;
    --gray-600: #6c757d;
    --gray-900: #212529;
    --white: #fff;
    --black: #000;

    /* Code color */
    --code-color: #e83e8c;

    /* Theme-specific colors (light mode defaults) */
    --bg-primary: #fff;
    --bg-secondary: #f8f9fa;
    --bg-header: #a1cef6;
    --bg-footer: #e9ecef;
    --bg-toc: #f8f9fa;
    --bg-breadcrumb: #f8f9fa;
    --text-primary: #212529;
    --text-secondary: #6c757d;
    --text-heading: #007AD7;
    --border-color: #dee2e6;
    --card-bg: #fff;
    --table-stripe: rgba(0, 0, 0, 0.05);
    --leaf-bg: #fff;
    --noleaf-bg: #E5E5E5;

    --scrollbar-track: #eef2fb;
    --scrollbar-thumb: #c9d5ea;
    --scrollbar-thumb-hover: #8fa4c6;
}

/* Dark mode theme */
[data-theme="dark"] {
    --primarycolordark: #1e3a5f;
    --primarycolor: #5ba3e0;
    --secondarycolor: #64b5f6;
    --tertiarycolor: #4dd0e1;
    --linkcolor: #6db3f2;
    --linkcolorhover: #90caf9;

    /* Dark neutral colors */
    --gray-100: #1a1a2e;
    --gray-200: #16213e;
    --gray-300: #2d3a50;
    --gray-500: #6c757d;
    --gray-600: #adb5bd;
    --gray-900: #e9ecef;
    --white: #0f0f1a;
    --black: #e9ecef;

    /* Code color for dark mode */
    --code-color: #ff79c6;

    /* Theme-specific colors (dark mode) */
    --bg-primary: #0f0f1a;
    --bg-secondary: #1a1a2e;
    --bg-header: #1e3a5f;
    --bg-footer: #16213e;
    --bg-toc: #1a1a2e;
    --bg-breadcrumb: #1a1a2e;
    --text-primary: #e9ecef;
    --text-secondary: #adb5bd;
    --text-heading: #5ba3e0;
    --border-color: #2d3a50;
    --card-bg: #1a1a2e;
    --table-stripe: rgba(255, 255, 255, 0.05);
    --leaf-bg: #1a1a2e;
    --noleaf-bg: #2d3a50;

    --scrollbar-track: #111d32;
    --scrollbar-thumb: #283a58;
    --scrollbar-thumb-hover: #3f567a;
}

/* Custom scrollbar styling */
* {
    scrollbar-width: thin;
    scrollbar-color: var(--scrollbar-thumb) var(--scrollbar-track);
}

*::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

*::-webkit-scrollbar-track {
    background: var(--scrollbar-track);
}

*::-webkit-scrollbar-thumb {
    background: var(--scrollbar-thumb);
    border-radius: 4px;
}

*::-webkit-scrollbar-thumb:hover {
    background: var(--scrollbar-thumb-hover);
}

/* ===== BOOTSTRAP BASE RESETS ===== */
*,
*::before,
*::after {
    box-sizing: border-box;
}

/* Base element defaults */
hr {
    margin: 1rem 0;
    color: inherit;
    border: 0;
    border-top: 1px solid;
    opacity: 0.25;
}

ol,
ul {
    padding-left: 2rem;
}

ol,
ul,
dl {
    margin-top: 0;
    margin-bottom: 1rem;
}

ol ol,
ul ul,
ol ul,
ul ol {
    margin-bottom: 0;
}

blockquote {
    margin: 0 0 1rem;
}

b,
strong {
    font-weight: bolder;
}

small,
.small {
    font-size: 0.875em;
}

img,
svg {
    vertical-align: middle;
}

/* Code elements */
pre,
code,
kbd,
samp {
    font-family: "Droid Sans Mono", "DejaVu Sans Mono", monospace !important;
    font-size: 1em;
}

pre {
    display: block;
    margin-top: 0;
    margin-bottom: 1rem;
    overflow: auto;
    font-size: 0.875em;
}

code {
    font-size: 0.875em;
    color: var(--code-color);
    word-wrap: break-word;
}

a>code {
    color: inherit;
}

pre code {
    font-size: inherit;
    color: inherit;
    word-break: normal;
}

/* Table base */
table {
    caption-side: bottom;
    border-collapse: collapse;
}

th {
    font-weight: 600;
    text-align: inherit;
    text-align: -webkit-match-parent;
}

thead,
tbody,
tfoot,
tr,
td,
th {
    border-color: inherit;
    border-style: solid;
    border-width: 0;
}

/* Labels and buttons base */
label {
    display: inline-block;
}

button {
    border-radius: 0;
}

button:not(:disabled) {
    cursor: pointer;
}

button:disabled {
    pointer-events: none;
    opacity: 0.65;
}

button:focus:not(:focus-visible) {
    outline: 0;
}

/* Form elements base */
input,
button,
select,
optgroup,
textarea {
    margin: 0;
    font-family: inherit;
    font-size: inherit;
    line-height: inherit;
}

/* ===== CSS GRID LAYOUT ===== */
html {
    height: 100%;
    margin: 0;
    padding: 0;
}

body {
    height: 100%;
    margin: 0 !important;
    padding: 0 !important;
    font-family: "Noto Serif", "DejaVu Serif", serif !important;
    font-size: 1rem;
    line-height: 1.5;
    display: grid !important;
    grid-template-rows: auto auto 1fr auto;
    grid-template-areas:
        "header"
        "breadcrumb"
        "main"
        "footer";
    background-color: var(--bg-primary);
    color: var(--text-primary);
    transition: background-color 0.3s ease, color 0.3s ease;
}

/* Breadcrumb bar */
.site-breadcrumb {
    grid-area: breadcrumb;
    background-color: var(--bg-breadcrumb);
    border-bottom: 1px solid var(--border-color);
    padding: 8px 10px;
    font-family: "Open Sans", "DejaVu Sans", sans-serif !important;
    transition: background-color 0.3s ease, border-color 0.3s ease;
}

.site-breadcrumb .breadcrumb {
    font-family: "Open Sans", "DejaVu Sans", sans-serif !important;
}

/* Override Bootstrap navbar-fixed-top and any other position */
.navbar,
.navbar_light,
.navbar-fixed-top,
.navbar-fixed-bottom,
[class*="navbar"] {
    position: static !important;
    top: auto !important;
    left: auto !important;
    right: auto !important;
    height: auto !important;
    width: auto !important;
    margin-bottom: 0 !important;
    z-index: auto !important;
}

/* Header */
.site-header {
    grid-area: header;
    background-color: var(--bg-header);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 13px 20px;
    min-height: 0;
}

.site-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: var(--text-primary);
    font-weight: bold;
    font-family: "Open Sans", "DejaVu Sans", sans-serif !important;
}

.site-brand img {
    height: 30px;
    mix-blend-mode: multiply;
}

.site-brand:hover {
    color: var(--primarycolor);
}

.site-langs {
    display: flex;
    align-items: center;
    gap: 10px;
}

.site-lang-current {
    font-weight: bold;
}

.site-lang {
    color: var(--primarycolor);
}

/* Footer */
.site-footer {
    grid-area: footer;
    background-color: var(--bg-footer);
    padding: 10px 20px;
    color: var(--text-secondary);
    font-size: 80%;
    min-height: 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-family: "Open Sans", "DejaVu Sans", sans-serif !important;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.footer-left {
    text-align: left;
}

.footer-right {
    text-align: right;
}

/* Main content wrapper - contains TOC + content */
.site-content {
    grid-area: main;
    display: grid;
    grid-template-columns: minmax(200px, var(--toc-width)) 1fr;
    overflow: auto;
    min-height: 0;
}

/* TOC Sidebar - inside content */
.site-toc {
    overflow-y: auto;
    background-color: var(--bg-toc);
    border-right: 1px solid var(--border-color);
    padding: 15px;
    min-height: 0;
    position: sticky;
    top: 0;
    transition: background-color 0.3s ease, border-color 0.3s ease;
}

/* Hide TOC sidebar if it has no actual entries */
.site-toc:not(:has(#toc > ul > li)) {
    display: none;
}

.site-content:has(> .site-toc:not(:has(#toc > ul > li))) {
    grid-template-columns: 1fr;
}

/* Override Asciidoctor TOC fixed positioning */
.site-toc #toc,
.site-toc .toc,
#toc.toc2,
.toc2 {
    position: static !important;
    top: auto !important;
    left: auto !important;
    height: auto !important;
    width: auto !important;
    z-index: auto !important;
}

/* Override body.toc2 padding from asciidoc-ext-pdk */
body.toc2 {
    padding-left: 0 !important;
}

/* Main article area */
.site-article {
    padding: 20px;
    min-height: 0;
    max-width: 80%;
    margin-left: auto;
    margin-right: auto;
    width: 100%;
    min-width: 0;
    /* Allow article to shrink */
}

/* Override Asciidoctor content wrapper margins - remove auto centering */
.site-article #header,
.site-article #content,
.site-article #footnotes,
.site-article #footer {
    margin-left: 0 !important;
    margin-right: 0 !important;
    max-width: none !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
}

/* No TOC - full width content */
.site-content.no-toc {
    grid-template-columns: 1fr;
}

@media (max-width: 1440px) {
    .site-content {
        grid-template-columns: auto 1fr;
    }

    .site-toc {
        position: sticky;
        top: 0;
        align-self: start;
        height: 100%;
        width: 18px;
        min-width: 18px;
        max-width: 18px;
        z-index: 1000;
        overflow: hidden;
        padding: 0;
        border-right: 1px solid var(--border-color);
        transition: width 0.25s ease, min-width 0.25s ease, max-width 0.25s ease,
            padding 0.25s ease, box-shadow 0.25s ease,
            background-color 0.3s ease, border-color 0.3s ease;
        box-shadow: none;
    }

    .site-toc #toc {
        opacity: 0;
        transition: opacity 0.15s ease;
    }

    .site-toc:hover {
        width: var(--toc-width);
        min-width: var(--toc-width);
        max-width: var(--toc-width);
        padding: 15px;
        overflow-y: auto;
        box-shadow: 2px 0 12px rgba(0, 0, 0, 0.15);
    }

    .site-toc:hover #toc {
        opacity: 1;
        transition-delay: 0.15s;
    }
}

/* ===== NAVBAR ===== */
.navbar_light {
    background-color: var(--bg-header) !important;
    transition: background-color 0.3s ease;
}

.navbar-brand {
    color: black !important;
}

/* ===== TYPOGRAPHY ===== */
/* Bootstrap-like heading resets */
h1,
h2,
h3,
h4,
h5,
h6,
.h1,
.h2,
.h3,
.h4,
.h5,
.h6 {
    margin-top: 0;
    margin-bottom: 0.5rem;
    font-weight: 500;
    line-height: 1.2;
}

h1,
.h1 {
    font-size: 2.5rem;
}

h2,
.h2 {
    font-size: 2rem;
}

h3,
.h3 {
    font-size: 1.75rem;
}

h4,
.h4 {
    font-size: 1.5rem;
}

h5,
.h5 {
    font-size: 1.25rem;
}

h6,
.h6 {
    font-size: 1rem;
}

/* Peppol color overrides */
h1,
h2,
h3,
#toctitle {
    color: var(--text-heading) !important;
    font-family: "Open Sans", "DejaVu Sans", sans-serif !important;
    text-decoration: none;
    padding: 10px 0;
}

h4,
h5,
h6 {
    color: var(--secondarycolor) !important;
}

a,
a:visited {
    text-decoration: none !important;
    color: var(--linkcolor);
    cursor: pointer;
}

a:hover {
    text-decoration: underline !important;
}

/* ===== TOC STYLING ===== */
#toc {
    margin-bottom: 20px;
}

#toc ul {
    list-style: none;
    padding-left: 15px;
}

#toc>ul {
    padding-left: 0;
}

#toc a {
    display: block;
    padding: 3px 0;
    color: var(--primarycolor);
}

#toc a:hover {
    color: var(--secondarycolor);
}

#toctitle {
    font-size: 1.2em;
    font-weight: bold;
    margin-bottom: 10px;
    padding: 0;
}

/* ===== CONTENT STYLING ===== */
.site-content h1:first-child,
.site-content h2:first-child {
    margin-top: 0;
    padding-top: 0;
}

/* ===== MATHJAX ===== */
#MathJax_Message {
    display: none !important;
}

/* ===== MINIMAL BOOTSTRAP REPLACEMENT ===== */

/* Grid System */
.row {
    display: flex;
    flex-wrap: wrap;
    margin-left: -15px;
    margin-right: -15px;
    min-width: 0;
    /* Allow row to shrink below content size */
}

.row>* {
    padding-left: 15px;
    padding-right: 15px;
    min-width: 0;
    /* Allow columns to shrink below content size */
}

.col-md-1,
.col-md-2,
.col-md-5,
.col-md-6,
.col-md-7,
.col-md-10,
.col-md-11,
.col-md-12 {
    flex: 0 0 100%;
    max-width: 100%;
    min-width: 0;
    /* Allow columns to shrink */
}

@media (min-width: 768px) {
    .col-md-1 {
        flex: 0 0 8.333%;
        max-width: 8.333%;
    }

    .col-md-2 {
        flex: 0 0 16.667%;
        max-width: 16.667%;
    }

    .col-md-5 {
        flex: 0 0 41.667%;
        max-width: 41.667%;
    }

    .col-md-6 {
        flex: 0 0 50%;
        max-width: 50%;
    }

    .col-md-7 {
        flex: 0 0 58.333%;
        max-width: 58.333%;
    }

    .col-md-10 {
        flex: 0 0 83.333%;
        max-width: 83.333%;
    }

    .col-md-11 {
        flex: 0 0 91.667%;
        max-width: 91.667%;
    }

    .col-md-12 {
        flex: 0 0 100%;
        max-width: 100%;
    }
}

/* Spacing Utilities */
.mb-3 {
    margin-bottom: 1rem;
}

.mb-4 {
    margin-bottom: 1.5rem;
}

.mb-5 {
    margin-bottom: 3rem;
}

.mt-3 {
    margin-top: 1rem;
}

.mt-4 {
    margin-top: 1.5rem;
}

.mt-5 {
    margin-top: 3rem;
}

.pt-4 {
    padding-top: 1.5rem;
}

/* Display Utilities */
.d-none {
    display: none !important;
}

.d-inline {
    display: inline !important;
}

.d-inline-block {
    display: inline-block !important;
}

.d-block {
    display: block !important;
}

.d-flex {
    display: flex !important;
}

/* Vertical Alignment */
.align-baseline {
    vertical-align: baseline !important;
}

.align-top {
    vertical-align: top !important;
}

.align-middle {
    vertical-align: middle !important;
}

.align-bottom {
    vertical-align: bottom !important;
}

.align-text-bottom {
    vertical-align: text-bottom !important;
}

.align-text-top {
    vertical-align: text-top !important;
}

/* Text Utilities */
.text-start {
    text-align: left !important;
}

.text-end {
    text-align: right !important;
}

.text-center {
    text-align: center !important;
}

.text-nowrap {
    white-space: nowrap !important;
}

.text-break {
    word-wrap: break-word !important;
    word-break: break-word !important;
}

/* Font Utilities */
.fw-bold {
    font-weight: 700 !important;
}

.fw-normal {
    font-weight: 400 !important;
}

.fw-light {
    font-weight: 300 !important;
}

.fst-italic {
    font-style: italic !important;
}

.fst-normal {
    font-style: normal !important;
}

/* Typography utilities */
.lead {
    font-size: 1.25rem;
    font-weight: 300;
}

p {
    margin-top: 0;
    margin-bottom: 1rem;
}

dt {
    font-weight: 700;
}

dd {
    margin-bottom: 0.5rem;
    margin-left: 0;
}

/* Tables */
.table {
    width: 100%;
    margin-bottom: 1rem;
    border-collapse: collapse;
    color: var(--gray-900);
    vertical-align: top;
}

.table th,
.table td {
    padding: 0.5rem 0.5rem;
    vertical-align: top;
    border-top: 1px solid var(--gray-300);
    border-bottom: 1px solid var(--gray-300);
}

.table th {
    font-weight: 600;
}

.table>thead {
    vertical-align: bottom;
}

.table thead th {
    vertical-align: bottom;
    border-bottom: 2px solid var(--gray-300);
}

.table>tbody {
    vertical-align: inherit;
}

.table-striped>tbody>tr:nth-of-type(odd)>* {
    background-color: var(--table-stripe);
}

/* Expand/collapse button cells */
.table td.justscreen {
    border-bottom: 1px solid var(--gray-300);
    padding: 0.25rem;
    width: 24px;
    vertical-align: middle;
}

/* Cards */
.card {
    position: relative;
    display: flex;
    flex-direction: column;
    min-width: 0;
    word-wrap: break-word;
    background-color: var(--card-bg);
    background-clip: border-box;
    border: 1px solid var(--border-color);
    border-radius: 0.25rem;
    overflow: hidden;
    /* Prevent content from expanding card */
    transition: background-color 0.3s ease, border-color 0.3s ease;
}

.card-body {
    flex: 1 1 auto;
    min-height: 1px;
    padding: 1.25rem;
    min-width: 0;
    /* Allow card body to shrink */
    overflow: hidden;
    /* Contain overflowing content */
}

.card-title {
    margin-bottom: 0.75rem;
    font-size: 1.25rem;
    margin-block: 0;
}

.card-text {
    margin-bottom: 1rem;
}

.card-text:last-child {
    margin-bottom: 0;
}

.card-link {
    color: var(--primarycolor);
}

.card-link:hover {
    color: var(--secondarycolor);
}

.card-link+.card-link {
    margin-left: 1.25rem;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 0.375rem 0.75rem;
    font-size: 1rem;
    font-weight: 400;
    line-height: 1.5;
    text-align: center;
    text-decoration: none;
    vertical-align: middle;
    cursor: pointer;
    border: 1px solid transparent;
    border-radius: 0.25rem;
    transition: color 0.15s, background-color 0.15s, border-color 0.15s;
}

.btn-outline-primary {
    color: var(--primarycolor);
    border-color: var(--primarycolor);
    background-color: transparent;
}

.btn-outline-primary:hover {
    color: var(--white);
    background-color: var(--primarycolor);
    border-color: var(--primarycolor);
}

/* Breadcrumb */
.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    padding: 0.75rem 1rem;
    margin: 0;
    list-style: none;
    background-color: var(--bg-breadcrumb);
    border-radius: 0.25rem;
    transition: background-color 0.3s ease;
}

.breadcrumb-item+.breadcrumb-item::before {
    content: "/";
    padding: 0 0.5rem;
    color: var(--gray-600);
}

.breadcrumb-item a {
    color: var(--primarycolor);
}

.breadcrumb-item.active {
    color: var(--gray-600);
}

/* Definition Lists (dl.row) */
dl.row {
    display: flex;
    flex-wrap: wrap;
    margin-left: -15px;
    margin-right: -15px;
}

dl.row dt,
dl.row dd {
    padding-left: 15px;
    padding-right: 15px;
}

@media (min-width: 768px) {
    dl.row dt.col-md-2 {
        flex: 0 0 16.667%;
        max-width: 16.667%;
    }

    dl.row dd.col-md-10 {
        flex: 0 0 83.333%;
        max-width: 83.333%;
    }
}

/* Smooth scroll for anchor links */
.site-content {
    scroll-behavior: smooth;
}

/* Offset anchors to account for any internal positioning */
.site-content [id] {
    scroll-margin-top: 20px;
}

/* ===== CONSOLIDATED FROM main.css ===== */

ul.no_indent {
    padding-left: 0;
}

/* A schematron rule with flag="fatal" will have this class */
.schematron_flag_fatal {
    color: red;
    font-weight: bold;
}

/* an empty flag will hit here */
.schematron_flag_ {
    color: red;
    font-weight: bold;
}

.indented0>td>div {
    margin-left: 0px;
}

.indented1>td>div {
    margin-left: 15px;
}

.indented2>td>div {
    margin-left: 30px;
}

.nohorizontalpadding {
    padding-left: 0px !important;
    padding-right: 0px !important;
}

.indented3>td>div {
    margin-left: 45px;
}

.indented4>td>div {
    margin-left: 60px;
}

.indented5>td>div {
    margin-left: 75px;
}

.level0_expand_collapse_span {
    margin-right: -15px !important;
    text-align: right;
    float: right;
}

.level1_expand_collapse_span {
    margin-right: -25px !important;
    text-align: right;
    float: right;
}

.level2_expand_collapse_span {
    margin-right: -35px !important;
    text-align: right;
    float: right;
}

.level3_expand_collapse_span {
    margin-right: -45px !important;
    text-align: right;
    float: right;
}

.level4_expand_collapse_span {
    margin-right: -55px !important;
    text-align: right;
    float: right;
}

.level5_expand_collapse_span {
    margin-right: -65px !important;
    text-align: right;
    float: right;
}

.leaf {
    background-color: var(--leaf-bg);
    transition: background-color 0.3s ease;
}

.noleaf {
    background-color: var(--noleaf-bg) !important;
    transition: background-color 0.3s ease;
}

@media only print {
    .justscreen {
        display: none;
    }

    .printvisible {
        display: inherit !important;
    }
}

/* ===== CONSOLIDATED FROM asciidoc-ext-pdk.css ===== */

/* Asciidoc related */

body.toc2 {
    padding-left: 0 !important;
    padding-right: 0;
}

@media only screen and (min-width: 1280px) {
    .toc22 {
        padding-left: 20em !important;
    }
}

@media only screen and (min-width: 768px) and (max-width: 1279px) {
    .toc22 {
        padding-left: 15em !important;
    }
}

.toc2 {
    top: 56px !important;
    height: calc(100% - 56px) !important;
}

.navbar_light {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 56px !important;
    line-height: 1.5;
    z-index: 3;
}

/* ===== DARK MODE OVERRIDES FOR ASCIIDOCTOR CONTENT ===== */
/* These override the inline Asciidoctor CSS that has hardcoded colors */

[data-theme="dark"] {

    /* Brighten logo in dark mode */
    .site-brand img {
        filter: brightness(2.5) contrast(0.9) invert(0.5);
        mix-blend-mode: plus-lighter;
    }

    /* Body and content areas */
    body,
    .site-article,
    #content {
        background-color: var(--bg-primary) !important;
        color: var(--text-primary) !important;
    }

    /* Headings */
    h1,
    h2,
    h3,
    h4,
    h5,
    h6,
    #toctitle,
    .sidebarblock>.content>.title {
        color: var(--text-heading) !important;
    }

    /* Links */
    a,
    a:visited {
        color: var(--linkcolor) !important;
    }

    a:hover,
    a:focus {
        color: var(--linkcolorhover) !important;
    }

    /* TOC */
    #toc,
    #toc.toc2,
    #content #toc {
        background-color: var(--bg-toc) !important;
        border-color: var(--border-color) !important;
    }

    #toc a,
    #toctitle {
        color: var(--primarycolor) !important;
    }

    /* Tables */
    table {
        background-color: var(--bg-primary) !important;
        border-color: var(--border-color) !important;
    }

    table thead,
    table tfoot {
        background-color: var(--bg-secondary) !important;
    }

    table thead tr th,
    table thead tr td,
    table tfoot tr th,
    table tfoot tr td,
    table tr th,
    table tr td {
        color: var(--text-primary) !important;
        border-color: var(--border-color) !important;
    }

    table tr.even,
    table tr.alt {
        background-color: var(--table-stripe) !important;
    }

    /* Code blocks */
    code,
    pre,
    kbd {
        color: var(--text-primary) !important;
        background-color: var(--bg-secondary) !important;
    }

    :not(pre):not([class^=L])>code {
        background-color: var(--bg-secondary) !important;
        color: var(--code-color) !important;
    }

    /* Text content */
    p,
    li,
    dt,
    dd,
    blockquote,
    blockquote p {
        color: var(--text-primary) !important;
    }

    /* Blockquote */
    blockquote {
        border-left-color: var(--border-color) !important;
    }

    /* Section dividers */
    .sect1+.sect1,
    hr {
        border-color: var(--border-color) !important;
    }

    /* Admonition blocks */
    .admonitionblock td.content,
    .admonitionblock td.icon {
        background-color: var(--bg-secondary) !important;
        color: var(--text-primary) !important;
    }

    /* Sidebar */
    .sidebarblock {
        background-color: var(--bg-secondary) !important;
        border-color: var(--border-color) !important;
    }

    /* Example/listing blocks */
    .exampleblock>.content,
    .listingblock>.content>pre {
        background-color: var(--bg-secondary) !important;
        border-color: var(--border-color) !important;
    }

    /* Footer */
    #footer {
        background-color: var(--bg-footer) !important;
    }

    #footer-text {
        color: var(--text-secondary) !important;
    }

    /* Header details */
    #header .details,
    #header>h1:first-child,
    #content>h1:first-child:not([class]) {
        color: var(--text-heading) !important;
        border-color: var(--border-color) !important;
    }

    /* Block titles */
    .subheader,
    .admonitionblock td.content>.title,
    .audioblock>.title,
    .exampleblock>.title,
    .imageblock>.title,
    .listingblock>.title,
    .literalblock>.title,
    .stemblock>.title,
    .openblock>.title,
    .paragraph>.title,
    .quoteblock>.title,
    table.tableblock>.title,
    .verseblock>.title,
    .videoblock>.title,
    .dlist>.title,
    .olist>.title,
    .ulist>.title,
    .qlist>.title,
    .hdlist>.title {
        color: var(--secondarycolor) !important;
    }

    /* Menu sequences */
    .menuseq,
    .menuref {
        color: var(--text-primary) !important;
    }

    /* Keyboard styling */
    kbd {
        background-color: var(--bg-secondary) !important;
        border-color: var(--border-color) !important;
        box-shadow: 0 1px 0 rgba(255, 255, 255, .2), inset 0 0 0 .1em var(--bg-primary) !important;
    }

    .site-content img {
        mix-blend-mode: difference;
        filter: invert(1);
    }
}