:root {
  --appian-dark-blue: #020A51;
  --appian-bright-blue: #2322F0;
  --appian-pale-blue: #E7F1FF;
  --appian-red: #DD3457;
  --appian-green: #38CF7F;
}

body {
  font-family: Effra, Tahoma, sans-serif;
  color: #222;
  overflow-x: hidden;
}

@font-face {
  font-family: 'Effra';
  src: url('../../fonts/effra-light.woff2') format('woff2');
  font-weight: 100 300;
}

@font-face {
  font-family: 'Effra';
  src: url('../../fonts/effra-regular.woff2') format('woff2');
  font-weight: 400;
}

@font-face {
  font-family: 'Effra';
  src: url('../../fonts/effra-bold.woff2') format('woff2');
  font-weight: 500 900;
}

.container-xxxl {
  width: 100%;
  padding-right: var(--bs-gutter-x, 0.75rem);
  padding-left: var(--bs-gutter-x, 0.75rem);
  margin-right: auto;
  margin-left: auto;
}

@media (min-width: 1480px) {

  .container-xxxl,
  .container {
    max-width: 1460px;
  }
}

h1 {
  color: var(--appian-dark-blue);
  font-size: 3.5rem;
  font-weight: 400;
}

h2 {
  color: var(--appian-dark-blue);
  font-size: 2.25rem;
  font-weight: 600;
}

h3 {
  font-size: 1.625rem;
  font-weight: 400;
}

h4 {
  font-size: 1.2rem;
  font-weight: 600;
}

h5 {
  text-decoration: underline;
  font-size: 1rem;
  font-weight: 400;
}

h2:not(:first-of-type) {
  margin-top: 3rem;
}

h3 {
  margin-top: 1.5rem;
}

h4,
h5 {
  margin-top: 1rem;
}

/* Using this trick so that external links will go to the right spot for a header given the offset for the top navmenu */
h2[id]:before,
h3[id]:before,
h4[id]:before,
h5[id]:before,
h6[id]:before {
  display: block;
  content: " ";
  margin-top: -67px;
  height: 67px;
  visibility: hidden;
}

p.lead {
  color: #555;
  font-size: 1.5rem;
}

p {
  font-weight: 300;
  /* moving color up body as it interferes with balloon notes text color */
  /* color: #222; */
  font-size: 1.125rem;
  margin: 0;
}

p+p {
  margin-top: 1rem;
}

p + .zoomimage {
  margin-top: 1rem;
}

.zoomimage + p {
  margin-top: 1rem;
}

a {
  color: var(--appian-bright-blue);
}

li {
  font-weight: 300;
  font-size: 1.125rem;
}

.page_content ol ol{
  list-style-type: lower-alpha;
}

.page_content ol ol ol{
  list-style-type: lower-roman;
}

/* Header */

.docs-header {
  background: var(--appian-dark-blue);
}

img.nav-company-logo {
  width: 250px;
  border: none
}

img.sail-icon {
  height: 50px;
  margin-right: 0.375rem;
  border: none;
  width: unset
}

img.img-fluid {
  border: none
}

a.sail-home-link {
  color: inherit;
  text-decoration: none;
  vertical-align: middle;
  font-size: 1.75rem;
  font-weight: 600;
}

select.docs-header-version-select {
  margin-left: 18px;
  font-size: 14px;
  border: none;
  border-radius: 0;
  color: white;
  background-color: transparent;
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  background:
    url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAkAAAAJCAYAAADgkQYQAAAAOUlEQVQYV2NkIAIwEqGGgfE/EBBSCDYJn0JGEICZgk0hTB7FTcgKkQ3AcDhIIbICkE3E+Y6Qz0DyAKWPFAYINKARAAAAAElFTkSuQmCC) no-repeat right center;
  padding: 0 12px 0 0;
}

select.docs-header-version-select option {
  color: #222;
}

@-moz-document url-prefix() {
  select.docs-header-version-select {
    padding-top: 4px;
  }
}

/* Home Page */

#home-section-1 {
  position: relative;
  box-shadow: 0 0 6px rgba(0, 0, 0, 0.3);
}

#home-section-2 {
  background-color: var(--appian-pale-blue);
}

#footer {
  background-color: var(--appian-dark-blue);
  color: white;
}

