/* Bookwright docs — visual polish on top of mkdocs-material. */

/* Editorial hero subtitle (the line right under the H1 on the home). */
.md-typeset h1 + p {
  font-size: 1.2rem;
  line-height: 1.5;
}

/* Card grid: a soft border that lifts on hover, so the home feels tactile
   instead of flat. Applies to the `.grid.cards` blocks in index.md. */
.md-typeset .grid.cards > ul > li {
  border: 1px solid var(--md-default-fg-color--lightest);
  border-radius: 0.6rem;
  padding: 1rem 1.1rem;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

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

[data-md-color-scheme="slate"] .md-typeset .grid.cards > ul > li:hover {
  box-shadow: 0 6px 22px rgba(0, 0, 0, 0.4);
}

/* The big card icons read better a touch larger and tinted with the brand. */
.md-typeset .grid.cards .twemoji svg,
.md-typeset .grid.cards .lg svg {
  fill: var(--md-primary-fg-color);
}

/* Give the left sidebar section labels a bit more presence now that the whole
   tree lives there. */
.md-nav__item--section > .md-nav__link {
  font-weight: 700;
  color: var(--md-default-fg-color);
}
