/* IntenseRP Next Documentation Custom Styles */
/* Brand colors: #000810 (dark) and #5daeff (light blue) */

:root {
  /* Brand-inspired color palette */
  --intenserp-dark: #000810;
  --intenserp-blue: #5daeff;
  --intenserp-dark-soft: #0a1220;
  --intenserp-blue-soft: #4a9ee8;
  --intenserp-blue-muted: #3d8bc7;
  --intenserp-accent: #6db4ff;
}

/* Custom color scheme for slate (dark) mode */
[data-md-color-scheme="slate"] {
  /* Primary colors */
  --md-primary-fg-color: var(--intenserp-dark-soft);
  --md-primary-fg-color--light: var(--intenserp-blue-soft);
  --md-primary-fg-color--dark: var(--intenserp-dark);
  --md-primary-bg-color: #ffffff;
  --md-primary-bg-color--light: rgba(255, 255, 255, 0.7);
  
  /* Accent colors */
  --md-accent-fg-color: var(--intenserp-blue);
  --md-accent-fg-color--transparent: rgba(93, 174, 255, 0.1);
  --md-accent-bg-color: #ffffff;
  --md-accent-bg-color--light: rgba(255, 255, 255, 0.7);
  
  /* Enhanced text contrast for dark mode */
  --md-default-fg-color: #e1e1e1;
  --md-default-fg-color--light: #e9ecef;
  --md-default-fg-color--lighter: #dee2e6;
  --md-default-fg-color--lightest: rgba(255, 255, 255, 0.12);
  
  /* Link colors */
  --md-typeset-a-color: var(--intenserp-blue);
  
  /* Code styling */
  --md-code-fg-color: var(--intenserp-blue);
  --md-code-bg-color: rgba(93, 174, 255, 0.1);
  
  /* Footer colors */
  --md-footer-bg-color: var(--intenserp-dark);
  --md-footer-fg-color: #f8f9fa;
  --md-footer-fg-color--light: rgba(248, 249, 250, 0.7);
  --md-footer-fg-color--lighter: rgba(248, 249, 250, 0.45);
}

/* Custom color scheme for default (light) mode */
[data-md-color-scheme="default"] {
  /* Primary colors */
  --md-primary-fg-color: var(--intenserp-dark);
  --md-primary-fg-color--light: var(--intenserp-blue-muted);
  --md-primary-fg-color--dark: var(--intenserp-dark);
  --md-primary-bg-color: #ffffff;
  --md-primary-bg-color--light: rgba(255, 255, 255, 0.7);
  
  /* Accent colors */
  --md-accent-fg-color: var(--intenserp-blue-muted);
  --md-accent-fg-color--transparent: rgba(61, 139, 199, 0.1);
  --md-accent-bg-color: #ffffff;
  --md-accent-bg-color--light: rgba(255, 255, 255, 0.7);
  
  /* Enhanced text colors for light mode */
  --md-default-fg-color: #2c3e50;
  --md-default-fg-color--light: rgba(44, 62, 80, 0.7);
  --md-default-fg-color--lighter: rgba(44, 62, 80, 0.5);
  --md-default-fg-color--lightest: rgba(44, 62, 80, 0.12);
  
  /* Link colors */
  --md-typeset-a-color: var(--intenserp-blue-muted);
  
  /* Code styling */
  --md-code-fg-color: var(--intenserp-blue-muted);
  --md-code-bg-color: rgba(61, 139, 199, 0.1);
  
  /* Footer colors */
  --md-footer-bg-color: var(--intenserp-blue-muted);
  --md-footer-fg-color: #ffffff;
  --md-footer-fg-color--light: rgba(255, 255, 255, 0.7);
  --md-footer-fg-color--lighter: rgba(255, 255, 255, 0.45);
}

/* Header improvements with brand gradient */
.md-header {
  background: linear-gradient(135deg, var(--intenserp-dark) 0%, var(--intenserp-dark-soft) 100%);
  box-shadow: 0 2px 12px rgba(0, 8, 16, 0.3);
}

/* Typography improvements for headings */
.md-typeset h1 {
  font-weight: 800;
  color: var(--intenserp-blue);
  font-size: 2.2em;
  margin-bottom: 1rem;
}

[data-md-color-scheme="default"] .md-typeset h1 {
  color: var(--intenserp-blue-muted);
}

.md-typeset h2,
.md-typeset h3,
.md-typeset h4,
.md-typeset h5,
.md-typeset h6 {
  font-weight: 700;
}

