/* Issue #30 — the public radix page. System fonts only: no third-party font or
   CDN is loaded (CSP default-src 'self'). */
:root {
  --text: #1d1d1f;
  --muted: #5f5f66;
  --line: #c9c9d1;
  --accent: #2f4f8f;
  --error: #9b1c1c;
  font-family: system-ui, -apple-system, "Segoe UI", sans-serif;
  color: var(--text);
  line-height: 1.5;
}

body {
  margin: 0 auto;
  max-width: 48rem;
  padding: 1.5rem 1rem;
}

.field {
  display: flex;
  flex-direction: column;
  margin-bottom: 1rem;
}

.field input {
  font: inherit;
  padding: 0.4rem 0.5rem;
  border: 1px solid var(--line);
  border-radius: 4px;
}

.place {
  position: relative;
}

[data-js="suggestions"] {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  z-index: 1;
  margin: 0;
  padding: 0;
  list-style: none;
  background: #fff;
  border: 1px solid var(--line);
  max-height: 16rem;
  overflow-y: auto;
}

[data-js="suggestions"] li {
  padding: 0.35rem 0.5rem;
  cursor: pointer;
}

[data-js="suggestions"] li[aria-selected="true"],
[data-js="suggestions"] li:hover {
  background: #e8edf7;
}

fieldset {
  border: 1px solid var(--line);
  margin-bottom: 1rem;
}

fieldset label {
  display: block;
}

button {
  font: inherit;
  padding: 0.5rem 1rem;
  color: #fff;
  background: var(--accent);
  border: 0;
  border-radius: 4px;
  cursor: pointer;
}

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

.message {
  color: var(--error);
}

.radix {
  margin: 1.5rem 0;
}

.radix svg {
  display: block;
  width: 100%;
  height: auto;
}

footer {
  margin-top: 2rem;
  font-size: 0.875rem;
  color: var(--muted);
}

footer a {
  color: var(--accent);
}
