:root {
  --md-text-font: "NVIDIA Sans", -apple-system, BlinkMacSystemFont, Segoe UI,
    Roboto, Helvetica Neue, Arial, sans-serif;
  --md-code-font: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, Courier,
    monospace;
}

.md-header,
.md-tabs {
  background-color: var(--md-header-bg-color);
  color: var(--md-header-color);
}

.md-tabs {
  border-bottom: var(--md-footer-border-bottom);
}

.md-header__title {
  font-weight: 600;
}

.md-nav__item {
  margin-top: 0.2rem;
}

.md-nav__link {
  color: var(--md-nav-color);
}

.md-nav__link:hover {
  color: var(--md-nav-color);
}

.md-typeset h1,
.md-typeset h2 {
  font-weight: 600;
  color: var(--md-default-fg-color);
}

.md-typeset a {
  color: var(--md-accent-fg-color);
  font-weight: bold;
  transition: color 0.2s;
}

.md-typeset a:hover {
  text-decoration: underline;
}

.md-typeset code {
  background-color: var(--md-code-bg-color);
  color: var(--md-code-fg-color);
  padding: 0.2em 0.4em;
  border-radius: 3px;
}

.md-typeset pre {
  background-color: var(--md-code-bg-color);
  border-radius: 6px;
  padding: 1em;
}

.md-footer {
  background-color: var(--md-footer-bg-color);
  color: var(--md-footer-fg-color);
}

/* Admonitions */
.md-typeset .admonition {
  border-left-width: 4px;
  border-radius: 4px;
}

.md-typeset .admonition-title {
  font-weight: 600;
}

.md-typeset .admonition.under-construction,
.md-typeset .admonition.to-do,
.md-typeset .admonition.new-item,
.md-typeset .admonition.time,
.md-typeset .admonition.oci-only,
.md-typeset .admonition.azure-only {
  border-left-width: 4px;
  border-radius: 4px;
}

.md-typeset .md-button {
  color: var(--md-accent-fg-color);
  border: 1px solid var(--md-accent-fg-color);
  border-radius: 4px;
  padding: 0.5em 1em;
  font-weight: 600;
  transition: background-color 0.2s, color 0.2s;
}

.md-typeset .md-button:hover {
  background-color: var(--md-accent-fg-color);
  color: var(--md-primary-bg-color);
}

/* Policies page: model cards with subtle light gradient */
.md-typeset .model-card {
  padding: 1.25rem 1.5rem;
  margin-bottom: 1.25rem;
  border-radius: 8px;
  border: 1px solid var(--md-default-fg-color--lightest);
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.95) 0%, rgba(248, 250, 252, 0.9) 100%);
}

[data-md-color-scheme="dark"] .md-typeset .model-card {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.04) 0%, rgba(255, 255, 255, 0.02) 100%);
}

.md-typeset .model-card:last-child {
  margin-bottom: 0;
}

.md-typeset .model-card__title {
  margin: 0;
  font-size: 1.25em;
  font-weight: 600;
}

.md-typeset .model-card__title a {
  color: #76b900;
}

.md-typeset .model-card__title a:hover {
  color: #5d9200;
}

.md-typeset .model-card .model-details-table {
  margin-top: 1rem;
  width: 100%;
}

/* Tables */
.md-typeset table {
  border-collapse: separate;
  border-spacing: 0;
  border: 1px solid var(--md-default-fg-color--lighter);
  border-radius: 4px;
  overflow: hidden;
}

.md-typeset table th {
  background-color: var(--md-default-fg-color--lightest);
  font-weight: 600;
}

.md-typeset table th,
.md-typeset table td {
  border: 1px solid var(--md-default-fg-color--lighter);
  padding: 0.75em 1em;
}

/* Images */
.md-typeset img {
  border: 1px solid var(--md-default-fg-color--lighter);
  border-radius: 4px;
}

.md-footer {
  border-top: var(--md-footer-border);
}

#logo_light_mode {
  display: var(--md-footer-logo-light-mode);
}

#logo_dark_mode {
  display: var(--md-footer-logo-dark-mode);
}

