/* GreenGovRAG Documentation - Matching Frontend Theme */

:root {
  /* Match frontend OKLCH color palette */
  --green-primary: #10b981;        /* emerald-500 */
  --green-dark: #059669;           /* emerald-600 */
  --green-darker: #047857;         /* emerald-700 */
  --green-light: #34d399;          /* emerald-400 */
  --green-bg: #ecfdf5;             /* emerald-50 */
  --green-bg-light: #d1fae5;       /* emerald-100 */

  /* Greys matching frontend */
  --slate-50: #f8fafc;
  --slate-100: #f1f5f9;
  --slate-200: #e2e8f0;
  --slate-300: #cbd5e1;
  --slate-600: #475569;
  --slate-700: #334155;
  --slate-900: #0f172a;

  /* Material Design overrides */
  --md-primary-fg-color: var(--green-primary);
  --md-primary-fg-color--light: var(--green-light);
  --md-primary-fg-color--dark: var(--green-dark);
  --md-accent-fg-color: var(--green-primary);
  --md-accent-fg-color--transparent: rgba(16, 185, 129, 0.1);

  /* Backgrounds */
  --md-default-bg-color: #ffffff;
  --md-default-fg-color: var(--slate-900);
  --md-default-fg-color--light: var(--slate-600);
  --md-default-fg-color--lighter: var(--slate-300);

  /* Code */
  --md-code-bg-color: var(--slate-50);
  --md-code-fg-color: var(--slate-900);

  /* Borders */
  --md-typeset-table-color: var(--slate-200);
}

/* Global font smoothing and professional base */
* {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

html {
  font-size: 18px;
  scroll-behavior: smooth;
}

body {
  font-feature-settings: "kern" 1, "liga" 1, "calt" 1;
  text-rendering: optimizeLegibility;
}

/* Header - Match frontend gradient (emerald-50/50 via green-50/30) */
.md-header {
  background: linear-gradient(to right,
    rgba(236, 253, 245, 0.5),   /* emerald-50/50 */
    rgba(240, 253, 244, 0.3),   /* green-50/30 */
    rgba(236, 253, 245, 0.5)    /* emerald-50/50 */
  );
  backdrop-filter: blur(8px) saturate(180%);
  border-bottom: 1px solid rgba(226, 232, 240, 0.6);
  box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.05), 0 1px 2px -1px rgba(0, 0, 0, 0.03);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  height: 4rem;
  min-height: 4rem;
}

.md-header--shadow {
  box-shadow: 0 4px 12px -2px rgba(0, 0, 0, 0.08), 0 2px 6px -2px rgba(0, 0, 0, 0.04);
  border-bottom-color: rgba(226, 232, 240, 0.8);
}

.md-header__inner {
  padding: 0 0.5rem;
  height: 4rem;
}

.md-header__title {
  color: var(--green-darker);
  font-weight: 700;
  letter-spacing: -0.02em;
  font-size: 1.125rem;
}

/* Solid color for main site title (more reliable than gradient) */
.md-header__title .md-header__ellipsis {
  color: var(--green-darker);
}

.md-header__button {
  color: var(--slate-700);
}

.md-header__button:hover {
  color: var(--green-dark);
}

/* Tabs - Professional navigation */
.md-tabs {
  background: linear-gradient(to right,
    rgba(248, 250, 252, 0.98),
    rgba(255, 255, 255, 0.98),
    rgba(248, 250, 252, 0.98)
  );
  border-bottom: 1px solid rgba(226, 232, 240, 0.6);
  border-top: 1px solid rgba(226, 232, 240, 0.3);
  backdrop-filter: blur(12px) saturate(180%);
  box-shadow: 0 2px 4px 0 rgba(0, 0, 0, 0.03);
  overflow-x: auto;
  overflow-y: visible;
  height: 3.5rem;
  min-height: 3.5rem;
  margin-bottom: 4rem;
}

.md-tabs__list {
  padding: 0 0.5rem;
  height: 100%;
  display: flex;
  align-items: center;
}

