:root {
  color-scheme: light;
  font-family: Georgia, "Times New Roman", Times, serif;
  color: #171717;
  background: #fff;
  font-size: 17px;
  line-height: 1.55;
}

* { box-sizing: border-box; }
body { margin: 0; }
main { max-width: 900px; margin: 0 auto; padding: 30px 24px 40px; }
a { color: #0645ad; text-decoration: none; overflow-wrap: anywhere; }
a:hover { text-decoration: underline; }
:focus-visible { outline: 2px solid #0645ad; outline-offset: 3px; }
nav { display: flex; justify-content: space-between; gap: 20px; }
header { padding: 28px 0 20px; border-bottom: 1px solid #d8d8d8; }
h1 { margin: 0; font-size: 2.2rem; line-height: 1.15; }
p { margin: 8px 0; }
.subtitle { margin: 8px 0 18px; font-size: 1.1rem; color: #444; }
.status, .results-status, .paper-meta, .paper-topics { font-size: 0.88rem; color: #555; }
.status time { white-space: normal; }
.filters { display: grid; grid-template-columns: minmax(160px, 1fr) minmax(170px, 1fr) 155px; gap: 14px; margin: 22px 0 16px; }
.filters label { display: flex; flex-direction: column; gap: 5px; min-width: 0; color: #444; font-size: 0.88rem; }
input, select, button { font: inherit; background: #fff; color: #171717; border: 1px solid #aaa; border-radius: 3px; }
input, select { width: 100%; min-width: 0; height: 38px; padding: 6px 8px; font-size: 0.88rem; }
button { cursor: pointer; }
button:hover:not(:disabled) { background: #f3f5f8; }
button:disabled { cursor: default; opacity: 0.45; }
.results-status { min-height: 24px; margin: 0; padding-bottom: 10px; }
.paper-list { padding: 0; margin: 0; list-style: none; }
.paper { padding: 18px 0; border-top: 1px solid #e0e0e0; overflow-wrap: anywhere; }
.paper h2 { margin: 0 0 6px; font-size: 1.08rem; font-weight: normal; line-height: 1.4; }
.authors { margin: 4px 0; font-size: 0.95rem; }
.paper-meta { margin: 5px 0 2px; }
.paper-topics { margin: 2px 0; color: #28604a; }
details { margin-top: 8px; font-size: 0.93rem; }
summary { display: list-item; width: fit-content; color: #555; cursor: pointer; font-size: 0.85rem; }
details p { max-width: 76ch; color: #333; }
.pagination { justify-content: center; align-items: center; gap: 18px; margin: 24px 0; }
.pagination button { width: 38px; height: 36px; padding: 0; }
.pagination span { min-width: 90px; text-align: center; font-size: 0.9rem; }
.coverage { margin-top: 30px; padding-top: 20px; border-top: 1px solid #d8d8d8; font-size: 0.88rem; color: #555; }
.coverage h2 { margin: 0 0 8px; color: #333; font-size: 1rem; }
.coverage p { margin: 8px 0; }
footer { margin-top: 24px; font-size: 0.85rem; color: #555; }
.notice { color: #8b440e; font-size: 0.9rem; }
.empty-state { padding: 24px 0; border-top: 1px solid #ddd; color: #555; }
[hidden] { display: none !important; }

@media (max-width: 680px) {
  :root { font-size: 16px; }
  main { padding: 22px 18px 32px; }
  header { padding-top: 22px; }
  .filters { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 12px; }
  .search-field { grid-column: 1 / -1; }
}

@media (max-width: 380px) {
  .filters { grid-template-columns: minmax(0, 1fr); }
  h1 { font-size: 2rem; }
}
