/* Muxus brand tweaks on top of the Material/Zensical theme */

:root {
  --md-primary-fg-color:        #3b66f5; /* the app's light-mode primary */
  --md-primary-fg-color--light: #6e8bfb;
  --md-primary-fg-color--dark:  #2947c9;
  --md-accent-fg-color:         #14bde3; /* the cyan in the logo */
}

[data-md-color-scheme="slate"] {
  --md-primary-fg-color:        #6e8bfb;
  --md-accent-fg-color:         #00dce8;
  --md-hue: 232;
}

/* Screenshots: subtle frame so they read as UI captures, not page chrome */
.md-typeset img.shadow,
.md-typeset figure img {
  border-radius: 8px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.18), 0 8px 24px rgba(0, 0, 0, 0.12);
}

[data-md-color-scheme="slate"] .md-typeset img.shadow,
[data-md-color-scheme="slate"] .md-typeset figure img {
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.5), 0 8px 24px rgba(0, 0, 0, 0.45);
}

/* Show the screenshot variant that matches the active theme.
   Pages reference both <name>.png#only-light and <name>-dark.png#only-dark. */
[data-md-color-scheme="default"] .md-typeset img[src$="#only-dark"],
[data-md-color-scheme="slate"] .md-typeset img[src$="#only-light"] {
  display: none;
}

/* The landing-page tour: one recording per theme, plus a still for readers who
   asked their system for less motion. */
.muxus-tour video,
.muxus-tour img {
  display: block;
  width: 100%;
  border-radius: 8px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.18), 0 8px 24px rgba(0, 0, 0, 0.12);
}

[data-md-color-scheme="slate"] .muxus-tour video,
[data-md-color-scheme="slate"] .muxus-tour img {
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.5), 0 8px 24px rgba(0, 0, 0, 0.45);
}

[data-md-color-scheme="default"] .muxus-tour .only-dark,
[data-md-color-scheme="slate"] .muxus-tour .only-light {
  display: none;
}

.muxus-tour .tour-still {
  display: none;
}

@media (prefers-reduced-motion: reduce) {
  .muxus-tour video {
    display: none;
  }

  [data-md-color-scheme="default"] .muxus-tour .tour-still.only-light,
  [data-md-color-scheme="slate"] .muxus-tour .tour-still.only-dark {
    display: block;
  }
}

.md-typeset figure figcaption {
  margin-top: 0.4rem;
  color: var(--md-default-fg-color--light);
  font-size: 0.78rem;
}

/* Hero block on the landing page */
.muxus-hero {
  text-align: center;
  padding: 1.2rem 0 0.4rem;
}
.muxus-hero h1 {
  font-weight: 800;
  font-size: 2.6rem;
  margin: 0.2rem 0 0.4rem;
  letter-spacing: -0.02em;
}

/* The app icon in place of a glyph in the hero title */
.muxus-hero h1 .muxus-hero-logo {
  height: 1.15em;
  width: auto;
  vertical-align: -0.18em;
  margin-right: 0.2em;
}
.muxus-hero p.tagline {
  font-size: 1.05rem;
  color: var(--md-default-fg-color--light);
  max-width: 44rem;
  margin: 0 auto 1.2rem;
}

/* Feature grid (uses Material's grid cards) */
.md-typeset .grid.cards > ul > li,
.md-typeset .grid.cards > ol > li {
  border-radius: 0.6rem;
  border-color: var(--md-default-fg-color--lighter);
  transition: border-color 125ms ease, box-shadow 125ms ease;
}

/* The default card border is nearly invisible in light mode, so darken it. */
[data-md-color-scheme="default"] .md-typeset .grid.cards > ul > li,
[data-md-color-scheme="default"] .md-typeset .grid.cards > ol > li {
  border-color: rgba(0, 0, 0, 0.16);
}

.md-typeset .grid.cards > ul > li:hover,
.md-typeset .grid.cards > ol > li:hover {
  border-color: var(--md-accent-fg-color);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.08), 0 6px 18px rgba(0, 0, 0, 0.07);
}

/* Keyboard keys a touch tighter */
.md-typeset kbd {
  font-size: 0.85em;
}

/* Wide shortcut tables should scroll rather than squeeze the chords */
.md-typeset .md-typeset__table {
  min-width: 0;
}