.md-tabs__link {
  color: var(--slate-600);
  font-weight: 500;
  font-size: 0.875rem;
  opacity: 0.85;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  padding: 0 0.50rem;
  position: relative;
  display: flex;
  align-items: center;
  height: 1.5rem;
}

.md-tabs__link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 10%;
  transform: translateX(-50%) scaleX(0);
  width: 80%;
  height: 1px;
  background: var(--green-primary);
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  border-radius: 3px 3px 0 0;
}

.md-tabs__link--active {
  color: var(--green-darker) !important;
  font-weight: 600 !important;
  opacity: 1 !important;
  background: rgba(236, 253, 245, 0.5) !important;
}

.md-tabs__link--active::after {
  transform: translateX(-50%) scaleX(1) !important;
  height: 3px !important;
}

.md-tabs__link:hover {
  color: var(--green-dark);
  opacity: 1;
  background: rgba(236, 253, 245, 0.3);
}

/* Ensure active state persists even without hover */
.md-tabs__link--active:not(:hover) {
  color: var(--green-darker) !important;
  background: rgba(236, 253, 245, 0.5) !important;
}

/* Sidebar - Professional minimal */
.md-sidebar--primary {
  background: linear-gradient(135deg, #fafbfc 0%, #ffffff 100%);
  border-right: 1px solid rgba(226, 232, 240, 0.5);
  box-shadow: inset -1px 0 0 0 rgba(255, 255, 255, 0.8);
}

.md-sidebar__scrollwrap {
  background: transparent;
  scrollbar-width: thin;
  scrollbar-color: var(--green-bg-light) transparent;
}

/* Navigation - Professional hierarchy */
.md-nav {
  font-size: 0.875rem;
  line-height: 1.65;
}

.md-nav__title {
  color: var(--slate-900);
  font-weight: 700;
  font-size: 0.6875rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 1.25rem 1rem 0.625rem;
  background: transparent;
  margin-top: 0.5rem;
}

.md-nav__item {
  margin: 0.125rem 0;
}

.md-nav__link {
  color: var(--slate-600);
  font-weight: 450;
  padding: 0.625rem 1rem;
  border-left: 3px solid transparent;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  border-radius: 0;
  margin: 0;
  display: block;
}

.md-nav__link:hover {
  color: var(--green-dark);
  background: linear-gradient(90deg, var(--green-bg) 0%, rgba(236, 253, 245, 0.3) 100%);
  border-left-color: var(--green-light);
}

.md-nav__link--active {
  color: var(--green-dark) !important;
  font-weight: 600 !important;
  background: linear-gradient(90deg, rgba(236, 253, 245, 0.8) 0%, rgba(236, 253, 245, 0.2) 100%) !important;
  border-left-color: var(--green-primary) !important;
  box-shadow: 0 1px 2px 0 rgba(16, 185, 129, 0.1) !important;
}

/* Ensure sidebar active state persists even without hover */
.md-nav__link--active:not(:hover) {
  color: var(--green-dark) !important;
  background: linear-gradient(90deg, rgba(236, 253, 245, 0.8) 0%, rgba(236, 253, 245, 0.2) 100%) !important;
  border-left-color: var(--green-primary) !important;
}

/* Links - Professional styling */
.md-typeset a {
  color: var(--green-dark);
  font-weight: 500;
  text-decoration: none;
  border-bottom: 1.5px solid rgba(16, 185, 129, 0.25);
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
}

.md-typeset a:hover {
  color: var(--green-darker);
  border-bottom-color: var(--green-primary);
  padding-bottom: 1px;
}

.md-typeset a:focus {
  outline: 2px solid rgba(16, 185, 129, 0.3);
  outline-offset: 2px;
  border-radius: 2px;
}

/* Footer - Match frontend gradient */
.md-footer {
  background: linear-gradient(to right,
    rgba(236, 253, 245, 0.5),   /* emerald-50/50 */
    rgba(240, 253, 244, 0.3),   /* green-50/30 */
    rgba(236, 253, 245, 0.5)    /* emerald-50/50 */
  );
  border-top: 1px solid rgba(226, 232, 240, 0.6);
  backdrop-filter: blur(8px) saturate(180%);
  box-shadow: 0 -1px 3px 0 rgba(0, 0, 0, 0.03);
}

.md-footer-meta {
  background: transparent;
}

.md-footer__link {
  color: var(--slate-600);
  font-weight: 500;
}

.md-footer__link:hover {
  color: var(--green-dark);
}

.md-footer-copyright {
  color: var(--slate-600);
  font-size: 0.875rem;
}

/* Search - Professional */
.md-search__form {
  background: #ffffff;
  border: 1.5px solid var(--slate-200);
  border-radius: 0.625rem;
  box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.03);
  transition: all 0.2s ease;
}

