@media (min-width: 576px) {
    :root {
        --pico-font-size: 103%;
    }
}

@media (min-width: 768px) {
    :root {
        --pico-font-size: 106%;
    }
}

@media (min-width: 1024px) {
    :root {
        --pico-font-size: 109%;
    }
}

@media (min-width: 1280px) {
    :root {
        --pico-font-size: 112%;
    }
}

@media (min-width: 1536px) {
    :root {
        --pico-font-size: 115%;
    }
}

th {
    font-weight: 100;
}

h1,
h2,
h3,
h4,
h5 {
    font-weight: 100;
}

h2, h3 {
    font-size: 110%;
}

tbody tr:last-child td, tbody tr:last-child th {
    border-bottom: none !important;
}

tbody tr [role=group] {
    margin-bottom: 0;
}

tr.processed td, tr.processed th {
    font-style: italic;
}

article > *:last-child {
    margin-bottom: 0;
}

article header h3 {
    margin-bottom: 0;
}

.container > header {
    border-bottom: var(--pico-border-width) solid var(--pico-primary-border);
    margin-bottom: var(--pico-spacing);
}

.nav-and-content {
    display: flex;
    gap: calc(var(--pico-spacing) * 4);
}

.nav-and-content > aside {
    --pico-font-size: 16px;
    font-size: var(--pico-font-size);
    width: 100vw;
    padding: var(--pico-spacing);
    padding-top: calc(var(--pico-spacing) * 4);

    position: fixed;
    top: 0;
    left: -100vw;
    bottom: 0;
    z-index: 10;
    background: var(--pico-background-color);
    box-shadow: var(--pico-box-shadow);

    transition: left 250ms ease-in;
}

.nav-and-content > aside.open {
    left: 0;
}

.nav-and-content header nav {
    display: flex;
    margin-bottom: var(--pico-spacing) !important;
}

.main-nav > header > nav button {
    margin-right: 0;
}

.nav-and-content > aside nav {
    width: 100%;
    margin: 0 auto;
}

.page-nav summary {
    color: var(--pico-color) !important;
    font-weight: 600;
}

.page-nav ul {
    margin: 0;
    padding: 0;
}

.page-nav ul li a {
    padding-left: calc(var(--pico-nav-element-spacing-horizontal) * 1.5);
    margin-left: calc(var(--pico-border-width) * -1);
    border-left: var(--pico-border-width) solid var(--pico-muted-border-color);
    border-radius: 0;
}

.page-nav ul li a[aria-current] {
    border-color: var(--pico-primary);
    color: var(--pico-primary-hover);
    font-weight: 600;
}

.page-nav ul li ul {
    margin-left: var(--pico-spacing);
    margin-top: calc(var(--pico-spacing) * 0.5);
    margin-bottom: calc(var(--pico-spacing) * -0.5);
}

.nav-and-content > .content {
    flex-grow: 1;
}

@media (min-width: 1024px) {
    .mobile-nav-button,
    .mobile-only {
        display: none;
    }

    .nav-and-content {
        display: flex;
        gap: 4rem;
    }

    .nav-and-content > aside {
        --pico-font-size: 16px;
        font-size: var(--pico-font-size);
        margin-top: calc(var(--pico-spacing) * 0.5);
        width: auto;
        min-width: 200px;
        padding: 0;

        position: relative;
        background: none;
        box-shadow: none;
        left: auto;
        top: auto;
        bottom: auto;
    }

    .nav-and-content > aside nav {
        width: auto;
        margin: 0;
    }

    .page-nav ul li a {
        padding: calc(var(--pico-spacing) * 0.25) var(--pico-spacing);
    }

    .page-nav summary::after {
        display: none;
    }
}

.error {
    color: #d93526;
}

.space-between {
    display: flex;
    justify-content: space-between;
}

summary > header {
    display: inline-flex;
    justify-content: space-between;
    width: calc(100% - 4ex);
}

button.flat-button {
    color: inherit;
    background: none;
    border: none;
    padding: 0;
    line-height: inherit;
    font-size: inherit;
    margin-right: 1ex;
    min-width: 2.5ex;
}

button.flat-button.off > * {
    opacity: 0.25;
}

td.settings {
    text-align: right;
    white-space: nowrap;
}

.narrow {
    width: 20px;
}

td.wide,
th.wide {
    width: 99%;
}

td.tight,
th.tight {
    width: 20px;
    padding-left: calc(var(--pico-spacing) * 0.125);
    padding-right: calc(var(--pico-spacing) * 0.125);
}

td.tight > *,
th.tight > * {
    margin: 0;
}

.center {
    text-align: center;
}

.no-margin {
    margin: 0;
}

.info-qr-code {
    max-height: 30vh;
}

article.entry {
    display: flex;
    gap: var(--pico-spacing);
    padding-bottom: 0;
}