.md-typeset h2 {
  font-size: 1.8em;
  margin-top: 2rem;
  margin-bottom: 0.8rem;
}

.md-typeset h3 {
  font-size: 1.4em;
  margin-top: 1.6rem;
  margin-bottom: 0.6rem;
}

/* Enhanced link styling */
.md-typeset a {
  font-weight: 500;
  text-decoration: none;
  transition: all 0.2s ease;
}

.md-typeset a:hover {
  color: var(--intenserp-accent);
  text-decoration: underline;
}

[data-md-color-scheme="default"] .md-typeset a:hover {
  color: var(--intenserp-dark);
}

/* Code blocks with brand accent */
.md-typeset .highlight {
  border-left: 4px solid var(--intenserp-blue);
}

.md-typeset code {
  padding: 0.2em 0.4em;
  border-radius: 4px;
  font-weight: 600;
}

/* Search box improvements */
.md-search__input {
  background-color: rgba(93, 174, 255, 0.1);
  border: 1px solid rgba(93, 174, 255, 0.3);
  border-radius: 8px;
}

.md-search__input:focus {
  border-color: var(--intenserp-blue);
  box-shadow: 0 0 0 2px rgba(93, 174, 255, 0.2);
}

/* Table improvements */
.md-typeset table:not([class]) {
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.md-typeset table:not([class]) th {
  background-color: var(--intenserp-dark-soft);
  color: #f8f9fa;
  font-weight: 700;
}

[data-md-color-scheme="default"] .md-typeset table:not([class]) th {
  background-color: var(--intenserp-blue-muted);
  color: white;
}

/* Sidebar sizing and layout */
@media screen and (min-width: 76.25em) {
  .md-sidebar {
    width: 17rem;
  }
  
  .md-nav__link {
    font-size: calc(0.8rem + 1px);
    padding-left: 1rem;
  }
  
  /* Elegant root title styling */
  .md-nav--primary .md-nav__title {
    box-shadow: none !important;
    background: linear-gradient(135deg, 
      rgba(93, 174, 255, 0.06) 0%, 
      rgba(93, 174, 255, 0.02) 100%
    );
    border-bottom: 1px solid rgba(93, 174, 255, 0.15);
    padding: 1rem 0.75rem;
    margin-bottom: 0.5rem;
    border-radius: 6px 6px 0 0;
    font-weight: 700;
    font-size: 1rem;
    color: var(--intenserp-blue);
    transition: all 0.3s ease;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
  }
  
  /* Logo styling within the title */
  .md-nav--primary .md-nav__title .md-nav__button {
    margin-right: 0.5rem;
    display: flex;
    align-items: center;
    line-height: 0;
  }
  
  .md-nav--primary .md-nav__title .md-nav__button img {
    height: 1.4rem;
    width: auto;
    transition: transform 0.3s ease;
  }
  
  /* Subtle hover effect for root title */
  .md-nav--primary .md-nav__title:hover {
    background: linear-gradient(135deg, 
      rgba(93, 174, 255, 0.1) 0%, 
      rgba(93, 174, 255, 0.04) 100%
    );
    border-bottom-color: rgba(93, 174, 255, 0.25);
    color: var(--intenserp-accent);
  }
  
  .md-nav--primary .md-nav__title:hover .md-nav__button img {
    transform: scale(1.02);
  }
  
  /* Light mode root title */
  [data-md-color-scheme="default"] .md-nav--primary .md-nav__title {
    background: linear-gradient(135deg, 
      rgba(61, 139, 199, 0.06) 0%, 
      rgba(61, 139, 199, 0.02) 100%
    );
    border-bottom-color: rgba(61, 139, 199, 0.15);
    color: var(--intenserp-blue-muted);
  }
  
  [data-md-color-scheme="default"] .md-nav--primary .md-nav__title:hover {
    background: linear-gradient(135deg, 
      rgba(61, 139, 199, 0.1) 0%, 
      rgba(61, 139, 199, 0.04) 100%
    );
    border-bottom-color: rgba(61, 139, 199, 0.25);
    color: var(--intenserp-dark);
  }
}

/* Tablet/mobile sidebar */
@media screen and (max-width: 76.1875em) {
  .md-sidebar--primary[data-md-state="open"] {
    width: 50%;
    max-width: 17rem;
  }
}

.md-nav__list {
  position: relative;
}

.md-sidebar__scrollwrap {
  padding-left: 0;
  margin-left: -1.5rem;
  width: calc(100%);
}

.md-sidebar__inner {
  width: calc(100%);
  padding-right: 0 !important;
}

/* CLEAN NAVIGATION LINKS - Simpler, more readable approach */

/* Base navigation link styling - clean and minimal with borders */
a.md-nav__link {
  padding: 0.4rem 1rem;
  margin: 0.1rem 0;
  transition: all 0.2s ease;
  border-radius: 0;
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-left: 3px solid transparent;
  background: rgba(255, 255, 255, 0.02);
  color: rgba(248, 249, 250, 0.75);
  font-weight: 400;
}

a.md-nav__link:hover {
  background: rgba(93, 174, 255, 0.1);
  color: rgba(248, 249, 250, 0.95);
  border-left-color: rgba(93, 174, 255, 0.4);
  border-color: rgba(93, 174, 255, 0.15);
}

/* Active navigation items - clear blue accent with better visibility */
a.md-nav__link.md-nav__link--active {
  background: linear-gradient(90deg, 
    rgba(93, 174, 255, 0.15) 0%, 
    rgba(93, 174, 255, 0.08) 100%
  ) !important;
  color: var(--intenserp-blue) !important;
  font-weight: 600 !important;
  border-left: 3px solid var(--intenserp-blue) !important;
  border-color: rgba(93, 174, 255, 0.25) !important;
  border-radius: 0 !important;
}

/* Light mode navigation links */
[data-md-color-scheme="default"] a.md-nav__link {
  color: rgba(44, 62, 80, 0.65);
  background: rgba(0, 0, 0, 0.02);
  border-color: rgba(0, 0, 0, 0.08);
}

[data-md-color-scheme="default"] a.md-nav__link:hover {
  background: rgba(61, 139, 199, 0.1);
  color: rgba(44, 62, 80, 0.9);
  border-left-color: rgba(61, 139, 199, 0.4);
  border-color: rgba(61, 139, 199, 0.15);
}

[data-md-color-scheme="default"] a.md-nav__link.md-nav__link--active {
  background: linear-gradient(90deg, 
    rgba(61, 139, 199, 0.15) 0%, 
    rgba(61, 139, 199, 0.08) 100%
  ) !important;
  color: var(--intenserp-blue-muted) !important;
  border-left-color: var(--intenserp-blue-muted) !important;
  border-color: rgba(61, 139, 199, 0.25) !important;
}

/* HIERARCHICAL STYLING - Better distinction between levels */

/* Top-level sections (level 1) - most prominent */
.md-nav[data-md-level="1"] a.md-nav__link:not(.md-nav__link--active) {
  font-weight: 500;
  color: rgba(248, 249, 250, 0.85);
  font-size: 0.9rem;
  background: rgba(255, 255, 255, 0.03);
  border-color: rgba(255, 255, 255, 0.08);
}

.md-nav[data-md-level="1"] a.md-nav__link:not(.md-nav__link--active):hover {
  color: rgba(248, 249, 250, 1);
  background: rgba(93, 174, 255, 0.12);
  border-color: rgba(93, 174, 255, 0.2);
}

/* Subsections (level 2) - medium prominence with darker background */
.md-nav[data-md-level="2"] a.md-nav__link:not(.md-nav__link--active) {
  color: rgba(248, 249, 250, 0.65);
  font-size: 0.85rem;
  padding-left: 1.5rem;
  font-weight: 400;
  background: rgba(0, 0, 0, 0.15);
  border-color: rgba(255, 255, 255, 0.05);
  border-left-width: 2px;
}

.md-nav[data-md-level="2"] a.md-nav__link:not(.md-nav__link--active):hover {
  color: rgba(248, 249, 250, 0.9);
  background: rgba(93, 174, 255, 0.08);
  border-color: rgba(93, 174, 255, 0.15);
}

/* Deep subsections (level 3+) - most subdued with even darker background */
.md-nav[data-md-level="3"] a.md-nav__link:not(.md-nav__link--active) {
  color: rgba(248, 249, 250, 0.55);
  font-size: 0.82rem;
  padding-left: 2rem;
  font-weight: 400;
  background: rgba(0, 0, 0, 0.25);
  border-color: rgba(255, 255, 255, 0.04);
  border-left-width: 2px;
}

.md-nav[data-md-level="3"] a.md-nav__link:not(.md-nav__link--active):hover {
  color: rgba(248, 249, 250, 0.85);
  background: rgba(93, 174, 255, 0.06);
  border-color: rgba(93, 174, 255, 0.12);
}

/* Active states for different levels */
.md-nav[data-md-level="2"] a.md-nav__link.md-nav__link--active {
  padding-left: 1.5rem !important;
  background: linear-gradient(90deg, 
    rgba(93, 174, 255, 0.2) 0%, 
    rgba(93, 174, 255, 0.1) 100%
  ) !important;
}

.md-nav[data-md-level="3"] a.md-nav__link.md-nav__link--active {
  padding-left: 2rem !important;
  background: linear-gradient(90deg, 
    rgba(93, 174, 255, 0.18) 0%, 
    rgba(93, 174, 255, 0.08) 100%
  ) !important;
}

/* Light mode hierarchical styling */
[data-md-color-scheme="default"] .md-nav[data-md-level="1"] a.md-nav__link:not(.md-nav__link--active) {
  color: rgba(44, 62, 80, 0.75);
  background: rgba(0, 0, 0, 0.03);
  border-color: rgba(0, 0, 0, 0.1);
}

[data-md-color-scheme="default"] .md-nav[data-md-level="1"] a.md-nav__link:not(.md-nav__link--active):hover {
  background: rgba(61, 139, 199, 0.12);
  border-color: rgba(61, 139, 199, 0.2);
}

[data-md-color-scheme="default"] .md-nav[data-md-level="2"] a.md-nav__link:not(.md-nav__link--active) {
  color: rgba(44, 62, 80, 0.6);
  background: rgba(0, 0, 0, 0.06);
  border-color: rgba(0, 0, 0, 0.08);
}

[data-md-color-scheme="default"] .md-nav[data-md-level="2"] a.md-nav__link:not(.md-nav__link--active):hover {
  color: rgba(44, 62, 80, 0.85);
  background: rgba(61, 139, 199, 0.08);
  border-color: rgba(61, 139, 199, 0.15);
}

[data-md-color-scheme="default"] .md-nav[data-md-level="3"] a.md-nav__link:not(.md-nav__link--active) {
  color: rgba(44, 62, 80, 0.5);
  background: rgba(0, 0, 0, 0.1);
  border-color: rgba(0, 0, 0, 0.06);
}

[data-md-color-scheme="default"] .md-nav[data-md-level="3"] a.md-nav__link:not(.md-nav__link--active):hover {
  color: rgba(44, 62, 80, 0.8);
  background: rgba(61, 139, 199, 0.06);
  border-color: rgba(61, 139, 199, 0.12);
}

[data-md-color-scheme="default"] .md-nav[data-md-level="2"] a.md-nav__link.md-nav__link--active {
  background: linear-gradient(90deg, 
    rgba(61, 139, 199, 0.2) 0%, 
    rgba(61, 139, 199, 0.1) 100%
  ) !important;
}

[data-md-color-scheme="default"] .md-nav[data-md-level="3"] a.md-nav__link.md-nav__link--active {
  background: linear-gradient(90deg, 
    rgba(61, 139, 199, 0.18) 0%, 
    rgba(61, 139, 199, 0.08) 100%
  ) !important;
}

/* SECTION LABELS - Clean and understated with borders */
label.md-nav__link {
  padding: 0.6rem 1rem 0.4rem 1rem;
  margin: 0.4rem 0 0.2rem 0;
  font-weight: 600;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--intenserp-blue);
  background: rgba(93, 174, 255, 0.03);
  border: 1px solid rgba(93, 174, 255, 0.1);
  border-radius: 0;
  position: relative;
  transition: all 0.3s ease;
}

