/* Centific brand on top of Material. Colours come from the dashboard
   (dashboard/static/css: --brand #cd128a, --accent #ff3d95). */

:root,
[data-md-color-scheme="default"] {
  --md-primary-fg-color: #cd128a;
  --md-primary-fg-color--light: #e0479f;
  --md-primary-fg-color--dark: #a10e6c;
  --md-accent-fg-color: #ff3d95;
  --md-accent-fg-color--transparent: rgba(255, 61, 149, 0.1);
  --md-typeset-a-color: #b0107a;
}

[data-md-color-scheme="slate"] {
  --md-primary-fg-color: #cd128a;
  --md-primary-fg-color--light: #e0479f;
  --md-primary-fg-color--dark: #a10e6c;
  --md-accent-fg-color: #ff5ca6;
  --md-typeset-a-color: #ff7ab7;
  --md-default-bg-color: #16131a;
  --md-code-bg-color: #1f1b24;
}

/* Header and announcement bar */
.md-header,
.md-tabs {
  background: linear-gradient(90deg, #a10e6c 0%, #cd128a 55%, #ff3d95 100%);
}
.md-header__button.md-logo img {
  height: 1.5rem;
}
.md-banner {
  background: #2a1430;
  color: #f6dbe9;
  font-size: 0.7rem;
}
.md-banner code {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
}

/* Typography */
.md-typeset {
  font-size: 0.8rem;
  line-height: 1.7;
}
.md-typeset h1 {
  font-weight: 800;
  letter-spacing: -0.02em;
}
.md-typeset h2 {
  font-weight: 700;
  letter-spacing: -0.01em;
}

/* Hero on the home page */
.hero {
  padding: 2.2rem 1.6rem;
  margin: 0 0 1.6rem;
  border-radius: 0.8rem;
  color: #fff;
  background:
    radial-gradient(circle at 85% 20%, rgba(255, 61, 149, 0.55), transparent 55%),
    linear-gradient(135deg, #5b0a40 0%, #a10e6c 50%, #cd128a 100%);
}
.hero h1 {
  color: #fff;
  margin: 0 0 0.4rem;
  font-size: 2rem;
}
.hero p {
  margin: 0.3rem 0;
  font-size: 0.95rem;
  opacity: 0.95;
  max-width: 40rem;
}
.hero .md-button {
  margin: 1rem 0.5rem 0 0;
  color: #fff;
  border-color: rgba(255, 255, 255, 0.7);
}
.hero .md-button--primary {
  background: #fff;
  color: #a10e6c;
  border-color: #fff;
}
.hero .md-button:hover {
  background: rgba(255, 255, 255, 0.15);
  color: #fff;
}
.hero .md-button--primary:hover {
  background: #ffe3f1;
  color: #a10e6c;
}

/* Cards: two per row on wide screens, so four cards make a tidy 2x2 */
.md-typeset .grid.cards {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 20rem), 1fr));
}
.md-typeset .grid.cards > ul > li {
  border-radius: 0.6rem;
  transition: border-color 0.15s, box-shadow 0.15s, transform 0.15s;
}
.md-typeset .grid.cards > ul > li:hover {
  border-color: var(--md-accent-fg-color);
  box-shadow: 0 0.3rem 1rem rgba(205, 18, 138, 0.12);
  transform: translateY(-1px);
}

/* Numbered steps */
.md-typeset .steps > ol {
  counter-reset: step;
  list-style: none;
  padding-left: 0;
  margin-left: 0;
}
.md-typeset .steps > ol > li {
  counter-increment: step;
  position: relative;
  padding-left: 2.6rem;
  margin-bottom: 1rem;
}
.md-typeset .steps > ol > li::before {
  content: counter(step);
  position: absolute;
  left: 0;
  top: 0.05rem;
  width: 1.7rem;
  height: 1.7rem;
  border-radius: 50%;
  background: var(--md-primary-fg-color);
  color: #fff;
  font-weight: 700;
  font-size: 0.8rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Status chips */
.status {
  display: inline-block;
  padding: 0.05rem 0.5rem;
  border-radius: 1rem;
  font-family: var(--md-code-font-family);
  font-size: 0.72rem;
  font-weight: 600;
  white-space: nowrap;
}
.status.wait   { background: #eef1f6; color: #3b4a63; }
.status.go     { background: #fff2d6; color: #8a5a00; }
.status.done   { background: #dff6e7; color: #146c3a; }
.status.bad    { background: #fde2e4; color: #a1222f; }
.status.off    { background: #ececec; color: #555; }
[data-md-color-scheme="slate"] .status.wait { background: #2a3140; color: #c7d2e6; }
[data-md-color-scheme="slate"] .status.go   { background: #3d3115; color: #ffd27a; }
[data-md-color-scheme="slate"] .status.done { background: #163a26; color: #8fe0ad; }
[data-md-color-scheme="slate"] .status.bad  { background: #42191e; color: #ff9ba5; }
[data-md-color-scheme="slate"] .status.off  { background: #2c2c2c; color: #bbb; }

/* "File: create_job.py" label above a script */
.filename {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-family: var(--md-code-font-family);
  font-size: 0.72rem;
  font-weight: 600;
  padding: 0.15rem 0.6rem;
  border-radius: 0.3rem 0.3rem 0 0;
  background: var(--md-primary-fg-color);
  color: #fff;
  margin-bottom: -0.6rem;
}

/* Tables */
.md-typeset table:not([class]) {
  border-radius: 0.5rem;
  overflow: hidden;
  font-size: 0.75rem;
}
.md-typeset table:not([class]) th {
  background: var(--md-accent-fg-color--transparent);
}
