/* Ember palette to match the CLI banner and ayushbuilds.dev. */
:root {
  --md-primary-fg-color: #ff6b35;
  --md-primary-fg-color--light: #ff8c5a;
  --md-primary-fg-color--dark: #c44d22;
  --md-accent-fg-color: #ff8c5a;
}

[data-md-color-scheme="slate"] {
  --md-default-bg-color: #0b0b0f;
  --md-code-bg-color: #12121a;
  --md-primary-fg-color: #ff6b35;
  --md-primary-bg-color: #f4f0eb;
  --md-typeset-a-color: #ff8c5a;
}

/* Make the top nav match the dark ember theme even in dark mode. */
[data-md-color-scheme="slate"] .md-header,
[data-md-color-scheme="slate"] .md-tabs {
  background-color: #0e0e12;
  color: #f4f0eb;
}

/* Card grid hover glow. */
.md-typeset .grid.cards > ul > li {
  border: 1px solid rgba(255, 107, 53, 0.18);
  border-radius: 0.6rem;
  transition: border-color 0.25s, box-shadow 0.25s;
}
.md-typeset .grid.cards > ul > li:hover {
  border-color: rgba(255, 107, 53, 0.5);
  box-shadow: 0 0 40px rgba(255, 107, 53, 0.1);
}

.md-typeset h1,
.md-typeset h2 {
  letter-spacing: -0.01em;
}

/* Announcement bar with ember gradient. */
.md-banner {
  background: linear-gradient(90deg, #c44d22 0%, #ff6b35 50%, #ff8c5a 100%);
  color: #fff;
}
.md-banner__inner {
  margin: 0.45rem auto;
}
.pc-announce {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.9rem;
  flex-wrap: wrap;
  font-size: 0.72rem;
}
.pc-announce__text strong {
  font-weight: 700;
}
.pc-announce__emoji {
  margin-right: 0.2rem;
}
.pc-star {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.18rem 0.6rem;
  border-radius: 2rem;
  background: rgba(0, 0, 0, 0.28);
  color: #fff !important;
  font-weight: 600;
  white-space: nowrap;
  transition: background 0.2s, transform 0.2s;
}
.pc-star:hover {
  background: rgba(0, 0, 0, 0.45);
  transform: translateY(-1px);
}
.pc-star svg {
  width: 0.95rem;
  height: 0.95rem;
  fill: currentColor;
}
/* The banner dismiss button should stay visible on the gradient. */
.md-banner .md-banner__button {
  color: #fff;
}
