/* ---------- Home page hero ---------- */
.nx-hero {
  display: flex;
  align-items: center;
  gap: 2.5rem;
  margin: 1.5rem 0 2.5rem;
}
.nx-hero__text { flex: 1 1 0; }
.nx-hero__logo { flex: 0 0 9rem; }
.nx-hero__logo img { width: 100%; height: auto; }
.nx-hero h1 {
  font-size: 2.6rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin: 0 0 0.6rem;
  color: var(--md-default-fg-color);
}
.nx-hero__tagline {
  font-size: 1.05rem;
  line-height: 1.6;
  color: var(--md-default-fg-color--light);
  margin: 0 0 1.4rem;
}
.nx-hero .md-button { margin: 0 0.5rem 0.5rem 0; }

@media screen and (max-width: 44.9375em) {
  .nx-hero { margin-top: 0; }
  .nx-hero__logo { display: none; }   /* logo is already in the header */
  .nx-hero h1 { font-size: 2rem; }
  .nx-hero__tagline { font-size: 0.95rem; }
}

/* Secondary links under the hero buttons */
.md-typeset .nx-links {
  margin: 0.6rem 0 0;
  font-size: 0.72rem;
  letter-spacing: 0.01em;
}
.md-typeset .nx-links a {
  color: var(--md-default-fg-color--light);
}
.md-typeset .nx-links a:hover { color: var(--md-accent-fg-color); }
.md-typeset .nx-links a + a::before {
  content: "·";
  display: inline-block;   /* keeps the dot out of the link underline */
  margin: 0 0.6rem;
  color: var(--md-default-fg-color--lighter);
}

/* ---------- Highlights ---------- */
.md-typeset .nx-features {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.6rem 2rem;
  margin: 0 0 2.8rem;
}
.md-typeset .nx-features > div {
  border-top: 1px solid var(--md-default-fg-color--lightest);
  padding-top: 0.8rem;
}
.md-typeset .nx-features p.nx-features__title {
  margin: 0 0 0.35rem;
  font-size: 0.8rem;
  font-weight: 600;
  line-height: 1.4;
  color: var(--md-default-fg-color);
}
.md-typeset .nx-features p {
  margin: 0;
  font-size: 0.72rem;
  line-height: 1.55;
  color: var(--md-default-fg-color--light);
}

/* ---------- Two-step workflow ---------- */
.md-typeset .nx-steps {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 2rem;
}
.md-typeset .nx-steps > div > p { margin: 0 0 0.8rem; }
.md-typeset .nx-steps__label {
  font-size: 0.64rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--md-accent-fg-color);
}
.md-typeset .nx-steps .nx-figure { margin: 0; }
.md-typeset .nx-steps .nx-figure img {
  border: 1px solid var(--md-default-fg-color--lightest);
}

/* ---------- Citation ---------- */
.md-typeset .nx-cite {
  border-left: 2px solid var(--md-accent-fg-color);
  background: var(--md-code-bg-color);
  padding: 0.8rem 1rem;
  border-radius: 0 0.3rem 0.3rem 0;
  font-size: 0.75rem;
  line-height: 1.6;
}
.md-typeset .nx-cite p { margin: 0; }

@media screen and (max-width: 76.1875em) {
  .md-typeset .nx-features { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media screen and (max-width: 44.9375em) {
  .md-typeset .nx-features,
  .md-typeset .nx-steps { grid-template-columns: minmax(0, 1fr); }
}

/* ---------- Tables ---------- */
.md-typeset table:not([class]) { font-size: 0.72rem; }
.md-typeset table:not([class]) td { vertical-align: top; }
/* Parameter names: keep them on one line */
.md-typeset table:not([class]) td:first-child code { white-space: nowrap; }

/* ---------- Figures ---------- */
.md-typeset .nx-figure img {
  border-radius: 0.4rem;
  background: #fff;
}
