/* Decal Workshop orange, taken from the logo (#FF8A1E) */
:root,
[data-md-color-scheme="default"] {
  --md-primary-fg-color:        #FF8A1E;
  --md-primary-fg-color--light: #FFA24D;
  --md-primary-fg-color--dark:  #D96E0A;
  --md-primary-bg-color:        #FFFFFF;
  --md-accent-fg-color:         #E07408;
  --md-typeset-a-color:         #D96E0A;
}

/* Question / help / FAQ admonitions: orange instead of Material green */
.md-typeset .admonition.question,
.md-typeset details.question,
.md-typeset .admonition.faq,
.md-typeset details.faq {
  border-color: var(--md-primary-fg-color);
}
.md-typeset .question > .admonition-title,
.md-typeset .question > summary,
.md-typeset .faq > .admonition-title,
.md-typeset .faq > summary {
  background-color: rgba(255, 138, 30, 0.1);
}
.md-typeset .question > .admonition-title::before,
.md-typeset .question > summary::before,
.md-typeset .faq > .admonition-title::before,
.md-typeset .faq > summary::before {
  background-color: var(--md-primary-fg-color);
}

/* Screenshots and demo videos */
.md-typeset img.screenshot,
.md-typeset video {
  border: 1px solid #e6e6e6;
  border-radius: 6px;
  max-width: 100%;
}

/* Placeholder for a screenshot still to be made */
.md-typeset .shot-todo {
  border: 2px dashed var(--md-primary-fg-color);
  border-radius: 6px;
  padding: 0.8em 1em;
  color: #9a5a14;
  background: rgba(255, 138, 30, 0.06);
  font-size: 0.85em;
}

/* Tool icons inline with text */
.md-typeset img.tool-icon {
  height: 1.3em;
  vertical-align: -0.25em;
}

/* ---- Header branding: dark app icon, bold title, spaced subtitle ---- */
.md-header {
  background-color: #FFFDF9;
  color: #222222;
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.08);
}
.md-header__inner {
  padding-top: 0.45rem;
  padding-bottom: 0.45rem;
}
.md-header__button.md-logo {
  margin: 0 0.4rem 0 0.2rem;
  padding: 0;
}
.md-header__button.md-logo img {
  height: 2.6rem;
  width: auto;
}
.md-header__title {
  height: 2.6rem;
}
.md-header__topic:first-child {
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  line-height: 1.15;
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: -0.01em;
}
.md-header__topic:first-child::after {
  content: "CREATE YOUR OWN DETAIL / BLENDER";
  font-size: 0.5rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  color: #6b6b6b;
  margin-top: 0.15rem;
}
.md-header__topic + .md-header__topic {
  font-weight: 600;
}
.md-header .md-search__input {
  background-color: rgba(0, 0, 0, 0.05);
  color: #222222;
}
.md-header .md-search__input::placeholder,
.md-header .md-search__icon {
  color: #6b6b6b;
}
.md-header .md-search__input:hover {
  background-color: rgba(0, 0, 0, 0.08);
}
/* Tabs stay orange under the light header */
.md-tabs {
  background-color: var(--md-primary-fg-color);
}
/* Keep the app icon visible on narrow screens (Material hides it) */
@media screen and (max-width: 76.234375em) {
  .md-header__button.md-logo {
    display: inline-block;
  }
  .md-header__button.md-logo img {
    height: 2.2rem;
  }
}

/* Responsive 16:9 YouTube embeds */
.md-typeset .video-wrapper {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  margin: 1em 0;
}
.md-typeset .video-wrapper iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border-radius: 6px;
}

/* ---- Home page (promotional) ---- */
.md-typeset .hero-tagline {
  font-size: 1.05rem;
  line-height: 1.6;
  margin-bottom: 1.2em;
}
.md-typeset .hero-tagline strong:first-child {
  display: block;
  font-size: 1.35rem;
  color: var(--md-primary-fg-color--dark);
  margin-bottom: 0.3em;
}
.md-typeset img.screenshot.half {
  display: block;
  max-width: min(100%, 520px);
  margin: 0 auto;
}
/* Media at the top of a grid card: same height for every card */
.md-typeset .grid.cards img.card-media {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: 4px;
  border: 1px solid #e6e6e6;
  margin: 0.2em 0 0.6em;
}
.md-typeset .grid.cards .shot-todo {
  aspect-ratio: 16 / 9;
  display: flex;
  align-items: center;
  margin: 0.2em 0 0.6em;
}
