@import url("https://fonts.googleapis.com/css2?family=Bitter:wght@400;600&family=Open+Sans:ital,wght@0,400;0,600;1,400;1,600&family=Ubuntu+Mono:ital,wght@0,400;0,700;1,400;1,700&display=swap");

@font-face {
    font-family: "TaraType";
    src: url("fonts/TaraType.ttf") format("truetype");
}

:root {
    --border-radius: 0.5em;
}

body {
    font-family: "Open Sans", sans-serif;

    --color-brand-primary: #404040;
    --color-brand-content: #E04000;
    --color-foreground-primary: #404040;
    --color-background-primary: #f9f8f7;
    --color-background-secondary: #f3f2f1;
    --color-admonition-background: #eeeeee;
    --color-table-border: #e1e4e5;
    --color-background-border: #dddddd;
    --color-guilabel-background: #f3f2f1;
    --color-guilabel-border: #dddddd;
    --color-admonition-title--note: #E04000;
    --color-admonition-title-background--note: #fdeee8;
    --color-admonition-title--seealso: #E04000;
    --color-admonition-title-background--seealso: #fdeee8;
    --color-admonition-title--tip: #006020;
    --color-admonition-title-background--tip: #e8f8e8;
    --color-admonition-title--warning: #c07000;
    --color-admonition-title-background--warning: #fff3cd;
    --color-admonition-title: #E04000;
    --color-admonition-title-background: #fdeee8;

    --color-border: #dddddd;
    --color-button: #f3f6f6;
    --color-background-highlight: #f3f2f1;
    --color-title: #303030;
    --color-link-hover: #bf431d;

    --color-irenogram-text: #3b3936;
    --color-strong: #404040;

    --color-green: darkgreen;
    --color-red: #c00000;

    --font-size--small: 100%;
    --font-size--small--2: 97%;
    --font-size--small--3: 94%;
    --font-size--small--4: 91%;

    --header-height: calc(var(--sidebar-item-line-height) + var(--sidebar-item-spacing-vertical) * 6);
    -webkit-font-smoothing: auto;

    font-size: 16px;
}

@media (prefers-color-scheme: dark) {
    body:not([data-theme="light"]) {
        --color-brand-primary: #e8a880;
        --color-brand-content: #f07040;
        --color-foreground-primary: #bfbcb9;
        --color-foreground-secondary: #9ca0a5;
        --color-foreground-muted: #81868d;
        --color-foreground-border: #666;
        --color-background-primary: #202020;
        --color-background-secondary: #181818;
        --color-background-hover: #1e2124;
        --color-background-border: #303335;
        --color-background-item: #444;
        --color-admonition-background: #282828;
        --color-table-border: #707070;
        --color-guilabel-background: #323232;
        --color-guilabel-border: #505050;
        --color-admonition-title--note: #f07040;
        --color-admonition-title-background--note: #2e1a10;
        --color-admonition-title--seealso: #f07040;
        --color-admonition-title-background--seealso: #2e1a10;
        --color-admonition-title: #f07040;
        --color-admonition-title-background: #2e1a10;

        --color-border: #505050;
        --color-button: #303030;
        --color-background-highlight: #323232;
        --color-title: #b9b9b9;
        --color-link-hover: #e85823;

        --color-irenogram-text: #b9b9b9;
        --color-strong: #cfccc9;

        --color-green: #66bb6a;
        --color-red: #ff6060;
    }
}

body[data-theme="dark"] {
    --color-brand-primary: #e8a880;
    --color-brand-content: #f07040;
    --color-foreground-primary: #bfbcb9;
    --color-foreground-secondary: #9ca0a5;
    --color-foreground-muted: #81868d;
    --color-foreground-border: #666;
    --color-background-primary: #202020;
    --color-background-secondary: #181818;
    --color-background-hover: #1e2124;
    --color-background-border: #303335;
    --color-background-item: #444;
    --color-admonition-background: #282828;
    --color-table-border: #707070;
    --color-guilabel-background: #323232;
    --color-guilabel-border: #505050;
    --color-admonition-title--note: #f07040;
    --color-admonition-title-background--note: #2e1a10;
    --color-admonition-title--seealso: #f07040;
    --color-admonition-title-background--seealso: #2e1a10;
    --color-admonition-title: #f07040;
    --color-admonition-title-background: #2e1a10;

    --color-border: #505050;
    --color-button: #303030;
    --color-background-highlight: #323232;
    --color-title: #b9b9b9;
    --color-link-hover: #e85823;

    --color-irenogram-text: #b9b9b9;
    --color-strong: #cfccc9;

    --color-green: #66bb6a;
    --color-red: #ff6060;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: Bitter, serif;
    font-weight: 600;
    color: var(--color-title);
}

