@font-face {
    font-family: 'Red Hat Display';
    src: url('fonts/RedHatDisplay-Regular.ttf');
}

@font-face {
    font-family: 'Red Hat Display';
    src: url('fonts/RedHatDisplay-Bold.ttf');
    font-weight: 700;
}

@font-face {
    font-family: 'Red Hat Mono';
    src: url('fonts/RedHatMono-Regular.ttf');
}

@font-face {
    font-family: 'Red Hat Mono';
    src: url('fonts/RedHatMono-Bold.ttf');
    font-weight: 700;
}

:root {
    --primary-brand: #fe7a00;
    --color-text: #000000;
    --color-filter-active: #ffffff;
    --issue-text: #979797;
    --color-clear-filter: #666666;
    --category-add: #fe7a00;
    --category-add-background: rgb(254 122 0 / 10%);
    --category-mod: #9377bb;
    --category-mod-background: rgb(147 119 187 / 10%);
    --category-fix: #339961;
    --category-fix-background: rgb(51 128 83 / 10%);
    --category-del: #555555;
    --category-del-background: rgb(153 153 153 / 10%);
    --category-compat: #c94f4f;
    --category-compat-background: rgb(201 79 79 / 10%);
}

@page {
    size: A4;
    margin: 15mm 15mm 15mm 25mm;

    @top-right {
        content: 'Page ' counter(page) ' of ' counter(pages);
        font-family: 'Red Hat Display', sans-serif;
        font-size: 8pt;
    }
}

body[data-md-color-scheme] {
    --md-text-font: 'Red Hat Display';
    --md-code-font: 'Red Hat Mono';
    --md-primary-fg-color: var(--primary-brand);
    --md-primary-fg-color--light: var(--primary-brand);
    --md-primary-fg-color--dark: var(--primary-brand);
    --md-accent-fg-color: var(--primary-brand);
}

body[data-md-color-scheme='default'] {
    --md-default-fg-color: var(--color-text);
    --md-default-fg-color--light: var(--color-text);
}

[data-md-color-scheme=slate][data-md-color-primary=indigo] {
    --md-typeset-a-color: var(--primary-brand);
}

.md-typeset ol li blockquote, .md-typeset ol li p, .md-typeset ul li blockquote, .md-typeset ul li p {
    margin: .2em 0;
}

.md-typeset ol li, .md-typeset ul li {
    margin-bottom: .2em;
}

.md-typeset ol li :is(ul, ol), .md-typeset ul li :is(ul, ol) {
    margin-bottom: .2em;
    margin-top: .2em;
}

.md-grid {
    max-width: 64rem; /* width of sidebar-primary + content + sidebar-secondary*/
}

.md-sidebar {
    width: 13rem; /* width of sidebar-primary and sidebar-secondary*/
}

@media screen and (max-width: 76.1875em) {
    [dir="ltr"] .md-sidebar--primary {
        left: -13rem;
    }
    [data-md-toggle=drawer]:checked~.md-container .md-sidebar--primary {
        transform: translateX(13rem);
    }
}

html {
    font-size: 150%;
}

.md-typeset {
    font-size: .7rem;
}

.md-typeset img:not(.twemoji) {
    width: auto;
    max-width: 100%;
    height: auto;
}

.image-zoom {
    display: inline-block;
    position: relative;
    max-width: 100%;
    vertical-align: middle;
}

.md-typeset .image-zoom > img {
    display: block;
}

.image-zoom-available > img {
    cursor: zoom-in;
}

.image-zoom-button,
.image-zoom-close {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2rem;
    height: 2rem;
    padding: .35rem;
    border: 1px solid var(--md-default-fg-color--lightest);
    border-radius: .25rem;
    background: var(--md-default-bg-color);
    color: var(--md-default-fg-color);
    cursor: pointer;
}

.image-zoom-button {
    position: absolute;
    top: .35rem;
    right: .35rem;
    box-shadow: 0 .1rem .3rem rgb(0 0 0 / 20%);
}

.image-zoom-button[hidden] {
    display: none;
}

.image-zoom-button svg {
    width: 100%;
    height: 100%;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
}

.image-zoom-button:hover,
.image-zoom-close:hover {
    color: var(--primary-brand);
}

.image-zoom-button:focus-visible,
.image-zoom-close:focus-visible {
    outline: 2px solid var(--primary-brand);
    outline-offset: 2px;
}

