/* --------------------------------------------------------------------------
   PowerPoint MCP Server — custom styling on top of the Material theme.
   Only the marketing homepage hero needs bespoke rules; everything else uses
   Material's built-in components (grid cards, admonitions, tables, nav).
   -------------------------------------------------------------------------- */

:root {
  /* PowerPoint brand orange/red — matches the product/logo and the
     pre-MkDocs site */
  --md-primary-fg-color: #d24726;
  --md-primary-fg-color--light: #de6a4d;
  --md-primary-fg-color--dark: #b7472a;

  --md-accent-fg-color: #d24726;

  --mcp-hero-bg-1: #b7472a; /* PowerPoint red */
  --mcp-hero-bg-2: #d24726; /* PowerPoint orange */
}

/* Dark mode: lift the oranges slightly for contrast on the slate background */
[data-md-color-scheme="slate"] {
  --md-primary-fg-color: #de6a4d;
  --md-primary-fg-color--light: #e8896f;
  --md-primary-fg-color--dark: #d24726;
  --md-accent-fg-color: #de6a4d;
}

/* Marketing hero on the landing page */
.mcp-hero {
  text-align: center;
  padding: 1.1rem 1rem 1rem;
  margin: -1.2rem 0 1.4rem;
  border-radius: 0.6rem;
  color: #ffffff;
  background: linear-gradient(135deg, var(--mcp-hero-bg-1), var(--mcp-hero-bg-2));
}

.md-typeset .mcp-hero__title {
  margin: 0.1rem 0 0.3rem;
  font-size: 1.9rem;
  font-weight: 700;
  line-height: 1.1;
  color: #ffffff;
}

.mcp-hero__subtitle {
  max-width: 40rem;
  margin: 0 auto 0.85rem;
  font-size: 0.95rem;
  line-height: 1.45;
  color: rgba(255, 255, 255, 0.94);
}

.mcp-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  justify-content: center;
  margin-bottom: 0.85rem;
}

/* Reuse Material buttons but adapt colors for the dark hero */
.mcp-hero__actions .md-button {
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.7);
}

.mcp-hero__actions .md-button:hover {
  background-color: #ffffff;
  color: var(--mcp-hero-bg-2);
  border-color: #ffffff;
}

.mcp-hero__actions .md-button--primary {
  background-color: #ffffff;
  color: var(--mcp-hero-bg-2);
  border-color: #ffffff;
}

.mcp-hero__actions .md-button--primary:hover {
  background-color: rgba(255, 255, 255, 0.85);
  color: var(--mcp-hero-bg-2);
}

.mcp-hero__badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  justify-content: center;
  margin: 0;
}

.mcp-hero__badges img {
  height: 20px;
}

/* Centered intro video block */
.mcp-video {
  text-align: center;
  margin: 2rem 0;
}

.mcp-video img {
  border-radius: 0.5rem;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* Grid cards: give the leading icon the accent color and tighten spacing */
.md-typeset .grid.cards .twemoji,
.md-typeset .grid.cards svg {
  fill: var(--md-accent-fg-color);
}

.md-typeset .grid.cards > ul > li {
  padding: 0.8rem 0.9rem;
}

.md-typeset .grid {
  gap: 0.6rem;
}

@media screen and (max-width: 44.9375em) {
  .md-typeset .mcp-hero__title {
    font-size: 1.6rem;
  }
}
