/* some styles taken from GitHub markdown stylings */
:root {
    transition: none;
}
ul.nav-small {
    display: none;
    justify-content: space-between;
}

nav > ul.nav-small > li.right-align {
    gap: 1rem;
}

ul.nav-small button {
    background-color: transparent;
    color: var(--cr-text-primary);
    border: none;
    padding: 0;
    margin: 0;
}

#nav-toggle svg {
    width: 2.75rem;
    height: 2.75rem;
}

#nav-toggle:hover {
    background-color: transparent;
    color: inherit;
}

a.nav-link.logo {
    font-size: 1.5rem;
    font-weight: bold;
}

@media (width < 1000px) {
    ul.nav-large {
        display: none;
    }
    ul.nav-small {
        display: flex;
    }
}

div.wiki-page {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    height: 100%;
}

div.wiki-page h1 {
    font-size: 2rem;
}

div.wiki-page h2 {
    font-size: 1.75rem;
}

div.wiki-page h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

div.wiki-page h4 {
    font-size: 1.25rem;
    margin-bottom: 0.25rem;
}

div.wiki-page h5 {
    font-size: 1rem;
    margin-bottom: 0.25rem;
}

div.wiki-page h1, div.wiki-page h2 {
    border-bottom: 1px solid var(--cr-border-primary);
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
}

div.wiki-page p {
    margin-bottom: 1rem;
    line-height: 1.5;
    font-weight: 400;
}

div.wiki-page p.info {
    font-weight: 300;
    font-style: italic;
}

div.wiki-page ul {
    margin-bottom: 1rem;
    padding-left: 1rem;
}

div.wiki-page div.wiki-note {
    border-left: 4px solid var(--cr-primary);
    padding: 0.75rem 1rem;
    margin-bottom: 1rem;
}

div.wiki-page div.wiki-note * {
    margin: 0;
}

div.wiki-page table {
    display: table;
    border-spacing: 0;
    border-collapse: collapse;
    display: block;
    max-width: 100%;
    overflow: auto;
    margin-top: 0;
    margin-bottom: 2rem;
}
@media (width > 600px) {
    div.wiki-page table tr td.nowrap {
        text-wrap: nowrap;
    }
}

div.wiki-page table th {
    font-weight: 600;
}

@media (width >= 600px) {
    div.wiki-page table th, div.wiki-page table td {
        padding: 6px 13px;
    }
}

@media (width < 600px) {
    div.wiki-page table th, div.wiki-page table td {
        padding: 2px 2px;
    }
}

div.wiki-page table th, div.wiki-page table td {
    border: 1px solid var(--cr-border-primary);
}

div.wiki-page table tr {
    background-color: var(--cr-bg-secondary);
    border-top: 1px solid var(--cr-border-primary);
}

div.wiki-page table tr td:first-child {
    width: max-content;
}

div.wiki-page table tr:nth-child(2n) {
    background-color: var(--cr-bg-primary);
}

div.wiki-page code {
    font-family: ui-monospace, SFMono-Regular, SF Mono, Menlo, Consolas, Liberation Mono, monospace;
    padding: .2rem .4rem;
    font-size: inherit;
    margin: 0;
    font-size: 85%;
    white-space: break-spaces;
    background-color: var(--cr-border-secondary);
    border-radius: var(--br-radius-small);
}

div.wiki-page .flex-center {
    display: flex;
    justify-content: center;
    align-items: center;
}

main.wiki-container {
    display: flex;
    flex-direction: row;
    justify-content: center;
    width: 100%;
    height: 100%;
    gap: 1rem;
    align-items: flex-start;
    max-width: 1400px;
}

@media (width >= 600px) {
    main.wiki-container {
        padding: 0 1rem 1rem;
    }
}

@media (width < 600px) {
    main.wiki-container {
        padding: 0 0.25rem 0.25rem;
    }
}

.wiki-card {
    flex: 1;
    border-radius: var(--br-radius-small);
    background-color: var(--cr-bg-primary);
    border: 1px solid var(--cr-border-primary);
}

@media (width >= 600px) {
    .wiki-card {
        padding: 2rem;
    }
}

@media (width < 600px) {
    .wiki-card {
        padding: 1rem;
    }
}

section.wiki-sidebar {
    display: flex;
    flex-grow: 1;
    flex-direction: column;
    position: sticky;
    top: 1rem;
    align-self: flex-start;
    overflow-y: visible;
}

section.wiki-sidebar ul {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    list-style-type: none;
    padding: 0;
    margin: 0;
}

section.wiki-sidebar a {
    text-decoration: none;
    font-size: 1.2rem;
    font-weight: 500;
    color: var(--cr-text-primary);
}

article.wiki-content-container {
    display: flex;
    flex-direction: column;
    flex-grow: 4;
}

a.wiki-link:hover {
    color: var(--cr-text-primary-faded);
}

@media (width < 1000px) {
    nav.wiki-nav {
        position: sticky;
        top: 0;
        background-color: var(--cr-bg-primary);
    }
    #header-contents {
        box-sizing: content-box;
        position: fixed;
        top: var(--nav-height);
        left: 0;
        right: 0;
        z-index: 1000;
        padding: 2rem;
        margin: 0 0.5rem;
        max-height: 100%;
        overflow: hidden;
        box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
        opacity: 1;
        transition: opacity 0.25s ease-in;
    }
    #header-contents[data-closed] {
        pointer-events: none;
        opacity: 0;
    }
    button.svg-button svg {
        height: 2.25rem;
        width: 2.25rem;
    }
}

#genotype-grid-example {
    display: flex;
    margin: 2rem 0rem;
    flex-wrap: wrap;
    flex: 1;
}

.hare-example {
    flex: 1 1 0;
    width: 0;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    justify-content: flex-start;
    align-items: center;
    text-align: center;
}

#genotype-grid-example .grid-hare--large.grid-hare--dead div {
    opacity: 0.5;
}