article.entry figure {
    width: 25%;
    margin: calc(var(--pico-spacing) * -1);
    margin-right: 0;
    margin-bottom: 0;
    border-radius: var(--pico-border-radius) 0 0 var(--pico-border-radius);
    background-color: var(--pico-primary-background);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

td.screenshot figure {
    width: 120px;
    height: 80px;
    margin-top: calc(var(--pico-spacing) * -0.5);
    margin-bottom: calc(var(--pico-spacing) * -0.5);
    background-color: var(--pico-primary-background);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

article.entry section {
    flex-grow: 1;
}

article.entry table td {
    width: 90%;
}

@media (min-width: 1280px) {
    .two-columns {
        display: flex;
        gap: var(--pico-grid-column-gap);
        width: 100%;
    }

    .two-columns-left {
        flex-grow: 1;
        max-width: 50%;
    }

    .two-columns-right {
        flex-grow: 1;
        max-width: 50%;
    }
}

.screen-preview-container {
    position: relative;
}

iframe.screen-preview {
    position: absolute;
    top: 0;
    left: 0;
}

.grow-wrap {
    display: grid;
}

.grow-wrap::after {
    content: attr(data-replicated-value) " ";
    white-space: pre-wrap;
    visibility: hidden;
}

.grow-wrap > textarea {
    resize: none;
    overflow: hidden;
}

.grow-wrap > textarea,
.grow-wrap::after {
    border: var(--pico-border-width) solid var(--pico-border-color);
    border-radius: var(--pico-border-radius);
    outline: 0;
    font-weight: var(--pico-font-weight);
    appearance: none;
    padding: var(--pico-form-element-spacing-vertical) var(--pico-form-element-spacing-horizontal);
    width: 100%;
    margin: 0;
    margin-bottom: var(--pico-spacing);
    font-size: 1rem;
    line-height: var(--pico-line-height);

    grid-area: 1 / 1 / 2 / 2;
}

textarea.monospace {
    font-family: monospace;
}

@media print {
    * {
        background: none !important;
        box-shadow: none !important;
    }

    .container > header {
        display: none;
    }

    .container {
        max-width: 100%;
    }

    article.votekeys header {
        display: none;
    }

    article.votekeys ul {
        list-style: none;
        padding: 0;
        margin: 0 !important;
        font-size: 0;
    }

    article.votekeys li {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        width: 24%;
        height: 4ex;
        border: 1px solid #888;
        margin: 0 !important;
        font-size: 16pt;
        color: black;
        text-transform: uppercase;
        line-height: normal;
    }
}

[data-tooltip] {
    border-bottom: none !important;
}

@media screen and (max-width: 767.99px) {
    table.voting thead {
        display: none;
    }

    table.voting tbody tr {
        display: flex;
        flex-wrap: wrap;
    }

    table.voting tbody tr td,
    table.voting tbody tr th {
        border: none;
    }

    table.voting tbody .order {
        order: 1;
        width: 10%;
    }

    table.voting tbody .title {
        order: 2;
        width: 90%;
    }

    table.voting tbody .screenshot {
        order: 3;
        width: 100%;
        padding: 0;
    }

    table.voting tbody .screenshot figure {
        width: 100%;
        height: 160px;
        margin: var(--pico-spacing) 0;
    }

    table.voting tbody .points {
        order: 4;
        width: 20%;
        padding-bottom: calc(var(--pico-spacing) * 2);
        margin-bottom: calc(var(--pico-spacing) * 2);
        border-bottom: var(--pico-border-width) solid var(--pico-table-border-color);;
    }

    table.voting tbody input {
        margin-right: 1ex;
    }
}

table.voting tbody .points label {
    font-size: 80%;
}

table.compact {
    font-size: 80%;
}

table.compact th, table.compact td {
    vertical-align: top;
}

table .entry-info {
    display: block;
    opacity: 80%;
}

.snackbars {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    animation: snackbars-appear 200ms 1 ease-out;
}

.snackbars ul {
    display: flex;
    flex-direction: column;
    align-items: flex-start;

    list-style: none;
    padding: 0;
    margin: 0;
}

.snackbars li {
    display: flex;
    gap: var(--pico-spacing);
    padding: var(--pico-spacing);
    margin-bottom: var(--pico-spacing);
    border-radius: var(--pico-border-radius);
    box-shadow: var(--pico-box-shadow);
    color: #ffffff;
}

.snackbars li a {
    text-decoration: none;
    text-transform: uppercase;
    font-weight: bold;
    color: #ffffff;
}

.snackbars li.info {
    background-color: #017FC0;
}

.snackbars li.success {
    background-color: #398712;
}

.snackbars li.warning {
    background-color: #FFBF00;
    color: #000000;
}

.snackbars li.warning a {
    color: #000000;
}

.snackbars li.error {
    background-color: #D24317;
}

.snackbars li.disappear {
    opacity: 0;
    animation: snackbar-disappear 200ms 1 ease-in;
}

@keyframes snackbars-appear {
    from {
        opacity: 0;
        bottom: -400px;
    }
    to {
        opacity: 1;
        bottom: 0;
    }
}

@keyframes snackbar-disappear {
    from {
        margin-left: 0;
        opacity: 1;
    }
    to {
        margin-left: -400px;
        opacity: 0;
    }
}
