/* General styles start */

/* Fixes space around notches (iOS) devices in landscape. */
@supports(padding:max(0px)) {
  body, header, footer {
    padding-left: min(0vmin, env(safe-area-inset-left));
    padding-right: min(0vmin, env(safe-area-inset-right));
  }
}
/* Stops iOS from zooming in on click of inputs */
@media screen and (max-width: 991px) {
  select:active, input:active,textarea:active{
    font-size: 16px;
  }
}
/* yellow flash animation */
@keyframes flash {
  0% { background-color: yellow; }
  50% { background-color: transparent; }
  100% { background-color: yellow; }
}
.flash {
  animation: flash 1s ease-out;
}

html {
  scroll-behavior: smooth;
}
/* #article_page_content {
  padding: 0vw 4vw 0vw 4vw;
} */
@media screen and (max-width: 850px) {
  #article_page_content {
    gap: 0px;
    padding: 0;
  }
}
/* General styles end */


/* breadcrumbs start */
#breadcrubs-container {
  border-left: none;
  border-right: none;
  font-size: 13px;
  font-weight: bold;
  border-radius: 20px;
}
.breadcrumb {
  border-radius: 3px;
  padding: 5px;
  cursor: pointer;
  color: #053a7a;
  text-decoration: none;
}
#article-breadcrumb {
  color: #333;
}
@media (max-width: 425px) {
  #article-breadcrumb {
    max-width: 300px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
  }
}
.breadcrumb:hover {
  text-decoration: underline;
}
.breadcrumb.no-click {
  cursor: default;
  color: rgb(156, 156, 156);
}
.breadcrumb.no-click:hover {
  text-decoration: none;
}
.breadcrumb-arrow {
  font-family: Montserrat !important;
}
/* breadcrumbs end */



/* article heading start */
#article_heading {
  padding: 10px;
  padding-top: 20px;
  padding-bottom: 80px;
  gap: 70px;
  background-color: #dbe9fb;
  background-image: linear-gradient(to bottom, #dbe9fb 0%, #28b19166 100%);
  height: fit-content;
  text-align: center;
  width: 100%;
  align-self: center;
}
#article_title {
  font-size: 40px;
  line-height: 50px;
  font-weight: 600;
  /* width: 50%; */
}
#article_summary,
#article_date {
  font-weight: 400;
  width: 60%;
}
@media screen and (max-width: 850px) {
  #article_heading {
    width: 100%;
  }
  #article_author_container {
    font-size: 14px;
    left: 10px;
    right: auto;
  }
}
@media (max-width: 768px) {
  #article_title,
  #article_summary,
  #article_date {
    width: 80%;
  }
}
@media (max-width: 425px) {
  #article_title,
  #article_summary,
  #article_date {
    width: 90%;
  }
}
.share-article-icon:hover {
  opacity: 0.6;
}
/* article heading end */

/* cms nav panel for mobile start */
#integration-guides-articles-header {
  color: var(--sitetran-tertiary-color);
}
#help-center-articles-header {
  color: var(--sitetran-primary-color);
}
#translator-docs-articles-header {
  color: var(--sitetran-secondary-color);
}
#toggle_cms_nav_panel_btn {
  /* padding: 10px; */
  color: white;
  background-color: #053a7a;
  cursor: pointer;
}
#nav_panel_container_mobile {
  display: none;
}
#cms_nav_panel_mobile {
  background-color: var(--background-color-secondary);
  width: 100%;
  max-height: 0px;
  overflow: hidden;
}
#cms_nav_panel_mobile.show {
  max-height: fit-content;
  padding: 30px;
  border-bottom: 1px solid rgb(198, 198, 198);
}
@media screen and (max-width: 850px) {
  #nav_panel_container_mobile {
    display: flex;
  }
  
}
/* cms nav panel for mobile end */


/* article outline and body start */
@media (max-width: 850px) {
  #article_outline_and_body {
    /* padding: 20px 2vw 0px 2vw; */
    flex-direction: column-reverse;
    align-items: center;
    gap: 20px;
  }
}
@media (max-width: 425px) {
  #article_outline_and_body {
    /* padding: 20px 1vw 20px 1vw; */
  }
}

