/* 2getHR brand colors */
:root {
  --md-primary-fg-color: #ffce00;
  --md-primary-fg-color--light: #ffe066;
  --md-primary-fg-color--dark: #e6b800;
  --md-primary-bg-color: #000000;
  --md-primary-bg-color--light: #333333;
}

/* Ensure header text is readable on yellow background */
.md-header {
  background-color: var(--md-primary-fg-color);
  color: #000000;
}

.md-header__title {
  color: #000000;
}

.md-header .md-header__button {
  color: #000000;
}

/* Match the floating back-to-top control to the yellow-and-black header. */
.md-top {
  background-color: var(--md-primary-fg-color);
  color: #000000;
}

.md-top:hover,
.md-top:focus {
  background-color: var(--md-primary-fg-color--dark);
  color: #000000;
}

.md-top:focus-visible {
  outline: 2px solid #000000;
  outline-offset: 2px;
}

/* Navigation tabs */
.md-tabs {
  background-color: var(--md-primary-fg-color--dark);
  color: #000000;
}

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

/* Screenshot images - responsive and contained */
.md-content img {
  max-width: 100%;
  height: auto;
  border: 1px solid #e0e0e0;
  border-radius: 4px;
  margin: 1em 0;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.md-content .screenshot-trigger {
  display: inline-block;
  max-width: 100%;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: zoom-in;
}

.md-content .screenshot-trigger:focus-visible {
  outline: 2px solid #173b7a;
  outline-offset: 2px;
}

.screenshot-dialog {
  width: fit-content;
  max-width: 96vw;
  max-height: 96vh;
  padding: 0;
  border: 0;
  border-radius: 4px;
  background: #ffffff;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.45);
}

.screenshot-dialog::backdrop {
  background: rgba(0, 0, 0, 0.82);
}

.screenshot-dialog__image {
  display: block;
  width: auto;
  max-width: 96vw;
  max-height: calc(96vh - 5rem);
  object-fit: contain;
  cursor: zoom-out;
}

.screenshot-dialog__caption {
  margin: 0;
  padding: 0.5rem 1rem;
  color: #000000;
  font-size: 0.8rem;
  text-align: center;
  overflow-wrap: anywhere;
}

.screenshot-dialog__close {
  position: absolute;
  top: 0.5rem;
  right: 0.5rem;
  z-index: 1;
  width: 2rem;
  height: 2rem;
  border: 0;
  border-radius: 50%;
  background: var(--md-primary-fg-color);
  color: #000000;
  cursor: pointer;
  font-size: 1.5rem;
  line-height: 1;
}

.screenshot-dialog__close:hover,
.screenshot-dialog__close:focus {
  background: var(--md-primary-fg-color--dark);
}

.screenshot-dialog__close:focus-visible {
  outline: 2px solid #000000;
  outline-offset: 2px;
}

/* Better table styling */
.md-typeset table:not([class]) {
  font-size: 0.85rem;
}

/* Fix any horizontal scrollbar issues */
.md-content {
  overflow-x: hidden;
}

/* Use dark link colors in the content and sidebars, not the yellow header color. */
.md-main {
  --md-typeset-a-color: #234b99;
  --md-accent-fg-color: #173b7a;
}

/* Keep inline links identifiable without color alone. */
.md-content .md-typeset a:not(.headerlink) {
  color: #234b99;
  text-decoration: underline;
  text-decoration-thickness: 0.06em;
  text-underline-offset: 0.12em;
}

.md-content .md-typeset a:not(.headerlink):hover,
.md-content .md-typeset a:not(.headerlink):focus-visible {
  color: #173b7a;
  text-decoration-thickness: 0.12em;
}

.md-content .md-typeset a:not(.headerlink):focus-visible {
  outline: 2px solid #173b7a;
  outline-offset: 2px;
  border-radius: 2px;
}

.app-page-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
  margin: 0.5rem 0 1rem;
}

.app-page-links a {
  display: inline-block;
}
