/* Additions for the source search; everything else comes from website/style.css. */
/* Page title as h1 with the size of section headings; result headings as h2. */
.qs-heading {
  font-size:clamp(32px,3.4vw,46px)
}

.source-data .qs-type {
  font-size:19px;
  letter-spacing:-.025em;
  margin-block:20px 23px
}

.qs-search {
  max-width:760px;
  margin-bottom:22px
}

.qs-search-row {
  display:flex;
  gap:10px;
  margin-top:10px
}

.qs-search-row input {
  flex:1;
  min-width:0;
  border:1px solid #c7cdc0;
  background:var(--white);
  border-radius:var(--radius);
  padding:14px 16px;
  font:inherit;
  font-size:15px;
  color:var(--ink)
}

.qs-search-row input:focus-visible,
.qs-field-input:focus-visible {
  outline:2px solid var(--orange);
  outline-offset:1px
}

.qs-source {
  font-size:11px;
  color:var(--muted);
  margin-top:10px
}

.qs-source a {
  text-decoration:underline;
  text-underline-offset:3px
}

.qs-status {
  font-size:13px;
  color:var(--muted);
  min-height:1.5em;
  margin-bottom:12px
}

.qs-results {
  display:grid;
  gap:12px;
  margin-bottom:28px
}

.qs-group {
  background:#f8f9f3;
  border:1px solid #d5d7cc;
  border-radius:var(--radius);
  padding:18px 22px
}

.qs-work {
  font-size:16px;
  letter-spacing:-.02em;
  line-height:1.35;
  margin:0 0 4px
}

.qs-names {
  font-size:12px;
  color:var(--muted);
  margin:0 0 10px
}

.qs-editions {
  list-style:none;
  margin:0;
  padding:0;
  display:grid;
  gap:6px
}

.qs-editions li {
  display:flex;
  align-items:center;
  gap:12px;
  flex-wrap:wrap
}

.qs-edition {
  flex:1;
  min-width:0;
  text-align:left;
  background:var(--white);
  border:1px solid #c5c9bc;
  border-radius:30px;
  padding:9px 16px;
  font:inherit;
  font-size:12px;
  color:var(--ink);
  cursor:pointer
}

.qs-edition:hover {
  background:#e0e3d6
}

.qs-edition[aria-pressed=true] {
  background:var(--ink);
  border-color:var(--ink);
  color:#fff
}

.qs-badge {
  margin-left:8px;
  font-size:10px;
  font-weight:650;
  color:var(--orange-dark)
}

.qs-edition[aria-pressed=true] .qs-badge {
  color:#ffb07d
}

.qs-catalog-link {
  font-size:11px;
  color:var(--muted);
  white-space:nowrap
}

.qs-catalog-link:hover {
  color:var(--orange-dark)
}

.qs-panel .example-help p {
  margin:0 0 6px
}

.qs-original {
  display:block;
  font-size:10px;
  color:var(--muted);
  margin-top:3px
}

.qs-field-input {
  width:100%;
  border:1px solid #ffb07d;
  background:#fff7f1;
  border-radius:3px;
  padding:6px 9px;
  font:inherit;
  font-size:12px;
  color:var(--ink)
}

.qs-zotero {
  border-top:1px solid #e6e8df;
  margin-top:22px;
  padding-top:18px
}

.qs-zotero .button {
  margin-top:12px
}

.qs-zotero-help {
  font-size:12px;
  color:var(--muted);
  margin-top:12px
}

.qs-ris {
  width:100%;
  min-height:140px;
  margin-top:10px;
  font:12px/1.5 ui-monospace,Menlo,monospace
}

@media(max-width:640px) {
  .qs-search-row {
    flex-direction:column
  }

  .qs-group {
    padding:16px
  }
}

.qs-back {
  justify-self:start;
  background:none;
  border:0;
  padding:0;
  cursor:pointer
}

.qs-group[hidden],
.qs-back[hidden] {
  display:none
}

.qs-suggestions {
  display:flex;
  flex-wrap:wrap;
  align-items:center;
  gap:6px;
  margin-top:7px;
  font-size:10px;
  color:var(--muted)
}

.qs-suggestion {
  background:var(--white);
  border:1px dashed #c5c9bc;
  border-radius:30px;
  padding:3px 10px;
  font:inherit;
  font-size:11px;
  color:var(--ink);
  cursor:pointer
}

.qs-suggestion:hover {
  border-style:solid;
  background:#ffeadc
}

.qs-locator-hint {
  font-size:11px;
  color:var(--muted);
  margin:8px 0 0;
  min-height:1.5em
}

.qs-locator-hint.qs-warning {
  color:var(--orange-dark);
  font-weight:600
}

.qs-check {
  margin-bottom:6px
}

.qs-field-hint {
  display:block;
  font-size:10px;
  font-weight:600;
  color:var(--orange-dark);
  margin-top:4px
}

.qs-field-hint:empty {
  display:none
}
