/* =========================================
   CLI Pal Documentation - Custom Theme
   Matching the main website aesthetics
   ========================================= */

/* === Font Import === */
@import url("https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&family=JetBrains+Mono:wght@400;500;700&display=swap");

/* === CSS Variables - Brand Colors === */
:root,
[data-md-color-scheme="slate"] {
  /* Core brand colors from main site */
  --brand-50: #f0fdfa;
  --brand-100: #ccfbf1;
  --brand-200: #99f6e4;
  --brand-300: #5eead4;
  --brand-400: #2dd4bf;
  --brand-500: #14b8a6;
  --brand-600: #0d9488;
  --brand-700: #0f766e;
  --brand-800: #115e59;
  --brand-900: #134e4a;
  --brand-950: #042f2e;

  /* Background layers */
  --bg-deepest: #030712;
  --bg-dark: #0b0d13;
  --bg-surface: #0f1117;
  --bg-card: #151823;
  --bg-elevated: #1e2231;

  /* Accent colors */
  --accent-indigo: #818cf8;
  --accent-purple: #a78bfa;
  --accent-pink: #f472b6;
  --accent-orange: #fb923c;
  --accent-emerald: #34d399;

  /* Text colors */
  --text-primary: #f9fafb;
  --text-secondary: #e5e7eb;
  --text-muted: #9ca3af;
  --text-subtle: #6b7280;

  /* Borders and glass */
  --border-subtle: rgba(255, 255, 255, 0.05);
  --border-default: rgba(255, 255, 255, 0.08);
  --border-strong: rgba(255, 255, 255, 0.12);
  --glass-bg: rgba(255, 255, 255, 0.03);
  --glass-blur: blur(12px);

  /* Material overrides */
  --md-default-bg-color: var(--bg-dark);
  --md-default-fg-color: var(--text-secondary);
  --md-default-fg-color--light: var(--text-muted);
  --md-default-fg-color--lighter: var(--text-subtle);
  --md-default-fg-color--lightest: rgba(255, 255, 255, 0.12);

  --md-primary-fg-color: var(--brand-500);
  --md-primary-fg-color--light: var(--brand-400);
  --md-primary-fg-color--dark: var(--brand-600);
  --md-primary-bg-color: var(--text-primary);
  --md-primary-bg-color--light: var(--text-secondary);

  --md-accent-fg-color: var(--accent-indigo);
  --md-accent-fg-color--transparent: rgba(99, 102, 241, 0.1);
  --md-accent-bg-color: var(--bg-surface);

  --md-typeset-a-color: var(--brand-400);
  --md-typeset-mark-color: rgba(20, 184, 166, 0.2);

  --md-code-fg-color: #7dd3fc;
  --md-code-bg-color: #0a0f1a;
  --md-code-hl-color: rgba(45, 212, 191, 0.1);

  --md-footer-bg-color: var(--bg-surface);
  --md-footer-bg-color--dark: var(--bg-dark);
  --md-footer-fg-color: var(--text-muted);
  --md-footer-fg-color--light: var(--text-subtle);
  --md-footer-fg-color--lighter: rgba(255, 255, 255, 0.12);

  /* Font stacks */
  --md-text-font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --md-code-font: "JetBrains Mono", "Fira Code", SFMono-Regular, Consolas, monospace;
}

/* === Base Document Styles === */
html {
  scroll-behavior: smooth;
}

body {
  background: var(--bg-dark);
  min-height: 100vh;
}

/* Animated gradient background - matching main site */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 50% at 20% 10%, rgba(20, 184, 166, 0.12), transparent 50%),
    radial-gradient(ellipse 60% 40% at 80% 20%, rgba(99, 102, 241, 0.1), transparent 45%),
    radial-gradient(ellipse 50% 30% at 50% 80%, rgba(168, 85, 247, 0.06), transparent 40%);
  pointer-events: none;
  z-index: -1;
}

/* === Header Styles === */
.md-header {
  background: linear-gradient(135deg, 
    rgba(15, 23, 42, 0.95) 0%, 
    rgba(11, 15, 26, 0.95) 60%, 
    rgba(17, 94, 89, 0.4) 100%
  );
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border-bottom: 1px solid var(--border-default);
  box-shadow: 
    0 4px 30px rgba(0, 0, 0, 0.3),
    0 1px 3px rgba(0, 0, 0, 0.2);
}

