/* Wider page layout.
   Material caps the page grid at 61rem, which leaves the content column
   cramped between the left nav and the right table of contents on desktop
   (and squeezes screenshots, tables, and CLI blocks in the labs). Widen the
   grid on large screens and give the content column more room. */
@media screen and (min-width: 76.25em) {
  .md-grid {
    max-width: 90rem;
  }
}

/* Bold headings and sub-headings on every page.
   Material renders h1/h2 light (300) and h3 regular (400) by default. */
.md-typeset h1,
.md-typeset h2,
.md-typeset h3,
.md-typeset h4,
.md-typeset h5,
.md-typeset h6 {
  font-weight: 700;
}

/* Brand palette: deep navy + teal accent (independent identity). */
:root > * {
  --md-primary-fg-color: #0b2a4a;
  --md-primary-fg-color--light: #12406e;
  --md-primary-fg-color--dark: #071c33;
  --md-accent-fg-color: #00a3b8;
  --md-typeset-a-color: #0b5fa5;
}

[data-md-color-scheme="slate"] {
  --md-hue: 215;
  --md-accent-fg-color: #4dd0e1;
  --md-typeset-a-color: #4dd0e1;
}

/* Homepage hero. */
.hero {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  align-items: center;
  gap: 1.5rem;
  margin: 0.5rem 0 1.5rem;
  padding: 2.5rem 2.25rem;
  border-radius: 0.8rem;
  color: #fff;
  background: linear-gradient(135deg, #071c33 0%, #0b2a4a 55%, #12406e 100%);
  box-shadow: 0 6px 24px rgba(7, 28, 51, 0.25);
}

.hero h1 {
  margin: 0 0 0.6rem;
  font-size: 2.4em;
  line-height: 1.15;
  color: #fff;
}

.hero .headerlink {
  display: none;
}

.hero p {
  color: rgba(255, 255, 255, 0.88);
  font-size: 0.95rem;
}

.hero .hero__eyebrow {
  margin: 0 0 0.5rem;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #4dd0e1;
}

.hero p:has(.md-button) {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

.hero .md-button {
  margin: 0.4rem 0 0;
  padding: 0.5em 1.1em;
  font-size: 0.7rem;
  color: #fff;
  border-color: rgba(255, 255, 255, 0.55);
}

.hero .md-button--primary {
  color: #071c33;
  background-color: #4dd0e1;
  border-color: #4dd0e1;
}

.hero__art {
  color: #fff;
}

.hero__art img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 0.6rem;
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.45);
}

@media screen and (max-width: 59.9375em) {
  .hero {
    grid-template-columns: 1fr;
    padding: 1.75rem 1.25rem;
  }
}

/* Section-page hero (compact variant) and inline SVG art. */
.hero--section {
  padding: 1.75rem 2rem;
}

.hero--section .hero__art {
  max-width: 24rem;
  justify-self: center;
}

.hero__art svg {
  display: block;
  width: 100%;
  height: auto;
}

/* Learning-path steps. */
.flow {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.flow .flow__step {
  position: relative;
  padding: 1rem 1rem 0.9rem;
  border: 1px solid var(--md-default-fg-color--lightest);
  border-top: 4px solid var(--md-accent-fg-color);
  border-radius: 0.3rem;
  font-size: 0.72rem;
  color: var(--md-default-fg-color--light);
}

.flow .flow__step p {
  margin: 0;
}

.flow .flow__step strong {
  display: block;
  margin: 0.4rem 0 0.15rem;
  font-size: 0.95rem;
  color: var(--md-default-fg-color);
}

.flow__num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.5rem;
  height: 1.5rem;
  border-radius: 50%;
  font-size: 0.75rem;
  font-weight: 700;
  color: #fff;
  background: var(--md-accent-fg-color);
}

[data-md-color-scheme="slate"] .flow__num {
  color: #071c33;
}

@media screen and (max-width: 59.9375em) {
  .flow {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Tag chips on lab cards. */
.chip {
  display: inline-block;
  margin: 0.15rem 0.2rem 0.15rem 0;
  padding: 0.1rem 0.6rem;
  border: 1px solid var(--md-accent-fg-color);
  border-radius: 1rem;
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--md-accent-fg-color);
}

.chip--lg {
  margin: 0.25rem 0.35rem 0.25rem 0;
  padding: 0.3rem 0.95rem;
  font-size: 0.72rem;
}

.chip--solid {
  color: #fff;
  background: var(--md-accent-fg-color);
}

[data-md-color-scheme="slate"] .chip--solid {
  color: #071c33;
}

/* Homepage cards: subtle lift on hover. */
.md-typeset .grid.cards > ul > li {
  border-radius: 0.5rem;
  transition: transform 0.15s, box-shadow 0.15s, border-color 0.15s;
}

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

/* Author block. */
.author {
  display: flex;
  align-items: flex-start;
  gap: 1.25rem;
  padding: 1.25rem 1.5rem;
  border: 1px solid var(--md-default-fg-color--lightest);
  border-radius: 0.5rem;
}

.author__avatar {
  flex: 0 0 4rem;
  height: 4rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  font-size: 1.3rem;
  font-weight: 700;
  color: #fff;
  background: linear-gradient(135deg, #0b2a4a, #00a3b8);
}

.author__body p {
  margin-top: 0;
}

.author .md-button {
  color: var(--md-typeset-a-color);
  border-color: var(--md-typeset-a-color);
}

.author__role {
  display: block;
  margin-bottom: 0.5rem;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--md-accent-fg-color);
}

/* Homepage "Who Are These Labs For?" audience cards.
   Material's default .grid.cards uses auto-fit/minmax, which can pack
   unevenly (e.g. 2+1) for exactly three cards. Force a stable 3/2/1
   responsive layout with equal-height cards and bottom-aligned CTAs. */
.md-typeset .grid.cards.audience-grid {
  grid-template-columns: repeat(3, 1fr);
}

.md-typeset .grid.cards.audience-grid > ul > li,
.md-typeset .grid.cards.audience-grid > ol > li {
  display: flex;
  flex-direction: column;
}

.md-typeset .grid.cards.audience-grid > ul > li > p:last-child,
.md-typeset .grid.cards.audience-grid > ol > li > p:last-child {
  margin-top: 0;
}

@media screen and (max-width: 76.1875em) {
  .md-typeset .grid.cards.audience-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media screen and (max-width: 44.9375em) {
  .md-typeset .grid.cards.audience-grid {
    grid-template-columns: 1fr;
  }
}