.md-search__form:focus-within {
  border-color: var(--green-primary);
  box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.1), 0 1px 3px 0 rgba(0, 0, 0, 0.08);
}

.md-search__input {
  background: transparent;
  color: var(--slate-900);
  font-size: 0.875rem;
}

.md-search__input::placeholder {
  color: var(--slate-600);
}

/* Buttons - Professional styling */
.md-typeset .md-button {
  background: var(--slate-900);
  border: 1.5px solid var(--slate-900);
  color: white;
  font-weight: 600;
  letter-spacing: 0;
  border-radius: 0.5rem;
  box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.08), 0 1px 2px -1px rgba(0, 0, 0, 0.04);
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  text-transform: none;
  font-size: 0.875rem;
  padding: 0.75rem 1.5rem;
  position: relative;
  overflow: hidden;
}

.md-typeset .md-button::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.1) 0%, transparent 100%);
  opacity: 0;
  transition: opacity 0.2s ease;
}

.md-typeset .md-button:hover {
  background: var(--slate-700);
  border-color: var(--slate-700);
  transform: translateY(-2px);
  box-shadow: 0 8px 16px -4px rgba(0, 0, 0, 0.15), 0 4px 6px -2px rgba(0, 0, 0, 0.08);
}

.md-typeset .md-button:hover::before {
  opacity: 1;
}

.md-typeset .md-button:active {
  transform: translateY(0);
}

.md-typeset .md-button--primary {
  background: var(--green-primary);
  border-color: var(--green-primary);
  box-shadow: 0 1px 3px 0 rgba(16, 185, 129, 0.2), 0 1px 2px -1px rgba(16, 185, 129, 0.1);
}

.md-typeset .md-button--primary:hover {
  background: var(--green-dark);
  border-color: var(--green-dark);
  box-shadow: 0 8px 16px -4px rgba(16, 185, 129, 0.3), 0 4px 6px -2px rgba(16, 185, 129, 0.15);
}

/* Admonitions - Professional callouts */
.md-typeset .admonition {
  border: 1px solid rgba(16, 185, 129, 0.2);
  border-left: 4px solid var(--green-primary);
  background: linear-gradient(135deg, rgba(236, 253, 245, 0.5) 0%, rgba(255, 255, 255, 0.9) 100%);
  border-radius: 0.5rem;
  box-shadow: 0 2px 4px 0 rgba(0, 0, 0, 0.04), 0 1px 2px 0 rgba(0, 0, 0, 0.02);
  padding: 1.25rem 1.5rem;
  margin: 1.5rem 0;
  transition: all 0.2s ease;
}

.md-typeset .admonition:hover {
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.08), 0 2px 4px -1px rgba(0, 0, 0, 0.04);
  transform: translateY(-1px);
}

.md-typeset .admonition-title {
  font-weight: 700;
  color: var(--slate-900);
  padding-left: 0;
  margin: -1.25rem -1.5rem 1rem;
  padding: 0.875rem 1.5rem 0.875rem 2.75rem;
  background: linear-gradient(135deg, var(--green-bg) 0%, rgba(236, 253, 245, 0.3) 100%);
  font-size: 0.875rem;
  border-radius: 0.375rem 0.375rem 0 0;
  border-bottom: 1px solid rgba(16, 185, 129, 0.15);
}

