/* ddigraph's additions to Zensical's modern theme. */

/* The home page's hero: the logo, the name, the tagline and the calls to
   action. Only the hero's h1 is restyled; every other page keeps its title. */
.md-typeset .dg-hero {
  margin: 1.5rem auto 2.5rem;
  max-width: 46rem;
  text-align: center;
}

.md-typeset .dg-hero__mark {
  width: 4.5rem;
  height: 4.5rem;
  margin: 0 auto 1rem;
  background: url("../assets/images/ddigraph.svg") center / contain no-repeat;
}

.md-typeset .dg-hero h1 {
  margin: 0 0 0.4rem;
  font-size: 3rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--md-default-fg-color);
}

.md-typeset .dg-hero .dg-hero__tagline {
  margin: 0 0 1rem;
  font-size: 1.35rem;
  font-weight: 600;
  line-height: 1.35;
  color: var(--md-primary-fg-color);
}

[data-md-color-scheme="slate"] .md-typeset .dg-hero .dg-hero__tagline {
  color: var(--md-accent-fg-color);
}

.md-typeset .dg-hero .dg-hero__lead {
  margin: 0 auto 1.5rem;
  color: var(--md-default-fg-color--light);
}

.md-typeset .dg-hero .md-button {
  margin: 0.25rem;
}

.md-typeset .dg-hero .dg-hero__badges {
  margin-top: 1.25rem;
}

.md-typeset .dg-hero .dg-hero__badges img {
  margin: 0 0.15rem;
  vertical-align: middle;
}

/* The icon above each card's title on the home page. */
.md-typeset .grid.cards .lg {
  width: 1.75em;
  height: 1.75em;
  color: var(--md-primary-fg-color);
}

[data-md-color-scheme="slate"] .md-typeset .grid.cards .lg {
  color: var(--md-accent-fg-color);
}

@media screen and (max-width: 44.984375em) {
  .md-typeset .dg-hero h1 {
    font-size: 2.25rem;
  }

  .md-typeset .dg-hero .dg-hero__tagline {
    font-size: 1.15rem;
  }
}

/* Phones and tablets: the theme leaves about 60px between the header and
   the breadcrumbs, a third of the first screen on a phone. */
@media screen and (max-width: 76.234375em) {
  .md-main__inner {
    margin-top: 0.6rem;
  }

  .md-path {
    padding-top: 0.6rem;
  }
}

/* The curriculum's pictures: a thin frame, so a white picture keeps its
   edges on the dark theme, and a zoom cursor, since each opens full size. */
.md-typeset a > img[src^="../images/"],
.md-typeset a > img[src*="/curriculum/images/"] {
  border: 1px solid var(--md-default-fg-color--lightest);
  border-radius: 0.2rem;
  cursor: zoom-in;
}
