:root {
  --md-primary-fg-color: #01328e;
  --md-primary-bg-color: #ffffff;
  --md-primary-fg-color--dark: #01328e;
}

.md-header, .md-tabs {
  background: linear-gradient(to right, #01328e, #add8e6);
}

.md-header__topic:first-child .md-ellipsis {
  display: none;
}

.md-search__form {
  background-color: #ffffff !important;
  border-radius: 20px;
}

.md-search__input::placeholder {
  color: rgba(0, 0, 0, 0.54);
}

.md-search__input {
  color: #000000 !important;
}

.md-search__icon {
  fill: #000000 !important;
  color: #000000 !important;
}

.md-sidebar--primary .md-nav__item--nested > .md-nav > .md-nav__list {
  margin-left: 0.5rem;
  padding-left: 0.65rem;
  border-left: 1px solid rgba(1, 50, 142, 0.18);
}

/* Homepage cards and CTA */
.home-cta {
  display: inline-block;
  padding: 10px 28px;
  border-radius: 25px;
  background: #01328e;
  color: #ffffff !important;
  font-weight: bold;
  text-decoration: none !important;
  margin: 8px 8px 8px 0;
  box-shadow: 0 4px 6px rgba(1, 50, 142, 0.2);
}
.home-cta:hover {
  background: #012670;
}
.home-cta.secondary {
  background: transparent;
  color: #01328e !important;
  border: 1.5px solid #01328e;
  box-shadow: none;
}
.home-cta.secondary:hover {
  background: rgba(1, 50, 142, 0.06);
}
.home-pills {
  margin: 4px 0 24px 0;
}
.home-pills a {
  display: inline-block;
  padding: 5px 16px;
  margin: 0 8px 8px 0;
  border-radius: 16px;
  background: #f1f5f9;
  border: 1px solid #cbd5e1;
  color: #01328e !important;
  font-size: 0.85em;
  font-weight: 600;
  text-decoration: none !important;
}
.home-pills a:hover {
  background: #e2e8f0;
}
.home-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin: 20px 0 32px 0;
}
.home-grid.two-col {
  grid-template-columns: repeat(2, 1fr);
}
@media (max-width: 720px) {
  .home-grid, .home-grid.two-col {
    grid-template-columns: 1fr;
  }
}
.home-card {
  border: 1px solid #cbd5e1;
  border-radius: 10px;
  padding: 18px 20px;
  background: #ffffff;
  text-decoration: none !important;
  color: inherit !important;
  display: block;
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}
.home-card:hover {
  box-shadow: 0 6px 16px rgba(1, 50, 142, 0.12);
  transform: translateY(-2px);
}
.home-card .step-num {
  display: inline-block;
  width: 26px;
  height: 26px;
  line-height: 26px;
  text-align: center;
  border-radius: 50%;
  background: #01328e;
  color: #ffffff;
  font-size: 0.8em;
  font-weight: bold;
  margin-bottom: 10px;
}
.home-card h3 {
  margin: 4px 0 8px 0 !important;
  font-size: 1.05em;
}
.home-card p {
  margin: 0;
  font-size: 0.92em;
  color: #475569;
}

.exate-chatbot {
  position: fixed;
  right: 1rem;
  bottom: 1rem;
  z-index: 20;
  font-family: var(--md-text-font-family);
}

.exate-chatbot__toggle {
  width: 3.25rem;
  height: 3.25rem;
  border: 0;
  border-radius: 50%;
  background: #01328e;
  color: #ffffff;
  font-size: 1.45rem;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 0.35rem 1rem rgba(0, 0, 0, 0.24);
}

.exate-chatbot__toggle:hover,
.exate-chatbot__toggle:focus-visible {
  background: #0246bf;
}

.exate-chatbot__panel {
  position: absolute;
  right: 0;
  bottom: 4.25rem;
  display: flex;
  width: min(24rem, calc(100vw - 2rem));
  height: min(38rem, calc(100vh - 7rem));
  min-height: 24rem;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid rgba(1, 50, 142, 0.18);
  border-radius: 8px;
  background: var(--md-default-bg-color);
  color: var(--md-default-fg-color);
  box-shadow: 0 0.75rem 2rem rgba(0, 0, 0, 0.22);
}

