:root {
  color-scheme: light;
  font-family: "Lucida Grande", "Trebuchet MS", sans-serif;
  font-size: 14px;
}

body {
  margin: 8px;
  background: #f0f0f0 url("sigmund-1.2.3.png") no-repeat right top;
  color: #222;
  overflow-wrap: anywhere;
}

h1,
h2 {
  font-family: "Lucida Grande", "Trebuchet MS", sans-serif;
  font-size: 12px;
  font-weight: bold;
  border-bottom: 1px solid #aaa;
  padding-top: 6px;
  padding-left: 5px;
  margin: 10px 0 4px;
}

#lookup-form {
  display: flex;
  align-items: center;
  gap: 5px;
  margin: 0 5px 10px;
}

input,
button {
  box-sizing: border-box;
  border: 1px solid #aaa;
  border-radius: 0;
  font: 13.3333px "Verdana", "Arial", "Trebuchet MS", sans-serif;
  color: #222;
}

input {
  appearance: none;
  width: 227px;
  min-width: 0;
  padding: 1px 2px;
  background: #fff;
}

button {
  flex: none;
  padding: 1px 6px;
  background: #f0f0f0;
  cursor: pointer;
}

button:hover {
  background: #e4e4e4;
}

input:focus {
  border-color: #777;
  outline: none;
}

input::-webkit-search-cancel-button {
  appearance: none;
}

button:focus-visible,
a:focus-visible,
summary:focus-visible {
  outline: 2px solid #777;
  outline-offset: 2px;
}

.result {
  margin-top: 16px;
  overflow-anchor: none;
}

.topic-heading {
  display: flow-root;
  min-height: 60px;
  margin: 0 5px 10px;
  padding: 8px 5px 15px;
  background: #000;
  color: #f0f0f0;
  font-size: 16px;
}

.topic-heading .topic-sprite {
  float: right;
  margin-right: 10px;
  margin-left: 10px;
}

.topic-title {
  margin: 0;
  font-size: 16px;
  font-weight: normal;
}

.topic-sprite {
  flex: none;
  overflow: hidden;
  image-rendering: pixelated;
}

#result-content {
  display: flow-root;
  margin: 0 5px 10px;
  padding: 0 5px;
  background: #fff;
  font-size: 16px;
}

.entries {
  margin: 0 0 0 5px;
  padding-left: 22px;
}

.entries > li::marker {
  color: #999;
}

.entries ol {
  padding-left: 22px;
}

.not-found {
  margin: 0;
}

.suggestions {
  list-style: none;
  margin: 0;
  padding: 0;
}

.suggestions a {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 36px;
  width: fit-content;
  max-width: 100%;
}

.suggestions small {
  color: #666;
  font-size: 0.85em;
}

a,
a:visited {
  color: #8c7503;
}

a:hover {
  color: #000;
}

footer {
  border-top: 1px solid #aaa;
  padding-right: 5px;
  margin-top: 15px;
  margin-bottom: 4px;
  font-size: 11px;
  font-weight: bold;
  text-align: right;
  overflow-anchor: none;
}

footer p {
  margin: 0;
}

footer a,
footer a:visited {
  color: #666;
  text-decoration: none;
}

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

.snapshot-meta summary {
  width: fit-content;
  margin-left: auto;
  cursor: pointer;
}

.snapshot-meta p {
  margin-top: 4px;
}

.credits p,
.credits li {
  font-size: 14px;
  line-height: 1.4;
}

#result-heading:focus {
  outline: none;
}

.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;
}

@media (max-width: 680px) {
  input {
    /* Keep iOS from zooming the page when the field gets focus. */
    font-size: 16px;
    flex: 0 1 227px;
  }

  .suggestions a {
    min-height: 44px;
  }
}