.md-typeset .admonition.note {
  border-left-color: #3b82f6;  /* blue-500 */
}

.md-typeset .admonition.note .admonition-title {
  color: #1e40af;  /* blue-800 */
  background: linear-gradient(90deg, #dbeafe 0%, transparent 100%);
}

.md-typeset .admonition.warning {
  border-left-color: #f59e0b;  /* amber-500 */
}

.md-typeset .admonition.warning .admonition-title {
  color: #92400e;  /* amber-800 */
  background: linear-gradient(90deg, #fef3c7 0%, transparent 100%);
}

.md-typeset .admonition.tip {
  border-left-color: var(--green-primary);
}

.md-typeset .admonition.tip .admonition-title {
  color: var(--green-darker);
  background: linear-gradient(90deg, var(--green-bg) 0%, transparent 100%);
}

/* Tables - Professional data display */
.md-typeset table:not([class]) {
  border: 1px solid var(--slate-200);
  border-radius: 0.5rem;
  overflow: hidden;
  box-shadow: 0 2px 4px 0 rgba(0, 0, 0, 0.04), 0 1px 2px 0 rgba(0, 0, 0, 0.02);
  font-size: 0.875rem;
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  margin: 1.5rem 0;
}

.md-typeset table:not([class]) th {
  background: linear-gradient(180deg, #fafbfc 0%, #f8fafc 100%);
  color: var(--slate-900);
  font-weight: 700;
  border-bottom: 2px solid var(--slate-200);
  letter-spacing: 0.01em;
  text-transform: none;
  font-size: 0.8125rem;
  padding: 0.875rem 1.25rem;
  text-align: left;
}

.md-typeset table:not([class]) tbody tr {
  transition: all 0.15s ease;
}

.md-typeset table:not([class]) tbody tr:hover {
  background: linear-gradient(90deg, rgba(248, 250, 252, 0.8) 0%, rgba(255, 255, 255, 0.9) 100%);
}

.md-typeset table:not([class]) td {
  border-bottom: 1px solid rgba(226, 232, 240, 0.6);
  padding: 0.875rem 1.25rem;
  color: var(--slate-900);
}

.md-typeset table:not([class]) tbody tr:last-child td {
  border-bottom: none;
}

/* Code - Professional and uniform */
.md-typeset code {
  background: #f1f5f9;  /* slate-100 */
  border: 1px solid #e2e8f0;  /* slate-200 */
  border-radius: 0.375rem;
  padding: 0.125rem 0.375rem;
  color: #dc2626;  /* red-600 for inline code */
  font-size: 0.875em;
  font-weight: 500;
  font-family: 'JetBrains Mono', 'Fira Code', 'Consolas', 'Monaco', monospace;
}

.md-typeset pre {
  border-radius: 0.5rem;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  border: 1px solid #334155;  /* slate-700 */
  background: #1e293b;  /* slate-800 */
  padding: 0;
  margin: 1.5em 0;
}

.md-typeset pre > code {
  background: #1e293b;  /* slate-800 */
  color: #e2e8f0;  /* slate-200 */
  border: none;
  font-weight: 400;
  font-size: 0.875rem;
  line-height: 1.7;
  font-family: 'JetBrains Mono', 'Fira Code', 'Consolas', 'Monaco', monospace;
  display: block;
  padding: 1rem 1.25rem;
  overflow-x: auto;
}

/* Syntax highlighting improvements */
.md-typeset .highlight {
  background: #1e293b;
  border-radius: 0.5rem;
  margin: 1.5em 0;
}

.md-typeset .highlight pre {
  margin: 0;
  box-shadow: none;
  border: none;
}

/* Blockquotes - Professional */
.md-typeset blockquote {
  border-left: 4px solid var(--green-primary);
  background: linear-gradient(90deg, rgba(236, 253, 245, 0.3) 0%, transparent 100%);
  padding: 1.25rem 1.75rem;
  margin: 2rem 0;
  border-radius: 0 0.375rem 0.375rem 0;
  font-style: normal;
  color: var(--slate-700);
  box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.03);
  position: relative;
}

.md-typeset blockquote::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 4px;
  background: linear-gradient(180deg, var(--green-primary) 0%, var(--green-light) 100%);
}

/* Typography - Professional scale and hierarchy */
.md-typeset h1 {
  background: linear-gradient(135deg, #047857 0%, #059669 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin: 0 0 1.75rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  font-size: 2.5rem;
  line-height: 1.2;
  border-bottom: 2px solid var(--slate-200);
  padding-bottom: 1rem;
  position: relative;
}

.md-typeset h1::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 60px;
  height: 2px;
  background: linear-gradient(90deg, var(--green-primary), transparent);
}

.md-typeset h2 {
  color: var(--slate-900);
  margin: 3rem 0 1.25rem;
  font-weight: 700;
  letter-spacing: -0.025em;
  font-size: 2rem;
  line-height: 1.3;
  border-bottom: 1px solid var(--slate-200);
  padding-bottom: 0.625rem;
}

.md-typeset h3 {
  color: var(--green-darker);
  font-weight: 700;
  font-size: 1.5rem;
  line-height: 1.4;
  margin: 2.25rem 0 0.875rem;
  letter-spacing: -0.015em;
}

.md-typeset h4 {
  color: var(--slate-700);
  font-weight: 600;
  font-size: 1.125rem;
  line-height: 1.5;
  margin: 1.75rem 0 0.625rem;
  letter-spacing: -0.01em;
}

.md-typeset h5 {
  color: var(--slate-700);
  font-weight: 600;
  font-size: 1rem;
  line-height: 1.6;
  margin: 1.5rem 0 0.5rem;
}

.md-typeset h6 {
  color: var(--slate-600);
  font-weight: 600;
  font-size: 0.875rem;
  line-height: 1.6;
  margin: 1.5rem 0 0.5rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* Tags/Badges - Match frontend Beta badge */
.md-tag {
  background: #d1fae5;  /* emerald-100 */
  color: #047857;       /* emerald-700 */
  border: none;
  font-weight: 700;
  font-size: 0.75rem;
  border-radius: 0.25rem;
  padding: 0.25em 0.75em;
  box-shadow: none;
}

/* Tabbed content */
.md-typeset .tabbed-set>input:checked+label {
  border-bottom: 2px solid var(--green-primary);
  color: var(--green-darker);
  font-weight: 700;
}

.md-typeset .tabbed-set>label {
  color: var(--slate-600);
  font-weight: 500;
}

.md-typeset .tabbed-set>label:hover {
  color: var(--green-dark);
}

/* Scroll to top button */
.md-top {
  background: var(--green-primary);
  box-shadow: 0 4px 6px -1px rgba(16, 185, 129, 0.3);
}

.md-top:hover {
  background: var(--green-dark);
  box-shadow: 0 10px 15px -3px rgba(16, 185, 129, 0.4);
  transform: scale(1.05);
}

/* Content area - Professional spacing and typography */
.md-content {
  font-size: 1rem;
  line-height: 1.75;
  color: var(--slate-900);
  max-width: none;
}

.md-content__inner {
  padding: 3rem 3.5rem;
  max-width: none;
}

/* Increase overall container width */
.md-grid {
  max-width: 95%;
  margin: 0 auto;
}

/* Make main content area wider */
.md-main__inner {
  margin: 0;
  max-width: none;
}

.md-container {
  max-width: none;
}

@media screen and (max-width: 76.1875em) {
  .md-content__inner {
    padding: 2.5rem 2rem;
  }
}

@media screen and (max-width: 44.9375em) {
  .md-content__inner {
    padding: 1.5rem 1rem;
  }
}

/* Smooth transitions */
.md-nav__link,
.md-typeset a,
.md-button,
.md-tabs__link,
.md-top {
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Scrollbars - Match frontend minimal style */
.md-sidebar__scrollwrap::-webkit-scrollbar {
  width: 4px;
}

.md-sidebar__scrollwrap::-webkit-scrollbar-track {
  background: transparent;
}

.md-sidebar__scrollwrap::-webkit-scrollbar-thumb {
  background: var(--green-bg-light);
  border-radius: 2px;
}

.md-sidebar__scrollwrap::-webkit-scrollbar-thumb:hover {
  background: var(--green-light);
}

/* Main scrollbar */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

::-webkit-scrollbar-track {
  background: var(--slate-50);
}

::-webkit-scrollbar-thumb {
  background: var(--green-bg-light);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--green-light);
}

/* TOC sidebar */
.md-sidebar--secondary {
  border-left: 1px solid var(--slate-200);
}

.md-nav--secondary .md-nav__title {
  color: var(--green-darker);
  font-weight: 700;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.md-nav--secondary .md-nav__link {
  color: var(--slate-600);
  font-size: 0.875rem;
  padding: 0.375rem 1rem;
}

.md-nav--secondary .md-nav__link--active {
  color: var(--green-dark);
  font-weight: 600;
  border-left-color: var(--green-primary);
}

/* Content spacing - Professional readability */
.md-typeset p {
  margin: 1.25rem 0;
  max-width: 140ch;
}

.md-typeset ul,
.md-typeset ol {
  margin: 1.5rem 0;
  padding-left: 2rem;
}

.md-typeset li {
  margin: 0.625rem 0;
  line-height: 1.75;
}

.md-typeset li > p {
  margin: 0.5rem 0;
}

.md-typeset ul > li::marker {
  color: var(--green-primary);
  font-weight: 700;
}

.md-typeset ol > li::marker {
  color: var(--green-dark);
  font-weight: 600;
}

/* Strong and emphasis */
.md-typeset strong {
  font-weight: 600;
  color: var(--slate-900);
}

.md-typeset em {
  font-style: italic;
  color: var(--slate-700);
}

/* Horizontal rules */
.md-typeset hr {
  border: 0;
  border-top: 1px solid var(--slate-200);
  margin: 2.5rem 0;
  background: none;
}

/* Main gradient background - Match frontend */
.md-main {
  background: linear-gradient(to bottom right,
    var(--slate-50),
    white,
    rgba(236, 253, 245, 0.2)
  );
  padding-top: 2.5rem;
}

/* Hide dark mode toggle (match frontend) */
.md-header__option {
  display: none;
}

/* Logo styling - Match frontend gradient leaf (emerald-500 to green-600) */
.md-logo {
  display: flex;
  align-items: center;
  justify-content: center;
}

.md-logo svg,
.md-logo img {
  filter: brightness(0) saturate(100%) invert(52%) sepia(98%) saturate(1151%) hue-rotate(115deg) brightness(96%) contrast(89%);
  /* Creates emerald-500 (#10b981) color */
}

/* ============================================================================ */
/* CRITICAL FIX: Prevent active menu items from becoming invisible */
/* ============================================================================ */

/* Force active tabs to remain visible at all times */
.md-tabs__item--active .md-tabs__link,
.md-tabs__item .md-tabs__link[aria-current="page"],
.md-tabs__item .md-tabs__link.md-tabs__link--active {
  color: var(--green-darker) !important;
  font-weight: 600 !important;
  opacity: 1 !important;
  background: rgba(236, 253, 245, 0.5) !important;
}

/* Force active sidebar nav items to remain visible (left sidebar only) */
.md-sidebar--primary .md-nav__item--active > .md-nav__link,
.md-sidebar--primary .md-nav__link[aria-current="page"],
.md-sidebar--primary .md-nav__item .md-nav__link--active {
  color: var(--green-dark) !important;
  font-weight: 600 !important;
  background: linear-gradient(90deg, rgba(236, 253, 245, 0.8) 0%, rgba(236, 253, 245, 0.2) 100%) !important;
  border-left-color: var(--green-primary) !important;
}

/* Increase specificity for Material theme overrides (exclude right sidebar) */
html .md-sidebar--primary .md-nav__item--active > .md-nav__link[data-md-state="blur"],
html .md-tabs__item--active .md-tabs__link[data-md-state="blur"] {
  color: var(--green-dark) !important;
  opacity: 1 !important;
}
