:root {
  color-scheme: light;
  font-family: system-ui, "PingFang SC", "Microsoft YaHei", sans-serif;
  color: #163136;
  background: #f4f8f7;
  line-height: 1.55;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }

main { width: min(56rem, calc(100% - 2.5rem)); margin: 0 auto; padding: 3.75rem 0; }
.intro { margin-bottom: 1.5rem; }
h1 {
  font-size: clamp(1.625rem, 4vw, 2.25rem);
  font-weight: 500;
  line-height: 1.15;
  margin: 0 0 .65rem;
  letter-spacing: -.035em;
}
p { margin: 0; }
.intro p, .meta, .muted { color: #4c6266; }

.search-card, details, .record, .empty {
  background: white;
  border: 1px solid #cfdedc;
  border-radius: .9rem;
}

.search-card { padding: 1.25rem; }
.search-card label { display: block; margin-bottom: .45rem; font-weight: 650; }
.search-row { display: flex; gap: .65rem; }
input, button { font: inherit; }
input[type="search"] {
  flex: 1;
  min-width: 0;
  width: 100%;
  color: inherit;
  background: white;
  border: 1px solid #9bb4b1;
  border-radius: .55rem;
  padding: .7rem .85rem;
}

button { cursor: pointer; }
button:disabled { cursor: wait; opacity: .7; }
button:focus-visible, summary:focus-visible, a:focus-visible, input:focus-visible {
  outline: 3px solid #12787c;
  outline-offset: 3px;
}

#submit {
  border: 1px solid #0b5d59;
  background: #0b5d59;
  color: white;
  padding: .68rem 1.1rem;
  font-weight: 650;
  border-radius: .55rem;
  white-space: nowrap;
}

.examples { display: flex; align-items: center; flex-wrap: wrap; gap: .4rem .5rem; margin-top: .85rem; color: #4c6266; }
.examples button {
  border: 1px solid #c5dbd7;
  background: #edf6f4;
  color: #164c49;
  border-radius: 1.5rem;
  padding: .25rem .7rem;
  min-height: 2rem;
}

.status { min-height: 1.55rem; margin: .75rem 0; color: #4c6266; }
.tabs { display: flex; gap: .45rem; flex-wrap: wrap; padding-bottom: .7rem; border-bottom: 1px solid #ccdcd9; margin-bottom: .85rem; }
.tabs button { color: #234548; background: transparent; border: 1px solid transparent; border-radius: .5rem; padding: .5rem .7rem; min-height: 2.75rem; }
.tabs button[aria-selected="true"] { background: #dceeea; border-color: #a4c7c0; color: #0d4c49; font-weight: 650; }

details, .record, .empty { margin: .55rem 0; overflow-wrap: anywhere; }
summary, .record, .empty { padding: .9rem 1rem; }
summary { display: list-item; cursor: pointer; font-weight: 650; }
.article-body { border-top: 1px solid #e1ebe8; padding: .9rem 1rem 1rem; }
.record h2 { font-size: 1.06rem; margin: 0 0 .5rem; }
.meta { font-size: .9rem; margin-bottom: .55rem; }
.abstract { white-space: pre-wrap; }
.links { display: flex; flex-wrap: wrap; gap: .55rem 1rem; margin-top: .7rem; }
a { color: #056462; text-underline-offset: .16em; }

@media (max-width: 34rem) {
  main { width: calc(100% - 1.6rem); padding: 2rem 0; }
  .search-card { padding: .9rem; }
  .search-row { flex-direction: column; }
  .tabs { gap: .15rem; }
  .tabs button { padding-inline: .5rem; }
}