#footer a {
  color: white;
}

img.footer-logo {
  width: 130px;
  border: none
}

.col.home-banner-text {
  flex: 0 0 600px;
}

p.home-banner-attribute {
  font-size: 24px;
  font-weight: 400;
  margin-bottom: 10px;
}

p.home-banner-attribute i {
  color: var(--appian-bright-blue);
}

.card-title {
  margin-top: 0;
  font-size: 1.25rem;
  font-weight: 500;
  text-decoration: none;
}

p.card-text {
  font-size: 1rem;
  font-weight: 400;
}

a.home-card-link {
  color: inherit;
  text-decoration: inherit;
}

a.home-card-link>.card {
  border: none;
  /*box-shadow: 0 3px 6px rgba(0,0,0,0.16), 0 3px 6px rgba(0,0,0,0.23);*/
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12), 0 1px 2px rgba(0, 0, 0, 0.24);
  transition: box-shadow 0.5s cubic-bezier(.25, .8, .25, 1);
  height: 240px;
  overflow: hidden;
  margin-bottom: 22px;
}

@media (max-width: 991.98px) {
  a.home-card-link>.card {
    height: auto;
  }
}

a.home-card-link:hover>.card,
a.home-card-link:focus>.card {
  outline: 2px solid var(--appian-bright-blue);
  box-shadow: 0 14px 28px rgba(0, 0, 0, 0.25), 0 10px 10px rgba(0, 0, 0, 0.22);
}

img.home-card-icon {
  max-height: 48px;
  border: none;
  width: unset
}

/* Navigation */

.topnav .nav-link {
  border-radius: 0.25em;
  font-size: 1rem;
  font-weight: 400;
}

.topnav .nav-link:hover {
  background-color: var(--appian-pale-blue);
  ;
}

.topnav .nav-link.selected {
  background-color: var(--appian-bright-blue);
  color: #fff;
}

.leftnav {
  width: 280px;
  margin-right: 40px;
}

.leftnav .btn-toggle,
.flat-left-nav {
  font-size: 1.125rem;
}

.flat-left-nav.active {
  color: var(--appian-bright-blue);
  font-weight: 600;
}

ul.btn-toggle-nav li a {
  font-size: 1rem;
}

/* Removing these page nav styles - moved to ds-jquery.tocify.css for auto-page nav */

/* .page-toc {
top: 100px;
}

.page-toc ul {
 list-style: none;
 padding-left: 0;
 margin-bottom: 0;
}

.page-toc .nav-link {
 font-size: 0.8125rem;
 color: #555;
 font-weight: 400;
 line-height: 0.7778rem;
}

.page-toc .nav-link.active {
 font-weight: 600;
 color: var(--appian-bright-blue);
}

.page-toc ul li ul {
 margin-left: 1.25rem;
}

.page-toc ul li ul .nav-link {
 font-weight: 300;
}

.page-toc ul li ul .nav-link.active {
 font-weight: 400;
} */

/* Image Frame */

/* .image-frame {
 border: 1px solid #ddd;
}

.image-frame img {
width: 100%;
} */

/* instead of having image-frame, applying the above to all images */
img {
  border: 1px solid #ddd;
  max-width: 100%;
}

/* Code Box - To Be Replaced with Expression Component */

.code-box {
  border: 1px solid #ddd;
  background-color: #fafafa;
  height: 200px;
  padding: 12px;
  overflow: auto;
}

.image-frame+.code-box {
  border-top: none;
}

.code-box code {
  white-space: pre-wrap;
  font-family: monospace;
  color: #222;
}

/* Dos and Don'ts */

.do,
.dont {
  border-left-width: 5px;
  border-left-style: solid;
  padding-left: 10px;
  margin-top: 1rem;
}

.do {
  border-left-color: var(--appian-green);
}

.dont {
  border-left-color: var(--appian-red);
}

.do p:not(:empty):first-child::before {
  content: "DO";
  display: inline-block;
  padding: 5px 8px;
  font-size: 1rem;
  font-weight: 600;
  margin: 10px 0;
  margin-right: 100%;
  color: white;
  background-color: var(--appian-green);
  ;
}

