/* ── Accessibility utilities (loaded after app.css) ── */

/* Divs/spans promoted to headings keep their original inherited metrics —
   reboot's h1-h6 type-ramp line-heights would inflate them (the sidebar
   kickers alone grew enough to force a desktop scrollbar). Classes here are
   only the promoted ones; born-as-heading titles keep their ramp metrics. */
h1.ge-title,
h2.ge-legend-eyebrow,
h2.ge-toolbar-title,
h2.ir-section-title,
h2.oh-card-title,
h2.or-section-title,
h2.ue-section-title,
h2.ue-section-heading-inline {
    line-height: var(--type-ramp-base-line-height);
}

h2.oh-card-title { margin: 0; }

/* Inline section heading (heading text sharing a row with a control) — global,
   NOT page-scoped: both users-edit and Settings render this class. */
h2.ue-section-heading-inline {
    margin: 0;
    font-size: inherit;
    font-weight: inherit;
    font-family: inherit;
    color: inherit;
}

.visually-hidden {
    position: absolute !important;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    clip-path: inset(50%);
    white-space: nowrap;
    border: 0;
}

/* Clip-hidden but focusable — keyboard-reachable file inputs inside label wrappers. */
.vh-focusable {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    clip-path: inset(50%);
    white-space: nowrap;
    border: 0;
}

/* ── Skip link: visually hidden until focused ── */
.skip-link {
    position: fixed;
    top: 10px;
    left: 10px;
    z-index: 12000;
    padding: 8px 14px;
    background: var(--op-surface);
    color: var(--op-accentDk);
    border: 1px solid var(--op-hairline);
    border-radius: 6px;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    transform: translateY(calc(-100% - 14px));
}

.skip-link:focus {
    transform: none;
}

/* ── Softphone: restore a visible keyboard-focus ring on the active-call container
      (app.css suppresses its outline). ── */
.sp-body .sp-active:focus-visible {
    outline: 2px solid var(--op-accent);
    outline-offset: -2px;
    border-radius: 8px;
}

/* ── Chat toast: the toast body is now a real <button>; keep the original flex layout. ── */
.chat-toast-open {
    appearance: none;
    background: none;
    border: 0;
    padding: 0;
    margin: 0;
    display: flex;
    gap: 11px;
    align-items: flex-start;
    flex: 1;
    min-width: 0;
    text-align: left;
    cursor: pointer;
    font: inherit;
    color: inherit;
}

/* ── BLF key grid: keyboard alternative to drag-reorder ── */
.ue-blf-col-drag {
    flex-direction: column;
    justify-content: center;
}

.blf-move-group {
    display: flex;
    flex-direction: column;
}

.blf-move {
    appearance: none;
    background: none;
    border: 0;
    padding: 0;
    margin: 0;
    width: 20px;
    height: 12px;
    line-height: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 3px;
    color: var(--op-muted);
    cursor: pointer;
}

.blf-move:hover:not(:disabled) {
    background: var(--op-surfaceAlt);
    color: var(--op-ink);
}

.blf-move:disabled {
    opacity: 0.35;
    cursor: default;
}