/* Simple underline for section labels */
label.md-nav__link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 1rem;
  right: 1rem;
  height: 1px;
  background: linear-gradient(90deg, 
    var(--intenserp-blue) 0%, 
    rgba(93, 174, 255, 0.2) 100%
  );
  transition: all 0.3s ease;
}

label.md-nav__link:hover {
  color: var(--intenserp-accent);
  background: rgba(93, 174, 255, 0.06);
  border-color: rgba(93, 174, 255, 0.15);
  cursor: pointer;
}

/* Light mode section labels */
[data-md-color-scheme="default"] label.md-nav__link {
  color: var(--intenserp-blue-muted);
  background: rgba(61, 139, 199, 0.03);
  border-color: rgba(61, 139, 199, 0.1);
}

[data-md-color-scheme="default"] label.md-nav__link::after {
  background: linear-gradient(90deg, 
    var(--intenserp-blue-muted) 0%, 
    rgba(61, 139, 199, 0.2) 100%
  );
}

[data-md-color-scheme="default"] label.md-nav__link:hover {
  color: var(--intenserp-dark);
  background: rgba(61, 139, 199, 0.06);
  border-color: rgba(61, 139, 199, 0.15);
}

.md-nav {
    width: 100%;
}

/* TABLE OF CONTENTS - Compact and unobtrusive with borders */
.md-nav--secondary {
  font-size: 0.8rem;
}

