html {
  scroll-behavior: smooth;
  font-family: Inter, BlinkMacSystemFont, Helvetica, Arial, sans-serif;
  font-size: 14px;
  line-height: 1.1429;
  font-weight: 400;
  text-size-adjust: 100%;
  font-kerning: normal;
  height: 100%;
  background-color: rgb(248 250 253);
  color: rgb(52 55 65);
}

body.euiBody--headerIsFixed {
  padding-top: 49px;

  .euiFlyout,
  .euiCollapsibleNav {
    top: 49px;
    height: calc(100% - 49px);
  }
}

#examples {
  display: none;
}

.guideDemo__textLines {
  background-image: linear-gradient(rgb(0 119 204 / 10%) 1px, transparent 1px);
  background-size: 100% 12px;
  background-position-y: -1px;
}

.euiPanel--restrictWidth-custom {
  margin-left: auto;
  margin-right: auto;
  width: 100%;
}

.guideSideNav__content {
  padding: 0 24px 24px;
}

.guideSideNav__content::-webkit-scrollbar-corner,
.guideSideNav__content::-webkit-scrollbar-track {
  background-color: rgb(0 0 0 / 0%);
}

.guideSideNav__search {
  flex-shrink: 0;
  padding: 8px 8px 16px;
}

.guideSideNav {
  background:
    linear-gradient(
      160deg,
      rgb(211 218 230 / 30%) 0,
      rgb(211 218 230 / 30%) 32px,
      rgb(255 0 0 / 0%) 0
    ),
    linear-gradient(
      175deg,
      rgb(211 218 230 / 30%) 0,
      rgb(211 218 230 / 30%) 16px,
      rgb(255 0 0 / 0%) 0
    );
}

#guide {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

.euiBody--headerIsFixed #guide {
  min-height: calc(100vh - 48px);
}

@media only screen and (width >= 768px) and (width <= 991px) {
  .euiBody--headerIsFixed .euiPageSideBar--sticky {
    max-height: calc(100vh - 48px);
    top: 48px;
  }
}

@media only screen and (width >= 992px) and (width <= 1199px) {
  .euiBody--headerIsFixed .euiPageSideBar--sticky {
    max-height: calc(100vh - 48px);
    top: 48px;
  }
}

@media only screen and (width >= 1200px) {
  .euiBody--headerIsFixed .euiPageSideBar--sticky {
    max-height: calc(100vh - 48px);
    top: 48px;
  }
}

.pageBodyShadow {
  box-shadow:
    rgb(0 0 0 / 8%) 0 0.9px 4px,
    rgb(0 0 0 / 6%) 0 2.6px 8px,
    rgb(0 0 0 / 5%) 0 5.7px 12px,
    rgb(0 0 0 / 4%) 0 15px 15px;
}

/* Elastic UI docs specific */

.docfy-demo__description {
  padding: 24px;
}

.docfy-demo {
  padding-inline: 24px;
}

.guideSectionTabs {
  padding: 4px 12px;
}

.guideSectionTabs--open {
  padding-bottom: 0;
}

@media only screen and (width <= 574px) {
  .guideSideNav__content {
    padding: 0;
    border-top: 1px solid #d3dae6;
  }

  .guideSideNav__search {
    padding: 8px;
  }

  .guideSideNav {
    width: 100%;
  }
}

.guideSection + .guideSection {
  margin-top: 32px;
}

.guideSectionExampleCode__link {
  text-align: right;
  padding-top: 8px;
  padding-bottom: 8px;
}

p > p:last-child {
  margin: 0;
}

.docfy-demo__description__header__edit-url {
  margin-bottom: 10px;
  float: right;
  display: inline-block;
}

button {
  font-family: Inter, BlinkMacSystemFont, Helvetica, Arial, sans-serif;
}

.guideSectionTabs__tab > * {
  font-weight: 500 !important;
}

.text-white {
  color: white;
}

.flex-demo .euiFlexItem {
  padding: 16px;
  background: rgb(27 169 245 / 10%);
}

.guideDemo__highlightSpacer .euiCode {
  align-self: flex-start;
  margin-bottom: 16px;
}

.guideDemo__highlightSpacer .euiSpacer {
  background: rgb(27 169 245 / 10%);
}

.docfy-demo__description__content > * {
  margin-bottom: 24px;
}

.horizontal-rule-demo > div {
  background: rgb(0 119 204 / 10%);
  padding: 0.1px;
  margin-bottom: 16px;
}

.h-full {
  height: 100%;
}

/* <IconGallery /> on the icons docs page */
.iconGallery {
  max-height: 640px;
  overflow-y: auto;
  padding-right: 8px;
}

.iconGallery__section + .iconGallery__section {
  margin-top: 24px;
}

.iconGallery__grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 4px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.iconGallery__icon {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  width: 100%;
  min-height: 84px;
  padding: 12px 8px;
  border: 1px solid transparent;
  border-radius: 6px;
  background: none;
  color: inherit;
  cursor: pointer;
}

.iconGallery__icon:hover,
.iconGallery__icon:focus-visible {
  border-color: rgb(152 162 179 / 40%);
  background-color: rgb(152 162 179 / 10%);
}

.iconGallery__name {
  font-size: 12px;
  overflow-wrap: anywhere;
  text-align: center;
}

/* Markdown tables in docs pages (e.g. the generated API reference) */
.euiText table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 16px;
}

.euiText th,
.euiText td {
  padding: 6px 8px;
  border-bottom: 1px solid rgb(152 162 179 / 30%);
  text-align: left;
  vertical-align: top;
}

.euiText th {
  font-weight: 600;
}
