.xwhy-ai-panel {
  border-top: 0.05rem solid var(--md-default-fg-color--lightest);
  margin: 1.1rem 0.6rem 0;
  padding-top: 0.85rem;
}

.xwhy-ai-panel__title {
  color: var(--md-default-fg-color--light);
  font-size: 0.64rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  margin: 0 0 0.55rem;
  text-transform: uppercase;
}

.xwhy-ai-panel__link {
  align-items: center;
  color: var(--md-default-fg-color--light) !important;
  display: flex;
  font-size: 0.7rem;
  gap: 0.45rem;
  line-height: 1.35;
  padding: 0.22rem 0;
}

.xwhy-ai-panel__link:hover,
.xwhy-ai-panel__link:focus {
  color: var(--md-accent-fg-color) !important;
  text-decoration: none;
}

.xwhy-ai-panel__link::after {
  content: "\2197";
  font-size: 0.56rem;
  margin-left: 0.08rem;
}

.xwhy-ai-panel__icon {
  color: var(--md-accent-fg-color);
  flex: 0 0 1rem;
  font-size: 0.68rem;
  font-weight: 700;
  text-align: center;
}

.md-typeset .grid.cards > ul > li {
  border-radius: 0.35rem;
}

.md-typeset p,
.md-typeset li,
.md-typeset dd,
.md-typeset blockquote {
  text-align: justify;
  text-align-last: left;
  hyphens: auto;
}

.md-typeset pre,
.md-typeset code,
.md-typeset table,
.md-typeset .admonition-title,
.md-typeset h1,
.md-typeset h2,
.md-typeset h3,
.md-typeset h4,
.md-typeset h5,
.md-typeset h6 {
  text-align: left;
}

.xwhy-topnav {
  background: color-mix(
    in srgb,
    var(--md-default-bg-color) 96%,
    var(--md-accent-fg-color)
  );
  border-bottom: 1px solid var(--md-default-fg-color--lightest);
  box-shadow: 0 0.25rem 0.85rem rgba(15, 23, 42, 0.06);
  position: sticky;
  top: 2.4rem;
  z-index: 3;
}

.xwhy-topnav__inner {
  margin: 0 auto;
  max-width: 90rem;
  padding: 0.3rem 1.2rem;
}

.xwhy-topnav__list,
.xwhy-topnav__dropdown {
  list-style: none;
  margin: 0;
  padding: 0;
}

.xwhy-topnav__list {
  align-items: center;
  display: flex;
  flex-wrap: nowrap;
  gap: 0.12rem;
  justify-content: center;
}

.xwhy-topnav__item {
  position: relative;
}

.xwhy-topnav__link,
.xwhy-topnav__dropdown-link {
  align-items: center;
  border-radius: 0.34rem;
  color: var(--md-default-fg-color);
  display: inline-flex;
  font-size: 0.68rem;
  font-weight: 720;
  line-height: 1.25;
  min-height: 1.7rem;
  padding: 0.4rem 0.48rem;
  text-decoration: none;
  white-space: nowrap;
}

.xwhy-topnav__link:hover,
.xwhy-topnav__link:focus,
.xwhy-topnav__dropdown-link:hover,
.xwhy-topnav__dropdown-link:focus {
  background: color-mix(in srgb, var(--md-accent-fg-color) 10%, transparent);
  color: var(--md-accent-fg-color);
  outline: none;
}

.xwhy-topnav__link--active,
.xwhy-topnav__dropdown-link--active {
  background: color-mix(in srgb, var(--md-accent-fg-color) 14%, transparent);
  color: var(--md-accent-fg-color);
}

.xwhy-topnav__link--menu::after {
  border-bottom: 0.21rem solid transparent;
  border-left: 0.21rem solid transparent;
  border-right: 0.21rem solid transparent;
  border-top: 0.25rem solid currentcolor;
  content: "";
  margin-left: 0.34rem;
  transform: translateY(0.08rem);
}