.md-nav--secondary .md-nav__link {
  padding: 0.3rem 0.75rem;
  margin: 0.05rem 0;
  font-weight: 400;
  color: rgba(248, 249, 250, 0.55) !important;
  background: rgba(0, 0, 0, 0.1) !important;
  border: 1px solid rgba(255, 255, 255, 0.04) !important;
  border-left: 2px solid transparent !important;
  border-radius: 0 !important;
  transition: all 0.2s ease;
}

.md-nav--secondary .md-nav__link:hover {
  color: rgba(248, 249, 250, 0.8) !important;
  background: rgba(93, 174, 255, 0.06) !important;
  border-color: rgba(93, 174, 255, 0.1) !important;
  border-left-color: rgba(93, 174, 255, 0.3) !important;
  padding-left: 0.9rem;
}

/* Active TOC items - clear highlighting */
.md-nav--secondary .md-nav__link--active {
  color: var(--intenserp-blue) !important;
  background: rgba(93, 174, 255, 0.1) !important;
  font-weight: 500;
  border-left: 2px solid var(--intenserp-blue) !important;
  border-color: rgba(93, 174, 255, 0.15) !important;
  padding-left: 0.9rem;
}

/* Light mode TOC */
[data-md-color-scheme="default"] .md-nav--secondary .md-nav__link {
  color: rgba(44, 62, 80, 0.45) !important;
  background: rgba(0, 0, 0, 0.04) !important;
  border-color: rgba(0, 0, 0, 0.06) !important;
}