h1 { font-size: 175%; }
h2 { font-size: 150%; }
h3 { font-size: 125%; }
h4 { font-size: 115%; }
h5 { font-size: 110%; }
h6 { font-size: 100%; }

article[role="main"] .highlight pre {
    font-family: "Ubuntu Mono", monospace;
    font-size: var(--font-size--normal);
    line-height: 1.2;
    border: 1px solid var(--color-border);
    border-radius: var(--border-radius);
    background-color: var(--color-background-highlight);
}

.highlight {
    border-radius: var(--border-radius);
}

p code.literal {
    padding: 0 4px;
    background-color: var(--color-background-highlight);
    border-color: var(--color-border);
    border-width: 0;
    border-radius: 0.5em;
}

p code.xref.literal {
    border-width: 1px;
}

.admonition {
    border-radius: var(--border-radius);
    font-size: var(--font-size--normal);
    border-left: 0;
}

p.admonition-title {
    font-size: var(--font-size--normal);
    font-weight: bold;
}

p.admonition-title:before {
    height: 21px;
    width: 21px;
}

.related-pages {
    display: flex !important;
    justify-content: space-between;
    align-items: stretch;
    margin-top: 2em;
    margin-bottom: 1em;
    gap: 1em;
    clear: both;
    overflow: hidden;
}

.related-pages a {
    display: flex;
    align-items: center;
    text-decoration: none;
    font-size: var(--font-size--normal);
    background-color: var(--color-button);
    border-radius: var(--border-radius);
    border: 1px solid rgba(0, 0, 0, 0.1);
    box-shadow: inset 0 1px 2px -1px hsl(0deg 0% 100% / 50%), inset 0 -2px 0 0 rgb(0 0 0 / 10%);
    padding: 6px 10px;
    max-width: 50%;
    box-sizing: border-box;
    flex-shrink: 0;
}

.related-pages a:hover {
    border-color: rgba(0, 0, 0, 0.2);
}

.related-pages a:hover .page-info .title {
    color: var(--color-brand-content);
    text-decoration: underline;
}

.related-pages a.prev-page {
    margin-right: auto;
    float: none;
}

.related-pages a.next-page {
    margin-left: auto;
    text-align: right;
    float: none;
}

.related-pages a.prev-page svg {
    transform: rotate(180deg);
}

.related-pages a svg.furo-related-icon,
.related-pages a svg.furo-related-icon > use {
    color: var(--color-foreground-border);
    flex-shrink: 0;
    height: 0.75rem;
    width: 0.75rem;
    margin: 0 0.5rem;
}

.page-info .context {
    font-size: 14px;
    color: var(--color-foreground-muted);
    font-weight: normal;
}

.page-info .title {
    font-size: var(--font-size--normal);
    color: var(--color-foreground-primary);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    max-width: 25em;
}

.sidebar-container {
    width: 18em;
}

@media (max-width: 67em) {
    .sidebar-drawer {
        width: 18em;
        left: -18em;
    }
}

.toc-drawer {
    width: 18em;
}

@media (max-width: 82em) {
    .toc-drawer {
        right: -18em;
    }
}

table.docutils {
    border: 1px solid var(--color-table-border);
    border-radius: var(--border-radius);
    border-collapse: separate;
    overflow: hidden;
    width: 100%;
}

table.docutils th {
    border-right: none;
}

table.docutils td {
    border-bottom-width: 1px;
    border-left-width: 1px;
    border-top-width: 0;
    border-right-width: 0;
}

table.docutils td p {
    padding: 5px;
}

table.docutils:not(.field-list) tr:nth-child(2n-1) td {
    background-color: var(--color-background-highlight);
}

table.docutils tbody > td:first-child {
    border-left-width: 0;
}

table.docutils tbody > tr:last-child td {
    border-bottom-width: 0;
}

table.docutils th:last-child {
    width: 100%;
}

table > caption {
    font-size: 24px;
    font-weight: bold;
    font-family: "Bitter";
    border-bottom: 1px solid var(--color-table-border);
    padding: 5px;
}

dt {
    text-transform: none !important;
    background-color: var(--color-background-highlight) !important;
    border-radius: var(--border-radius) !important;
    padding: 2px 8px;
    width: fit-content;
    border-left: 2px solid var(--color-border) !important;
}

.sig-prename,
.sig-name {
    color: var(--color-foreground-primary);
}

.banner {
    border-radius: var(--border-radius);
    border: 1px solid #888888;
    color: #888888;
    padding: 15px;
    margin: 20px auto;
    text-align: center;
    font-size: 20px;
    background-image: repeating-linear-gradient(135deg, rgba(128, 128, 128, 0.1), transparent 10%);
}

.top-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 20px;
}

