:root {
  --bg: #f4f5f7;
  --card: #ffffff;
  --border: #e2e4e8;
  --text: #1f2328;
  --muted: #6b7280;
  --accent: #2563eb;
  --accent-soft: #eff4ff;
}

* {
  box-sizing: border-box;
}

/* Rezervace prostoru pro svislý scrollbar – při jeho zobrazení se obsah neposouvá */
html {
  overflow-y: auto;
  scrollbar-gutter: stable;
}

body {
  margin: 0;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.5;
}

.container {
  max-width: 860px;
  margin: 0 auto;
  padding: 24px 16px 64px;
}

h1 {
  font-size: 1.6rem;
  margin: 0 0 4px;
}

.hint {
  color: var(--muted);
  margin: 0 0 20px;
  font-size: 0.95rem;
}

code {
  background: #eef0f3;
  padding: 1px 5px;
  border-radius: 4px;
  font-size: 0.85em;
}

form label {
  display: block;
  font-weight: 600;
  margin-bottom: 6px;
}

input[type="text"] {
  width: 100%;
  padding: 10px 12px;
  font-size: 1rem;
  border: 1px solid var(--border);
  border-radius: 8px;
}

.status {
  min-height: 1.2em;
  color: var(--muted);
  font-size: 0.9rem;
  margin: 14px 0 8px;
}

.status.error {
  color: #b91c1c;
}

.results {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.result {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 10px;
  overflow: hidden;
}

.result-head {
  display: block;
  width: 100%;
  text-align: left;
  padding: 14px 16px;
  font-size: 1rem;
  background: var(--card);
  border: none;
  cursor: pointer;
}

.result-head:hover {
  background: var(--accent-soft);
}

.result.open .result-head {
  background: var(--accent-soft);
  box-shadow: inset 0 -2px 0 var(--accent);
}

.result-head .addr {
  font-weight: 600;
}

.result-head .sub {
  display: block;
  margin-top: 2px;
  color: var(--muted);
  font-size: 0.85rem;
  font-weight: 400;
}

.details {
  display: none;
  padding: 16px;
  border-top: 1px solid var(--border);
}

.result.open .details {
  display: block;
}

.details h2 {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--muted);
  margin: 14px 0 6px;
}

.details h2:first-child {
  margin-top: 0;
}

.dl {
  display: grid;
  grid-template-columns: max-content 1fr;
  gap: 4px 14px;
  margin: 0;
}

.dl dt {
  font-weight: 600;
  color: var(--muted);
}

.dl dd {
  margin: 0;
  word-break: break-word;
}

pre.raw {
  background: #f7f8fa;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 12px;
  overflow-x: auto;
  font-size: 0.8rem;
}

.empty {
  color: var(--muted);
  text-align: center;
  padding: 24px;
}
