/* Scoped to the opted-in JSON converters; other tool workspaces are unchanged. */
#yaml-workspace .structured-code-surface .code-output { grid-row: 2; }
#yaml-workspace .structured-input-grid.workspace-grid--paired {
    grid-auto-rows: clamp(20rem, 48dvh, 34rem);
}

.converter-content-options > summary {
    cursor: pointer;
    list-style: none;
    padding: 12px;
    color: var(--text-strong);
    border-bottom: 1px solid var(--line);
    font: 700 .72rem/1.4 var(--font-display);
    letter-spacing: .05em;
    text-transform: uppercase;
}
.converter-content-options > summary::-webkit-details-marker { display: none; }
.converter-content-options > summary::after { content: "+"; float: right; }
.converter-content-options[open] > summary::after { content: "−"; }
.converter-content-options > summary:focus-visible { outline: 2px solid var(--ice); outline-offset: -3px; }

@media (min-width: 901px) {
    .converter-content-options > summary { display: none; }
}

@media (max-width: 900px) {
    .converter-content-options > summary {
        min-height: 44px;
        display: flex;
        align-items: center;
        justify-content: space-between;
    }
}

@media (max-width: 760px) {
    #yaml-workspace .structured-input-grid.workspace-grid--paired {
        grid-auto-rows: clamp(16rem, 38dvh, 22rem);
    }
}

/* JSON/YAML-specific text hierarchy; other converters retain their styles. */
#yaml-workspace :is(button, .button, .converter-content-options > summary) {
    font-size: .875rem;
    letter-spacing: normal;
    text-transform: none;
}
#yaml-workspace :is(.pane-head h2, .structured-option-grid label, #yaml-status) {
    font-family: var(--font-copy);
    font-size: .875rem;
    letter-spacing: normal;
    text-transform: none;
}
#yaml-workspace :is(.code-input, .code-output) { font-size: .875rem; }