[data-md-color-scheme="default"] .md-nav--secondary .md-nav__link:hover {
  color: rgba(44, 62, 80, 0.75) !important;
  background: rgba(61, 139, 199, 0.06) !important;
  border-color: rgba(61, 139, 199, 0.1) !important;
  border-left-color: rgba(61, 139, 199, 0.3) !important;
}

[data-md-color-scheme="default"] .md-nav--secondary .md-nav__link--active {
  color: var(--intenserp-blue-muted) !important;
  background: rgba(61, 139, 199, 0.1) !important;
  border-left-color: var(--intenserp-blue-muted) !important;
  border-color: rgba(61, 139, 199, 0.15) !important;
}

/* FOOTER STYLING - Keep existing footer styles */
.md-footer {
  background: linear-gradient(135deg, 
    var(--intenserp-dark) 0%, 
    var(--intenserp-dark-soft) 100%
  ) !important;
  border-top: 1px solid rgba(93, 174, 255, 0.15);
  margin-top: 1.5rem;
  position: relative;
}

.md-footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 60%;
  height: 1px;
  background: linear-gradient(90deg, 
    transparent 0%, 
    rgba(93, 174, 255, 0.4) 50%, 
    transparent 100%
  );
}

.md-footer__inner {
  padding: 1.5rem 0;
  border-bottom: 1px solid rgba(93, 174, 255, 0.1);
}

.md-footer__link {
  background: rgba(93, 174, 255, 0.06) !important;
  border: 1px solid rgba(93, 174, 255, 0.12) !important;
  border-radius: 10px !important;
  padding: 1.25rem 1.5rem !important;
  transition: all 0.25s ease !important;
  text-decoration: none !important;
  display: flex !important;
  align-items: center !important;
  gap: 1rem !important;
  max-width: 50% !important;
  min-width: 200px !important;
}

.md-footer__link--prev {
  margin-right: auto !important;
}

.md-footer__link--next {
  margin-left: auto !important;
}

.md-footer__link:hover {
  background: rgba(93, 174, 255, 0.1) !important;
  border-color: rgba(93, 174, 255, 0.25) !important;
  transform: translateY(-2px) !important;
  box-shadow: 0 4px 15px rgba(93, 174, 255, 0.15) !important;
}

.md-footer__title {
  font-weight: 500 !important;
  color: var(--intenserp-blue) !important;
  flex: 1 !important;
  margin-bottom: 0.25rem !important;
}