.do div.zoomimage:first-of-type::after {
  content: "DO";
  display: inline-block;
  padding: 5px 8px;
  font-size: 1rem;
  font-weight: 600;
  margin: 10px 0;
  margin-right: 100%;
  color: white;
  background-color: var(--appian-green);
  ;
}

.dont p:not(:empty):first-child::before {
  content: "DON'T";
  display: inline-block;
  padding: 5px 8px;
  font-size: 1rem;
  font-weight: 600;
  margin: 10px 0;
  margin-right: 100%;
  color: white;
  background-color: var(--appian-red);
  ;
}

.dont div.zoomimage:first-of-type::after {
  content: "DON'T";
  display: inline-block;
  padding: 5px 8px;
  font-size: 1rem;
  font-weight: 600;
  margin: 10px 0;
  margin-right: 100%;
  color: white;
  background-color: var(--appian-red);
  ;
}

.do+p,
.dont+p {
  margin-top: 1rem;
}

/* Sidebar */
.bi {
  vertical-align: -.125em;
  pointer-events: none;
  fill: currentColor;
}

.dropdown-toggle {
  outline: 0;
}

.nav-flush .nav-link {
  border-radius: 0;
}

.btn-toggle,
.flat-left-nav {
  display: flex;
  width: 100%;
  text-align: left;
  justify-content: space-between;
  padding: .25rem .5rem;
  font-weight: 600;
  color: #222 background-color: transparent;
  border: 0;
}

.btn-toggle {
  font-weight: 600;
}

.btn-toggle:hover,
.btn-toggle:focus,
.flat-left-nav:hover,
.flat-left-nav:focus {
  color: rgba(0, 0, 0, .85);
  background-color: #E7F1FF;
}

.btn-toggle::after {
  width: 1.25em;
  line-height: 0;
  content: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='rgba%280,0,0,.5%29' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M5 14l6-6-6-6'/%3e%3c/svg%3e");
  transition: transform .35s ease;
  transform-origin: .5em 50%;
}

.btn-toggle[aria-expanded="true"] {
  /*color: rgba(0, 0, 0, .85);*/
}

.btn-toggle[aria-expanded="true"]::after {
  transform: rotate(90deg);
}

.btn-toggle-nav a {
  display: flex;
  width: calc(100% - 1.25rem);
  padding: .1875rem .5rem;
  margin-top: .125rem;
  margin-left: 1.25rem;
  text-decoration: none;
  font-size: 0.9375rem;
  white-space: nowrap;
}

.btn-toggle-nav a.active {
  font-weight: 600;
  color: #2322F0;
}

.btn-toggle-nav a:hover,
.btn-toggle-nav a:focus {
  background-color: #E7F1FF;
}

.scrollarea {
  overflow-y: auto;
}

.fw-semibold {
  font-weight: 600;
}

.lh-tight {
  line-height: 1.25;
}

/* Inspiration */

a.inspiration_gallery_item {
  text-decoration: none;
}

a.inspiration_gallery_item>img {
  width: 100%;
  border: 1px solid #ddd;
  transition: all .25s linear;
  box-shadow: 0 0 1px rgba(0, 0, 0, 0.1);
}

a.inspiration_gallery_item:hover>img {
  transform: scale(1.01);
  box-shadow: 0 0 5px rgba(0, 0, 0, 0.3);
}

a.inspiration_gallery_item>h3 {
  color: var(--appian-dark-blue);
  font-size: 1.4rem;
  text-decoration: none;
  margin: 20px 0 10px;
}

a.back-link {
  text-decoration: none;
}

/* Tags */

.tags {
  margin: 4px 0 0 0;
}

.tags>div {
  display: inline-block;
  background-color: #FCB858;
  color: #222;
  font-size: 13px;
  padding: 2px 5px;
  border-radius: 3px;
}

/* Under Construction */

img.under-construction {
  width: 80%;
  max-width: 600px;
  border: none;
}

/* Inline code highlighting */

code.language-plaintext {
  color: #3F3F3F;
  background-color: #EEEEEE;
  font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', 'Consolas', 'source-code-pro', monospace;
  word-wrap: break-word;
  white-space: pre-line;
  font-size: 14px;
}