.md-header__title {
  font-weight: 700;
  letter-spacing: -0.02em;
}

.md-header__button.md-logo {
  padding: 0.4rem;
}

.md-header__button.md-logo img,
.md-header__button.md-logo svg {
  height: 1.8rem;
  width: auto;
}

/* Search bar styling */
.md-search__form {
  background: var(--glass-bg);
  border: 1px solid var(--border-default);
  border-radius: 12px;
  transition: all 0.3s ease;
}

.md-search__form:hover,
.md-search__form:focus-within {
  background: rgba(255, 255, 255, 0.05);
  border-color: var(--brand-500);
  box-shadow: 0 0 20px rgba(20, 184, 166, 0.15);
}

.md-search__input {
  font-size: 0.85rem;
}

.md-search__input::placeholder {
  color: var(--text-subtle);
}

/* === Navigation Tabs === */
.md-tabs {
  background: linear-gradient(180deg, 
    rgba(15, 23, 42, 0.8) 0%, 
    rgba(11, 15, 26, 0.9) 100%
  );
  backdrop-filter: var(--glass-blur);
  border-bottom: 1px solid var(--border-subtle);
}

.md-tabs__link {
  font-weight: 500;
  font-size: 0.8rem;
  opacity: 0.7;
  transition: all 0.2s ease;
}

.md-tabs__link:hover,
.md-tabs__link--active {
  opacity: 1;
  color: var(--brand-400);
}

/* === Sidebar Navigation === */
.md-sidebar {
  scrollbar-width: thin;
  scrollbar-color: var(--border-strong) transparent;
}

.md-sidebar__scrollwrap::-webkit-scrollbar {
  width: 4px;
}

.md-sidebar__scrollwrap::-webkit-scrollbar-thumb {
  background: var(--border-strong);
  border-radius: 4px;
}

.md-nav__title {
  font-weight: 700;
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-subtle);
  padding: 0.5rem 0.5rem 0.3rem;
}

.md-nav__item {
  padding: 0;
}

.md-nav__link {
  font-weight: 500;
  font-size: 0.78rem;
  padding: 0.35rem 0.6rem;
  margin: 0.05rem 0;
  border-radius: 6px;
  transition: all 0.2s ease;
}

.md-nav__link:hover {
  background: var(--glass-bg);
  color: var(--brand-400);
}

.md-nav__link--active,
.md-nav__item--active > .md-nav__link {
  color: var(--brand-400);
  background: rgba(20, 184, 166, 0.08);
  font-weight: 600;
}

.md-nav__link--active::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 3px;
  height: 60%;
  background: linear-gradient(180deg, var(--brand-400), var(--accent-indigo));
  border-radius: 0 2px 2px 0;
}

/* === Main Content Area === */
.md-main {
  background: transparent;
}

.md-main__inner {
  padding-top: 1.5rem;
  max-width: 1400px;
}

.md-content {
  background: linear-gradient(145deg, 
    rgba(20, 184, 166, 0.04) 0%, 
    rgba(99, 102, 241, 0.03) 50%,
    rgba(168, 85, 247, 0.02) 100%
  );
  border: 1px solid var(--border-default);
  border-radius: 14px;
  box-shadow: 
    0 15px 50px rgba(0, 0, 0, 0.3),
    0 5px 20px rgba(0, 0, 0, 0.15),
    inset 0 1px 0 rgba(255, 255, 255, 0.03);
  padding: 1rem;
  margin: 0 0.5rem 1.5rem;
}

.md-content__inner {
  margin: 0;
  padding: 0.5rem;
}

/* Article card styling */
.md-content article {
  background: var(--bg-card);
  border-radius: 12px;
  padding: 1.25rem 1.5rem;
  border: 1px solid var(--border-subtle);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.02);
}

/* === Typography === */
.md-typeset {
  font-size: 0.8rem;
  line-height: 1.65;
}

