/* Split-flap departure board (/split-flap-departure-board): the board straight on the stage at its shape (--sf-aspect, set
   by the script), the styles as little flaps to pick. Panels, sliders, segments and buttons come from the app kit. */

.sf-landing-app.ak-app > .filter-landing-stage.ak-stage {
    background: var(--component-checkerboard);
}

.sf-landing-app .sf-frame {
    position: relative;
    width: 100%;
    max-width: min(1100px, calc(72vh * var(--sf-aspect, 2)));
}

.sf-landing-app .sf-canvas {
    display: block;
    width: 100%;
    aspect-ratio: var(--sf-aspect, 2);
    border-radius: var(--ak-radius-sm, 6px);
}

.sf-landing-app .sf-text {
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    font-size: var(--ak-fs-sm, 0.875rem);
    line-height: 1.45;
    resize: vertical;
}

/* The styles: each button a small flap in its colours with a letter, its hinge across the middle. */
.sf-landing-app .sf-styles {
    flex-wrap: wrap;
}

.sf-landing-app .sf-style {
    position: relative;
    min-width: 2.1rem;
    padding: 0.15rem 0.45rem;
    font-weight: 700;
    font-size: 1.05rem;
    line-height: 1.5;
}

.sf-landing-app .sf-style::before {
    content: "";
    position: absolute;
    inset: 0.22rem;
    border-radius: 3px;
    background: var(--sf-flap);
    z-index: 0;
}

.sf-landing-app .sf-style::after {
    content: "";
    position: absolute;
    left: 0.22rem;
    right: 0.22rem;
    top: 50%;
    height: 1px;
    background: rgba(0, 0, 0, 0.55);
    z-index: 2;
}

.sf-landing-app .ak-seg .sf-style,
.sf-landing-app .ak-seg .sf-style.is-active {
    color: var(--sf-ink);
}

.sf-landing-app .sf-style {
    isolation: isolate;
}

.sf-landing-app .sf-style > span {
    position: relative;
    z-index: 1;
}

.sf-landing-app .sf-style.is-active {
    box-shadow: 0 0 0 2px var(--ak-accent);
}

/* The colour rows: a swatch on the right, as the other colour pickers of the kit. */
.sf-landing-app .sf-color-row[hidden] {
    display: none;
}

.sf-landing-app .sf-color-row {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 0.6rem;
}

.sf-landing-app .sf-color-input {
    width: 2.6rem;
    height: 1.9rem;
    padding: 0.1rem;
    border: 1px solid var(--ak-border);
    border-radius: var(--ak-radius-sm, 6px);
    background: var(--ak-field, transparent);
    cursor: pointer;
}
