:root {
  color-scheme: dark;
  font-family: system-ui, sans-serif;
  color: #d4d8dd;
  background: #0f1419;
  line-height: 1.6;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
}

main {
  flex: 1;
  width: 100%;
  max-width: 700px;
  margin: 64px auto;
  padding: 0 24px;
}

h1,
h2,
p,
dl,
dd {
  margin: 0;
}

h1 {
  font-size: 32px;
  line-height: 1.2;
  font-weight: 600;
}

.tagline {
  margin-top: 12px;
  color: #a9b1bc;
}

nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 24px;
  margin: 0;
}

a {
  color: #ffcc66;
  text-underline-offset: 4px;
}

a:hover {
  color: #ffe2a6;
}

a:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 4px;
}

.hero {
  display: block;
  width: 100%;
  height: auto;
  margin-top: 24px;
}

.status-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  border-bottom: 1px solid #323a44;
  padding: 16px 24px;
}

.intro {
  margin-top: 24px;
}

.status-bar .node-chips {
  margin-left: auto;
  justify-content: flex-end;
  margin-bottom: 0;
}

footer {
  border-top: 1px solid #323a44;
  padding: 16px 24px;
  text-align: center;
}

#last-checked {
  color: #a9b1bc;
  font-size: 13px;
}

#status[data-state='reachable'] {
  color: #aad6a0;
}

#status[data-state='unavailable'] {
  color: #e6b38b;
}

.node-chips {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin-bottom: 8px;
  font-size: 13px;
  text-align: left;
}

.node-chips > div {
  display: flex;
  align-items: baseline;
  gap: 6px;
  max-width: 100%;
  padding: 6px 10px;
  border: 1px solid #323a44;
  border-radius: 16px;
  background: #171e26;
}

dt {
  color: #a9b1bc;
  flex-shrink: 0;
}

dd {
  min-width: 0;
  overflow-wrap: anywhere;
  font-variant-numeric: tabular-nums;
}

#head-hash {
  font-family: ui-monospace, monospace;
  font-size: 13px;
}

noscript p {
  margin-top: 16px;
}

.faucet {
  border-top: 1px solid #323a44;
  margin-top: 32px;
  padding-top: 24px;
}

.faucet h2 {
  font-size: 20px;
}

.faucet p {
  margin-top: 8px;
}

fieldset {
  border: 0;
  padding: 0;
  margin: 16px 0;
  min-width: 0;
}

label {
  display: block;
  margin-bottom: 6px;
}

.faucet-controls {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

input,
button {
  font: inherit;
  border: 1px solid #596473;
  border-radius: 6px;
  padding: 8px 12px;
}

input {
  flex: 1 1 240px;
  min-width: 0;
  background: #171e26;
  color: inherit;
}

button {
  background: #ffcc66;
  color: #0f1419;
  cursor: pointer;
}

input:focus-visible,
button:focus-visible {
  outline: 2px solid #ffcc66;
  outline-offset: 3px;
}

button:disabled {
  opacity: 0.5;
  cursor: default;
}

#faucet-message {
  color: #a9b1bc;
  font-size: 13px;
  overflow-wrap: anywhere;
}

.wallet-details > div {
  margin-bottom: 12px;
}

input[type='file'] {
  max-width: 100%;
}

@media (max-width: 480px) {
  .status-bar,
  footer {
    padding: 16px 20px;
  }

  main {
    margin: 32px auto;
    padding: 0 20px;
  }
}

[hidden] {
  display: none !important;
}
nav a[aria-current='page'] {
  color: #d4d8dd;
  text-decoration-thickness: 2px;
}
textarea {
  font: inherit;
  background: #171e26;
  color: inherit;
  border: 1px solid #596473;
  border-radius: 6px;
  padding: 8px 12px;
  resize: vertical;
}
textarea:focus-visible,
summary:focus-visible {
  outline: 2px solid #ffcc66;
  outline-offset: 3px;
}
#transfer-to,
textarea {
  width: 100%;
}
textarea {
  display: block;
  margin-bottom: 12px;
}
summary {
  cursor: pointer;
}
pre {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  font-size: 13px;
}
#tx-list {
  padding-left: 20px;
  overflow-wrap: anywhere;
}
#tx-list li {
  margin-bottom: 12px;
}
#tx-message {
  color: #a9b1bc;
  overflow-wrap: anywhere;
}
h3 {
  font-size: 16px;
}

.demo-menu {
  position: relative;
}
.demo-menu summary {
  color: #ffcc66;
}
.demo-menu-links {
  position: absolute;
  z-index: 2;
  top: 100%;
  left: 0;
  min-width: 190px;
  padding: 12px;
  border: 1px solid #323a44;
  border-radius: 6px;
  background: #171e26;
  box-shadow: 0 8px 20px #0006;
}
.demo-menu-links a {
  display: block;
  padding: 6px;
}
main:has([data-page^='demos/']:not([hidden])) {
  max-width: 1120px;
}
@media (max-width: 480px) {
  .status-bar nav {
    position: relative;
  }
  .demo-menu {
    position: static;
  }
  .demo-menu-links {
    left: auto;
    right: 0;
  }
}