#logo_light_mode {
  display: var(--md-footer-logo-light-mode);
}

#logo_dark_mode {
  display: var(--md-footer-logo-dark-mode);
}

.md-header__button.md-logo svg {
  fill: var(--svg-color);
}

.md-copyright {
  color: var(--md-header-color);
}

.md-grid {
  max-width: 67rem;
}

.grid.cards ul li {
  border-radius: 10px !important;
}

.md-search__form:hover {
  background-color: var(--md-search-hover-color);
}

.md-search__icon svg {
  fill: #ffffff;
}

.md-typeset .grid.cards > ul > li:hover {
  border-color: var(--md-default-fg-color--lightest);
}

.md-typeset .grid {
  grid-template-columns: repeat(2, minmax(min(100%, 16rem), 1fr));
}

@media (max-width: 768px) {
  .md-typeset .grid {
    grid-template-columns: 1fr;
  }
}

/* Hide the left sidebar on larger screens, but keep it on mobile for the menu */
@media screen and (min-width: 76.25em) {
  .md-sidebar--primary {
    display: none;
  }
}

/* Version Selector Dropdown */
.version-selector {
  appearance: none;
  background-color: var(--md-default-bg-color);
  border: 1px solid var(--md-default-fg-color--lighter);
  border-radius: 4px;
  color: var(--md-default-fg-color);
  cursor: pointer;
  font-size: 0.8rem;
  padding: 0.25em 1.5em 0.25em 0.5em;
  font-family: var(--md-text-font);
  font-weight: 500;
  margin-left: 0.25em;
  vertical-align: baseline;
  transition: border-color 0.2s, background-color 0.2s;
  background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
  background-repeat: no-repeat;
  background-position: right 0.3em center;
  background-size: 0.9em;
}

.version-selector:hover {
  border-color: var(--md-accent-fg-color);
  background-color: var(--md-default-fg-color--lightest);
}

.version-selector:focus {
  outline: none;
  border-color: var(--md-accent-fg-color);
  box-shadow: 0 0 0 2px var(--md-accent-fg-color--transparent);
}

.version-selector option {
  background-color: var(--md-default-bg-color);
  color: var(--md-default-fg-color);
}

/* Run Locally Button */
.run-locally-button {
  display: inline-block;
  background-color: var(--md-accent-fg-color);
  color: white;
  border: none;
  border-radius: 4px;
  padding: 0.4em 0.9em;
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.2s, transform 0.1s;
  margin: 0;
  font-family: var(--md-text-font);
  text-decoration: none;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  float: right;
  clear: right;
}

