:root {
  --text: #171717;
  --muted: #686868;
  --line: #e7e7e7;
  --soft: #f7f7f7;
  --accent: #1a0dab;
  --danger-bg: #fff7e6;
  --danger-border: #f0d38a;
  font-family: Arial, Helvetica, sans-serif;
}
* { box-sizing: border-box; }
body { margin: 0; color: var(--text); background: white; }
main { width: min(1180px, calc(100% - 32px)); margin: 0 auto; padding: 42px 0 80px; }
.hero { max-width: 820px; margin: 8vh auto 72px; text-align: center; }
.brand { font-size: 21px; font-weight: 700; color: var(--accent); letter-spacing: -.02em; }
h1 { font-size: clamp(38px, 6vw, 64px); margin: 18px 0 14px; letter-spacing: -.045em; line-height: 1.02; }
.lede { color: var(--muted); font-size: 18px; line-height: 1.5; max-width: 720px; margin: 0 auto 28px; }
.search-form { display: flex; gap: 10px; max-width: 760px; margin: 0 auto; }
.search-form input { flex: 1; height: 56px; border: 1px solid #cfcfcf; border-radius: 28px; padding: 0 22px; font-size: 17px; outline: none; box-shadow: 0 1px 4px rgba(0,0,0,.06); }
.search-form input:focus { border-color: #9b9b9b; box-shadow: 0 1px 7px rgba(0,0,0,.12); }
button { border: 0; border-radius: 28px; padding: 0 24px; font-size: 16px; cursor: pointer; background: var(--accent); color: white; }
button:disabled { opacity: .55; cursor: wait; }
.link-button { margin-top: 14px; background: transparent; color: var(--accent); padding: 8px 10px; font-size: 14px; }
.status { min-height: 22px; margin-top: 16px; color: var(--muted); font-size: 14px; }
.status.error { color: #b00020; }
.hidden { display: none !important; }
.results { max-width: 1120px; margin: 0 auto; }
.book-head { display: flex; justify-content: space-between; gap: 24px; align-items: flex-start; margin-bottom: 22px; }
.eyebrow { text-transform: uppercase; font-size: 12px; letter-spacing: .09em; color: var(--muted); font-weight: 700; }
h2 { margin: 6px 0 8px; font-size: 32px; letter-spacing: -.025em; }
.muted { color: var(--muted); line-height: 1.45; }
.doi-link { color: var(--accent); text-decoration: none; font-size: 14px; border: 1px solid var(--line); padding: 8px 12px; border-radius: 18px; white-space: nowrap; }
.metrics { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin: 24px 0; }
.metric { border: 1px solid var(--line); border-radius: 14px; padding: 20px; min-height: 112px; display: flex; flex-direction: column; justify-content: space-between; }
.metric strong { font-size: 34px; letter-spacing: -.03em; }
.metric span { color: var(--muted); font-size: 13px; line-height: 1.35; }
.coverage { display: flex; flex-wrap: wrap; gap: 8px; margin: 8px 0 18px; }
.badge { display: inline-flex; align-items: center; gap: 6px; padding: 6px 9px; border-radius: 16px; background: var(--soft); font-size: 12px; }
.badge.off { opacity: .55; }
.warnings { border: 1px solid var(--danger-border); background: var(--danger-bg); border-radius: 10px; padding: 12px 14px; margin-bottom: 18px; font-size: 13px; line-height: 1.5; }
.panel { border-top: 1px solid var(--line); padding-top: 26px; margin-top: 32px; }
.panel-title-row { display: flex; justify-content: space-between; gap: 20px; align-items: end; margin-bottom: 14px; }
h3 { margin: 0 0 6px; font-size: 21px; }
.panel p { margin: 0; color: var(--muted); font-size: 14px; line-height: 1.45; }
.small-input { width: 230px; height: 38px; border: 1px solid #d5d5d5; border-radius: 19px; padding: 0 14px; font-size: 13px; outline: none; }
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: 14px; }
th { text-align: left; color: var(--muted); font-weight: 600; border-bottom: 1px solid var(--line); padding: 10px 12px; white-space: nowrap; }
td { border-bottom: 1px solid #f0f0f0; padding: 12px; vertical-align: top; }
td.num { text-align: right; font-variant-numeric: tabular-nums; }
.work-title { font-weight: 600; }
.work-sub { color: var(--muted); font-size: 12px; margin-top: 3px; line-height: 1.35; }
a.title-link { color: var(--accent); text-decoration: none; }
.source-list { color: var(--muted); font-size: 12px; }
.method { margin-top: 36px; border-top: 1px solid var(--line); padding-top: 20px; color: var(--muted); font-size: 13px; line-height: 1.5; }
.method summary { color: var(--text); cursor: pointer; font-weight: 600; }
@media (max-width: 800px) {
  main { width: min(100% - 22px, 1180px); padding-top: 20px; }
  .hero { margin-top: 5vh; }
  .search-form { flex-direction: column; }
  .search-form button { height: 48px; }
  .metrics { grid-template-columns: repeat(2, 1fr); }
  .panel-title-row { align-items: stretch; flex-direction: column; }
  .small-input { width: 100%; }
}

