/* Light theme */
[data-md-color-scheme="default"] {
  --md-primary-fg-color: #4e525a;
}

/* Dark theme */
[data-md-color-scheme="slate"] {
  --md-primary-fg-color: #4e525a;
  --md-default-bg-color: #424544;
}

/* Header logo size (theme.logo in mkdocs.yml) */
.md-header__button.md-logo img {
  height: 1.85rem;
  width: auto;
  max-width: min(55vw, 11rem);
  object-fit: contain;
}

.video-wrapper {
  position: relative;
  padding-bottom: 56.25%; /* 16:9 aspect ratio */
  margin-bottom: 1.5rem;
}

.video-wrapper iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}


.product-title-image {
  width: min(100%, 24rem);
  height: auto;
  display: block;
  margin: 1rem auto;
}

/*
Wrap related markdown images in <div class="image-row" markdown>
to get responsive, auto-wrapping desktop/mobile behavior without
per-image class attributes.
*/
.image-row {
  --image-min: 16rem;
  --image-max: 28rem;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(var(--image-min), 100%), 1fr));
  gap: 2rem;
  align-items: start;
}

.image-row > p {
  display: contents;
  margin: 0;
}

.image-row figure {
  margin: 0;
  display: grid;
  gap: 0.2rem;
  justify-items: center;
}

.image-row img {
  width: min(100%, var(--image-max));
  height: auto;
  display: block;
  margin: 0 auto;
  justify-self: center;
}


.image-row figcaption {
  margin: 0;
  text-align: center;
  font-size: 0.7rem;
  color: var(--md-default-fg-color--light);
}

.md-typeset img.product-table-thumb {
  width: 8rem;
  max-width: 100%;
  height: auto;
  display: block;
  margin: 0 auto;
}

/* App downloads: compact grid; icons/labels plain, only link text clickable */
.app-download-grid {
  --app-download-icon-size: 2rem;
  --app-download-col-min: 4rem;
  display: grid;
  grid-template-columns: repeat(
    auto-fit,
    minmax(min(var(--app-download-col-min), 100%), 1fr)
  );
  gap: 1.25rem 1rem;
  margin: 1rem 0;
}

.md-typeset .app-download-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 0.4rem;
}

.md-typeset .app-download-item .md-button:hover {
  background-color: #004cff !important;
}

.md-typeset .md-button {
  padding: 0.2em 0.4em;
  border-radius: 0.35em;
  background-color: #4071e5;
  border: none;
  font-size: 0.85em;
  font-weight: 500;
}

.md-typeset .app-download-item > p {
  margin: 0;
  line-height: 1.4;
}

.md-typeset .app-download-item > p:first-child .twemoji,
.md-typeset .app-download-item > p:first-child .twemoji svg {
  width: var(--app-download-icon-size);
  height: var(--app-download-icon-size);
}

.status-led-blue {
  color: #0000ff;
}

.status-led-green {
  color: #00ff00;
}

.status-led-red {
  color: #ff0000;
}