#contact_us_container {
  background: lavender;
  border-radius: 2px;
  border-left: 4px solid purple;
  flex-wrap: wrap;
}
#contact_us_container a {
  text-decoration: none;
}

/* article outline and body end */



/* article outline start */
#cms_nav_panel_heading {
  padding: 10;
  margin: 10;
  color: #043a7b;
  font-family: Montserrat, Inter, sans-serif;
}
#article_outline_container {
  padding-right: 0px;
  top: 1vh;
  width: 17%;
  padding-left: 10px;
  height: fit-content;
  margin-top: 20px;
}
#cms_nav_panel_container {
  height: 98vh;
  width: 20%;
}
#article_outline_container,
#cms_nav_panel_container {
  background-color: transparent;
  display: flex;
  top: 1vh;
  left: 0px;
  position: sticky;
  align-self: flex-start;
  /* max-height: 98vh; */
  overflow: auto;
  word-break: break-word;
}
#article_outline::-webkit-scrollbar {
  width: 6px; /* Width of the scrollbar */
}
#article_outline::-webkit-scrollbar-thumb {
  background-color: rgb(237, 237, 237); /* Color of the scrollbar thumb */
  border-radius: 6px; /* Optional: Roundness of the scrollbar thumb */
}
#article_outline {
  width: 100%;
  transition: 1s ease-in-out; 
  max-height: calc(100vh - 100px);
  overflow-y: scroll;
  overflow-x: hidden;
  display: grid;
}
#article_outline.show {
  display: flex;
}
#outline-heading {
  color: #053a7a;
  font-family: Montserrat, Inter, sans-serif;
}
.header-link {
  width: calc(100% - 10px);
  font-size: 14px;
}
.header-link-caret,
.cms-nav-panel-content-type-caret,
.cms-nav-panel-category-caret {
  min-width: 13px;
  width: 13px;
  display: block;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  transform: rotate(-90deg);
  transition: 0.1s ease-out;
  opacity: 0.6;
}
.header-link-caret.rotate,
.cms-nav-panel-content-type-caret.rotate,
.cms-nav-panel-category-caret.rotate {
  transform: rotate(0deg);
}
#article_outline a {
  border-left: 2px solid transparent;
  color: grey;
  text-decoration: none;
  padding: 0px 8px 10px 8px;
  width: 95%;  
  cursor: pointer;
}
#article_outline a:hover {
  color: rgb(74, 74, 74);
}
#article_outline a.active {
  border-left: 2px solid rgba(57, 105, 164, 0.971);
  color: #333;
}
.subheader_container {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  width: 95%;
  max-height: 0px;
  overflow: hidden;
  transition: 0.3s ease-out;
  border-left: 2px solid rgb(226, 226, 226);
}
.subheader_container.show {
  /* border-bottom: 2px solid rgb(226, 226, 226); */
  border-left: 2px solid rgba(57, 105, 164, 0.971);
}
#article_outline a.subheader-link {
  padding: 5px;
  font-size: 14px;
  padding-left: 10px;
  margin-left: 5px;
}
#article_outline a.subheader-link.active {
  border-left: 2px solid rgba(113, 155, 207, 0.725);  
}
@media (max-width: 850px) {
  #article_outline_container {
    padding: 10px 10px 20px 10px;
    overflow: hidden;
    border-radius: 5px;
    width: 90%;
    position: static;
    top: 0;
    background-color: rgba(246, 246, 246, 0.778);
    align-self: center;
  }
  #outline-heading {
    margin: 0;
    padding: 10px;
    display: flex;
    align-items: center;
    cursor: pointer;
    overflow: hidden;
  }
  #article_outline {
    border-radius: 0px 0px 5px 5px;
    border-top: none;
    /* padding: 10px; */
    width: 100%;
    /* display: none; */
    max-height: fit-content;
  }
  #article_outline {
    border: none;
  }
  .subheader_container {
    margin-left: 20px;
  }
  #article_outline a{
    border: none;
    border-left: 0px;
    width: 100%;
    padding: 10px 8px;
  }
  #article_outline a.active, 
  #article_outline a.subheader-link.active {
    border: none;
    color: grey
  }
  #article_outline a.subheader-link {
    padding: 5px;
    font-size: 14px;
    padding-left: 10px;
  }
}
/* article outline end */


