/* Cloudera Documentation Theme */

:root {
  --md-primary-fg-color: #ffffff;
  --md-primary-fg-color--light: #f5f5f5;
  --md-primary-fg-color--dark: #e0e0e0;
  --md-primary-bg-color: #333333;
  --md-primary-bg-color--light: #666666;
  --md-accent-fg-color: #1E88A8;
  --md-accent-fg-color--transparent: rgba(30, 136, 168, 0.1);
  --md-typeset-a-color: #1E88A8;
  --md-default-fg-color: #333333;
}

/* ---- Header ---- */
.md-header {
  background-color: #ffffff;
  border-bottom: 1px solid #e0e0e0;
  box-shadow: none;
  color: #333333;
}

.md-header__topic {
  color: #333333;
  font-weight: 400;
}

.md-header__title {
  color: #333333;
  margin-left: 0.4rem;
  font-size: 0.75rem;
  font-weight: 400;
  letter-spacing: 0.02em;
}

/* Search bar in header */
.md-search__input {
  background-color: #f5f5f5;
  color: #333333;
}

.md-search__input::placeholder {
  color: #999999;
}

.md-search__icon {
  color: #666666;
}

.md-header .md-icon {
  color: #333333;
}

/* ---- Logo ---- */
.md-header__button.md-logo img,
.md-header__button.md-logo svg {
  height: 1.2rem;
  width: auto;
}

/* "Documentation" text next to logo */
.md-header__title .md-header__topic:first-child .md-ellipsis {
  font-weight: 300;
  font-size: 0.85rem;
  color: #666666;
}

/* ---- Left sidebar navigation ---- */
.md-sidebar {
  border-right: 1px solid #e8e8e8;
}

.md-nav__link {
  color: #333333;
  font-size: 0.78rem;
}

.md-nav__link:hover {
  color: #1E88A8;
}

.md-nav__link--active {
  color: #1E88A8 !important;
  font-weight: 600;
}

.md-nav__item--nested > .md-nav__link {
  font-weight: 600;
  color: #333333;
  text-transform: uppercase;
  font-size: 0.72rem;
  letter-spacing: 0.04em;
}

/* ---- Content area ---- */
.md-typeset {
  font-size: 0.82rem;
  line-height: 1.7;
  color: #333333;
}

.md-typeset h1 {
  color: #1a1a1a;
  font-weight: 400;
  font-size: 1.6rem;
  border-bottom: 1px solid #e0e0e0;
  padding-bottom: 0.4rem;
}

.md-typeset h2 {
  color: #1a1a1a;
  font-weight: 400;
  font-size: 1.25rem;
}

.md-typeset h3 {
  color: #333333;
  font-weight: 600;
  font-size: 1rem;
}

/* Links */
.md-typeset a {
  color: #1E88A8;
  text-decoration: none;
}

.md-typeset a:hover {
  color: #166d88;
  text-decoration: underline;
}

/* ---- Breadcrumb-like path (using navigation path feature) ---- */
.md-path {
  font-size: 0.75rem;
  color: #666666;
}

/* ---- Tables ---- */
.md-typeset table:not([class]) {
  border: 1px solid #e0e0e0;
  font-size: 0.8rem;
}

.md-typeset table:not([class]) th {
  background-color: #f5f5f5;
  color: #333333;
  font-weight: 600;
}

/* ---- Code blocks ---- */
.md-typeset code {
  background-color: #f5f5f5;
  color: #333333;
  border: 1px solid #e0e0e0;
  border-radius: 3px;
  font-size: 0.82em;
}

.md-typeset pre > code {
  border: none;
}

/* ---- Admonitions ---- */
.md-typeset .admonition,
.md-typeset details {
  border-left: 4px solid #1E88A8;
  box-shadow: none;
  border-radius: 0;
}

/* ---- Right sidebar (TOC) ---- */
.md-sidebar--secondary .md-nav__link {
  font-size: 0.72rem;
  color: #666666;
}

.md-sidebar--secondary .md-nav__link--active {
  color: #1E88A8 !important;
}

/* ---- Footer ---- */
.md-footer {
  background-color: #f5f5f5;
  color: #666666;
  border-top: 1px solid #e0e0e0;
}

.md-footer-meta {
  background-color: #f5f5f5;
}

/* ---- Tabs bar (if used) ---- */
.md-tabs {
  background-color: #fafafa;
  border-bottom: 1px solid #e0e0e0;
}

.md-tabs__link {
  color: #666666;
  font-size: 0.78rem;
}

.md-tabs__link--active,
.md-tabs__link:hover {
  color: #1E88A8;
}