:root {
  --md-primary-fg-color: #3949ab;
  --md-primary-fg-color--light: #5c6bc0;
  --md-primary-fg-color--dark: #283593;
  --md-accent-fg-color: #ec8222;
  --ccx-ink: #20263a;
  --ccx-muted: #687086;
  --ccx-border: rgba(32, 38, 58, 0.10);
}

.md-header__title {
  font-weight: 700;
  letter-spacing: -0.01em;
}

.md-tabs__link {
  font-weight: 600;
}

.md-grid {
  max-width: 92rem;
}

.md-content__inner {
  max-width: 62rem;
}

.md-typeset h1 {
  color: var(--ccx-ink);
  font-weight: 750;
  letter-spacing: -0.035em;
}

.md-typeset h2 {
  color: #2d3652;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.md-typeset table:not([class]) {
  display: table;
  width: 100%;
  border-radius: 0.55rem;
  overflow: hidden;
}

.md-typeset code {
  border-radius: 0.25rem;
}

/* Documentation landing page */
.ccx-home-hero {
  position: relative;
  overflow: hidden;
  margin: 0.4rem 0 1.15rem;
  padding: 2rem 2.1rem 1.8rem;
  border: 1px solid var(--ccx-border);
  border-radius: 1rem;
  background:
    radial-gradient(circle at 92% 10%, rgba(76, 175, 80, 0.12), transparent 30%),
    radial-gradient(circle at 5% 95%, rgba(236, 130, 34, 0.10), transparent 32%),
    linear-gradient(135deg, rgba(57, 73, 171, 0.055), rgba(255, 255, 255, 0.92));
  box-shadow: 0 0.6rem 2rem rgba(27, 35, 66, 0.07);
}

.ccx-home-kicker {
  margin-bottom: 0.45rem;
  color: var(--md-accent-fg-color);
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.13em;
}

.md-typeset .ccx-home-hero h2 {
  max-width: 42rem;
  margin: 0;
  color: var(--ccx-ink);
  font-size: 2rem;
  line-height: 1.12;
  letter-spacing: -0.04em;
}

.ccx-home-hero > p {
  max-width: 42rem;
  margin: 0.8rem 0 1.15rem;
  color: var(--ccx-muted);
  font-size: 0.92rem;
  line-height: 1.65;
}

.ccx-home-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
}

.ccx-home-meta span {
  display: inline-flex;
  align-items: center;
  gap: 0.32rem;
  padding: 0.42rem 0.62rem;
  border: 1px solid var(--ccx-border);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.78);
  color: var(--ccx-muted);
  font-size: 0.68rem;
}

.ccx-home-meta strong {
  color: #2f7d32;
}

.ccx-status-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.7rem;
  margin: 1rem 0 2rem;
}

.ccx-status-card {
  min-height: 6.2rem;
  padding: 0.95rem 1rem;
  border: 1px solid var(--ccx-border);
  border-radius: 0.75rem;
  background: var(--md-default-bg-color);
  box-shadow: 0 0.2rem 0.8rem rgba(27, 35, 66, 0.05);
}

.ccx-status-card strong {
  display: block;
  margin-bottom: 0.28rem;
  color: var(--md-primary-fg-color);
  font-size: 1.05rem;
  line-height: 1.2;
}

.ccx-status-card span {
  display: block;
  color: var(--ccx-muted);
  font-size: 0.72rem;
  line-height: 1.5;
}

.ccx-status-card--ok strong {
  color: #2f7d32;
}

.ccx-home-links {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.7rem;
  margin: 0.8rem 0 2rem;
}

.md-typeset .ccx-home-link {
  display: block;
  padding: 1rem 1.05rem;
  border: 1px solid var(--ccx-border);
  border-radius: 0.75rem;
  background: var(--md-default-bg-color);
  color: inherit;
  text-decoration: none;
  box-shadow: 0 0.18rem 0.7rem rgba(27, 35, 66, 0.04);
  transition: transform 140ms ease, border-color 140ms ease, box-shadow 140ms ease;
}

.md-typeset .ccx-home-link:hover {
  transform: translateY(-2px);
  border-color: rgba(57, 73, 171, 0.28);
  box-shadow: 0 0.45rem 1.1rem rgba(27, 35, 66, 0.08);
}

.ccx-home-link strong,
.ccx-home-link span {
  display: block;
}

.ccx-home-link strong {
  margin-bottom: 0.25rem;
  color: #303b67;
  font-size: 0.82rem;
}

.ccx-home-link span {
  color: var(--ccx-muted);
  font-size: 0.72rem;
  line-height: 1.5;
}

.ccx-doc-map {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 1.6rem;
  margin: 0.6rem 0 2rem;
  border-top: 1px solid var(--ccx-border);
}

.ccx-doc-map > div {
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--ccx-border);
}

.ccx-doc-map strong,
.ccx-doc-map span {
  display: block;
}

.ccx-doc-map strong {
  color: var(--ccx-ink);
  font-size: 0.78rem;
}

.ccx-doc-map span {
  margin-top: 0.16rem;
  color: var(--ccx-muted);
  font-size: 0.7rem;
}

@media screen and (max-width: 76.1875em) {
  .md-content__inner {
    max-width: none;
  }
}

@media screen and (max-width: 60em) {
  .ccx-status-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media screen and (max-width: 44.984375em) {
  .ccx-home-hero {
    padding: 1.35rem 1.15rem;
    border-radius: 0.8rem;
  }

  .md-typeset .ccx-home-hero h2 {
    font-size: 1.45rem;
  }

  .ccx-home-meta span {
    width: 100%;
    border-radius: 0.55rem;
  }

  .ccx-status-grid,
  .ccx-home-links,
  .ccx-doc-map {
    grid-template-columns: 1fr;
  }

  .ccx-status-card {
    min-height: 0;
  }
}
