/* =========================================================
   KE Guide Layout Foundation
   ========================================================= */

body.single-guide #page,
body.single-guide #content,
body.single-guide #primary,
body.single-guide #main {
  width: 100% !important;
  max-width: none !important;

  margin: 0 !important;
  padding: 0 !important;
}

.ke-docs-page {
  width: 100% !important;
  max-width: none !important;

  margin: 0 !important;
  padding: 0 !important;
}

/* =========================================================
   KE Guide Layout Foundation - Outer Grid
   ========================================================= */

@media (min-width: 1088px) {

  .ke-docs-shell {
    display: grid !important;

    grid-template-columns:
      minmax(260px, 290px)
      minmax(0, 1fr)
      minmax(240px, 285px) !important;

    width: 100% !important;
    max-width: none !important;

    min-height: calc(100vh - 60px);
    min-height: calc(100dvh - 60px);

    margin: 0 !important;
    padding: 0 !important;

    gap: 0 !important;
    align-items: start !important;

    overflow: visible !important;
  }

  .ke-docs-left,
  .ke-docs-main,
  .ke-docs-right {
    min-width: 0 !important;
  }
}

/* =========================================================
   KE Guide Layout Foundation - Left
   ========================================================= */
/*
@media (min-width: 769px) {

  .ke-docs-left {
    position: sticky !important;
    top: 60px !important;

    height: calc(100vh - 60px) !important;
    height: calc(100dvh - 60px) !important;

    align-self: start !important;

    background:
      linear-gradient(
        180deg,
        #102f3d 0%,
        #0b302d 100%
      ) !important;

    border-right:
      1px solid rgba(255, 255, 255, 0.1) !important;

    overflow: hidden !important;
  }

  .ke-docs-left-inner {
    display: flex !important;

    width: 100% !important;
    height: 100% !important;
    min-height: 0 !important;

    flex-direction: column !important;

    margin: 0 !important; */
   /* padding: 20px 14px 18px 22px !important; */

  /*  background: transparent !important;

    border: 0 !important;
    border-radius: 0 !important;

    box-shadow: none !important;

    overflow: hidden !important;
  }

  #ke-anchor-nav.ke-anav--sidebar {
    position: static !important;
    top: auto !important;

    width: 100% !important;
    height: 100% !important;
    min-height: 0 !important;

    margin: 0 !important;

    background: transparent !important;

    border: 0 !important;
    border-radius: 0 !important;

    box-shadow: none !important;

    overflow: hidden !important;

    opacity: 1 !important;
    transform: none !important;
    pointer-events: auto !important;
  }

  #ke-anchor-nav.ke-anav--sidebar .ke-anav-inner {
    width: 100% !important;
    min-height: 0 !important;

    flex: 1 1 auto !important;

    margin: 0 !important;
    padding: 0 8px 20px 0 !important;

    overflow-x: hidden !important;
    overflow-y: auto !important;
  }
} */

/* =========================================================
   KE Guide Layout Foundation - Main Content - Middle
   ========================================================= */

.ke-docs-main {
  width: 100% !important;
  min-width: 0 !important;
  max-width: 1200px !important;

  justify-self: center !important;

  margin-inline: auto !important;
}

@media (min-width: 1088px) {

  .ke-docs-main {
    padding: 32px 48px 80px !important;
  }
}

@media (min-width: 1088px) {

  .ke-docs-header {
    margin: 0 0 32px !important;
    padding: 12px 0 30px !important;

    background: transparent !important;

    border: 0 !important;
    border-radius: 0 !important;

    box-shadow: none !important;
  }
}

/* =========================================================
   KE Guide Layout Foundation - Right Bar
   ========================================================= */

@media (min-width: 1088px) {

  .ke-docs-right {
    position: sticky !important;
    top: 60px !important;

    height: calc(100vh - 60px) !important;
    height: calc(100dvh - 60px) !important;

    align-self: start !important;

    border-left:
      1px solid rgba(15, 47, 61, 0.1) !important;

    overflow: hidden !important;
  }

  .ke-docs-right-inner {
    width: 100% !important;
    height: 100% !important;

    padding: 30px 24px 40px !important;

    overflow-x: hidden !important;
    overflow-y: auto !important;
  }
}

@media (min-width: 1088px) {

  .ke-related-guide-card {
    margin: 0 !important;
    padding: 18px 0 !important;

    background: transparent !important;

    border: 0 !important;
    border-bottom:
      1px solid rgba(15, 47, 61, 0.12) !important;

    border-radius: 0 !important;

    box-shadow: none !important;
  }
}

/* =========================================================
   KE Guide Layout Foundation - Tablet
   ========================================================= */

@media (min-width: 769px) and (max-width: 1087px) {

  .ke-docs-shell {
    display: grid !important;

    grid-template-columns:
      minmax(220px, 250px)
      minmax(0, 1fr) !important;

    grid-template-areas:
      "left main"
      "left right" !important;

    width: 100% !important;
    max-width: none !important;

    margin: 0 !important;
    padding: 0 !important;

    gap: 0 !important;
    align-items: start !important;

    overflow: visible !important;
  }

  .ke-docs-left {
    grid-area: left;
  }

  .ke-docs-main {
    grid-area: main;

    max-width: 760px !important;

    padding: 28px 30px 60px !important;
  }

  .ke-docs-right {
    grid-area: right;

    position: static !important;

    width: 100% !important;
    height: auto !important;

    border-left: 0 !important;
    border-top:
      1px solid rgba(15, 47, 61, 0.1) !important;

    overflow: visible !important;
  }

  .ke-docs-right-inner {
    height: auto !important;

    padding: 28px 30px 60px !important;

    overflow: visible !important;
  }
}

/* =========================================================
   KE Guide Layout Foundation - Mobile
   ========================================================= */

@media (max-width: 768px) {

  .ke-docs-shell {
    display: block !important;
  }

  .ke-docs-left {
    display: none !important;
  }

  .ke-docs-main {
    max-width: none !important;

    padding: 20px 0 50px !important;
  }

  .ke-docs-right {
    position: static !important;

    width: 100% !important;
    height: auto !important;

    border-left: 0 !important;
    border-top:
      1px solid rgba(15, 47, 61, 0.1) !important;
  }

  .ke-docs-right-inner {
    height: auto !important;

    padding: 28px 18px 80px !important;

    overflow: visible !important;
  }

  #ke-anchor-nav {
    display: none !important;
  }

  #ke-anchor-nav-mobile.ke-nav-visible {
    display: flex !important;
  }
}

