/* Header "Home" button - see overrides/partials/header.html. Material's
   .md-header__button is a fixed-size icon square, so opt out of that sizing to
   let the anchor carry a text label, and keep it a low-key outlined button. */
.md-header__back-home {
  display: inline-block;
  width: auto;
  height: auto;
  margin: 0 .2rem;
  padding: .22rem .55rem;
  border: .05rem solid currentcolor;
  border-radius: .1rem;
  font-size: .68rem;
  font-weight: 500;
  line-height: 1.35;
  white-space: nowrap;
  opacity: .92;
}

.md-header__back-home:hover {
  opacity: 1;
  background-color: rgb(0 0 0 / 12%);
}

/* The header is cramped on phones; the logo still goes to the docs home there. */
@media screen and (max-width: 44.9375em) {
  .md-header__back-home {
    display: none;
  }
}

/* Course landing page. Keep the visual language editorial rather than turning
   the tutorials into another application dashboard. */
.course-hero {
  margin: 0 0 1.8rem;
  padding: 1.5rem 1.6rem;
  color: #f8fafc;
  background:
    radial-gradient(circle at 86% 18%, rgb(45 212 191 / 25%), transparent 28%),
    linear-gradient(135deg, #172554 0%, #1e3a8a 48%, #0f766e 100%);
  border-radius: .55rem;
}

.course-hero h1 {
  margin: 0 0 .45rem;
  color: inherit;
  font-size: clamp(1.65rem, 4vw, 2.45rem);
}

.course-hero p {
  max-width: 44rem;
  margin: 0;
  color: rgb(248 250 252 / 86%);
}

.course-meta {
  display: flex;
  flex-wrap: wrap;
  gap: .45rem;
  margin-top: 1rem;
}

.course-meta span {
  padding: .2rem .55rem;
  border: 1px solid rgb(255 255 255 / 32%);
  border-radius: 999px;
  font-size: .7rem;
}

.course-path {
  counter-reset: course-module;
}

.course-path > h2 {
  counter-increment: course-module;
  margin-top: 2rem;
  padding-bottom: .35rem;
  border-bottom: .08rem solid var(--md-default-fg-color--lightest);
}

.course-path > h2::before {
  content: "0" counter(course-module) " / ";
  color: var(--md-accent-fg-color);
  font-family: var(--md-code-font-family);
  font-size: .7em;
  letter-spacing: .04em;
}
