.h-landmark.entry-title {
  display: none;
}

body .site>.x-container.width {
  width: 97%;
}

body .site>.x-container.max {
  max-width: 1500px;
}

header.x-header-landmark {
  display: none;
}

.container {
  width: 100%;
  padding: 1rem 0;
}

.chat-container {
  display: flex;
  width: 100%;
  gap: 1rem;
}

.chat-sidebar {
  width: 275px;
  flex-shrink: 0;
  display: none;
  flex-direction: column;
}

.member-logged-in .chat-sidebar {
  display: flex;
}

p.chat-mode-picker {
  margin-bottom: .5rem;
  /* font-style: italic; */
}

.chat-modes {
  display: flex;
  flex-direction: column;
  overflow-y: auto;
  max-height: calc(100vh - 15rem);
}

.chat-mode {
  padding: .75rem 1rem;
  border-radius: 6px;
  transition: background-color .1s;
  cursor: pointer;
  margin: 0;
}

.chat-mode.templateResult {
  padding: .5rem;
}

.chat-mode.active {
  background-color: var(--light-gray);
  cursor: default;
}

.chat-mode.soon {
  cursor: not-allowed;
  pointer-events: none;
}

.chat-mode.soon h4,
.chat-mode.soon p {
  color: #aaa;
}

.chat-mode.soon h4::after {
  content: "SOON";
  font-size: 11px;
  background-color: #efefef;
  color: #aaa;
  padding: 3px 5px;
  border-radius: 4px;
  margin-left: 6px;
  position: relative;
  vertical-align: middle;
  font-weight: 800;
}

.chat-mode:hover {
  background-color: #eee;
}

.chat-mode.active:hover {
  background-color: var(--light-gray);
}

.chat-mode.soon:hover {
  background-color: transparent;
}

.chat-mode-title {
  display: flex;
  align-items: center;
  gap: .5rem;
  margin-bottom: .2rem;
}

.chat-mode-title svg {
  font-size: 1.25rem;
}

.chat-mode h4 {
  margin: 0;
  font-size: .95rem;
}

.chat-mode.templateResult h4 {
  font-size: var(--text-small);
}

.chat-mode p {
  margin: 0;
  font-size: 13px;
  line-height: 1.5;
  color: #666;
}

.chat-mode.templateResult p {
  font-size: var(--text-tiny);
}

.chat-mode.templateResult:hover {
  background-color: transparent;
}

.chat-mode.active.templateResult:hover {
  background-color: transparent;
}


