:root {
  color: #222;
  background: #e9e9e9;
  font: 100%/1.55 system-ui, sans-serif;
}

body { margin: 0; }

main, .masthead {
  box-sizing: border-box;
  max-width: 54rem;
  margin-inline: auto;
  padding-inline: clamp(1rem, 4vw, 3rem);
}

.masthead {
  background: #262626;
  padding-block: .75rem;
  border-bottom: .3rem solid #67aac2;
}

.masthead a {
  color: white;
  font: bold 2rem Georgia, serif;
  text-decoration: none;
}

.masthead span { color: #8cc9dd; }

main {
  background: white;
  min-height: calc(100vh - 4.5rem);
  padding-block: clamp(1.5rem, 5vw, 3rem);
}

h1, h2 { font-family: Georgia, serif; line-height: 1.2; }
h1 { font-size: clamp(1.9rem, 6vw, 2.6rem); margin: 0 0 1.25rem; }
h2 { font-size: 1.3rem; margin: 0 0 .25rem; overflow-wrap: anywhere; }
a { color: #105575; }
p { margin-block: .4rem 1rem; }
[hidden] { display: none !important; }

label { display: block; font-weight: 600; }
.query-row, .filters { display: flex; flex-wrap: wrap; gap: .6rem; margin-top: .3rem; }
.query-row input { flex: 1 1 12rem; min-width: 0; }
.filters label { flex: 0 1 auto; }
select { display: block; margin-top: .25rem; max-width: 100%; }

input, button, select {
  box-sizing: border-box;
  font: inherit;
  min-height: 2.75rem;
  padding: .4rem .75rem;
  color: inherit;
  background: white;
  border: 1px solid #58646b;
  border-radius: .2rem;
}

button { color: white; background: #105575; font-weight: 600; cursor: pointer; }
button[aria-disabled="true"] { opacity: .75; cursor: progress; }
:focus-visible { outline: 3px solid #ab4f00; outline-offset: 3px; }
.masthead :focus-visible { outline-color: #ffb168; }
#search-hint, .metadata { color: #4c4c4c; font-size: .93rem; }
#results { padding-left: 1.35rem; margin-block: 0 1rem; }
#results li { border-top: 1px solid #ccc; padding: 1rem 0; overflow-wrap: anywhere; }
#results p { margin-block: .35rem 0; }
mark { background: #ffe298; color: #222; }
