/* Brand colors (Tegrita) — override Material for MkDocs defaults.
   Material sets its palette variables on <body> via attribute selectors
   (data-md-color-scheme / -primary / -accent). We must target those same
   selectors (not just :root) so the overrides win the cascade. */
[data-md-color-scheme] {
  /* Primary (header, sidebar accents, links) — orange */
  --md-primary-fg-color:        #ff4c00;
  --md-primary-fg-color--light: #ff824d;
  --md-primary-fg-color--dark:  #bf3900;

  /* Accent (highlighted links, buttons, focus states) — navy */
  --md-accent-fg-color:        #062a47;
  --md-accent-fg-color--light: #516a7e;
  --md-accent-fg-color--dark:  #052035;
}

/* Compact header — smaller site title, theme toggle, and search.
   The header height is content-driven, so shrinking these elements
   also makes the whole header bar shorter. */
.md-header__topic {
  font-size: .85rem;          /* site title text */
}

/* The title sets an explicit height: 2.4rem (in addition to line-height)
   which is what makes the header bar tall and dwarf the logo — shrink
   both so the bar is more compact. */
.md-header__title,
.md-header__ellipsis,
.md-header__topic {
  line-height: 2rem;
}

.md-header__title {
  height: 2rem;               /* default is 2.4rem */
}

.md-header__button {
  margin: .1rem;              /* tighter header buttons */
  padding: .25rem;
}

/* The logo button matches main.css's higher-specificity
   `.md-header__button.md-logo` (padding .4rem), so override it here. */
.md-header__button.md-logo {
  margin: .1rem;
  padding: .25rem;
}

/* Dark/light mode toggle + hamburger icons.
   In this Material version the <svg> is a DIRECT child of
   .md-header__button.md-icon (no .md-icon span wrapper), so use
   `.md-header__button.md-icon svg`, not `.md-header__button .md-icon svg`. */
.md-header__button.md-icon svg {
  height: 1rem;
  width: 1rem;
}

/* Site logo in the header */
.md-header__button.md-logo img {
  height: 48px;
}

/* Search bar */
.md-search__form {
  height: 1.8rem;             /* default is 2.4rem */
}

/* The search container adds vertical padding (.2rem) on top of the form,
   which also inflates the header bar — remove it. */
.md-search,
.md-search__inner {
  padding-top: 0;
  padding-bottom: 0;
}

.md-search__input {
  font-size: .8rem;           /* default is .9rem */
}

.md-search__icon {
  height: 1rem;
  width: 1rem;
}

/* ------------------------------------------------------------------ */
/* Homepage                                                           */
/* ------------------------------------------------------------------ */

/* Hero — gradient panel behind the page intro, echoing the marketing
   site's opening section. */
.md-typeset .hero {
  padding: 2rem 2rem 1rem;
  margin-bottom: 1.5rem;
  border-radius: .4rem;
  border-left: 5px solid var(--md-primary-fg-color);
  background: linear-gradient(135deg, rgba(255, 76, 0, .10), rgba(6, 42, 71, .06));
}

.md-typeset .hero h1 {
  margin-top: 0;
}

/* Card grid ("Our Cloud Apps" / "Getting Started") — on-brand hover
   treatment on top of Material's built-in .grid.cards styles. */
.md-typeset .grid.cards > ul > li,
.md-typeset .grid.cards > ol > li {
  border-radius: .35rem;
  transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease;
}

.md-typeset .grid.cards > ul > li:hover,
.md-typeset .grid.cards > ol > li:hover {
  transform: translateY(-2px);
  box-shadow: var(--md-shadow-z2);
  border-color: var(--md-primary-fg-color);
}

/* Space between the icon and the title inside a card */
.md-typeset .grid.cards .twemoji {
  margin-right: .3rem;
}