/* I had to add the following in to fix the font size in code highlighting blocks (Ryan added this) */
pre {
  color: #3F3F3F;
  background-color: #EEEEEE;
  font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', 'Consolas', 'source-code-pro', monospace;
  margin-top: 1em;
  border-radius: 0px;
  display: block;
  /* padding: 9.5px; */
  /* margin: 10px; */
  font-size: 13px;
  line-height: 1.42857;
  /* word-break: break-all; */
  word-wrap: break-word;
  border: 1px solid #ccc;
  border-left: 5px solid var(--light-blue);
  white-space: pre;
  position: relative;
}

pre code {
  padding: 0;
  font-size: inherit;
  color: inherit;
  white-space: pre-wrap;
  background-color: transparent;
  border-radius: 0;
}

/* Added for cell shading in tables */

.cellshade {
  background-color: #EEE !important;
}

/* The following styles were taken from the patterns page and put here so they apply to all pages */

.uxds-pattern-img {
  margin-bottom: 0;
 }
 
 h1, h2, h3, h4, h5, h6 {
  clear: both;
 }
 
 .uxparams {
  margin-bottom: 3rem;
 }
 
 .uxparams > p {
  /* font-size: 12px; */
  white-space: pre-wrap;
  /* margin-left: 10px; */
 }
 
 /* TODO: hack to stop internal borders from messing up the design.  */
 div.shortbox div.highlight, figure.highlight {
  border: 0 !important;
 }
 
/* Mischa's styles for copy/code and demo buttons */

 .shortbox {
  max-height: 137px;
  margin-top: 0px !important;
  overflow-y: scroll;
  border: solid 1px #ddd;
  /* border-top: 0; */
 }
 
 .shortbox pre {
  font-size: 12px;
 }
 
 .code-box-toolbar {
    padding: 5px 8px;
    background-color: #f0f0f0;
    border-left: 1px solid #ddd;
    border-right: 1px solid #ddd;
  }
  
  .code-box-toolbar .btn-primary {
    background-color: var(--appian-dark-blue);
    border-color: var(--appian-dark-blue);
  }
  
  .code-box-toolbar .btn-outline-primary {
    background-color: #fff;
    border-color: var(--appian-dark-blue);
    color: var(--appian-dark-blue);
  }
  
  .code-box-toolbar .btn i {
    margin-right: 6px;
  }
 
 .editme {
  display: none;
 }

/* Related components  */

.related_components_note {
  color: #3d3d3d;
  background-color: #fafafa;
  margin-top: 1em;
  border-radius: 0px;
  padding: 15px;
  margin-bottom: 20px;
  border: 1px solid #bcbcbc;
  border-left-width: 6px;
}

/* Search box and info icon hover */

.info-container {
  position: relative;
  display: inline;
}

.info-icon {
  position: absolute;
  display: inline-block;
  height: 18px;
  width: 18px;
  background: url(../../images/infoicon.png) no-repeat;
  background-size: 18px 18px;
  right: 6px;
  top: 1px;
}

.info-tooltip {
  position: absolute;
  display: none;
  top: 40px;
  right: -11px;
  background-color: #ffffff;
  border: 1px solid #ccc;
  padding: 15px 15px 0px 15px;
  border-radius: 4px;
  width: 450px;
  z-index: 3000;
  font-size: 14px;
  white-space: normal;
}

.info-icon:hover + .info-tooltip {
display: inline-block;
}

.info-tooltip::after {
  content: '';
  position: absolute;
  top: -20px;
  right: 15px;
  border-width: 10px;
  border-style: solid;
  border-color: transparent transparent #ffffff transparent;
}

.info-tooltip::before {
  content: '';
  position: absolute;
  top: -22px;
  right: 14px;
  border-width: 11px;
  border-style: solid;
  border-color: transparent transparent #ccc transparent;
}

.info-tooltip-text {
  font-size: 14px;
}

.form-control {
  padding-right: 1.5rem;
}

.page-version-preview {
  background-color: rgb(255 251 188);
  border: none;
  padding: 5px;
  margin: 0px;
  text-align: center;
  font-size: 15px;
}

.page-banner {
  background-color: var(--appian-pale-blue);
  padding: 0.5rem 0.5rem 0.5rem 1rem;
  border: 0.5px solid var(--appian-bright-blue);
  margin: 0.75rem 0rem 0.75rem 0rem;
  border-radius: 0.5rem;
}