/* docs/stylesheets/landing.css
   Start page: intro block and table of contents.
   All rules start with .landing. The content sits inside .md-typeset, and its rules
   (for example ul:not([hidden])) would win over single-class selectors. */

.landing {
  --l-brand: #1e40af;
  --l-brand-text: #1e40af;
  --l-bg: #ffffff;
  --l-alt: #f3f5f9;
  --l-line: #dce1ea;
  --l-text: #161b24;
  --l-muted: #566074;
  --l-radius: 6px;
  color: var(--l-text);
}
[data-md-color-scheme="slate"] .landing {
  --l-brand-text: #8da2f0;
  --l-bg: #181b22;
  --l-alt: #1e222b;
  --l-line: #2f3542;
  --l-text: #e8eaf0;
  --l-muted: #9ea7b8;
}

html.is-landing .md-content__inner::before {
  display: none;
}

.landing .md-grid {
  max-width: 64rem;
  padding: 0 1.2rem;
}
.landing a {
  color: var(--l-brand-text);
}

/* Buttons */
.landing .btn {
  display: inline-block;
  padding: 0.7rem 1.2rem;
  border: 1px solid var(--l-brand);
  border-radius: var(--l-radius);
  font-size: 0.8rem;
  font-weight: 600;
  text-decoration: none;
}
.landing .btn--primary {
  background: var(--l-brand);
  color: #fff;
}
.landing .btn--primary:hover {
  filter: brightness(1.1);
}
.landing .btn--outline:hover {
  background: var(--l-alt);
}

/* Intro block (public edition) */
.landing-hero {
  padding: 3rem 0 2.2rem;
  background: var(--l-alt);
  border-bottom: 1px solid var(--l-line);
}
.landing-hero h1 {
  margin: 0 0 0.6rem;
  font-size: 2rem;
  line-height: 1.2;
}
.landing-hero p {
  max-width: 40rem;
  margin: 0 0 1.3rem;
  color: var(--l-muted);
  font-size: 0.95rem;
}
.landing-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
}

/* Table of contents */
.landing--toc {
  padding: 2.5rem 0 4rem;
}
.landing--toc .toc-home__head {
  max-width: 40rem;
  margin-bottom: 2rem;
}
.landing--toc .toc-home__head h1 {
  margin: 0 0 0.5rem;
}
.landing--toc .toc-home__head p {
  margin: 0 0 1.2rem;
  color: var(--l-muted);
}
.landing--toc .toc-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(17rem, 1fr));
  gap: 1.1rem;
}
.landing--toc .toc-card {
  padding: 1.2rem 1.3rem 1.3rem;
  border: 1px solid var(--l-line);
  border-radius: var(--l-radius);
  background: var(--l-bg);
}
.landing--toc .toc-card--wide {
  grid-column: 1 / -1;
}
.landing--toc .toc-card--wide > .toc-list {
  columns: 3 14rem;
  column-gap: 2rem;
}
.landing--toc h2.toc-card__title {
  margin: 0 0 0.7rem;
  padding-bottom: 0.5rem;
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--l-text);
  border-bottom: 1px solid var(--l-line);
}
.landing--toc .toc-list:not([hidden]),
.landing--toc .toc-list:not([hidden]) ul:not([hidden]) {
  margin: 0;
  padding: 0;
  list-style: none;
}
.landing--toc .toc-list li {
  margin: 0.3rem 0;
  font-size: 0.76rem;
}
.landing--toc .toc-list a {
  text-decoration: none;
}
.landing--toc .toc-list a:hover {
  text-decoration: underline;
}
.landing--toc .toc-group {
  margin: 0.9rem 0 0.4rem;
  break-inside: avoid;
}
.landing--toc .toc-group:first-child {
  margin-top: 0;
}
.landing--toc .toc-group__title {
  display: block;
  margin-bottom: 0.2rem;
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--l-muted);
}
.landing--toc .toc-group ul:not([hidden]) {
  padding-left: 0.8rem;
  border-left: 2px solid var(--l-line);
}