.md-typeset h1 {
  font-weight: 800;
  font-size: 1.75rem;
  letter-spacing: -0.03em;
  color: var(--text-primary);
  margin-bottom: 1rem;
  background: linear-gradient(135deg, var(--brand-300) 0%, var(--accent-indigo) 50%, var(--accent-pink) 100%);
  background-size: 200% 200%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: gradient-shift 6s ease infinite;
}

@keyframes gradient-shift {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}

.md-typeset h2 {
  font-weight: 700;
  font-size: 1.2rem;
  letter-spacing: -0.02em;
  color: var(--text-primary);
  margin-top: 1.75rem;
  margin-bottom: 0.75rem;
  padding-bottom: 0.4rem;
  border-bottom: 1px solid var(--border-subtle);
}

.md-typeset h3 {
  font-weight: 600;
  font-size: 1rem;
  letter-spacing: -0.01em;
  color: var(--text-secondary);
  margin-top: 1.5rem;
}

.md-typeset h4,
.md-typeset h5,
.md-typeset h6 {
  font-weight: 600;
  color: var(--text-secondary);
}

.md-typeset p {
  color: var(--text-muted);
  margin-bottom: 1.2rem;
}

.md-typeset strong {
  color: var(--text-secondary);
  font-weight: 600;
}

/* Links */
.md-typeset a {
  color: var(--brand-400);
  text-decoration: none;
  font-weight: 500;
  transition: all 0.2s ease;
  border-bottom: 1px solid transparent;
}

.md-typeset a:hover {
  color: var(--brand-300);
  border-bottom-color: var(--brand-400);
}

/* === Lists === */
.md-typeset ul,
.md-typeset ol {
  margin-left: 0.5rem;
}

.md-typeset li {
  margin-bottom: 0.5rem;
}

.md-typeset ul li::marker {
  color: var(--brand-500);
}

.md-typeset ol li::marker {
  color: var(--brand-400);
  font-weight: 600;
}

/* === Code Styling === */
.md-typeset code {
  background: rgba(10, 15, 30, 0.8);
  color: #7dd3fc;
  border-radius: 6px;
  padding: 0.2em 0.5em;
  font-size: 0.85em;
  border: 1px solid rgba(125, 211, 252, 0.15);
  font-weight: 500;
}

.md-typeset pre {
  position: relative;
  margin: 1.5rem 0;
}

.md-typeset pre > code {
  background: linear-gradient(135deg, 
    rgba(10, 15, 26, 0.95) 0%, 
    rgba(15, 23, 42, 0.9) 100%
  );
  border: 1px solid var(--border-default);
  border-radius: 10px;
  padding: 0.9rem 1.1rem;
  font-size: 0.75rem;
  line-height: 1.6;
  box-shadow: 
    0 10px 30px rgba(0, 0, 0, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.03);
}

/* Code block header bar effect */
.md-typeset pre > code::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2.5rem;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.03) 0%, transparent 100%);
  border-radius: 14px 14px 0 0;
  pointer-events: none;
}

/* Code copy button */
.md-clipboard {
  color: var(--text-subtle);
  transition: all 0.2s ease;
}

.md-clipboard:hover {
  color: var(--brand-400);
}