.github-buttons {
    display: flex;
}

.github-button {
    border-radius: var(--border-radius);
    overflow: hidden;
    margin-left: 10px;
    border: 1px solid var(--color-border);
    border-spacing: 0;
}

.github-button td {
    padding: 4px 10px;
    border-left: 1px solid var(--color-border);
    white-space: nowrap;
    font-size: 14px;
    line-height: 20px;
}

.github-button td:first-child {
    border-left-width: 0;
    background-color: var(--color-background-highlight);
}

.github-button td:last-child {
    font-weight: 600;
    min-width: 2em;
    text-align: center;
}

.horizontal-line {
    margin-top: 25px;
    border-top: 1px solid var(--color-background-border);
}

@media (max-width: 67em) {
    .top-bar {
        display: flex;
        flex-direction: column;
        align-items: flex-end;
    }

    .view-on-github {
        margin-bottom: 10px;
    }
}

.index-logo {
    margin-bottom: -30px;
}

.sidebar-brand {
    margin-bottom: 10px;
    padding: 0 2px;
}

.sidebar-logo-container {
    margin-top: 20px;
    margin-bottom: 0;
}

.sidebar-logo {
    width: 48px;
    display: inline;
}

.irenogram-text {
    font-family: TaraType, sans-serif;
    font-size: calc(var(--font-size--normal) * 3);
    color: var(--color-irenogram-text);
    letter-spacing: 0.0425em;
    position: relative;
    top: -15px;
    font-weight: bold;
    display: inline;
}

.irenogram-text-index {
    font-size: 72px;
    position: relative;
}

.irenogram-logo-index {
    display: inline;
}

.irenogram-logo-index img {
    width: 72px;
}

.irenogram-version {
    border-top: 1px solid var(--color-background-border);
    border-bottom: 1px solid var(--color-background-border);
    border-radius: 0;
    padding: 10px;
    margin-top: 10px;
    margin-bottom: 20px;
    text-align: center;
    color: var(--color-foreground-muted);
}

.footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: var(--font-size--normal);
}

.right {
    float: right;
}

.left {
    float: left;
}

.footer-logo {
    display: flex;
    max-height: 80px;
    padding-right: 5px;
}

.copyright {
    display: flex;
    align-items: center;
}

.links a {
    padding-left: 5px;
}

.mobile-header {
    font-family: TaraType, monospace;
    font-weight: bold;
    font-size: 38px;
    letter-spacing: 0.0425em;
}

.mobile-header .header-center img {
    width: 38px;
}

.mobile-header .header-center a {
    display: flex;
    align-items: flex-end;
}

@media (max-width: 67em) {
    .mobile-header {
        align-items: center;
    }

    .mobile-header .header-right {
        padding-top: 10px;
        align-items: baseline;
        margin-right: 20px;
        height: unset;
    }

    .mobile-header .header-left {
        align-items: baseline;
        margin-left: 10px;
        height: unset;
    }
}

.mobile-header-title {
    position: absolute;
    margin-left: auto;
    margin-right: auto;
    width: fit-content;
    left: 0;
    right: 0;
    text-align: center;
    margin-top: 10px;
}

.mobile-header-title a {
    color: var(--color-foreground-primary);
}

.theme-toggle svg {
    width: 1.75rem;
    height: 1.75rem;
}

.icon svg {
    width: 1.75rem;
    height: 1.75rem;
}

.sidebar-tree label {
    margin-right: 10px;
}

blockquote {
    border-radius: var(--border-radius);
}

.bottom-of-page {
    font-size: var(--font-size--normal);
}

a {
    text-decoration: none;
}

a:hover,
a.reference:hover,
.sidebar-tree .toctree-l1 > .reference:hover {
    color: var(--color-link-hover);
}

b,
strong {
    color: var(--color-strong);
}

.content {
    justify-content: unset;
}

.sidebar-tree .current > .reference::before {
    content: "➤ ";
}

.toc-tree .reference::before {
    content: "• ";
}

.toc-tree li.scroll-current > .reference:before {
    content: "➤ ";
}

table.hlist {
    margin-top: -20px;
}

.highlight button.copybtn svg {
    color: var(--color-foreground-primary);
}

.toc-tree .reference {
    color: var(--color-brand-primary);
}

ul.breadcrumbs {
    margin-bottom: 0;
    padding: 0;
    list-style: none;
    font-size: 18px;
}

ul.breadcrumbs li {
    display: inline;
}

.usable-by {
    border: 1px solid var(--color-border);
    border-radius: var(--border-radius);
    padding: 2px 5px;
    background-color: var(--color-background-highlight);
}

.content-icon-container {
    margin-top: 1.9rem;
    margin-bottom: 0;
}
