/* Custom Cornerstone Network theme */

/* Header gradient from #0D1721 to #505964 */
.md-header {
  background: linear-gradient(to right, #0D1721, #505964) !important;
}

/* Navigation tabs background */
.md-tabs {
  background: linear-gradient(to right, #0D1721, #505964) !important;
}

/* Primary color for links and accents */
[data-md-color-primary="custom"] {
  --md-primary-fg-color: #0D1721;
  --md-primary-fg-color--light: #505964;
  --md-primary-fg-color--dark: #0D1721;
  --md-primary-bg-color: #ffffff;
  --md-primary-bg-color--light: #f5f5f5;
}

/* Ensure text is readable on dark header */
.md-header__title,
.md-header__topic,
.md-header .md-logo,
.md-tabs__link {
  color: #ffffff !important;
}

/* Search bar styling */
.md-search__input {
  background-color: rgba(255, 255, 255, 0.1);
}

.md-search__input::placeholder {
  color: rgba(255, 255, 255, 0.7);
}

/* Active tab indicator */
.md-tabs__link--active {
  border-bottom: 2px solid #ffffff;
}

/* ===== LIGHT MODE LINK STYLING ===== */

/* Content links in light mode - consistent blue */
[data-md-color-scheme="default"] .md-typeset a {
  color: #1a73e8;
}

[data-md-color-scheme="default"] .md-typeset a:hover {
  color: #1557b0;
}

/* Table links in light mode */
[data-md-color-scheme="default"] .md-typeset table a {
  color: #1a73e8;
}

[data-md-color-scheme="default"] .md-typeset table a:hover {
  color: #1557b0;
}

/* ===== DARK MODE (slate scheme) FIXES ===== */

/* Links in dark mode - make them lighter and more visible */
[data-md-color-scheme="slate"] a {
  color: #8ab4f8 !important;
}

[data-md-color-scheme="slate"] a:hover {
  color: #aecbfa !important;
}

/* Table links in dark mode */
[data-md-color-scheme="slate"] .md-typeset table a {
  color: #8ab4f8 !important;
}

[data-md-color-scheme="slate"] .md-typeset table a:hover {
  color: #aecbfa !important;
}

/* Navigation sidebar links in dark mode */
[data-md-color-scheme="slate"] .md-nav__link {
  color: rgba(255, 255, 255, 0.7) !important;
}

[data-md-color-scheme="slate"] .md-nav__link:hover,
[data-md-color-scheme="slate"] .md-nav__link--active {
  color: #ffffff !important;
}

/* Table of contents links in dark mode */
[data-md-color-scheme="slate"] .md-nav--secondary .md-nav__link {
  color: rgba(255, 255, 255, 0.7) !important;
}

[data-md-color-scheme="slate"] .md-nav--secondary .md-nav__link:hover,
[data-md-color-scheme="slate"] .md-nav--secondary .md-nav__link--active {
  color: #ffffff !important;
}

/* Content text in dark mode */
[data-md-color-scheme="slate"] .md-typeset {
  color: rgba(255, 255, 255, 0.9);
}

/* Table text in dark mode */
[data-md-color-scheme="slate"] .md-typeset table td,
[data-md-color-scheme="slate"] .md-typeset table th {
  color: rgba(255, 255, 255, 0.9);
}

/* Code blocks in dark mode */
[data-md-color-scheme="slate"] .md-typeset code {
  color: #e8eaed;
  background-color: rgba(255, 255, 255, 0.1);
}

/* Buttons in dark mode */
[data-md-color-scheme="slate"] .md-typeset .md-button {
  color: #ffffff !important;
  border-color: #8ab4f8;
}

[data-md-color-scheme="slate"] .md-typeset .md-button--primary {
  background-color: #505964;
  border-color: #505964;
}

[data-md-color-scheme="slate"] .md-typeset .md-button--primary:hover {
  background-color: #6b7680;
  border-color: #6b7680;
}
