.row {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 1rem;
}

.col {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

section .demo {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.post figure {
    margin: unset;
}

.post figure pre {
    font-size: 1.25rem;
}

.post figure.center {
    min-height: 50px;
    max-height: 500px;
    align-items: start;
    overflow-x: auto;
    overflow-y: auto;
    background-color: var(--nord0);
    color: var(--nord6);
    font-size: 1.25rem;

    display: flex;
    flex-direction: row;
    justify-content: space-evenly;
    flex-wrap: wrap;
    gap: 2rem;
}

.post figure.center.wide {
    --width: 75vw;
    width: max(100%, var(--width));
    margin-left: min(0px, calc(50% - max(100%, var(--width)) / 2));
}

.post figure.center pre {
    line-height: 1;
}

.panel.show.list-of-examples {
    display: flex;
    flex-flow: column;
    align-items: flex-end;
    gap: 0.5rem;
}

.panel .row.example {
    width: 95%;
    justify-content: space-between;
    /* flex-wrap: wrap; */
}

.panel .row.example .description {
    margin: 0;
    margin-left: 2rem;
}

input {
    width: 100%;
    padding: 0.25rem 0.5rem;
    border-radius: 0.25rem;
}

input.expr-input {
    width: 100%;
    max-width: 50%;
    min-width: 20px;
    padding: 0.5rem;
}

pre.parse-output {
    padding: 0.5rem;
    background-color: var(--nord0);
    border: 1px solid var(--palette-blue-3);
    border-radius: 0.25rem;
    min-height: calc(2.5rem + 2px);
    white-space: pre-wrap;
}

pre.error-message {
    color: var(--nord11);
    vertical-align: middle;
    white-space: pre-wrap;
}

pre span.literal-unit { color: var(--nord4); }
pre span.literal-int { color: var(--nord15); }
pre span.literal-bool { color: var(--nord15); }
pre span.variable { color: var(--nord4); }
pre span.paren { color: var(--nord4); }
pre span.punctuation { color: var(--nord9); }
pre span.operator { color: var(--nord7); }
pre span.keyword { color: var(--nord9); }
pre span.label { color: var(--nord3); }
pre span.connector { color: var(--nord3); }
pre span.comment { color: var(--nord3); }

.machine {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: 10rem;
    column-gap: 0.5rem;
}

.machine .column {
    display: grid;
    grid-auto-rows: 2rem;
    min-width: 0;
    border: 1px solid var(--nord2);
    border-radius: 0.25rem;
    padding: 0 0.5rem;
}

.machine .column .column-header {
    padding: 0.25rem 0.5rem;
    align-content: center;
}

.machine .column .row {
    display: grid;
    min-width: 0;
    align-content: center;
}

.machine .column .row.indexed {
    grid-template-columns: 3ch 1fr;
    gap: 1ch;
}

.machine .column .row .value {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.machine .column .row.indexed .index {
    text-align: right;
    color: var(--nord3);
}

.machine .column .row.highlighted {
    border-left: 1px solid var(--nord4);
}

.machine .column .row.highlighted .index {
    color: var(--nord4);
}

.machine .column .row.highlighted .value {
    font-weight: bold;
}

.machine .column .row.more {
    color: var(--nord3);
}
