:root {
  --md-primary-fg-color: #0D123F;
  --md-primary-fg-color--light: #1B7A9E;
  --md-primary-fg-color--dark: #0D123F;
  --md-accent-fg-color: #1B7A9E;
}

/* Links must read as links: text-safe teal + underline (the navy primary color made them look like body text) */
:root { --md-typeset-a-color: #1B7A9E; }
.md-typeset a, .md-typeset a:visited { color: #1B7A9E; }
.md-typeset a:hover { color: #0D123F; }
.md-typeset a { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 0.18em; }
.md-typeset a:hover { text-decoration-thickness: 2px; }
.md-typeset a.headerlink { text-decoration: none; }

/* Where am I: the current page in the left navigation and the current section in the right table of contents are
   highlighted (tinted background, teal bar, bold), not just colored. */
.md-nav__link--active,
.md-nav__item--active > .md-nav__link--active {
  color: #0D123F !important;
  font-weight: 700;
  background: #E3F1F6;
  border-left: 3px solid #1B7A9E;
  border-radius: 0 3px 3px 0;
  padding-left: 0.45rem;
  margin-left: -0.45rem;
}
.md-nav--secondary .md-nav__link--active { margin-left: -0.6rem; padding-left: 0.6rem; }

/* Group headings in the left navigation (Replication, Capture Agents, Options, ...) in the same dark color as the
   section title, not the theme's grey: a heading that is also a link would otherwise look different from one that
   isn't. */
.md-nav--primary .md-nav__item--section > .md-nav__link,
.md-nav--primary .md-nav__item--section > .md-nav__link a {
  color: var(--md-default-fg-color);
}

/* Body text at 16px on every screen. The theme scales all text up on wide screens (about 18px at 1600px, 19px
   above 2000px), which made pages look cramped. */
html { font-size: 125%; }

/* The selected tab is marked, not just a little brighter: bold, with an underline. Every tab keeps a transparent
   underline so the row doesn't shift. */
.md-tabs__link {
  border-bottom: 2px solid transparent;
  padding-bottom: 0.2rem;
}
.md-tabs__item--active .md-tabs__link {
  opacity: 1;
  font-weight: 700;
  border-bottom-color: currentColor;
}

/* Header logo: the Stelo wordmark is wide, so size it by height */
.md-header__button.md-logo img {
  height: 2rem;
  width: auto;
}