/* Syntax highlighting adjustments */
.highlight .hll { background: rgba(45, 212, 191, 0.1); }
.highlight .c, .highlight .c1, .highlight .cm { color: #6b7280; font-style: italic; }
.highlight .k, .highlight .kd, .highlight .kn { color: #c084fc; }
.highlight .s, .highlight .s1, .highlight .s2 { color: #86efac; }
.highlight .n, .highlight .nf { color: #93c5fd; }
.highlight .nb { color: #fcd34d; }
.highlight .o { color: #f472b6; }
.highlight .mi, .highlight .mf { color: #fb923c; }

/* === Buttons === */
.md-typeset .md-button {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.5rem 1.2rem;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.8rem;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  text-transform: none;
  letter-spacing: 0;
}

.md-typeset .md-button--primary {
  background: linear-gradient(135deg, var(--brand-500) 0%, var(--accent-indigo) 100%);
  color: white !important;
  border: none;
  box-shadow: 
    0 10px 40px rgba(20, 184, 166, 0.3),
    0 4px 15px rgba(20, 184, 166, 0.2);
}

.md-typeset .md-button--primary:hover {
  transform: translateY(-3px);
  box-shadow: 
    0 15px 50px rgba(20, 184, 166, 0.4),
    0 8px 25px rgba(20, 184, 166, 0.3);
}

.md-typeset .md-button--secondary,
.md-typeset .md-button:not(.md-button--primary) {
  background: var(--glass-bg);
  color: var(--text-secondary) !important;
  border: 1px solid var(--border-default);
  backdrop-filter: var(--glass-blur);
}

.md-typeset .md-button--secondary:hover,
.md-typeset .md-button:not(.md-button--primary):hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: var(--brand-500);
  transform: translateY(-2px);
}

/* === Admonitions === */
.md-typeset .admonition,
.md-typeset details {
  background: var(--bg-elevated);
  border: 1px solid var(--border-default);
  border-radius: 10px;
  box-shadow: 
    0 8px 25px rgba(0, 0, 0, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.03);
  overflow: hidden;
  margin: 1rem 0;
  font-size: 0.8rem;
}

.md-typeset .admonition-title,
.md-typeset details summary {
  background: linear-gradient(90deg, rgba(20, 184, 166, 0.1) 0%, transparent 100%);
  font-weight: 600;
  padding: 0.6rem 1rem;
  font-size: 0.8rem;
  border-bottom: 1px solid var(--border-subtle);
}

/* Admonition types */
.md-typeset .admonition.note {
  border-left: 3px solid var(--accent-indigo);
}
.md-typeset .admonition.note .admonition-title {
  background: linear-gradient(90deg, rgba(99, 102, 241, 0.15) 0%, transparent 100%);
}

.md-typeset .admonition.tip,
.md-typeset .admonition.hint {
  border-left: 3px solid var(--brand-500);
}
.md-typeset .admonition.tip .admonition-title,
.md-typeset .admonition.hint .admonition-title {
  background: linear-gradient(90deg, rgba(20, 184, 166, 0.15) 0%, transparent 100%);
}

.md-typeset .admonition.warning,
.md-typeset .admonition.caution {
  border-left: 3px solid var(--accent-orange);
}
.md-typeset .admonition.warning .admonition-title,
.md-typeset .admonition.caution .admonition-title {
  background: linear-gradient(90deg, rgba(251, 146, 60, 0.15) 0%, transparent 100%);
}

.md-typeset .admonition.danger,
.md-typeset .admonition.error {
  border-left: 3px solid #f87171;
}
.md-typeset .admonition.danger .admonition-title,
.md-typeset .admonition.error .admonition-title {
  background: linear-gradient(90deg, rgba(248, 113, 113, 0.15) 0%, transparent 100%);
}

.md-typeset .admonition.success,
.md-typeset .admonition.check {
  border-left: 3px solid var(--accent-emerald);
}
.md-typeset .admonition.success .admonition-title,
.md-typeset .admonition.check .admonition-title {
  background: linear-gradient(90deg, rgba(52, 211, 153, 0.15) 0%, transparent 100%);
}

/* === Blockquotes === */
.md-typeset blockquote {
  background: linear-gradient(135deg, rgba(20, 184, 166, 0.05) 0%, rgba(99, 102, 241, 0.03) 100%);
  border-left: 3px solid var(--brand-500);
  border-radius: 0 8px 8px 0;
  padding: 0.75rem 1rem;
  margin: 1rem 0;
  color: var(--text-muted);
  font-style: italic;
  font-size: 0.8rem;
}

.md-typeset blockquote p {
  margin-bottom: 0;
}

/* === Tables === */
.md-typeset table:not([class]) {
  background: var(--bg-card);
  border: 1px solid var(--border-default);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
  margin: 1rem 0;
  font-size: 0.8rem;
}

.md-typeset table:not([class]) th {
  background: linear-gradient(135deg, rgba(20, 184, 166, 0.1) 0%, rgba(99, 102, 241, 0.08) 100%);
  font-weight: 600;
  color: var(--text-secondary);
  padding: 0.65rem 0.9rem;
  border-bottom: 1px solid var(--border-default);
}

.md-typeset table:not([class]) td {
  padding: 0.6rem 0.9rem;
  border-bottom: 1px solid var(--border-subtle);
}

.md-typeset table:not([class]) tr:last-child td {
  border-bottom: none;
}

.md-typeset table:not([class]) tr:hover td {
  background: rgba(255, 255, 255, 0.02);
}

/* === Footer === */
.md-footer {
  background: linear-gradient(180deg, var(--bg-surface) 0%, var(--bg-dark) 100%);
  border-top: 1px solid var(--border-default);
}

.md-footer-nav__link {
  transition: all 0.2s ease;
}

.md-footer-nav__link:hover {
  opacity: 1;
}

.md-footer-meta {
  background: transparent;
}

/* === TOC (Table of Contents) === */
.md-nav--secondary .md-nav__title {
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-subtle);
}

.md-nav--secondary .md-nav__link {
  font-size: 0.8rem;
  padding: 0.35rem 0.6rem;
}

/* === Scrollbar === */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

::-webkit-scrollbar-track {
  background: transparent;
}

::-webkit-scrollbar-thumb {
  background: var(--border-strong);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--brand-600);
}

/* === Tabs === */
.md-typeset .tabbed-set {
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--border-default);
  margin: 1.5rem 0;
}

.md-typeset .tabbed-labels {
  background: var(--bg-elevated);
  border-bottom: 1px solid var(--border-subtle);
}

.md-typeset .tabbed-labels > label {
  font-weight: 500;
  font-size: 0.85rem;
  padding: 0.8rem 1.2rem;
  opacity: 0.7;
  transition: all 0.2s ease;
}

.md-typeset .tabbed-labels > label:hover {
  opacity: 1;
  background: rgba(255, 255, 255, 0.03);
}

.md-typeset .tabbed-set > input:checked + label {
  opacity: 1;
  color: var(--brand-400);
  border-bottom-color: var(--brand-500);
}

.md-typeset .tabbed-content {
  background: var(--bg-card);
  padding: 1.2rem;
}

/* === Selection === */
::selection {
  background: rgba(20, 184, 166, 0.3);
  color: var(--brand-100);
}

/* === Animation utilities === */
@keyframes fade-in {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

.md-content {
  animation: fade-in 0.4s ease-out;
}

/* === Search results === */
.md-search-result {
  background: var(--bg-card);
  border-radius: 10px;
  margin-bottom: 0.5rem;
  border: 1px solid var(--border-subtle);
}

.md-search-result__link {
  padding: 1rem;
}

.md-search-result__link:hover {
  background: rgba(255, 255, 255, 0.03);
}

.md-search-result__meta {
  background: var(--bg-elevated);
  color: var(--text-muted);
}

.md-search-result mark {
  background: rgba(20, 184, 166, 0.3);
  color: inherit;
}

/* === Print Styles === */
@media print {
  body::before {
    display: none;
  }
  
  .md-content {
    background: white;
    box-shadow: none;
    border: none;
  }
  
  .md-typeset h1 {
    background: none;
    -webkit-text-fill-color: initial;
    color: #0d9488;
  }
}

/* === Responsive adjustments === */
@media screen and (max-width: 76.25em) {
  .md-content {
    margin: 0 0.25rem 1rem;
    padding: 0.75rem;
    border-radius: 12px;
  }
  
  .md-content article {
    padding: 1rem;
  }
}

@media screen and (max-width: 60em) {
  .md-typeset h1 {
    font-size: 1.5rem;
  }
  
  .md-typeset h2 {
    font-size: 1.1rem;
  }
  
  .grid.cards {
    grid-template-columns: 1fr;
  }
}

/* === Hero Banner === */
.hero-banner {
  background: linear-gradient(135deg, 
    rgba(20, 184, 166, 0.15) 0%, 
    rgba(99, 102, 241, 0.12) 50%,
    rgba(168, 85, 247, 0.08) 100%
  );
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  padding: 1.75rem 1.5rem;
  margin: 0.5rem 0 1.5rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.hero-banner::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, 
    transparent 0%, 
    rgba(45, 212, 191, 0.6) 25%,
    rgba(129, 140, 248, 0.6) 75%,
    transparent 100%
  );
}

.hero-banner::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, 
    transparent 0%, 
    rgba(168, 85, 247, 0.3) 50%,
    transparent 100%
  );
}

.hero-banner p {
  font-size: 0.85rem !important;
  color: var(--text-muted) !important;
  max-width: 600px;
  margin: 0 auto 1.25rem !important;
  line-height: 1.7 !important;
}

.hero-banner .md-button {
  margin: 0.3rem;
}

/* === Grid Cards === */
.grid.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 0.85rem;
  margin: 1rem 0;
}