.run-locally-button:hover {
  background-color: var(--md-primary-fg-color--dark);
  transform: translateY(-1px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

.run-locally-button:active {
  transform: translateY(0);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* Modal/Popup for Run Locally Command */
.run-locally-modal {
  display: none;
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(2px);
  animation: fadeIn 0.2s ease;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

.run-locally-modal-content {
  background-color: var(--md-default-bg-color);
  border: 1px solid var(--md-default-fg-color--lighter);
  border-radius: 8px;
  margin: 5vh auto;
  padding: 2em;
  width: 90%;
  max-width: 650px;
  max-height: 85vh;
  overflow-y: auto;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
  animation: slideDown 0.3s ease;
}

@keyframes slideDown {
  from {
    transform: translateY(-50px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

.run-locally-modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5em;
}

.run-locally-modal-header h3 {
  margin: 0;
  color: var(--md-default-fg-color);
  font-size: 1.3rem;
}

.run-locally-close {
  color: var(--md-default-fg-color--light);
  font-size: 2em;
  font-weight: 300;
  line-height: 0.8;
  cursor: pointer;
  transition: color 0.2s;
  border: none;
  background: none;
  padding: 0;
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.run-locally-close:hover,
.run-locally-close:focus {
  color: var(--md-accent-fg-color);
}

.run-locally-copy-all-btn {
  background-color: var(--md-accent-fg-color);
  color: white;
  border: none;
  border-radius: 4px;
  padding: 0.5em 1em;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.2s;
  font-family: var(--md-text-font);
  margin-bottom: 1em;
  display: block;
  width: 100%;
}

.run-locally-copy-all-btn:hover {
  background-color: var(--md-primary-fg-color--dark);
}

.run-locally-copy-all-btn.copied {
  background-color: #4caf50;
}

.run-locally-commands-section {
  margin-bottom: 1em;
}

.run-locally-command-container {
  background-color: var(--md-code-bg-color);
  border: 1px solid var(--md-default-fg-color--lighter);
  border-radius: 6px;
  padding: 1em;
  margin-bottom: 1em;
  position: relative;
}

.run-locally-command-container:last-child {
  margin-bottom: 0;
}

.run-locally-command-label {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--md-default-fg-color);
  margin-bottom: 0.5em;
  font-family: var(--md-text-font);
}

.run-locally-command {
  font-family: var(--md-code-font);
  font-size: 0.7rem;
  color: var(--md-code-fg-color);
  word-wrap: break-word;
  word-break: break-all;
  white-space: pre-wrap;
  margin: 0;
  padding-right: 3.5em;
  line-height: 1.5;
}

/* Larger screens: make font even smaller for better fit */
@media (min-width: 1024px) {
  .run-locally-command {
    font-size: 0.65rem;
  }
}

.copy-icon {
  width: 0.9em;
  height: 0.9em;
  margin-right: 0.3em;
  vertical-align: middle;
  display: inline-block;
}

.run-locally-copy-btn,
.run-locally-copy-all-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.3em;
}

.run-locally-copy-btn {
  position: absolute;
  top: 2.5em;
  right: 0.8em;
  background-color: var(--md-accent-fg-color);
  color: white;
  border: none;
  border-radius: 4px;
  padding: 0.35em 0.7em;
  font-size: 0.7rem;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.2s;
  font-family: var(--md-text-font);
}

.run-locally-copy-btn:hover {
  background-color: var(--md-primary-fg-color--dark);
}

.run-locally-copy-btn.copied {
  background-color: #4caf50;
}

.run-locally-description {
  color: var(--md-default-fg-color--light);
  font-size: 0.75rem;
  margin: 0;
  line-height: 1.5;
}

/* Modes section */
.run-locally-modes-section {
  margin-top: 2em;
  padding-top: 1.5em;
  border-top: 1px solid var(--md-default-fg-color--lightest);
}

.run-locally-modes-title {
  font-size: 1rem;
  font-weight: 600;
  color: var(--md-default-fg-color);
  margin: 0 0 0.5em 0;
  font-family: var(--md-text-font);
}

.run-locally-modes-section .run-locally-description {
  margin-bottom: 1em;
}

.run-locally-modes-list {
  display: flex;
  flex-direction: column;
  gap: 1em;
}

.run-locally-mode-description {
  color: var(--md-default-fg-color--light);
  font-size: 0.75rem;
  margin: 0 0 0.5em 0;
  line-height: 1.4;
  font-style: italic;
}

/* Mode copy button - position at bottom right instead of top right */
.run-locally-mode-copy-btn {
  top: auto;
  bottom: 0.8em;
}

/* Mobile responsiveness */
@media (max-width: 768px) {
  .run-locally-button {
    float: none;
    display: block;
    width: 100%;
    margin: 1em 0;
    text-align: center;
  }

  .run-locally-modal-content {
    width: 95%;
    padding: 1.5em;
    margin: 2vh auto;
    max-height: 90vh;
  }

  .run-locally-command {
    font-size: 0.65rem;
    padding-right: 0;
  }
  
  .run-locally-description {
    font-size: 0.7rem;
  }

  .run-locally-copy-btn {
    position: static;
    display: inline-flex;
    margin-top: 0.8em;
    width: 100%;
    font-size: 0.75rem;
  }
  
  .run-locally-mode-copy-btn {
    position: static;
    bottom: auto;
  }
  
  .run-locally-copy-all-btn {
    font-size: 0.8rem;
  }
  
  .run-locally-command-label {
    font-size: 0.75rem;
  }
  
  .copy-icon {
    width: 0.85em;
    height: 0.85em;
  }
}