:root {
  color-scheme: light;
  --bg: #fafbfc;
  --surface: #fff;
  --text: #202938;
  --muted: #667080;
  --faint: #8992a0;
  --line: #e5e8ed;
  --soft: #f2f5f9;
  --accent: #315aa3;
  --accent-bg: #edf2fb;
  --notice: #f7f4eb;
  --shadow: 0 24px 90px #17253e26;
  font-family:
    Inter,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
  font-size: 16px;
  font-synthesis: none;
}
:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #111720;
  --surface: #171f2a;
  --text: #e2e7ef;
  --muted: #a1adbf;
  --faint: #7e8ba0;
  --line: #2c3543;
  --soft: #202b3a;
  --accent: #93b5f0;
  --accent-bg: #22344f;
  --notice: #2a291f;
  --shadow: 0 24px 90px #0008;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  line-height: 1.55;
}
button,
input,
select {
  font: inherit;
}
button,
a,
input,
select {
  -webkit-tap-highlight-color: transparent;
}
button,
a {
  touch-action: manipulation;
}
button {
  cursor: pointer;
}
a {
  color: var(--accent);
  text-underline-offset: 4px;
}
button:disabled {
  cursor: default;
  opacity: 0.4;
}
button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
summary:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 4px;
}
h1,
h2,
h3,
p {
  margin: 0;
}
h1 {
  font-size: 2.25rem;
  letter-spacing: -1.35px;
  font-weight: 550;
  line-height: 1.2;
}
h2 {
  font-size: 1.1rem;
  font-weight: 600;
  letter-spacing: -0.35px;
}
h3 {
  font-size: 1rem;
  font-weight: 600;
}
p {
  color: var(--muted);
}
.skip {
  position: absolute;
  top: -70px;
  left: 16px;
  background: var(--surface);
  padding: 12px;
  z-index: 20;
}
.skip:focus {
  top: 8px;
}
.site-header {
  background: var(--surface);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  max-width: 1264px;
  margin: auto;
  min-height: 84px;
  display: flex;
  align-items: center;
  padding: 0 32px;
  gap: 40px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--text);
  font-size: 1rem;
  text-decoration: none;
  white-space: nowrap;
  letter-spacing: -0.4px;
}
.brand strong {
  font-weight: 620;
}
.brand-mark {
  font:
    italic 34px Georgia,
    serif;
  color: var(--accent);
  line-height: 1;
}
.header-inner nav {
  display: flex;
  gap: 30px;
  margin-left: auto;
  align-self: stretch;
  align-items: stretch;
}
.header-inner nav a {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  border-bottom: 2px solid transparent;
  padding-top: 2px;
}
.header-inner nav a[aria-current="page"] {
  color: var(--text);
  border-color: var(--accent);
}
.icon-button {
  background: none;
  border: 0;
  color: var(--muted);
  font-size: 23px;
  width: 34px;
  height: 36px;
  border-radius: 6px;
}
.icon-button:hover {
  background: var(--soft);
}
main {
  max-width: 1264px;
  padding: 48px 32px 64px;
  margin: auto;
  min-height: calc(100vh - 180px);
}
.page-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 30px;
}
.eyebrow {
  display: block;
  color: var(--accent);
  font-size: 0.75rem;
  font-weight: 650;
  letter-spacing: 1.65px;
  margin-bottom: 12px;
}
.page-heading p {
  font-size: 0.95rem;
  margin-top: 12px;
}
.date-control {
  display: flex;
  flex-direction: column;
  gap: 7px;
  min-width: 240px;
}
.date-control label,
.filter-label {
  font-size: 0.75rem;
  color: var(--muted);
  font-weight: 550;
}
.select,
input[type="search"] {
  border: 1px solid var(--line);
  border-radius: 5px;
  background: var(--surface);
  color: var(--text);
  padding: 10px 12px;
  min-height: 44px;
  font-size: 0.875rem;
}
.date-control select {
  width: 100%;
}
.status-line {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  color: var(--muted);
  font-size: 0.8rem;
  padding: 0 0 20px;
  border-bottom: 1px solid var(--line);
}
.status-line a {
  color: var(--muted);
}
.status-mark {
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  margin-right: 7px;
  vertical-align: middle;
}
.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-bottom: 1px solid var(--line);
  padding: 27px 0;
  margin-bottom: 36px;
}
.stat {
  padding: 0 24px;
  border-right: 1px solid var(--line);
}
.stat:first-child {
  padding-left: 0;
}
.stat:last-child {
  border: 0;
}
.stat-label {
  font-size: 0.85rem;
  color: var(--muted);
  margin-bottom: 9px;
}
.stat-value {
  font-size: 2.65rem;
  font-weight: 480;
  line-height: 1.2;
  letter-spacing: -1.8px;
  font-variant-numeric: tabular-nums;
}
.stat-note {
  font-size: 0.78rem;
  color: var(--muted);
  margin-top: 9px;
}
.positive {
  color: var(--accent);
}
.analytics {
  display: grid;
  grid-template-columns: 1.55fr 1fr;
  gap: 36px;
  margin-bottom: 36px;
}
.panel {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 7px;
  padding: 24px;
  min-width: 0;
}
.panel-heading {
  display: flex;
  justify-content: space-between;
  align-items: start;
  gap: 16px;
  margin-bottom: 20px;
}
.panel-heading p {
  font-size: 0.8rem;
  margin-top: 5px;
}
.legend {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.75rem;
  color: var(--muted);
  white-space: nowrap;
}
.legend::before {
  content: "";
  width: 16px;
  height: 2px;
  background: var(--accent);
}
.trend {
  display: block;
  width: 100%;
  height: auto;
  overflow: visible;
}
.trend text {
  fill: var(--faint);
  font-size: 12px;
  font-family: inherit;
}
.trend .gridline {
  stroke: var(--line);
  stroke-dasharray: 3 5;
}
.trend .line {
  fill: none;
  stroke: var(--accent);
  stroke-width: 2.2;
  stroke-linejoin: round;
  stroke-linecap: round;
}
.trend .area {
  fill: var(--accent);
  opacity: 0.05;
}
.trend .point {
  fill: var(--surface);
  stroke: var(--accent);
  stroke-width: 1.5;
}
.trend .point.selected {
  fill: var(--accent);
}
.chart-note {
  font-size: 0.75rem;
  color: var(--muted);
  margin-top: 9px;
}
.chart-table {
  font-size: 0.8rem;
  margin-top: 12px;
}
.chart-table summary {
  color: var(--muted);
  cursor: pointer;
}
.topic-bars {
  display: flex;
  flex-direction: column;
  gap: 15px;
}
.topic-row {
  display: grid;
  grid-template-columns: 138px 1fr 30px;
  gap: 12px;
  align-items: center;
  font-size: 0.8rem;
}
.topic-name {
  color: var(--muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.topic-track {
  height: 5px;
  border-radius: 3px;
  background: var(--soft);
}
.topic-fill {
  height: 100%;
  border-radius: 3px;
  background: var(--accent);
  opacity: 0.75;
}
.topic-value {
  text-align: right;
  font-variant-numeric: tabular-nums;
}
.section-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 0 0 17px;
  gap: 16px;
}
.section-heading p {
  font-size: 0.82rem;
  margin-top: 3px;
}
.text-link {
  font-size: 0.85rem;
  text-decoration: none;
}
.research-panel {
  border-top: 1px solid var(--line);
}
.toolbar {
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
}
.search-wrap {
  position: relative;
  flex: 1;
  min-width: 220px;
}
.search-wrap input {
  width: 100%;
  padding-left: 38px;
}
.search-icon {
  position: absolute;
  left: 13px;
  top: 11px;
  color: var(--muted);
  font-size: 18px;
}
.toolbar .select {
  max-width: 200px;
}
.button {
  padding: 9px 14px;
  border: 1px solid var(--line);
  border-radius: 5px;
  background: var(--surface);
  color: var(--text);
  font-size: 0.82rem;
  min-height: 42px;
}
.button:hover {
  background: var(--soft);
}
.button.primary {
  background: var(--accent);
  color: var(--surface);
  border-color: var(--accent);
}
.result-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.78rem;
  color: var(--muted);
  margin: 17px 0;
}
.result-meta button {
  font-size: 0.78rem;
}
.research-list {
  list-style: none;
  padding: 0;
  margin: 0;
}
.research-item {
  padding: 23px 0;
  border-bottom: 1px solid var(--line);
  display: grid;
  grid-template-columns: 108px 1fr 32px;
  gap: 22px;
}
.item-date {
  font-size: 0.82rem;
  color: var(--muted);
  padding-top: 5px;
}
.item-date span {
  display: block;
  font-size: 0.75rem;
  margin-top: 3px;
  color: var(--faint);
}
.item-body {
  min-width: 0;
}
.item-heading {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 7px;
}
.kind-badge {
  font-size: 0.75rem;
  letter-spacing: 0.7px;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 600;
}
.item-source {
  font-size: 0.75rem;
  color: var(--muted);
}
.item-title {
  background: none;
  border: 0;
  padding: 0;
  color: var(--text);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.23rem;
  font-weight: 400;
  line-height: 1.45;
  text-align: left;
  cursor: pointer;
}
.item-title:hover {
  color: var(--accent);
}
.item-authors {
  font-size: 0.8rem;
  margin-top: 7px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.item-tags {
  display: flex;
  gap: 7px;
  flex-wrap: wrap;
  margin-top: 12px;
}
.tag {
  padding: 2px 8px;
  background: var(--soft);
  color: var(--muted);
  font-size: 0.75rem;
  border-radius: 3px;
}
.item-open {
  color: var(--muted);
  font-size: 21px;
  text-decoration: none;
  margin-top: 28px;
  text-align: right;
}
.item-open:hover {
  color: var(--accent);
}
.pagination {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 15px;
  margin-top: 23px;
  font-size: 0.8rem;
  color: var(--muted);
}
.pagination-controls {
  display: flex;
  gap: 8px;
}
.empty-state {
  padding: 60px 20px;
  text-align: center;
  border-bottom: 1px solid var(--line);
}
.empty-state h3 {
  font-size: 1.1rem;
  margin-bottom: 9px;
}
.empty-state p {
  font-size: 0.88rem;
  max-width: 440px;
  margin: 0 auto 20px;
}
.notice {
  padding: 14px 18px;
  border: 1px solid var(--line);
  border-radius: 5px;
  background: var(--notice);
  font-size: 0.85rem;
  margin: 20px 0;
}
.quiet-notice {
  background: var(--soft);
}
.rising {
  display: flex;
  gap: 12px;
  align-items: center;
  flex-wrap: wrap;
  padding: 15px 0 0;
  font-size: 0.78rem;
  color: var(--muted);
}
.rising strong {
  font-weight: 550;
}
.rising span {
  color: var(--accent);
}
.archive-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
.archive-card {
  display: block;
  padding: 23px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 6px;
  text-decoration: none;
  color: var(--text);
}
.archive-card:hover {
  border-color: var(--accent);
}
.archive-card h2 {
  font-size: 1rem;
  margin: 10px 0 18px;
}
.archive-count {
  font-size: 2rem;
  letter-spacing: -1px;
}
.archive-count span {
  font-size: 0.8rem;
  letter-spacing: 0;
  color: var(--muted);
  margin-left: 7px;
}
.archive-card p {
  font-size: 0.8rem;
  margin-top: 10px;
}
.small-label {
  font-size: 0.75rem;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  color: var(--muted);
}
.method-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 40px;
}
.prose h2 {
  margin: 28px 0 12px;
}
.prose h2:first-child {
  margin-top: 0;
}
.prose p,
.prose li {
  font-size: 0.92rem;
  line-height: 1.85;
  color: var(--muted);
}
.prose p + p {
  margin-top: 12px;
}
.prose ul {
  padding-left: 20px;
}
.source-list {
  list-style: none;
  padding: 0;
  margin: 0;
}
.source-list li {
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
}
.source-list li:first-child {
  padding-top: 0;
}
.source-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
}
.source-head a {
  color: var(--text);
  text-decoration: none;
  font-size: 0.9rem;
}
.source-status {
  font-size: 0.75rem;
  color: var(--muted);
}
.source-list p {
  font-size: 0.78rem;
  margin-top: 7px;
  overflow-wrap: anywhere;
}
.source-status.success {
  color: var(--accent);
}
.source-status.failed {
  color: #b07c3c;
}
.source-stats {
  font-size: 0.76rem;
  color: var(--faint);
  margin-top: 6px;
}
.site-footer {
  max-width: 1200px;
  margin: auto;
  padding: 25px 0 30px;
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  gap: 20px;
  color: var(--faint);
  font-size: 0.75rem;
}
.site-footer a {
  color: var(--muted);
  text-decoration: none;
}
.loading-state {
  padding: 50px 0;
}
.loading-state p {
  margin-top: 16px;
}
dialog {
  position: fixed;
  margin: auto 0 auto auto;
  max-height: 100dvh;
  height: 100dvh;
  width: min(700px, 100vw);
  max-width: 100vw;
  border: 0;
  border-left: 1px solid var(--line);
  padding: 0;
  background: var(--surface);
  color: var(--text);
  box-shadow: var(--shadow);
}
dialog::backdrop {
  background: #111b2d55;
  backdrop-filter: blur(2px);
}
.detail-top {
  padding: 20px 32px;
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.detail-inner {
  padding: 32px;
}
.detail-inner h2 {
  font:
    1.85rem/1.4 Georgia,
    serif;
  letter-spacing: -0.5px;
  margin: 12px 0 15px;
}
.detail-inner .authors {
  font-size: 0.9rem;
  line-height: 1.8;
}
.detail-meta {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin: 28px 0;
  padding: 22px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.detail-meta dt {
  font-size: 0.74rem;
  color: var(--muted);
  margin-bottom: 5px;
}
.detail-meta dd {
  margin: 0;
  font-size: 0.85rem;
  overflow-wrap: anywhere;
}
.abstract {
  font-size: 0.95rem;
  line-height: 1.9;
  color: var(--muted);
  white-space: pre-line;
  margin-top: 15px;
}
.detail-links {
  margin-top: 28px;
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}
.detail-links a {
  text-decoration: none;
  display: inline-flex;
  align-items: center;
}
.detail-footnote {
  font-size: 0.75rem;
  margin-top: 30px;
  line-height: 1.8;
}
.linked-list {
  padding-left: 20px;
  font-size: 0.84rem;
  line-height: 1.9;
}
.table-wrap {
  overflow: auto;
}
table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.8rem;
}
th,
td {
  text-align: left;
  padding: 9px 10px;
  border-bottom: 1px solid var(--line);
  font-variant-numeric: tabular-nums;
}
th {
  font-weight: 550;
  color: var(--muted);
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
@media (min-width: 1600px) {
  main {
    padding-top: 60px;
  }
}
@media (max-width: 1000px) {
  .header-inner {
    gap: 20px;
  }
  .header-inner nav {
    gap: 20px;
  }
  .analytics {
    grid-template-columns: 1.25fr 1fr;
    gap: 20px;
  }
  .topic-row {
    grid-template-columns: 105px 1fr 25px;
    gap: 8px;
  }
  .site-footer {
    margin: 0 32px;
  }
  .archive-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 760px) {
  .header-inner {
    flex-wrap: wrap;
    min-height: 0;
    padding: 18px 22px 0;
    gap: 14px;
  }
  .brand {
    font-size: 0.9rem;
  }
  .header-inner nav {
    order: 3;
    flex-basis: 100%;
    margin: 0;
    gap: 25px;
    min-height: 46px;
    overflow-x: auto;
  }
  .header-inner nav a {
    font-size: 0.82rem;
    white-space: nowrap;
  }
  .icon-button {
    margin-left: auto;
  }
  main {
    padding: 32px 22px 45px;
  }
  h1 {
    font-size: 1.95rem;
  }
  .page-heading {
    align-items: start;
    flex-direction: column;
    gap: 22px;
  }
  .date-control {
    width: 100%;
  }
  .status-line {
    font-size: 0.75rem;
    flex-direction: column;
    gap: 6px;
  }
  .stats {
    grid-template-columns: repeat(2, 1fr);
    gap: 24px 0;
  }
  .stat {
    padding: 0 18px;
  }
  .stat:nth-child(odd) {
    padding-left: 0;
  }
  .stat:nth-child(2) {
    border: 0;
  }
  .stat-value {
    font-size: 2.2rem;
  }
  .analytics {
    grid-template-columns: 1fr;
    gap: 18px;
  }
  .topic-row {
    grid-template-columns: 145px 1fr 30px;
  }
  .toolbar {
    gap: 8px;
  }
  .search-wrap {
    flex-basis: 100%;
  }
  .toolbar .select {
    flex: 1;
    min-width: 130px;
    max-width: 100%;
  }
  .research-item {
    grid-template-columns: 1fr 24px;
    gap: 12px;
    position: relative;
    padding: 20px 0;
  }
  .item-date {
    grid-column: 1 / -1;
    padding: 0;
    display: flex;
    gap: 9px;
    align-items: center;
  }
  .item-date span {
    display: inline;
    margin: 0;
  }
  .item-title {
    font-size: 1.14rem;
  }
  .item-open {
    margin-top: 18px;
  }
  .archive-grid {
    grid-template-columns: 1fr;
  }
  .method-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }
  .site-footer {
    margin: 0 22px;
    flex-direction: column;
    gap: 9px;
  }
  .detail-top {
    padding: 16px 22px;
  }
  .detail-inner {
    padding: 24px 22px;
  }
  .detail-inner h2 {
    font-size: 1.55rem;
  }
  .panel {
    padding: 20px;
  }
  .result-meta {
    align-items: start;
    gap: 12px;
  }
  .section-heading {
    align-items: start;
  }
  .section-heading .text-link {
    white-space: nowrap;
  }
}
@media (prefers-reduced-motion: no-preference) {
  button,
  a {
    transition:
      background 0.15s,
      color 0.15s,
      border-color 0.15s;
  }
}
@media print {
  .site-header,
  .toolbar,
  .pagination,
  dialog,
  .site-footer {
    display: none;
  }
  main {
    padding: 0;
  }
  .panel {
    break-inside: avoid;
  }
  .research-item {
    break-inside: avoid;
  }
  :root {
    --bg: #fff;
    --text: #111;
    --muted: #555;
  }
}
