/* hdf5-pure — Material for MkDocs theme refinements.
   Custom teal primary with a warm Rust-orange accent, plus a light hero and
   tidier grid cards. Colors are set per scheme so the dark mode keeps contrast. */

[data-md-color-scheme="default"] {
  --md-primary-fg-color: #0e7490;
  --md-primary-fg-color--light: #22a3bd;
  --md-primary-fg-color--dark: #0a5870;
  --md-accent-fg-color: #c2410c;
  --md-typeset-a-color: #0e7490;
}

[data-md-color-scheme="slate"] {
  --md-primary-fg-color: #0e7490;
  --md-primary-fg-color--light: #22a3bd;
  --md-primary-fg-color--dark: #0a5870;
  --md-accent-fg-color: #fb923c;
  --md-typeset-a-color: #38bdf8;
  --md-default-bg-color: #0f1b22;
  --md-code-bg-color: #14242c;
}

/* Brand gradient used by the home hero. */
:root {
  --h5-hero-from: #0e7490;
  --h5-hero-to: #0c5360;
}

/* --- Home hero ----------------------------------------------------------- */
.h5-hero {
  margin: 0 0 2.2rem;
  padding: 2.6rem 1.4rem 2.2rem;
  border-radius: .6rem;
  text-align: center;
  color: #fff;
  background: radial-gradient(120% 140% at 50% 0%, var(--h5-hero-from) 0%, var(--h5-hero-to) 70%);
  box-shadow: 0 1px 3px rgba(0, 0, 0, .12);
}
.h5-hero h1 {
  margin: 0 0 .4rem;
  color: #fff;
  font-weight: 800;
  font-size: 2.4rem;
  letter-spacing: -.02em;
}
.h5-hero p {
  margin: .35rem auto;
  max-width: 42rem;
  color: rgba(255, 255, 255, .92);
  font-size: .95rem;
  line-height: 1.6;
}
.h5-hero .h5-hero__tag {
  font-size: 1.05rem;
  font-weight: 500;
}
.h5-hero .md-button {
  margin: .9rem .3rem 0;
  color: #fff;
  border-color: rgba(255, 255, 255, .85);
}
.h5-hero .md-button--primary {
  background-color: #fff;
  color: var(--h5-hero-to);
  border-color: #fff;
}
.h5-hero .md-button:focus,
.h5-hero .md-button:hover {
  background-color: var(--md-accent-fg-color);
  border-color: var(--md-accent-fg-color);
  color: #fff;
}

/* --- Grid cards ---------------------------------------------------------- */
.md-typeset .grid.cards > ul > li,
.md-typeset .grid > .card {
  border-radius: .5rem;
  transition: border-color .2s, box-shadow .2s, transform .2s;
}
.md-typeset .grid.cards > ul > li:hover {
  border-color: var(--md-primary-fg-color--light);
  box-shadow: 0 4px 14px rgba(0, 0, 0, .1);
  transform: translateY(-2px);
}
.md-typeset .grid.cards > ul > li > hr {
  margin: .6rem 0;
}

/* Small caps "feature pills" used on the home page. */
.h5-pills {
  display: flex;
  flex-wrap: wrap;
  gap: .4rem;
  justify-content: center;
  margin: 1.2rem 0 0;
}
.h5-pills span {
  padding: .25rem .7rem;
  border-radius: 999px;
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
  /* These pills sit on the teal hero, so they must be light, not teal-on-teal. */
  color: #fff;
  background: rgba(255, 255, 255, .18);
  border: 1px solid rgba(255, 255, 255, .38);
}

/* Make the header logo a touch larger and crisper. */
.md-header__button.md-logo img,
.md-header__button.md-logo svg {
  height: 1.5rem;
  width: 1.5rem;
}