/* cms nav panel start */
#cms_nav_panel_container h5 {
  text-transform: uppercase;
  font-family: Montserrat;
  font-size: 14px;
  font-weight: 500;
  line-height: 20px;
}
#cms_nav_panel_container {
  border-right: 1px solid #ebebeb;
  height: 98vh;
  top: 1vh;
  min-width: 200px;
  padding-bottom: 10px;
}
@media screen and (max-width: 850px) {
  #cms_nav_panel_container {
    display: none;
  }
  
}
.cms-nav-panel-categories-container {
  max-height: fit-content;
  padding-left: 10px;
  font-size: 14px;
}
.category-header-container {
  cursor: pointer;
  margin-bottom: 5px;
}
.cms-nav-panel-articles-container {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  width: 100%;
  max-height: 0px;
  overflow: hidden;
  gap: 9px;
  padding-left: 10px;
  padding-right: 10px;
  margin-top: 7px;
  margin-bottom: 7px;
}
.cms-nav-panel-articles-container.show,
.cms-nav-panel-categories-container.show {
  max-height: fit-content;
}

.cms-nav-panel-articles-container a {
  text-decoration: none;
  color: grey;
}
.cms-nav-panel-article-title {
  font-size: 14px;
}
#integration-guides-articles-container .cms-nav-panel-article-title.active {
  color: var(--sitetran-tertiary-color);
  font-weight: bold;
}
#integration-guides-articles-container .cms-nav-panel-article-title:hover {
  color: var(--sitetran-tertiary-color-light);
}
#help-center-articles-container .cms-nav-panel-article-title.active {
  color: var(--sitetran-primary-color);
  font-weight: bold;
}
#help-center-articles-container .cms-nav-panel-article-title:hover {
  color: var(--sitetran-primary-color-light);
}
#translator-docs-articles-container .cms-nav-panel-article-title.active {
  color: var(--sitetran-secondary-color);
  font-weight: bold;
}
#translator-docs-articles-container .cms-nav-panel-article-title:hover {
  color: var(--sitetran-secondary-color-light);
}
/* .cms-nav-panel-article-title.active {
  color: var(--sitetran-breacrumb-link-color);
  font-weight: bold;
} */
/* cms nav panel end */


/* article body start */
/* main article body styles are located in public/article.css */
#article_body_container {
  padding-left: 20px;
  padding-top: 40px;
}
#article_body {
  width: 100%;
  padding-top: 0px;
}
@media (max-width: 850px) {
  #article_body {
    width: 100%;
    padding: 0;
  }
  #article_body_container {
    width: 90%;
    border: none;
    padding: 0;
  }
}
/* article body end */

/* prev/next article start */
.next-article-text,
.prev-article-text {
  color: var(--sitetran-tertiary-color);
  text-decoration: none;
}
.next-article-text:hover,
.prev-article-text:hover {
  text-decoration: underline;
}
/* prev/next article end */


/* further reading start */
#further-reading {
  background-color: rgb(248, 248, 248);
  padding: 50px 100px 100px 100px;
}
.further-reading-link {
  text-decoration: none;
}
.further-reading-tile {
  text-decoration: none;
  color: black;
  width: 200px;
  height: 230px;
  border: 1px solid rgb(225, 225, 225);
  background-color: rgb(233, 233, 233);
  border-radius: 5px;
  cursor: pointer;
  transition: 0.2s ease-out;
  padding: 20px;
  word-break: keep-all;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}
.further-reading-tile:hover {
  transform: scale(1.01);
  box-shadow: 0px 0px 10px 3px rgb(209, 209, 209);
}
/* further reading end */
