[role="tablist"] {
  margin: 0 0 -0.1em;
  overflow: visible;
  /* background: var(--bs-page-bg); */
}

[role="tab"] {
  position: relative;
  margin: 0;
  padding: 0.3em 0.5em 0.4em;
  border: 1px solid var(--bs-gray-600); /* hsl(219, 1%, 72%); */
  border-radius: 0.2em 0.2em 0 0;
  /*box-shadow: 0 0 0.2em *var(--bs-gray-600);  hsl(219, 1%, 72%); */
  overflow: visible;
  /* font-family: inherit;
  font-size: inherit; */
  /* font-family: 'Roboto', sans-serif; */
  font-size: 1.1em;
  font-weight: 400;
  background: var(--bs-page-bg);
}

[role="tab"]:hover::before,
[role="tab"]:focus::before,
[role="tab"][aria-selected="true"]::before {
  position: absolute;
  bottom: 100%;
  right: -1px;
  left: -1px;
  border-radius: 0.2em 0.2em 0 0;
  border-top: 3px solid var(--bs-danger);
  content: '';
}

[role="tab"][aria-selected="true"] {
  border-radius: 0;
  background: var(--bs-white);
  outline: 0;
}

[role="tab"][aria-selected="true"]:not(:focus):not(:hover)::before {
  border-top: 5px solid var(--bs-primary); /* hsl(218, 96%, 48%); */
}

[role="tab"][aria-selected="true"]::after {
  position: absolute;
  z-index: 3;
  bottom: -1px;
  right: 0;
  left: 0;
  height: 0.3em;
  background: var(--bs-white);
  box-shadow: none;
  content: '';
}

[role="tab"]:hover,
[role="tab"]:focus,
[role="tab"]:active {
  outline: 0;
  border-radius: 0;
  color: inherit;
}

[role="tab"]:hover::before,
[role="tab"]:focus::before {
  border-color: var(--bs-danger);
}

[role="tabpanel"] {
  position: relative;
  z-index: 2;
  /* padding: 0.5em 0.5em 0.7em; */
  border: 1px solid var(--bs-gray-600); /* hsl(219, 1%, 72%); */
  border-radius: 0 0.2em 0.2em 0.2em;
  /* box-shadow: 0 0 0.2em hsl(219, 1%, 72%); */
  background: var(--bs-white);
}

[role="tabpanel"]:focus {
  border-color: var(--bs-danger);
  box-shadow: 0 0 0.2em var(--bs-danger);
  outline: 0;
}

[role="tabpanel"]:focus::after {
  position: absolute;
  bottom: 0;
  right: -1px;
  left: -1px;
  border-bottom: 3px solid var(--bs-danger);
  border-radius: 0 0 0.2em 0.2em;
  content: '';
}

[role="tabpanel"] p {
  margin: 0;
}

[role="tabpanel"] * + p {
  margin-top: 1em;
}
