/* ── Introduction page styles ──
   Applied only when body.page-introduction is set by page-intro.js */

/* ── Hero: h1 keeps the theme default size (no override needed) ── */

/* ── Update note: restyle the tip admonition as a clean inline banner ── */
.page-introduction .bd-article .admonition.tip {
  background: #f0f7ff;
  border: 1px solid #c8ddf0;
  border-radius: 8px;
  padding: 0.7rem 1rem;
  margin: 1.2rem 0;
  box-shadow: none;
}

.page-introduction .bd-article .admonition.tip > .admonition-title {
  display: none;
}

.page-introduction .bd-article .admonition.tip p {
  margin: 0;
  font-size: 0.88rem;
  color: #2a4055;
}

.page-introduction .bd-article .admonition.tip p a {
  color: #0c7cd5;
  font-weight: 600;
}

/* ── Module list: horizontal cards ── */
.page-introduction .bd-article > section > section:first-of-type ul {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.8rem;
  list-style: none;
  padding: 0;
  margin: 1rem 0;
}

.page-introduction .bd-article > section > section:first-of-type ul li {
  background: #f8fbff;
  border: 1px solid #dce8f3;
  border-radius: 8px;
  padding: 1rem 1.1rem;
  transition: border-color 200ms ease;
}

.page-introduction .bd-article > section > section:first-of-type ul li:hover {
  border-color: #a8c8e8;
}

/* ── Responsive ── */
@media (max-width: 768px) {
  .page-introduction .bd-article > section > section:first-of-type ul {
    grid-template-columns: 1fr;
  }
}

/* ── Dark mode ── */
html[data-mode="dark"] .page-introduction .bd-article .admonition.tip,
html[data-theme="dark"] .page-introduction .bd-article .admonition.tip {
  background: #1a2435;
  border-color: #2a3a52;
}

html[data-mode="dark"] .page-introduction .bd-article .admonition.tip p,
html[data-theme="dark"] .page-introduction .bd-article .admonition.tip p {
  color: #c0d0e0;
}

html[data-mode="dark"] .page-introduction .bd-article .admonition.tip p a,
html[data-theme="dark"] .page-introduction .bd-article .admonition.tip p a {
  color: #5aafe6;
}

html[data-mode="dark"] .page-introduction .bd-article > section > section:first-of-type ul li,
html[data-theme="dark"] .page-introduction .bd-article > section > section:first-of-type ul li {
  background: #1a2435;
  border-color: #2a3a52;
}

html[data-mode="dark"] .page-introduction .bd-article > section > section:first-of-type ul li:hover,
html[data-theme="dark"] .page-introduction .bd-article > section > section:first-of-type ul li:hover {
  border-color: #3a5a7a;
}

@media (prefers-color-scheme: dark) {
  html:not([data-mode="light"]):not([data-theme="light"]) .page-introduction .bd-article .admonition.tip {
    background: #1a2435;
    border-color: #2a3a52;
  }
  html:not([data-mode="light"]):not([data-theme="light"]) .page-introduction .bd-article .admonition.tip p {
    color: #c0d0e0;
  }
  html:not([data-mode="light"]):not([data-theme="light"]) .page-introduction .bd-article .admonition.tip p a {
    color: #5aafe6;
  }
  html:not([data-mode="light"]):not([data-theme="light"]) .page-introduction .bd-article > section > section:first-of-type ul li {
    background: #1a2435;
    border-color: #2a3a52;
  }
  html:not([data-mode="light"]):not([data-theme="light"]) .page-introduction .bd-article > section > section:first-of-type ul li:hover {
    border-color: #3a5a7a;
  }
}
