/* ================================
   UKNode Brand Colors
   ================================ */

:root {
  --md-primary-fg-color: #662d91;
  --md-primary-fg-color--light: #662d91;
  --md-primary-fg-color--dark: #662d91;

  --md-accent-fg-color: #9b51e0;
  --md-accent-fg-color--transparent: rgba(102, 45, 145, 0.1);
}

/* Dark mode */
[data-md-color-scheme="slate"] {
  --md-primary-fg-color: #662d91;
  --md-primary-fg-color--light: #662d91;
  --md-primary-fg-color--dark: #662d91;

  --md-accent-fg-color: #9b51e0;
  --md-accent-fg-color--transparent: rgba(166, 106, 203, 0.1);
}


/* ================================
   Header
   ================================ */

.md-header {
  background-color: #662d91;
}


/* ================================
   Navigation
   ================================ */

.md-tabs {
  background-color: #662d91;
}

.md-nav__link--active {
  color: #9b51e0;
}

.md-nav__link:hover {
  color: #9b51e0;
}


/* ================================
   Links
   ================================ */

.md-content a {
  color: #662d91;
}

.md-content a:hover {
  color: #9b51e0;
}


/* ================================
   Buttons
   ================================ */

.md-button {
  border-color: #662d91;
  color: #662d91;
}

.md-button--primary {
  background-color: #662d91;
  border-color: #662d91;
}

.md-button--primary:hover {
  background-color: #7d42aa;
  border-color: #7d42aa;
}


/* ================================
   Headings
   ================================ */

.md-content h1 {
  font-weight: 700;
}

.md-content h2 {
  font-weight: 650;
}


/* ================================
   Code
   ================================ */

.md-content code {
  border-radius: 5px;
}


/* ================================
   Sidebar
   ================================ */

.md-sidebar {
  font-size: 0.9rem;
}


/* ================================
   Header shadow
   ================================ */

.md-header {
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.08);
}


/* ================================
   Footer
   ================================ */

.md-footer-meta__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
}

.md-footer-meta__inner .md-social {
  order: 1;
}

.md-footer-meta__inner .md-copyright {
  order: 2;
  text-align: center;
}

/* ===================

/* ==========



/* UKNode footer */

.md-footer-meta__inner {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) auto !important;
  align-items: start !important;
  column-gap: 3rem !important;
}

.uknode-footer-company {
  grid-column: 1;
  min-width: 0;
}

.uknode-company-info {
  margin: 0;
  font-size: 0.65rem !important;
  line-height: 1.6 !important;
  color: #9ca3af !important;
}

.uknode-footer-right {
  grid-column: 2;
  display: flex !important;
  flex-direction: column !important;
  align-items: flex-end !important;
  justify-content: flex-start !important;
  gap: 0.5rem !important;
  text-align: right !important;
}

.uknode-footer-right .md-social {
  order: 1 !important;
  display: flex !important;
  justify-content: flex-end !important;
  margin: 0 !important;
  padding: 0 !important;
}

.uknode-footer-copyright {
  order: 2 !important;
  margin: 0 !important;
  padding: 0 !important;
  font-size: 0.65rem !important;
  line-height: 1.6 !important;
  color: #9ca3af !important;
  opacity: 1 !important;
}

@media screen and (max-width: 768px) {
  .md-footer-meta__inner {
    grid-template-columns: 1fr !important;
    row-gap: 1.25rem !important;
  }

  .uknode-footer-company {
    grid-column: 1;
  }

  .uknode-footer-right {
    grid-column: 1;
    align-items: flex-start !important;
    text-align: left !important;
  }

  .uknode-footer-right .md-social {
    justify-content: flex-start !important;
  }
}

.uknode-purple {
  color: #9b51e0;
}




/* ############################


/* UKNode sidebar navigation - GitBook-style */

.md-sidebar--primary .md-nav__link {
  color: #6b7280;
  border-radius: 6px;
  margin: 2px 8px;
  padding: 6px 10px;
  transition: background-color 120ms ease, color 120ms ease;
}

/* Hover */
.md-sidebar--primary .md-nav__link:hover {
  color: #9b51e0;
  background-color: rgba(107, 114, 128, 0.14);
}

/* Currently open page */
.md-sidebar--primary .md-nav__link--active {
  color: #ffffff !important;
  background-color: #6b7280;
}

/* Keep active page white when hovering */
.md-sidebar--primary .md-nav__link--active:hover {
  color: #ffffff !important;
  background-color: #6b7280;
}



/* Stepper:

/* UKNode Stepper */


/* UKNode Stepper */

.uknode-stepper {
  position: relative;
  margin: 2rem 0;
}

.uknode-step {
  position: relative;
  display: flex;
  gap: 1rem;
  padding-bottom: 2rem;
}

.uknode-step:last-child {
  padding-bottom: 0;
}

/* Connecting line */
.uknode-step::before {
  content: "";
  position: absolute;
  left: 17px;
  top: 36px;
  bottom: 0;
  width: 2px;
  background: #d1d5db;
}

/* Number circle */
.uknode-step-number {
  position: relative;
  z-index: 1;
  flex: 0 0 36px;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: #662d91;
  color: #ffffff;
  font-weight: 700;
  font-size: 0.9rem;
}

/* Step content */
.uknode-step-content {
  flex: 1;
  min-width: 0;
  padding-top: 0.05rem;
}

/* Step title */
.uknode-step-content h3 {
  margin: 0 0 0.65rem 0 !important;
  font-size: 1.15rem !important;
  line-height: 1.4 !important;
  font-weight: 700;
}

/* Step description */
.uknode-step-content p {
  margin-top: 0;
  margin-bottom: 0.9rem;
}

/* Make the info box fit nicely inside a step */
.uknode-step-content .admonition {
  margin-top: 1rem;
}
