body {
  font-family: system-ui, sans-serif;
  max-width: 60rem;
  margin: 2rem auto;
  padding: 0 1rem;
  line-height: 1.4;
}

h1 {
  font-size: 1.4rem;
}

#header-row {
  display: flex;
  align-items: baseline;
  gap: 0.75rem;
}

#copy-btn {
  font-size: 0.8rem;
  padding: 0.15rem 0.5rem;
}

#copy-btn:disabled {
  opacity: 0.5;
}

h2 {
  font-size: 1.1rem;
  margin-top: 2rem;
  border-bottom: 1px solid #ccc;
  padding-bottom: 0.2rem;
}

.subsection {
  margin-top: 1rem;
  padding-top: 0.75rem;
  border-top: 1px dashed #ddd;
}

.subsection h3 {
  font-size: 0.95rem;
  margin: 0 0 0.4rem;
}

#analyze-form {
  display: flex;
  gap: 0.5rem;
}

#url-input {
  flex: 1;
  font-family: monospace;
  padding: 0.4rem;
}

#analyze-btn {
  padding: 0.4rem 1rem;
}

#analyzed-url-info {
  color: #555;
  font-family: monospace;
  font-size: 0.85rem;
}

#status {
  color: #555;
  min-height: 1.2rem;
}

.mono {
  font-family: monospace;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.ext-link {
  font-size: 0.8rem;
  color: #555;
}

#site-footer {
  margin-top: 3rem;
  padding-top: 0.75rem;
  border-top: 1px solid #eee;
  font-size: 0.8rem;
}

#site-footer a {
  color: #888;
  text-decoration: none;
}

#site-footer a:hover {
  text-decoration: underline;
}

tr.variant-row {
  cursor: pointer;
}

tr.variant-row:hover {
  background: #f5f5f5;
}

tr.variant-active {
  background: #eaf2fb;
  font-weight: bold;
}

.error {
  color: #b00020;
}

dl {
  display: grid;
  grid-template-columns: max-content 1fr;
  gap: 0.2rem 1rem;
  margin: 0;
}

dt {
  color: #555;
}

dd {
  margin: 0;
  font-family: monospace;
}

table {
  border-collapse: collapse;
  width: 100%;
  font-family: monospace;
  font-size: 0.9rem;
}

th, td {
  text-align: left;
  padding: 0.2rem 0.6rem 0.2rem 0;
  border-bottom: 1px solid #eee;
}

pre {
  background: #f5f5f5;
  padding: 0.6rem;
  overflow-x: auto;
  font-size: 0.85rem;
}

.note {
  color: #555;
  font-style: italic;
}

dt[title], th[title], h2[title], h3[title] {
  cursor: help;
  text-decoration: underline dotted;
  text-underline-offset: 3px;
}
