/* Lanbrogio — dynamic accessibility (PKG-10): the pieces the scripts add or rely on. Kept apart from the design
   system files (app.css, ux.css, uxu.css, nav.css) so the visual work and this one do not collide. */

/* mobile navigation drawer: a close button inside the panel (the page behind it is inert while it is open) */
.nav-close-btn { display: none; color: var(--muted); }
@media (max-width: 900px) { .nav-close-btn { display: inline-flex; } }

/* grouped findings: the expand control is a real button (F-061) */
.grp-toggle { display: inline-flex; align-items: center; justify-content: center; width: 22px; height: 22px; margin: 0 4px 0 -4px;
              padding: 0; border: 0; border-radius: var(--r-sm); background: none; color: var(--muted); cursor: pointer; vertical-align: middle; }
.grp-toggle:hover { background: var(--surface-2); color: var(--text); }
.grp-toggle .grp-caret { margin: 0; }
.grp-toggle[aria-expanded="true"] .grp-caret { transform: rotate(90deg); }

/* finding page and drawer: the identifier is the heading (F-128) */
.fd-title h1.cve, .fd-title h2.cve { margin: 0; line-height: 1.3; }

/* sign-in and two-step verification: a real heading (F-059) */
.auth h1.auth-title { margin: 4px 0 2px; text-align: center; font-size: var(--fs-md, 16px); font-weight: var(--fw-semi, 600); color: var(--text); }
.auth h1.auth-title + .lead { margin-top: 0; }
main.auth-wrap:focus { outline: none; }

/* empty states: the heading level depends on the page, the look does not (F-132) */
.empty h1, .empty h2, .empty h4 { color: var(--text); font-size: var(--fs-base); margin: 0; }

/* scrollable tables reached with the keyboard (F-062): the focus ring sits inside the region */
.table-wrap[data-lb-scroll]:focus-visible { outline: 2px solid var(--focus, var(--accent)); outline-offset: -2px; }

/* reflow (F-064): prose tables wrap, commands wrap instead of widening the page */
.t.prose td, .t.prose th { white-space: normal; }
.t.prose td { min-width: 0; overflow-wrap: anywhere; }
.row > .input.grow { min-width: 0; }
.cmd-line { display: flex; gap: 8px; align-items: flex-start; flex-wrap: wrap; }
.cmd-line .cmd-text { flex: 1 1 240px; min-width: 0; width: 100%; resize: vertical; font-family: var(--mono); font-size: var(--fs-sm, 13px);
                      white-space: pre-wrap; overflow-wrap: anywhere; word-break: break-all; field-sizing: content; min-height: 2.6em; }

/* notices that are not about security: dismissible on phones only, remembered in this browser */
.banner-x { display: none; margin-left: auto; flex: none; }
@media (max-width: 640px) {
  .banner-x { display: inline-flex; }
  .banner.is-dismissed { display: none; }
}

/* scans card of the dashboard (compact list): no horizontal scrolling in the narrow side column */
.scans-compact { table-layout: auto; width: 100%; }
.scans-compact td.st-cell { white-space: normal; min-width: 0; }
.scans-compact td.st-cell .pg { max-width: 100%; }
.scans-compact td.when-cell .small { display: block; }
.scans-compact td.when-cell { white-space: normal; }

/* keyboard shortcuts dialog: the on/off preference */
.keys-pref { display: flex; flex-direction: column; gap: 4px; border-top: 1px solid var(--border); margin-top: 12px; padding-top: 12px; }
.keys-pref .help { margin: 0; }
