:root {
  --ss-border: color-mix(in srgb, var(--md-default-fg-color) 18%, transparent);
  --ss-surface: color-mix(in srgb, var(--md-primary-fg-color) 6%, transparent);
}

.md-footer .md-copyright {
  color: #ffffff;
}

.highlight .go,
.highlight .ow,
.highlight .nv,
.highlight .c1,
.highlight .sd {
  color: #334155;
}

.md-typeset p a,
.md-typeset li a {
  text-decoration: underline;
  text-underline-offset: 0.12em;
}

.hero {
  margin: 1.5rem 0 2.25rem;
  padding: 2rem;
  border: 1px solid var(--ss-border);
  border-radius: 0.75rem;
  background:
    linear-gradient(135deg, var(--ss-surface), transparent 65%),
    var(--md-default-bg-color);
}

.hero > p:first-child {
  margin-top: 0;
  font-size: clamp(1.35rem, 3vw, 2rem);
  line-height: 1.25;
}

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

.feature-card {
  padding: 1rem 1.1rem;
  border: 1px solid var(--ss-border);
  border-radius: 0.55rem;
  background: var(--md-default-bg-color);
}

.feature-card h3 {
  margin-top: 0;
}

@media (max-width: 720px) {
  .hero {
    padding: 1.25rem;
  }

  .feature-grid {
    grid-template-columns: 1fr;
  }
}

.static-playground {
  margin: 1.25rem 0 2rem;
  padding: clamp(1rem, 3vw, 1.5rem);
  border: 1px solid var(--ss-border);
  border-radius: 0.75rem;
  background: var(--md-default-bg-color);
}

.playground-boundary {
  margin-top: 0;
  padding: 0.8rem 1rem;
  border-left: 0.25rem solid #546e7a;
  background: color-mix(in srgb, #546e7a 10%, var(--md-default-bg-color));
}

.playground-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin: 1rem 0;
}

.playground-tabs button {
  min-width: 6.5rem;
  min-height: 2.75rem;
  padding: 0.55rem 0.9rem;
  border: 2px solid var(--ss-border);
  border-radius: 999px;
  color: var(--md-default-fg-color);
  background: var(--md-default-bg-color);
  cursor: pointer;
  font: inherit;
  font-weight: 700;
}

.playground-tabs button[aria-selected="true"] {
  border-color: var(--md-accent-fg-color);
  box-shadow: inset 0 0 0 1px var(--md-accent-fg-color);
}

.playground-tabs button:focus-visible,
.playground-panel:focus-visible,
.table-scroll:focus-visible,
.static-playground pre:focus-visible {
  outline: 3px solid #0072ce;
  outline-offset: 3px;
}

.playground-summary {
  display: grid;
  grid-template-columns: minmax(8rem, auto) 1fr;
  gap: 1rem;
  align-items: start;
}

.playground-summary > p {
  margin: 0;
}

.playground-summary dl {
  display: grid;
  grid-template-columns: repeat(5, minmax(5rem, 1fr));
  gap: 0.75rem;
  margin: 0;
}

.playground-summary dl div {
  min-width: 0;
}

.playground-summary dt {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.playground-summary dd {
  margin: 0.25rem 0 0;
  font-size: 1.15rem;
  font-weight: 700;
}

.status-chip {
  display: inline-block;
  min-width: 6.5rem;
  padding: 0.45rem 0.8rem;
  border-radius: 0.35rem;
  font-weight: 800;
  text-align: center;
  text-transform: uppercase;
}

.status-chip--success {
  color: #145a1f;
  background: #e3f4e6;
}

.status-chip--partial {
  color: #703900;
  background: #fff0d5;
}

.status-chip--failed {
  color: #841c1c;
  background: #fde5e5;
}

.playground-columns {
  display: grid;
  grid-template-columns: minmax(0, 3fr) minmax(12rem, 2fr);
  gap: 1.5rem;
  margin-top: 1.5rem;
}

.playground-columns h2 {
  margin-top: 0;
}

.playground-columns > *,
.playground-columns .md-typeset__scrollwrap,
.playground-columns .md-typeset__table {
  min-width: 0;
  max-width: 100%;
}

.table-scroll {
  max-width: 100%;
  overflow-x: auto;
}

.static-playground table {
  min-width: 28rem;
}

.static-playground details {
  margin-top: 1.5rem;
}

.static-playground pre {
  max-height: 24rem;
  overflow: auto;
}

@media (max-width: 720px) {
  .playground-summary,
  .playground-columns {
    grid-template-columns: 1fr;
  }

  .playground-summary dl {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .playground-tabs button {
    flex: 1 1 6.5rem;
  }
}

[data-md-color-scheme="slate"] .status-chip--success {
  color: #d8f5dd;
  background: #184b24;
}

[data-md-color-scheme="slate"] .status-chip--partial {
  color: #ffedcd;
  background: #653700;
}

[data-md-color-scheme="slate"] .status-chip--failed {
  color: #ffe1e1;
  background: #711c1c;
}