.image-zoom-dialog {
    width: fit-content;
    max-width: calc(100vw - 2rem);
    max-height: calc(100dvh - 2rem);
    margin: auto;
    padding: 0;
    overflow: hidden;
    border: 1px solid var(--md-default-fg-color--lightest);
    border-radius: .35rem;
    background: var(--md-default-bg-color);
    color: var(--md-default-fg-color);
    box-shadow: 0 .5rem 2rem rgb(0 0 0 / 30%);
}

.image-zoom-dialog[open] {
    display: flex;
    flex-direction: column;
}

.image-zoom-dialog::backdrop {
    background: rgb(0 0 0 / 65%);
}

.image-zoom-toolbar {
    display: flex;
    flex-shrink: 0;
    justify-content: flex-end;
    padding: .25rem .5rem;
}

.image-zoom-close {
    font-size: 1.5rem;
}

.image-zoom-viewport {
    min-height: 0;
    overflow: auto;
    overscroll-behavior: contain;
}

.image-zoom-viewport:focus-visible {
    outline: 2px solid var(--primary-brand);
    outline-offset: -2px;
}

.image-zoom-dialog img {
    display: block;
    max-width: none;
    height: auto;
    max-height: none;
    margin: 0;
}

@media screen {
    body:has(.image-zoom-dialog[open]) {
        overflow: hidden;
    }
}

.md-typeset h1 {
    font-size: 1.35rem;
}

.md-typeset h2 {
    font-size: 1.05rem;
}

.md-typeset pre {
    font-size: .6rem; /* for code blocks use smaller size*/
    padding: .5em 1em;
    overflow-x: auto;
}

.md-typeset pre>code {
    font-size: 1em; /* make sure immaterial theme doesn't shrink code as this is already done by the pre rule above*/
    padding: 0; /* padding already happens in the parent pre as defined above */
}

.md-nav {
    font-size: .65rem;
    line-height: 1.1;
}

.md-sidebar--primary .md-ellipsis {
    margin-left: 0.3rem; /* indentation of sidebar-primary sub elements*/
}

.md-sidebar--secondary .md-nav__link .md-ellipsis {
    padding-inline-end: .2em;
}

.category-filters > p {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    align-items: center;
    margin: 0;
}

.category-filters-title {
    flex-basis: 100%;
    font-weight: 700;
    color: var(--md-default-fg-color--light);
}

.category-filters-print-title {
    display: none;
}

.md-sidebar--secondary .category-filters {
    margin: 0 0 .75rem;
    padding: 0 .6rem;
}

.md-sidebar--secondary .category-filters > p {
    align-items: flex-start;
    gap: .3rem;
}

.md-sidebar--secondary .category-filters-title {
    font-size: .65rem;
}

.md-sidebar--secondary .category-filter {
    flex: 0 1 auto;
    max-width: calc(100% - 2rem);
    font-size: .7rem;
    line-height: 1.25;
    overflow-wrap: break-word;
    text-align: left;
}


.category-filter {
    align-items: center;
    border: .075rem solid var(--category-color);
    border-radius: 0.5rem 0.2rem;
    background: var(--category-background-color);
    color: var(--category-color);
    cursor: pointer;
    display: inline-flex;
    padding: 0.35rem 0.5rem;
}

.category-filter[data-category='ADD'], .category-icon[data-category='ADD'] {
    --category-color: var(--category-add);
    --category-background-color: var(--category-add-background);
}

.category-filter[data-category='MOD'], .category-icon[data-category='MOD'] {
    --category-color: var(--category-mod);
    --category-background-color: var(--category-mod-background);
}

.category-filter[data-category='FIX'], .category-icon[data-category='FIX'] {
    --category-color: var(--category-fix);
    --category-background-color: var(--category-fix-background);
}

.category-filter[data-category='DEL'], .category-icon[data-category='DEL'] {
    --category-color: var(--category-del);
    --category-background-color: var(--category-del-background);
}

.category-filter[data-category='COMPAT'], .category-icon[data-category='COMPAT'] {
    --category-color: var(--category-compat);
    --category-background-color: var(--category-compat-background);
}

.category-filter[aria-pressed='true'] {
    background: var(--category-color);
    color: var(--color-filter-active);
}

.category-filter[aria-pressed='true'] .category-icon {
    color: currentColor;
}

.clear-category-filters {
    border: 0;
    background: transparent;
    color: var(--color-clear-filter);
    cursor: pointer;
    padding: 0.2rem;
}

.md-sidebar--secondary .clear-category-filters {
    flex: 0 0 9%;
}

.clear-category-filters:hover {
    color: var(--md-default-fg-color);
}

