/* Mostly browser defaults. */

:root {
  color-scheme: light dark;
}

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

header.site {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  padding: 0.75rem 0;
  border-bottom: 1px solid #8884;
}

header.site .logo {
  font-weight: bold;
  font-size: 1.2rem;
  text-decoration: none;
  color: inherit;
}

footer.site {
  margin-top: 3rem;
  padding-top: 0.5rem;
  border-top: 1px solid #8884;
  font-size: 0.875rem;
}

h1 {
  font-size: 1.75rem;
  margin-bottom: 0.25rem;
  overflow-wrap: anywhere;
}

code,
pre {
  overflow-wrap: anywhere;
}

pre {
  overflow-x: auto;
  white-space: pre-wrap;
  padding: 0.5rem;
  border: 1px solid #8884;
}

.lead {
  font-size: 1.125rem;
  margin-top: 0;
}

.muted,
.note {
  opacity: 0.7;
}

.note {
  margin-left: 0.5em;
}

.hint {
  font-size: 0.875rem;
  margin-top: 0.25rem;
}

.error {
  color: red;
}

.map {
  height: 360px;
  border: 1px solid #8884;
  margin-top: 1rem;
}

table {
  border-collapse: collapse;
  width: 100%;
}

th,
td {
  text-align: left;
  vertical-align: top;
  padding: 0.3rem 0.5rem;
  border: 1px solid #8884;
}

table.values th {
  width: 30%;
  font-weight: normal;
}

table.values tr.strong th,
table.values tr.strong td {
  font-weight: bold;
}

td.copy {
  width: 1%;
  white-space: nowrap;
}

table.grid {
  width: auto;
}

table.grid td {
  text-align: center;
}

/* Little pill for the copy buttons */
td.copy button {
  font-size: 0.75rem;
  border: 1px solid #8888;
  border-radius: 1em;
  padding: 0.1em 0.7em;
  background: none;
  color: inherit;
  cursor: pointer;
}

.big-search {
  display: flex;
  gap: 0.5rem;
}

.big-search input {
  flex: 1;
  min-width: 0;
  font-size: 1.125rem;
  padding: 0.25rem 0.4rem;
}

.big-search button {
  font-size: 1.125rem;
}

form.inline {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
}

dl.tools dd {
  margin-bottom: 0.5rem;
}

@media (max-width: 600px) {
  table.values th {
    width: auto;
  }
}