.exate-chatbot__panel[hidden] {
  display: none;
}

.exate-chatbot__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 3rem;
  padding: 0 0.9rem;
  background: #01328e;
  color: #ffffff;
  font-size: 0.82rem;
  font-weight: 700;
}

.exate-chatbot__close {
  width: 2rem;
  height: 2rem;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: #ffffff;
  font-size: 1rem;
  line-height: 1;
  cursor: pointer;
}

.exate-chatbot__close:hover,
.exate-chatbot__close:focus-visible {
  background: rgba(255, 255, 255, 0.18);
}

.exate-chatbot__messages {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 0.65rem;
  overflow-y: auto;
  padding: 0.85rem;
  background: rgba(1, 50, 142, 0.04);
}

.exate-chatbot-message {
  max-width: 88%;
  padding: 0.65rem 0.75rem;
  border-radius: 8px;
  font-size: 0.72rem;
  line-height: 1.45;
}

.exate-chatbot-message--user {
  align-self: flex-end;
  background: #01328e;
  color: #ffffff;
  white-space: pre-wrap;
}

.exate-chatbot-message--assistant {
  align-self: flex-start;
  border: 1px solid rgba(1, 50, 142, 0.12);
  background: var(--md-default-bg-color);
}

.exate-chatbot-message--assistant p,
.exate-chatbot-message--assistant ol,
.exate-chatbot-message--assistant ul,
.exate-chatbot-message--assistant h1,
.exate-chatbot-message--assistant h2,
.exate-chatbot-message--assistant h3,
.exate-chatbot-message--assistant h4,
.exate-chatbot-message--assistant h5,
.exate-chatbot-message--assistant h6 {
  margin: 0 0 0.55rem;
}

.exate-chatbot-message--assistant > :last-child {
  margin-bottom: 0;
}

.exate-chatbot-message--assistant h1,
.exate-chatbot-message--assistant h2,
.exate-chatbot-message--assistant h3,
.exate-chatbot-message--assistant h4,
.exate-chatbot-message--assistant h5,
.exate-chatbot-message--assistant h6 {
  color: var(--md-default-fg-color);
  font-size: 0.78rem;
  font-weight: 700;
  line-height: 1.35;
}

.exate-chatbot-message--assistant ol,
.exate-chatbot-message--assistant ul {
  padding-left: 1.05rem;
}

.exate-chatbot-message--assistant li + li {
  margin-top: 0.3rem;
}

.exate-chatbot-message--assistant code {
  border-radius: 4px;
  padding: 0.05rem 0.22rem;
  background: var(--md-code-bg-color);
  color: var(--md-code-fg-color);
  font-size: 0.68rem;
}

.exate-chatbot__form {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 0.55rem;
  padding: 0.75rem;
  border-top: 1px solid rgba(1, 50, 142, 0.12);
  background: var(--md-default-bg-color);
}

.exate-chatbot__input {
  min-height: 3rem;
  max-height: 8rem;
  resize: vertical;
  border: 1px solid rgba(1, 50, 142, 0.22);
  border-radius: 6px;
  padding: 0.55rem 0.65rem;
  background: var(--md-code-bg-color);
  color: var(--md-default-fg-color);
  font: inherit;
  font-size: 0.72rem;
  line-height: 1.4;
}

.exate-chatbot__send {
  align-self: end;
  min-width: 4rem;
  min-height: 2.25rem;
  border: 0;
  border-radius: 6px;
  background: #01328e;
  color: #ffffff;
  font-weight: 700;
  cursor: pointer;
}

.exate-chatbot__send:hover,
.exate-chatbot__send:focus-visible {
  background: #0246bf;
}

.exate-chatbot__send:disabled,
.exate-chatbot__input:disabled {
  cursor: wait;
  opacity: 0.72;
}

@media screen and (max-width: 44rem) {
  .exate-chatbot {
    right: 0.75rem;
    bottom: 0.75rem;
  }

  .exate-chatbot__panel {
    width: calc(100vw - 1.5rem);
    height: min(34rem, calc(100vh - 6.5rem));
  }
}