.grid.cards > ul {
  display: contents;
  list-style: none;
  margin: 0;
  padding: 0;
}

.grid.cards > ul > li,
.grid.cards > * > li {
  background: linear-gradient(145deg, 
    rgba(21, 24, 35, 0.95), 
    rgba(30, 34, 49, 0.85)
  );
  border: 1px solid var(--border-default);
  border-radius: 10px;
  padding: 1rem;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
  list-style: none;
}

.grid.cards > ul > li::before,
.grid.cards > * > li::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, 
    rgba(20, 184, 166, 0.1), 
    transparent 60%
  );
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
}

.grid.cards > ul > li:hover,
.grid.cards > * > li:hover {
  transform: translateY(-4px);
  border-color: rgba(20, 184, 166, 0.35);
  box-shadow: 
    0 20px 50px rgba(0, 0, 0, 0.35),
    0 0 40px rgba(20, 184, 166, 0.12);
}

.grid.cards > ul > li:hover::before,
.grid.cards > * > li:hover::before {
  opacity: 1;
}

/* Card content styling */
.grid.cards p {
  margin-bottom: 0;
  font-size: 0.75rem;
}

.grid.cards hr {
  border: none;
  border-top: 1px solid var(--border-subtle);
  margin: 0.5rem 0;
}

