/*! Asciidoctor Tabs — boxed, elevated tab widget for the Akka docs.
    The widget is a rounded card lifted off the page with a subtle surface tint,
    a slightly lighter header strip for the tab bar, and an Akka-yellow (#ffce4a)
    active tab. Colours are theme-neutral rgba tints so it works in dark + light. */
.tabs {
  margin-bottom: 1.25em;
  border: 1px solid rgba(128, 128, 128, 0.45);
  border-radius: 8px;
  background: rgba(128, 128, 128, 0.045);
  overflow: hidden;
}

.tablist > ul {
  display: flex;
  flex-wrap: wrap;
  gap: 0;
  list-style: none;
  margin: 0;
  padding: 0 0.75em;
  background: rgba(128, 128, 128, 0.09);
  border-bottom: 1px solid rgba(128, 128, 128, 0.45);
}

.tablist > ul li {
  align-items: center;
  color: inherit;
  cursor: pointer;
  display: flex;
  font-weight: bold;
  line-height: 1.5;
  padding: 0.6em 1em;
  position: relative;
  background: transparent;
  border: 0;
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
  opacity: 0.65;
}

.tablist > ul li:hover {
  opacity: 0.9;
}

.tablist > ul li:focus-visible {
  outline: none;
}

/* Selected tab: Akka yellow text + underline, sitting on the header rule. */
.tabs:not(.is-loading) .tablist li.is-selected,
.tabs.is-loading .tablist li:first-child {
  opacity: 1;
  color: #ffce4a;
  border-bottom-color: #ffce4a;
}

.tablist > ul p {
  line-height: inherit;
  margin: 0;
}

.tabpanel {
  color: inherit;
  background: transparent;
  border: 0;
  padding: 1em 1.25em 1.25em;
}

.tabs.is-loading .tabpanel + .tabpanel,
.tabs:not(.is-loading) .tabpanel.is-hidden {
  display: none;
}

.tabpanel > :first-child {
  margin-top: 0;
}

#content .tabpanel > :last-child,
#content .tabpanel > :last-child > :last-child,
#content .tabpanel > :last-child > :last-child > li:last-child > :last-child {
  margin-bottom: 0;
}

.tablecontainer {
  overflow-x: auto;
}

#content .tablecontainer {
  margin-bottom: 1.25em;
}

#content .tablecontainer > table.tableblock {
  margin-bottom: 0;
}