.md-footer__direction {
  font-size: 0.7rem !important;
  font-weight: 600 !important;
  text-transform: uppercase !important;
  letter-spacing: 0.05em !important;
  color: rgba(93, 174, 255, 0.7) !important;
  margin-bottom: 0.25rem !important;
  display: block !important;
}

.md-footer__button {
  color: var(--intenserp-blue) !important;
  transition: all 0.25s ease !important;
  flex-shrink: 0 !important;
}

.md-footer__link:hover .md-footer__button {
  color: var(--intenserp-accent) !important;
}

.md-footer__link--prev:hover .md-footer__button {
  transform: translateX(-3px) !important;
}

.md-footer__link--next:hover .md-footer__button {
  transform: translateX(3px) !important;
}

/* Footer Meta */
.md-footer-meta {
  background: rgba(0, 8, 16, 0.2) !important;
  padding: 1rem 0 !important;
}

.md-footer-meta__inner {
  display: grid !important;
  grid-template-columns: 1fr auto !important;
  align-items: center !important;
  gap: 1rem !important;
}

/* Copyright */
.md-copyright {
  color: rgba(248, 249, 250, 0.7) !important;
  font-size: 0.8rem !important;
  line-height: 1.4 !important;
}

.md-copyright__highlight {
  font-weight: 600 !important;
  color: var(--intenserp-blue) !important;
  display: block !important;
  margin-bottom: 0.25rem !important;
}

.md-copyright a {
  color: var(--intenserp-blue) !important;
  text-decoration: none !important;
  font-weight: 500 !important;
  transition: color 0.25s ease !important;
}

.md-copyright a:hover {
  color: var(--intenserp-accent) !important;
}

/* Social Links */
.md-social {
  display: flex !important;
  gap: 0.5rem !important;
}

.md-social__link {
  background: rgba(93, 174, 255, 0.06) !important;
  border: 1px solid rgba(93, 174, 255, 0.15) !important;
  border-radius: 6px !important;
  padding: 0.5rem !important;
  transition: all 0.25s ease !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 36px !important;
  height: 36px !important;
}

.md-social__link svg {
  width: 16px !important;
  height: 16px !important;
  fill: var(--intenserp-blue) !important;
  transition: all 0.25s ease !important;
}

.md-social__link:hover {
  background: rgba(93, 174, 255, 0.12) !important;
  border-color: rgba(93, 174, 255, 0.3) !important;
  transform: translateY(-1px) !important;
}

.md-social__link:hover svg {
  fill: var(--intenserp-accent) !important;
}

/* Light Mode Footer */
[data-md-color-scheme="default"] .md-footer {
  background: linear-gradient(135deg, 
    var(--intenserp-blue-muted) 0%, 
    var(--intenserp-dark) 100%
  ) !important;
}

[data-md-color-scheme="default"] .md-footer::before {
  background: linear-gradient(90deg, 
    transparent 0%, 
    rgba(255, 255, 255, 0.3) 50%, 
    transparent 100%
  );
}

[data-md-color-scheme="default"] .md-footer__link {
  background: rgba(255, 255, 255, 0.08) !important;
  border-color: rgba(255, 255, 255, 0.15) !important;
}

[data-md-color-scheme="default"] .md-footer__link:hover {
  background: rgba(255, 255, 255, 0.15) !important;
  border-color: rgba(255, 255, 255, 0.3) !important;
  box-shadow: 0 4px 15px rgba(255, 255, 255, 0.1) !important;
}

[data-md-color-scheme="default"] .md-footer__title {
  color: #ffffff !important;
}

[data-md-color-scheme="default"] .md-footer__direction {
  color: rgba(255, 255, 255, 0.7) !important;
}

[data-md-color-scheme="default"] .md-footer__button {
  color: #ffffff !important;
}

[data-md-color-scheme="default"] .md-footer-meta {
  background: rgba(0, 8, 16, 0.3) !important;
}

[data-md-color-scheme="default"] .md-copyright {
  color: rgba(255, 255, 255, 0.8) !important;
}

[data-md-color-scheme="default"] .md-copyright__highlight {
  color: #ffffff !important;
}

[data-md-color-scheme="default"] .md-copyright a {
  color: rgba(255, 255, 255, 0.9) !important;
}

[data-md-color-scheme="default"] .md-copyright a:hover {
  color: #ffffff !important;
}

[data-md-color-scheme="default"] .md-social__link {
  background: rgba(255, 255, 255, 0.08) !important;
  border-color: rgba(255, 255, 255, 0.15) !important;
}

[data-md-color-scheme="default"] .md-social__link svg {
  fill: #ffffff !important;
}

