/* One stylesheet for the landing page and the diagnostics page. Dark only. */
:root {
  --mp-bg: #14161a;
  --mp-panel: #1d2026;
  --mp-line: #323743;
  --mp-text: #e4e6eb;
  --mp-dim: #9aa1ad;
  --mp-accent: #7fb4ff;
  --mp-bad: #ff8a80;
  color-scheme: dark;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--mp-bg);
  color: var(--mp-text);
  font: 1rem/1.5 system-ui, sans-serif;
}

main {
  max-width: 60rem;
  margin: 0 auto;
  padding: 1rem;
}

h1 {
  font-size: 1.5rem;
}

h2 {
  font-size: 1.2rem;
  margin-top: 2rem;
}

h3 {
  font-size: 1rem;
  margin: 1.5rem 0 0.5rem;
}

h4 {
  font-size: 0.85rem;
  margin: 0.75rem 0 0.25rem;
  color: var(--mp-dim);
}

code,
pre {
  font: 0.85rem/1.4 ui-monospace, monospace;
}

pre {
  margin: 0;
  padding: 0.5rem 0.75rem;
  background: var(--mp-panel);
  border: 1px solid var(--mp-line);
  border-radius: 0.25rem;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

.mp-dim {
  color: var(--mp-dim);
  font-size: 0.85rem;
}

.mp-bad {
  color: var(--mp-bad);
}

.mp-address {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
}

.mp-address code {
  padding: 0.5rem 0.75rem;
  background: var(--mp-panel);
  border: 1px solid var(--mp-line);
  border-radius: 0.25rem;
  overflow-wrap: anywhere;
}

button {
  min-height: 2.75rem;
  padding: 0 1rem;
  background: var(--mp-panel);
  color: var(--mp-accent);
  border: 1px solid var(--mp-line);
  border-radius: 0.25rem;
  font: inherit;
  cursor: pointer;
}

.mp-call {
  border-top: 1px solid var(--mp-line);
}

.mp-call summary {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 1rem;
  padding: 0.6rem 0.25rem;
  cursor: pointer;
}

.mp-call[open] {
  padding-bottom: 1rem;
}

.mp-http,
.mp-when {
  font-variant-numeric: tabular-nums;
}

.mp-what {
  flex: 1 1 12rem;
  font-weight: 600;
}

dl {
  display: grid;
  grid-template-columns: max-content 1fr;
  gap: 0.1rem 1rem;
  margin: 0.25rem 0;
  font-size: 0.85rem;
}

dt {
  color: var(--mp-dim);
}

dd {
  margin: 0;
  overflow-wrap: anywhere;
}
