/* WildBotics Training additions on top of the theme (wildbotics.css). */

/* Home page: text beside the logo, stacking on narrow screens. */
.md-typeset .wb-hero {
  display: grid;
  grid-template-columns: 1fr minmax(8rem, 14rem);
  gap: 1.5rem;
  align-items: center;
  margin-bottom: 1.5rem;
}
.md-typeset .wb-hero h1 {
  margin-top: 0;
}
.md-typeset .wb-hero__logo {
  width: 100%;
}
[data-md-color-scheme="slate"] .md-typeset .wb-hero__logo {
  padding: 0.6rem;
  background: #fff;
  border-radius: 0.4rem;
}
@media screen and (max-width: 44.9375em) {
  .md-typeset .wb-hero {
    grid-template-columns: 1fr;
  }
  .md-typeset .wb-hero__logo {
    max-width: 12rem;
    grid-row: 1;
  }
}

/* Fact panel at the top of event and module pages. */
.md-typeset .wb-facts {
  padding: 0.6rem 1rem;
  margin-bottom: 1.5rem;
  background: var(--md-code-bg-color);
  border-left: 0.25rem solid var(--wb-green);
}
.md-typeset .wb-facts dl {
  display: grid;
  grid-template-columns: max-content 1fr;
  gap: 0.2rem 1.2rem;
  margin: 0;
}
.md-typeset .wb-facts dt,
.md-typeset .wb-facts dd {
  margin: 0;
}
.md-typeset .wb-facts dt {
  color: var(--wb-green-dark);
}
[data-md-color-scheme="slate"] .md-typeset .wb-facts dt {
  color: var(--wb-leaf);
}

/* An embedded 16:9 deck or video. */
.md-typeset .wb-deck,
.md-typeset .wb-video {
  aspect-ratio: 16 / 9;
  margin: 1rem 0;
}
.md-typeset .wb-deck iframe,
.md-typeset .wb-video iframe {
  width: 100%;
  height: 100%;
  border: 1px solid var(--md-default-fg-color--lightest);
}

/* Pages with both sidebars hidden (the training table) use the full width. */
.md-main__inner:has(.md-sidebar--primary[hidden]):has(.md-sidebar--secondary[hidden]) .md-content {
  max-width: none;
}