[data-md-color-scheme="default"] .md-social__link:hover {
  background: rgba(255, 255, 255, 0.15) !important;
  border-color: rgba(255, 255, 255, 0.3) !important;
}

/* Mobile-Optimized Footer */
@media screen and (max-width: 76.1875em) {
  .md-footer-meta__inner {
    grid-template-columns: 1fr !important;
    text-align: center !important;
    gap: 0.75rem !important;
  }
  
  .md-copyright {
    order: 2 !important;
  }
  
  .md-social {
    order: 1 !important;
    justify-content: center !important;
  }
  
  .md-footer__inner {
    padding: 1.25rem 0 !important;
  }
  
  .md-footer__link {
    max-width: 100% !important;
    min-width: auto !important;
    padding: 1rem 1.25rem !important;
    margin: 0 !important;
  }
  
  .md-footer__link--prev,
  .md-footer__link--next {
    margin: 0 !important;
  }
}

@media screen and (max-width: 44.9375em) {
  .md-footer__inner {
    padding: 1rem 0 !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 0.75rem !important;
  }
  
  .md-footer__link {
    padding: 1rem !important;
    border-radius: 8px !important;
    max-width: 100% !important;
    min-width: auto !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }
  
  .md-footer__link--prev {
    margin: 0 !important;
    flex-direction: row !important;
  }
  
  .md-footer__link--next {
    margin: 0 !important;
  }
  
  .md-footer__link--prev .md-footer__title {
    display: block !important;
  }
  
  .md-footer__direction {
    font-size: 0.65rem !important;
  }
  
  .md-copyright {
    font-size: 0.75rem !important;
    line-height: 1.3 !important;
  }
  
  .md-copyright__highlight {
    margin-bottom: 0.125rem !important;
  }
  
  .md-social__link {
    width: 32px !important;
    height: 32px !important;
    padding: 0.375rem !important;
  }
  
  .md-social__link svg {
    width: 14px !important;
    height: 14px !important;
  }
}

/* Mobile sidebar fixes */
@media screen and (max-width: 76.1875em) {
  .md-nav__list {
    width: 100% !important;
    max-width: 100% !important;
    overflow-x: hidden !important;
    box-sizing: border-box !important;
  }
  
  .md-nav__item {
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
  }
  
  .md-nav__link {
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
  }
}

/* Enhanced focus states for accessibility */
.md-search__input:focus,
.md-typeset a:focus {
  outline: 2px solid var(--intenserp-blue);
  outline-offset: 2px;
}

/* Smooth scrolling */
html {
  scroll-behavior: smooth;
}

/* Cookie consent banner fixes */
.md-consent__controls .md-button,
.md-button[data-md-component="consent"] {
  background-color: var(--intenserp-blue) !important;
  color: var(--intenserp-dark) !important;
  border: 1px solid var(--intenserp-blue) !important;
  font-weight: 600;
}

.md-consent__controls .md-button:hover,
.md-button[data-md-component="consent"]:hover {
  background-color: var(--intenserp-accent) !important;
  border-color: var(--intenserp-accent) !important;
  color: var(--intenserp-dark) !important;
}

[data-md-color-scheme="default"] .md-consent__controls .md-button,
[data-md-color-scheme="default"] .md-button[data-md-component="consent"] {
  background-color: var(--intenserp-blue-muted) !important;
  color: white !important;
  border-color: var(--intenserp-blue-muted) !important;
}

[data-md-color-scheme="default"] .md-consent__controls .md-button:hover,
[data-md-color-scheme="default"] .md-button[data-md-component="consent"]:hover {
  background-color: var(--intenserp-dark) !important;
  border-color: var(--intenserp-dark) !important;
  color: white !important;
}

.md-consent {
  background-color: var(--md-default-bg-color);
  border-top: 1px solid var(--md-default-fg-color--lightest);
}

[data-md-color-scheme="slate"] .md-consent {
  background-color: var(--md-code-bg-color);
  color: var(--md-default-fg-color);
}

.consent-banner button,
.cookie-consent button,
[data-consent] button {
  background-color: var(--intenserp-blue) !important;
  color: var(--intenserp-dark) !important;
  border: 1px solid var(--intenserp-blue) !important;
}

[data-md-color-scheme="default"] .consent-banner button,
[data-md-color-scheme="default"] .cookie-consent button,
[data-md-color-scheme="default"] [data-consent] button {
  background-color: var(--intenserp-blue-muted) !important;
  color: white !important;
  border-color: var(--intenserp-blue-muted) !important;
}

