/* Pico */
.container-fluid {
    padding: 0;
}

pre {
    white-space: pre-wrap;
}
pre > code {
    font-size: 1rem;
}
pre > code.dense {
    line-height: 1.2;
}

h1,
h2 {
    --pico-typography-spacing-vertical: var(--pico-spacing);
}

h2 a {
    text-decoration: none;
}

/* Codapi */

codapi-toolbar button {
    display: inline-block;
    width: auto;

    margin: 0;
    padding: 0.25em 0.5em;
}

codapi-ref {
    display: none;
}

codapi-output a {
    text-decoration: none;
}

codapi-output pre > code {
    line-height: 1.2;
}

/* Slides */

.glide__slide {
    height: 100vh;
    overflow-y: auto;

    margin: 0;
    padding: 1rem 2rem;

    list-style: none;
}

.glide__bullets {
    bottom: 1em;
}

.glide__bullet {
    height: 4px;
    margin: 0 0.1em;
    border-radius: 0%;
    color: var(--pico-muted-color);
}

.slide-100vh {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;

    padding-left: 4rem;
    padding-right: 4rem;
}
.slide-100vh h1 {
    /* orig 4rem */
    font-size: 5.5rem;
    line-height: 1;
}
.slide-100vh hgroup p {
    /* orig 3rem */
    font-size: 4.5rem;
    line-height: 1.2;
}
.slide-100vh h2 {
    font-size: 3rem;
    line-height: 1.2;
}
.slide-100vh h2.title {
    font-size: 4.5rem;
}
.slide-100vh h2.monospace {
    font-size: 2.5rem;
    font-weight: 400;
}

.slide-align-left {
    align-items: start;
}

.slide-code h1 {
    font-size: 3rem;
}
.slide-code > div {
    width: 90vw;
    margin: auto;
}
.slide-code pre > code {
    font-size: 1.2rem;
}

.muted {
    color: var(--pico-muted-color);
}

.monospace {
    font-family:
        "Menlo", "Consolas", "Roboto Mono", "Ubuntu Monospace", "Noto Mono",
        "Oxygen Mono", "Liberation Mono", monospace, "Apple Color Emoji",
        "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";
}

code.inline {
    border-radius: var(--pico-border-radius);
    background: none;
}

.header-flex {
    display: flex;
    align-items: center;
    gap: 0.25em;
}

img.screenshot {
    max-height: 90vh;
}
img.icon {
    display: inline-block;
    width: 1em;
    height: 1em;
}

.print-only {
    display: none;
}

/* Print */
@media print {
    @page {
        size: A4 landscape;
        /* size: 11in 6.1875in; */
        margin: 0;
        background: var(--pico-background-color);
    }

    .glide__slides {
        flex-direction: column;
        width: 100% !important;
    }

    .glide__slide {
        page-break-after: always;
        flex-shrink: unset;
        min-height: 100vh;
        height: 100%;
        width: 100% !important;
    }

    .print-only {
        display: unset;
    }
}