.chatbox {
  width: 100%;
  background-color: var(--light-gray);
  border-radius: 8px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.chatbox-container {
  width: 100%;
}

.chatlogs {
  padding: 1rem 2rem;
  flex-grow: 1;
  width: 100%;
  overflow-y: scroll;
  height: 85vh;
}

.member-logged-in .chatlogs {
  height: calc(100vh - 240px);
}

@media(max-width: 979px) {
  .member-logged-in .chatlogs {
    height: calc(100vh - 300px);
  }
}

.chat-form {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem;
  background-color: transparent;
  margin: 0;
}

.chat-form input[type=text] {
  width: 85%;
  border: none;
  padding: .5rem 1rem;
  margin-bottom: 0;
  box-shadow: 0px 0px 7px 0px rgba(0, 0, 0, .07);
  border-radius: 6px;
}

.chat-form>button[type="submit"] {
  flex-grow: 1;
  font-size: 1.1rem;
  transition: transform .1s;
  border-radius: 6px;
}

.chat-form>button[type="submit"]:active {
  transform: scale(.98);
}



.user-message,
.bot-message {
  width: 100%;
  background: transparent;
}

.user-message {
  padding: 1rem 1.5rem;
}

.welcome-message,
.ask-message {
  border-radius: 6px;
  padding: 1.5rem;
  max-width: 800px;
}

.ask-message hr {
  margin: 1.5rem 0;
}

.ask-message .ask-sources {
  display: flex;
  flex-wrap: wrap;
  gap: .6rem;
}

.ask-message .ask-sources a {
  display: block;
  border: 1px solid rgb(238, 238, 238);
  padding: 0.5rem .85rem;
  border-radius: 6px;
  color: black;
  outline: none;
  font-size: var(--text-small);
}

.ask-message .ask-sources a img {
  margin-right: 3px;
  max-width: 20px;
  position: relative;
  bottom: 2px;
}

.ask-message .ask-sources-p {
  margin-bottom: 1rem;
  font-style: italic;
  font-size: var(--text-small);
  /* color: #999; */
}

.welcome-message h2 {
  font-size: 1.4rem;
  margin: 0;
}

.welcome-message h2 span {
  font-size: var(--text-tiny);
  text-transform: lowercase;
  display: inline-block;
  color: #999;
  padding: 1px;
  vertical-align: super;
  position: relative;
  top: -5px;
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: normal;
}

.welcome-message ol {
  margin-top: 1rem;
  margin-bottom: 1rem;
}

.welcome-message p {
  margin-top: .5rem;
  margin-bottom: 0;
}

.bot-message {
  background-color: white;
}

.user-message>p:first-child,
.bot-message>p:first-child {
  margin-bottom: 0;
}

.bot-message.ka-examples {
  background-color: transparent;
}

.bot-message.error {
  padding: 0.75rem 1.5rem;
  border: 1px solid #f05151;
  border-radius: 6px;
  color: #fb2626;
  font-style: italic;
}

.ka-example {
  background-color: white;
  margin-bottom: 5px;
  padding: .5rem 1.5rem .5rem 1.25rem;
  border-radius: 0 6px 6px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.ka-example .ka-description span {
  display: inline-block;
  width: 10px;
  height: 10px;
  border-radius: 100%;
  margin-right: 8px;
  vertical-align: baseline;
}

.ka-example .ka-address {
  font-style: italic;
  font-size: var(--text-tiny);
  /* color: #888; */
}

.ka-example p {
  margin: 0;
}

.ka-example p.ka-completion {
  padding-top: 0.5rem;
  margin-top: 0.5rem;
  border-top: 1px solid #eee;
  max-width: 65ch;
  font-size: var(--text-tiny);
  color: #444;
}

.ka-example button[type="button"] {
  border-radius: 6px;
  padding: 0.5rem;
  color: #999;
  border: none;
  line-height: 1;
  font-size: 1rem;
  transition: color .1s;
  display: flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-sans);
  font-weight: bold;
}

.ka-example button[type="button"]:hover {
  color: #777;
}

.ka-example button[type="button"] svg {
  vertical-align: bottom;
  font-size: 1.3rem;
}

svg {
  transition: transform 0.15s;
  /* 0.5s is the duration of the transition */
}

.chat-loader-container {
  width: 100%;
  padding: 1.5rem 1.25rem;
}

.chat-loader {
  display: flex;
  flex-flow: row nowrap;
  align-items: center;
  justify-content: space-between;
  width: 2em;
}

.chat-loader>span {
  width: 0.3em;
  height: 1em;
  background-color: #d9d9d9;
}

.chat-loader>span:nth-of-type(1) {
  animation: grow 1s -0.45s ease-in-out infinite;
}

.chat-loader>span:nth-of-type(2) {
  animation: grow 1s -0.3s ease-in-out infinite;
}

.chat-loader>span:nth-of-type(3) {
  animation: grow 1s -0.15s ease-in-out infinite;
}

.chat-loader>span:nth-of-type(4) {
  animation: grow 1s ease-in-out infinite;
}

@keyframes grow {

  0%,
  100% {
    transform: scaleY(1);
  }

  50% {
    transform: scaleY(2);
  }
}

.switch-message,
.chat-loader-text {
  padding-top: 1rem;
  border-top: 1px solid #eee;
  font-style: italic;
  font-size: var(--text-small);
  color: #888;
  display: none;
}

.chat-loader-text {
  margin-bottom: 0;
  margin-top: .5rem;
  display: block;
  border-top: none;

}

.member-logged-in .switch-message {
  display: block;
}

.chat-helpers {
  margin-top: auto;
  display: flex;
  flex-direction: column;
}

.chat-helpers button {
  width: 100%;
  border: none;
  border-bottom: 1px solid #eee;
  padding: .5rem .75rem;
  font-family: var(--font-serif);
  /* font-weight: bold; */
  font-style: italic;
  font-size: var(--text-small);
  transition: color .1s;
  background-color: white;
  text-align: left;
  color: #666;
}

.chat-helpers button:hover {

  background-color: var(--light-gray);
}



/* Quadrants */

.quadrants-lens {
  display: flex;
  flex-direction: column;
  padding: 1.5rem 0;
}

.quadrants-label-row {
  display: flex;
  justify-content: space-between;
  font-size: var(--text-tiny);
}

.quadrants-row {
  display: flex;
  align-items: center;
}


.axis-label {
  font-style: italic;
  font-size: var(--text-tiny);
  color: #ccc;
}

.axis-label.rotated {
  writing-mode: vertical-rl;
  transform: rotate(180deg);
  line-height: .8;
}

.quadrants-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  /* grid-template-rows: 1fr 1fr; */
  gap: 4px;
  padding: .35rem;
  width: 100%;
}

.quadrant {
  background-color: rgba(255, 255, 255, 0.8);
  border: 1px solid #eee;
  border-radius: 6px;
  padding: 1rem;
  font-size: var(--text-small);
  text-align: left;
}

.quadrant h4 {
  margin-top: 0;
  font-size: 1rem;
  margin-bottom: 10px;
}

