.reincarnation-article {
  table { width: 100%; min-width: 0; border-collapse: collapse; font-size: 13px; line-height: 1.55; }
  th, td { padding: 7px 6px; text-align: left; border-bottom: 1px solid var(--line); vertical-align: top; }
  th, tbody tr:nth-child(even) { background: transparent; }
  .ranking th { white-space: normal; overflow-wrap: anywhere; }
  .ranking td { font-variant-numeric: tabular-nums; white-space: nowrap; }
  .ranking tbody th { font-weight: 500; }
  .ranking + p { margin-top: 1lh; }
  #limitations p + p { margin-top: 0.75em; }
  #work-list { table-layout: fixed; }
  #work-list .month-heading { width: 13%; white-space: nowrap; }
  #work-list .book-heading { width: 34%; }
  #work-list .category-heading { width: 25%; }
  #category { position: relative; padding: 0; border: 0; }
  #category[open] > summary { margin-bottom: 0; }
  #category summary {
    min-height: 28px; padding: 2px 4px; border: 1px solid #cbd5e1;
    border-radius: 3px; background: #fff; white-space: normal; overflow-wrap: anywhere;
  }
  .category-options {
    position: absolute; z-index: 2; inset-inline-end: 0; min-width: 100%;
    width: max-content; max-width: 240px; max-height: 60vh; overflow: auto;
    background: #fff; border: 1px solid #cbd5e1; border-radius: 3px;
  }
  .category-options button {
    display: block; width: 100%; min-height: 32px; padding: 4px 8px;
    border: 0; background: #fff; color: var(--text); font: inherit; text-align: left; cursor: pointer;
  }
  .category-options button:hover, .category-options button[aria-pressed="true"] { background: var(--surface); }
  #work-list tbody th, #work-list tbody td { padding: 5px 6px; overflow-wrap: anywhere; }
  #work-list th[scope="row"] { font-weight: 400; white-space: normal; }
  #work-list .book-title { font-size: 15px; line-height: 1.55; }
  #work-list .month { color: var(--muted); white-space: nowrap; font-size: 12px; font-variant-numeric: tabular-nums; }
  #work-list .citation-mobile { display: none; }
  .source-link { font-size: 12px; }
  #work-list .source-quote { margin: 0; padding: 0 0 0 6px; border-left: 2px solid #cbd5e1; background: transparent; }
  .sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
  #work-list [hidden] { display: none !important; }
  @media (max-width: 620px) {
    #work-list, #work-list thead, #work-list tbody { display: block; }
    #work-list thead :is(.book-heading, .category-heading) { width: auto; }
    #work-list thead .evidence-heading, #work-list .month-column { display: none; }
    #work-list .citation-desktop { display: none; }
    #category summary { font: inherit; min-height: 0; padding: 0; border: 0; background: transparent; }
    .category-options button { font-size: 16px; min-height: 36px; }
    #work-list tr {
      display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 32%) 4em;
      align-items: start; gap: 4px 8px; padding: 6px 4px; border-bottom: 1px solid var(--line);
    }
    #work-list tr > :is(th, td) { padding: 0; border: 0; min-width: 0; }
    #work-list .book-title { font-size: inherit; }
    #work-list .citation-mobile { display: block; margin: 0; padding: 0; border: 0; }
    #work-list .citation-mobile summary { padding: 0; white-space: nowrap; }
    #work-list .evidence:has(.citation-mobile[open]) { grid-column: 1 / -1; }
    #work-list .citation-mobile[open] > summary { margin-bottom: 4px; }
  }
}
