/* Shared type and control styling. Module layouts and status colors remain local. */
:root {
    --workspace-font: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    --workspace-radius: .65rem;
    --workspace-focus: #2455c7;
    --muted: #526176;
}

body {
    font-family: var(--workspace-font);
    line-height: 1.55;
}

main :is(h1, h2, h3) {
    overflow-wrap: anywhere;
    text-wrap: balance;
}

main h1 {
    line-height: 1.18;
    letter-spacing: -.025em;
}

main :is(p, li) > a:not([class]) {
    text-decoration: underline;
    text-underline-offset: .18em;
}

main :is(button, .button, input, select, textarea) {
    font-family: inherit;
}

main :is(button, .button) {
    border-radius: var(--workspace-radius);
}

main :is(input:not([type]), input:is([type="text"], [type="email"], [type="password"], [type="search"], [type="tel"], [type="number"], [type="url"], [type="file"]), select, textarea) {
    border-radius: var(--workspace-radius);
}

main :is(input, textarea)::placeholder {
    color: #5f6e80;
    opacity: 1;
}

body :is(a[href], button, input, select, textarea, summary):focus-visible {
    outline: 2px solid var(--workspace-focus);
    outline-offset: 3px;
}

main button:disabled {
    cursor: not-allowed;
}

@media (forced-colors: active) {
    body :is(a[href], button, input, select, textarea, summary):focus-visible {
        outline-color: Highlight;
    }
}