.quadrant ul {
  margin: 0;
  margin-left: 1rem;
  list-style-type: disc;
}

.quadrant ul li {
  margin-bottom: 4px;
}

.quadrant-label {
  font-family: var(--font-sans);
  font-weight: bold;
  color: #000;
  margin: 0 1.1rem;
  font-size: 1rem;
}


/* Polarities */

.polarity-lens {
  display: flex;
  flex-direction: column;
  width: 100%;
  padding: 1.5rem 2rem;

  border-radius: 6px;
  margin-bottom: 1rem;
  border: 1px solid #eee;
  background: white url('https://integrallife.com/wp-content/uploads/2023/05/polarity-bg.svg') center no-repeat;
  background-size: 50%;
}

.polarity-top,
.polarity-bottom {
  text-align: center;
  width: 100%;
}

.polarity-top {
  margin-bottom: 1rem;
}

.polarity-bottom {
  margin-top: 1.5rem;
}

.polarity-top h4,
.polarity-bottom h4 {
  font-size: 1.2rem;
  margin: 0;
}

.polarity-top p,
.polarity-bottom p,
.polarity-quadrant>p {
  font-size: var(--text-tiny);
  margin: 0;
  color: #ccc;
  font-weight: normal;
  font-style: italic;
}

.polarity-top p,
.polarity-bottom p {
  color: #111;
}

.polarity-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  width: 100%;
}

.polarity-quadrant {
  display: flex;
  flex-direction: column;
  width: 100%;
}

.polarity-quadrant ul {
  font-size: var(--text-small);
  margin: 0;
  list-style: none;
}

.polarity-quadrant ul li {
  padding: .45rem 0;
  border-bottom: 1px solid #eee;
}

.polarity-quadrant ul li:last-child {
  border: none;
}

.polarity-quadrant:first-child {
  text-align: left;
}

.polarity-quadrant:last-child {
  text-align: right;
}

.polarity-poles {
  display: flex;
  width: 100%;
  align-items: center;
  padding: 1rem 0;
}

.polarity-pole {
  padding: .5rem 1rem;
  border: 3px solid;
  border-radius: 4px;
  flex-grow: 1;
  flex-shrink: 0;
  min-width: 33%;
  text-align: center;
  background-color: rgba(255, 255, 255, .75);
}

.poles-divider {
  height: 5px;
  background: linear-gradient(90deg,
      hsl(38deg 98% 61%) 0%,
      hsl(5deg 38% 70%) 51%,
      hsl(241deg 61% 69%) 100%);
  width: 100%;
}

.polarity-pole h3 {
  margin: 0;
  font-size: 1.1rem;
}

.polarity-pole:first-child {
  border-color: #fdb73a;
}

.polarity-pole:first-child h3 {
  color: #fdb73a;
}

.polarity-pole:last-child {
  border-color: #8281e0;
}

.polarity-pole:last-child h3 {
  color: #8281e0;
}




/* Dropdown */

.select2-container--default .select2-selection--single {
  background-color: #fff;
  border: 1px solid #e8e8e8;
  border-radius: 4px;
}

.select2-container .select2-selection--single .select2-selection__rendered {
  white-space: pre-wrap;
  overflow: auto;
  padding: 0;
}

.select2-container .select2-selection--single {
  height: auto;
}

.select2-container--default .select2-results>.select2-results__options {
  max-height: 260px;
}

.select2-container--open .select2-dropdown--below {
  margin-top: 1.75rem;
}

.select2-container--default .select2-results__option--highlighted.select2-results__option--selectable h4 {
  color: white;
}

.select2-container--default .select2-results__option--highlighted.select2-results__option--selectable p {
  color: white;

}

.select2-container--default .select2-results__option--highlighted.select2-results__option--selectable {
  background-color: var(--link-color);
}

footer {
  display: none !important;
}

/* Responsive */

@media(max-width: 969px) {

  .chat-container {
    display: flex;
    flex-direction: column;
    width: 100%;
    gap: 1rem;
  }

  .chat-sidebar {
    width: 100%;
  }

  .chat-helpers {
    display: none;
  }

  .chatlogs {
    padding: .5rem;
  }

  .polarity-pole h3 {
    font-size: var(--text-small);
  }

  .polarity-top h4,
  .polarity-bottom h4 {
    font-size: 1rem;
  }

  .polarity-quadrant ul li {
    font-size: var(--text-tiny);
  }

  .quadrant-label {
    font-size: var(--text-tiny);
  }

  .quadrant ul li {
    font-size: var(--text-tiny);
  }

  .chat-picker {
    padding: 0 .75rem;
  }

  .chat-mode h4 {
    margin: 0;
    font-size: var(--text-small);
  }


}

@media (max-width: 767px) {
  .x-container.max.width {
    width: 99% !important;
  }
}