/* Custom scrollbar styling for navigation */
html[data-md-color-scheme="slate"] .md-sidebar__scrollwrap::-webkit-scrollbar,
html[data-md-color-scheme="default"] .md-sidebar__scrollwrap::-webkit-scrollbar,
body .md-sidebar__scrollwrap::-webkit-scrollbar,
.md-container .md-sidebar__scrollwrap::-webkit-scrollbar,
.md-sidebar--primary .md-sidebar__scrollwrap::-webkit-scrollbar {
  width: 8px !important;
  height: 8px !important;
  background: transparent !important;
}

html[data-md-color-scheme="slate"] .md-sidebar__scrollwrap,
html[data-md-color-scheme="default"] .md-sidebar__scrollwrap,
body .md-sidebar__scrollwrap,
.md-container .md-sidebar__scrollwrap,
.md-sidebar--primary .md-sidebar__scrollwrap {
  scrollbar-width: thin !important;
  scrollbar-color: rgba(93, 174, 255, 0.3) rgba(0, 0, 0, 0.05) !important;
}

html[data-md-color-scheme="slate"] .md-sidebar__scrollwrap::-webkit-scrollbar-track,
html[data-md-color-scheme="default"] .md-sidebar__scrollwrap::-webkit-scrollbar-track,
body .md-sidebar__scrollwrap::-webkit-scrollbar-track,
.md-container .md-sidebar__scrollwrap::-webkit-scrollbar-track,
.md-sidebar--primary .md-sidebar__scrollwrap::-webkit-scrollbar-track {
  background: rgba(0, 0, 0, 0.05) !important;
  border-radius: 4px !important;
  margin: 2px !important;
  border: none !important;
}

html[data-md-color-scheme="slate"] .md-sidebar__scrollwrap::-webkit-scrollbar-thumb,
html[data-md-color-scheme="default"] .md-sidebar__scrollwrap::-webkit-scrollbar-thumb,
body .md-sidebar__scrollwrap::-webkit-scrollbar-thumb,
.md-container .md-sidebar__scrollwrap::-webkit-scrollbar-thumb,
.md-sidebar--primary .md-sidebar__scrollwrap::-webkit-scrollbar-thumb {
  background: rgba(93, 174, 255, 0.3) !important;
  border-radius: 4px !important;
  border: none !important;
  transition: all 0.3s ease !important;
  min-height: 20px !important;
}

html[data-md-color-scheme="slate"] .md-sidebar__scrollwrap::-webkit-scrollbar-thumb:hover,
html[data-md-color-scheme="default"] .md-sidebar__scrollwrap::-webkit-scrollbar-thumb:hover,
body .md-sidebar__scrollwrap::-webkit-scrollbar-thumb:hover,
.md-container .md-sidebar__scrollwrap::-webkit-scrollbar-thumb:hover,
.md-sidebar--primary .md-sidebar__scrollwrap::-webkit-scrollbar-thumb:hover {
  background: rgba(93, 174, 255, 0.5) !important;
}

[data-md-color-scheme="default"] .md-sidebar__scrollwrap {
  scrollbar-color: rgba(61, 139, 199, 0.3) rgba(0, 0, 0, 0.08) !important;
}

[data-md-color-scheme="default"] .md-sidebar__scrollwrap::-webkit-scrollbar-track {
  background: rgba(0, 0, 0, 0.08) !important;
}

[data-md-color-scheme="default"] .md-sidebar__scrollwrap::-webkit-scrollbar-thumb {
  background: rgba(61, 139, 199, 0.3) !important;
}

[data-md-color-scheme="default"] .md-sidebar__scrollwrap::-webkit-scrollbar-thumb:hover {
  background: rgba(61, 139, 199, 0.5) !important;
}

/* Print styles */
@media print {
  .md-typeset h1,
  .md-typeset h2,
  .md-typeset h3,
  .md-typeset h4,
  .md-typeset h5,
  .md-typeset h6 {
    color: #000;
    font-weight: 700;
  }
}

.md-content li, h1, h2, h3, h4, h5, h6 {
  font-family: 'Rubik', sans-serif;
}

p {
  font-family: 'Rubik', sans-serif;
}

summary {
  font-family: 'Rubik', sans-serif;
  font-size: 0.8rem;
}

details p, li {
  font-size: 0.7rem;
}

.nodeLabel p {
  color: white !important;
}

.md-source__fact::before {
  vertical-align: middle;
}