/* Skyjo: the strategy contract and disposable worker boundary. */
.boundary-layout {
    display: flow-root;
}
.boundary-copy {
    display: flow-root;
    min-width: 0;
}
.boundary-view {
    float: right;
    width: 42%;
    max-width: 520px;
    margin: 0 0 24px clamp(24px, 4vw, 56px);
}
.boundary-table {
    width: 100%;
    margin: 0;
}
.boundary-table .project-screenshot__image {
    border: 1px solid var(--border);
    border-radius: var(--radius);
}
.boundary-table img {
    display: block;
    width: 100%;
    height: var(--boundary-image-height, auto);
    max-height: 520px;
    object-fit: contain;
}

.boundary-options {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
    margin-top: 22px;
}
.boundary-options[hidden] {
    display: none;
}
.boundary-option {
    min-width: 0;
    min-height: 56px;
    padding: 12px 10px;
    border: 1px solid var(--border-soft);
    border-radius: var(--radius);
    background: #060b10;
    box-shadow: inset 0 4px 12px rgba(0, 0, 0, 0.65);
    color: var(--text-muted);
    font-family: var(--body-font);
    font-size: 1.0625rem;
    font-weight: 600;
    line-height: 1.4;
    cursor: pointer;
}
.boundary-option:hover {
    color: var(--text);
}
.boundary-option[aria-pressed="true"] {
    border-color: var(--border);
    background: var(--surface);
    box-shadow:
        0 5px 14px rgba(0, 0, 0, 0.35),
        inset 0 1px rgba(255, 255, 255, 0.04);
    color: var(--text);
}
.execution-endpoint {
    padding: 16px 18px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: var(--surface);
}
.execution-endpoint strong {
    display: block;
    margin-bottom: 4px;
}
.execution-boundary {
    padding: 20px;
    border: 1px dashed var(--accent);
    border-radius: var(--radius);
    background: var(--accent-soft);
}
.case-study .execution-transfer {
    margin: 12px 0;
    color: var(--accent);
    text-align: center;
}
@media (max-width: 900px) {
    .boundary-layout {
        display: flex;
        flex-direction: column;
    }
    .boundary-copy {
        order: 0;
    }
    .boundary-view {
        float: none;
        order: 1;
        width: 100%;
        margin: 24px auto 0;
    }
    .boundary-table img {
        height: auto;
    }
}
@media (max-width: 620px) {
    .boundary-options {
        grid-template-columns: minmax(0, 1fr);
        gap: 12px;
    }
    .boundary-option {
        min-height: 48px;
    }
    .execution-boundary {
        padding: 16px;
    }
}

#benchmarking > .case-section-title,
#benchmarking > .case-section-subtitle,
#benchmarking > .case-copy {
    max-width: 88ch;
}

/* These sections have prose above their visuals rather than beside them. */
@media (min-width: 1181px) {
    .case-study--skyjo :is(#idea, #execution, #benchmarking) > .case-copy,
    .case-study--skyjo #outcome > *,
    .case-study--skyjo #outcome .case-copy > p {
        max-width: none;
    }
}