.grid.cards a {
  font-weight: 600;
  display: block;
  margin-bottom: 0.35rem;
  font-size: 0.85rem;
}

/* Icon styling in cards */
.grid.cards .lg {
  font-size: 1.4rem;
  margin-bottom: 0.35rem;
  display: inline-block;
}

.grid.cards .middle {
  vertical-align: middle;
}

/* Card icon gradient colors */
.md-typeset .twemoji svg,
.md-typeset .emojione svg,
.md-typeset .material-icons {
  vertical-align: -0.15em;
}

/* Material icon colors */
:is(.material-view-dashboard-outline, .material-download, .material-checkbox-marked-circle-outline) {
  color: var(--brand-400) !important;
}

:is(.material-shield-lock-outline, .material-console, .material-numeric-1-circle, .material-numeric-2-circle, .material-numeric-3-circle) {
  color: var(--accent-indigo) !important;
}

:is(.material-robot-outline, .material-robot) {
  color: var(--accent-pink) !important;
}

:is(.material-database-cog-outline, .material-database-search, .material-database) {
  color: var(--accent-orange) !important;
}

:is(.material-gauge, .material-frequently-asked-questions, .material-checkbox-multiple-marked, .material-information-outline) {
  color: var(--accent-emerald) !important;
}

:is(.material-star-four-points, .material-account-group, .material-currency-usd, .material-cog-outline, .material-book-open-variant) {
  color: var(--brand-300) !important;
}

/* Task list checkboxes */
.md-typeset .task-list-item [type="checkbox"]:checked {
  background-color: var(--brand-500);
  border-color: var(--brand-500);
}

/* Horizontal rule styling */
.md-typeset hr {
  border: none;
  height: 1px;
  background: linear-gradient(90deg,
    transparent 0%,
    var(--border-default) 20%,
    var(--border-default) 80%,
    transparent 100%
  );
  margin: 2.5rem 0;
}

/* Checkmark icons in tables */
.md-typeset :is(.material-check) {
  color: var(--accent-emerald) !important;
}

/* Number badge styling */
.md-typeset h2 :is(.material-numeric-1-circle, .material-numeric-2-circle, .material-numeric-3-circle) {
  background: linear-gradient(135deg, var(--accent-indigo), var(--accent-purple));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

