/* ── SpaTabs: mutually-exclusive full-area tabs inside <main> ────────────────────
   See core/spaTabs.ts and issue #86 §9. Tabs live in #lfTabs, a
   child of <main> (same explicit "inside a div inside main" requirement as
   SpaDesktop's #lfDesktop, desktop.css) — the mount needs a positioning context.

   The mount, not `main.container-fluid`: in the classic shell they are the same element
   (_LiveLayout marks <main>), and in Embedded the tabs live in whatever container the host
   mounted — issue #118. */

.lf-mount:has(> #lfTabs) {
  position: relative;
  overflow: hidden;
}

.lf-tabs {
  position: absolute;
  inset: 0;
}

.lf-tab {
  position: absolute;
  inset: 0;
  display: none;
}

.lf-tab.is-active {
  display: flex;
  flex-direction: column;
}

.lf-tab-surface {
  flex: 1 1 auto;
  width: 100%;
  height: 100%;
  border: 0;
}

/* Active-tab indicator on the corresponding function-bar pin/group-member (§9.4) — a plain
   underline plus a touch of background, distinct from :hover/:focus without competing with them. */
.lf-spatabs-active-slot {
  position: relative;
  background: rgba(255, 255, 255, 0.12);
  border-radius: 0.25rem;
}

.lf-spatabs-active-slot::after {
  content: "";
  position: absolute;
  left: 0.2rem;
  right: 0.2rem;
  bottom: -0.15rem;
  height: 2px;
  background: currentColor;
  opacity: 0.85;
  border-radius: 1px;
}
