:root {
  color-scheme: light;
  font-family: -apple-system, BlinkMacSystemFont, "PingFang TC", "Noto Serif CJK TC", serif;
  color: #25221e;
  background: #f4f1eb;
  font-synthesis: none;
}

* { box-sizing: border-box; }
body { margin: 0; }
.shell { width: min(1040px, calc(100% - 32px)); margin: 0 auto; padding: 48px 0 80px; }
.intro { max-width: 760px; margin: 0 auto 28px; }
.eyebrow { color: #85775f; font: 600 12px/1.4 sans-serif; letter-spacing: .14em; }
h1 { margin: 10px 0; font-size: clamp(32px, 6vw, 48px); font-weight: 500; }
.notice { display: inline-block; margin: 8px 0; padding: 7px 11px; color: #713a22; background: #f2dfd1; border-radius: 4px; font: 600 14px sans-serif; }
.source-note { color: #625c53; font: 14px/1.8 sans-serif; }
.search-panel, .record { border: 1px solid #ded8cd; background: #fffefa; border-radius: 8px; }
.search-panel { padding: 24px; }
label, legend { font: 600 14px sans-serif; }
.search-row { display: flex; gap: 10px; margin-top: 9px; }
input[type="search"] { min-width: 0; flex: 1; padding: 12px 14px; border: 1px solid #c9c1b4; border-radius: 5px; font: 16px sans-serif; }
button { padding: 11px 18px; border: 0; border-radius: 5px; color: white; background: #413c32; font: 600 14px sans-serif; cursor: pointer; }
button:disabled { opacity: .45; cursor: default; }
fieldset { margin: 22px 0 0; padding: 0; border: 0; }
.field-list { display: flex; flex-wrap: wrap; gap: 10px 16px; margin-top: 12px; }
.field-option { display: inline-flex; align-items: center; gap: 6px; color: #49443b; font: 13px sans-serif; }
.results { margin-top: 32px; }
.result-heading { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; }
h2 { font-size: 22px; font-weight: 500; }
#summary { color: #6d665b; font: 14px sans-serif; }
.record-list { display: grid; gap: 14px; }
.record { padding: 18px 20px; }
.record h3 { margin: 0 0 14px; font-size: 18px; font-weight: 600; }
.record dl { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 22px; margin: 0; }
.record dl div { min-width: 0; }
.record dt { margin-bottom: 4px; color: #817768; font: 12px sans-serif; }
.record dd { margin: 0; overflow-wrap: anywhere; font-size: 14px; line-height: 1.65; white-space: pre-wrap; }
.empty { padding: 28px; text-align: center; color: #756e63; background: #fffefa; border-radius: 8px; }
.pagination { display: flex; justify-content: center; align-items: center; gap: 18px; margin: 24px 0; font: 14px sans-serif; }
.pagination button { padding: 9px 14px; }
.pagination[hidden] { display: none; }
@media (max-width: 620px) {
  .shell { padding-top: 30px; }
  .search-panel { padding: 18px; }
  .record dl { grid-template-columns: 1fr; }
  .result-heading { align-items: flex-start; flex-direction: column; gap: 0; }
}