.md-typeset .changelog-entries {
    list-style: none;
    margin: .2rem 0 .6rem;
    padding: 0;
}

.md-typeset .changelog-entries[hidden] {
    display: none;
}

.md-typeset h2 {
    /*margin: 1.6em 0 .8em;*/
}

.md-typeset h3 {
    margin: .8em 0;
}

.md-typeset h2+h3 {
    /*margin-top: 0;*/
}

.md-typeset:has([id^='release-note-']) :is(h1, h2, h3) {
    margin-top: 2.5em;
}

.md-typeset:has([id^='release-note-']) > h1:first-child {
    margin-top: 0;
}

.md-typeset:has([id^='release-note-']) h4 {
    margin-top: 2em;
}

.md-typeset h3[id^='release-note-'] {
    margin-top: 3em;
}

.md-typeset:has([id^='release-note-']) h5 {
    color: inherit;
    font-size: 1em;
    font-weight: 700;
    letter-spacing: normal;
    margin: 1.5em 0 .5em;
    text-transform: none;
}

.md-typeset:has([id^='release-note-']) :is(h1, h2, h3, h4):has(+ :is(h2, h3, h4, h5)) {
    margin-bottom: .5em;
}

.md-typeset:has([id^='release-note-']) :is(h1, h2, h3, h4) + :is(h2, h3, h4, h5) {
    margin-top: .5em;
}

.md-typeset h2[id^='release-note-'] ~ h2[id^='release-note-'] {
    border-top: 1px solid var(--md-default-fg-color--lightest);
    padding-top: 1.25em;
}

.md-typeset:has([id^='release-note-']) > p {
    margin-block: 1.25em;
}

.print-header-date {
    display: none;
}

.md-typeset h4.changelog-entry {
    align-items: flex-start;
    color: inherit;
    display: flex;
    font-size: inherit;
    font-weight: inherit;
    gap: .25rem;
    letter-spacing: normal;
    line-height: 1.4;
    margin: .35rem 0;
    overflow-wrap: break-word;
    text-transform: none;
}

.changelog-entry-text {
    margin-top: .15em;
}

.category-icon {
    align-items: center;
    color: var(--category-color);
    display: inline-flex;
    flex: 0 0 1.4em;
    height: 1.4em;
    justify-content: center;
    margin-top: .1em;
    width: 1.4em;
}

.category-icon .twemoji,
.category-icon svg {
    display: block;
    height: 100%;
    width: 100%;
}

.category-filter .category-icon {
    flex-basis: 1.25em;
    height: 1.25em;
    margin-right: .25rem;
    margin-top: 0;
    width: 1.25em;
}

.issue-reference {
    color: var(--issue-text);
    font-size: .9em;
    white-space: nowrap;
}

.md-typeset .changelog-entry[hidden] {
    display: none;
}


.md-typeset .component-section[hidden] {
    display: none;
}

.md-typeset .component-group[hidden] {
    display: none;
}

.md-sidebar--secondary .md-nav__item[hidden] {
    display: none;
}

.md-copyright {
    align-items: center;
    display: grid;
    gap: 1rem;
    grid-template-columns: 1fr auto 1fr;
    width: 100%;
}

.md-copyright__highlight {
    justify-self: start;
}

.md-copyright__logo {
    justify-self: center;
}

.md-copyright__logo img {
    display: block;
    height: 40px;
}

.md-copyright__links {
    display: flex;
    gap: 0.8rem;
    justify-self: end;
}

.md-copyright__links a {
    text-decoration: none;
}

.md-copyright__links a:hover {
    text-decoration: underline;
}

@media print {
    .image-zoom-button,
    .image-zoom-dialog {
        display: none !important;
    }

    html,
    body {
        -webkit-print-color-adjust: exact;
        print-color-adjust: exact;
    }

    html {
        font-size: 110%;
    }

    .md-main__inner,
    .md-content,
    .md-content__inner {
        margin: 0;
        padding: 0;
    }

    .print-header-date {
        display: block;
        margin-bottom: 1em;
    }

    .category-filters-title {
        display: none;
    }

    .category-filter,
    .category-filter[aria-pressed='true'] {
        border: 0;
        background: transparent;
        padding: 0;
        color: var(--category-color);
    }

    .md-typeset .changelog-entries {
        page-break-before: avoid;
    }

    .md-typeset h2.component-group,
    .md-typeset h2.component-section,
    .md-typeset h3.component-section {
        break-after: avoid-page;
        page-break-after: avoid;
    }

    .md-typeset h4.changelog-entry {
        page-break-inside: avoid;
    }
}