.xwhy-topnav__dropdown {
  background: var(--md-default-bg-color);
  border: 1px solid var(--md-default-fg-color--lightest);
  border-radius: 0.45rem;
  box-shadow: 0 0.6rem 1.5rem rgba(15, 23, 42, 0.14);
  left: 0;
  max-height: min(70vh, 32rem);
  min-width: 18rem;
  opacity: 0;
  overflow-y: auto;
  padding: 0.36rem;
  pointer-events: none;
  position: absolute;
  top: calc(100% + 0.3rem);
  transform: translateY(-0.25rem);
  transition: opacity 150ms ease, transform 150ms ease, visibility 150ms ease;
  visibility: hidden;
  z-index: 5;
}

.xwhy-topnav__item--has-menu:hover > .xwhy-topnav__dropdown,
.xwhy-topnav__item--has-menu:focus-within > .xwhy-topnav__dropdown {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
  visibility: visible;
}

.xwhy-topnav__dropdown-link {
  display: flex;
  font-size: 0.7rem;
  justify-content: flex-start;
  padding: 0.44rem 0.52rem;
  white-space: normal;
}

@media screen and (max-width: 76.24em) {
  .xwhy-topnav {
    display: none;
  }
}

.xwhy-ask-ai {
  bottom: 1.25rem;
  position: fixed;
  right: 1.25rem;
  z-index: 10;
}

.xwhy-ask-ai__button {
  align-items: center;
  background: #d7fc51;
  border: none;
  border-radius: 999px;
  box-shadow: 0 0.2rem 0.6rem rgba(0, 0, 0, 0.2);
  color: #0b132b;
  cursor: pointer;
  display: flex;
  font-family: inherit;
  font-size: 0.75rem;
  font-weight: 700;
  gap: 0.5rem;
  padding: 0.6rem 1.1rem;
}

.xwhy-ask-ai__button:hover {
  background: #c3ec3e;
}

.xwhy-ask-ai__button-icon {
  align-items: center;
  background: #0b132b;
  border-radius: 50%;
  display: flex;
  flex: 0 0 1.3rem;
  font-size: 0.7rem;
  height: 1.3rem;
  justify-content: center;
  width: 1.3rem;
}

.xwhy-ask-ai__menu {
  background: var(--md-default-bg-color);
  border-radius: 0.5rem;
  bottom: calc(100% + 0.6rem);
  box-shadow: 0 0.3rem 1rem rgba(0, 0, 0, 0.25);
  min-width: 11rem;
  padding: 0.4rem;
  position: absolute;
  right: 0;
}

.xwhy-ask-ai__link {
  align-items: center;
  border-radius: 0.3rem;
  color: var(--md-default-fg-color) !important;
  display: flex;
  font-size: 0.7rem;
  gap: 0.5rem;
  padding: 0.45rem 0.5rem;
}

.xwhy-ask-ai__link:hover,
.xwhy-ask-ai__link:focus {
  background: var(--md-default-fg-color--lightest);
  text-decoration: none;
}

.xwhy-ask-ai__icon {
  color: var(--md-accent-fg-color);
  flex: 0 0 1rem;
  font-size: 0.68rem;
  font-weight: 700;
  text-align: center;
}

.xwhy-example {
  border: 0.05rem solid var(--md-default-fg-color--lightest);
  border-radius: 0.2rem;
  margin: 1.25rem 0;
  overflow: hidden;
}

.xwhy-example__header {
  align-items: center;
  background: var(--md-code-bg-color);
  border-bottom: 0.05rem solid var(--md-default-fg-color--lightest);
  color: var(--md-default-fg-color--light);
  display: flex;
  font-size: 0.68rem;
  font-weight: 700;
  justify-content: space-between;
  letter-spacing: 0.03em;
  padding: 0.5rem 0.9rem;
  text-transform: uppercase;
}

.xwhy-example__body {
  padding: 1rem 1.1rem 0.2rem;
}

.xwhy-example__body > .highlight:first-child,
.xwhy-example__body > pre:first-child {
  margin-top: 0;
}

.xwhy-example__output {
  border: 0.05rem solid var(--md-default-fg-color--lightest);
  border-radius: 0.15rem;
  margin: 0.9rem 0;
  padding: 0.6rem;
}

.xwhy-example__output img {
  display: block;
  margin: 0 auto;
}
