*{box-sizing:border-box}body{margin:0;background:#faf8f3;color:#272b25;font:17px/1.85 system-ui,sans-serif}header{background:#243c35;color:white;padding:.8rem max(5vw,1rem);font-weight:650}header a{color:inherit}main{max-width:1050px;margin:auto;padding:2rem 5vw}h1,h2{font-family:serif;line-height:1.45}h1{font-size:clamp(1.6rem,4vw,2.5rem)}form{display:flex;align-items:end;flex-wrap:wrap;gap:1rem;padding:1rem;background:#edece3}label,small{display:block;font-size:.84rem}input,select,button{display:block;padding:.55rem;font:inherit;max-width:100%}button{cursor:pointer}#results{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,235px),1fr));gap:1.5rem}#results a{color:inherit;text-decoration:none}#results a:hover strong{text-decoration:underline}#results img{display:block;width:100%;aspect-ratio:3/2;object-fit:cover}small{color:#4c6657;margin:.5rem 0}article{max-width:760px;margin:auto}article img{display:block;max-width:100%;height:auto;margin:auto}figure{margin:1rem 0}a{color:#145d4b}table{display:block;overflow:auto}

.research { max-width: 1120px; }
.research form, .case, .related, .terms { border: 1px solid #deded1; border-radius: .5rem; }
#cases { display: grid; grid-template-columns: repeat(auto-fit,minmax(min(100%,290px),1fr)); gap: 1rem; }
.case, .related, .terms, #comparison { width: 100%; padding: 1rem; background: #fffdf8; }
.case h2 { margin: .25rem 0; font-size: 1.23rem; }
.case-meta { color: #425d51; font-size: .83rem; margin: 0; }
.case-select { display: flex; align-items: center; gap: .5rem; }
.case-commands { display: flex; align-items: center; flex-wrap: wrap; gap: .75rem; }
#comparison { margin-bottom: 1.5rem; scroll-margin: 1rem; }
.table-scroll { overflow: auto; }
.table-scroll table { display: table; width: 100%; border-collapse: collapse; }
.table-scroll th, .table-scroll td { min-width: 12rem; padding: .65rem; border: 1px solid #deded1; text-align: left; vertical-align: top; }
.table-scroll th:first-child { min-width: 7rem; }
.table-scroll th { background: #edece3; }
.terms, .related { margin-top: 1.5rem; }
.terms dt { margin-top: .75rem; font-weight: 650; }
.terms dd { margin-inline-start: 0; }
.evidence-anchor { display: block; scroll-margin: 1.5rem; }
.evidence-anchor:target + * { outline: 2px solid #799c8b; outline-offset: .25rem; }
article img { width: auto; }
.related { max-width: 760px; margin-inline: auto; }
.related p { margin-top: 0; }
[hidden] { display: none !important; }
.ts-chapter-comic { width: min(100%, 570px); margin: 1.5rem auto; }
.ts-chapter-panel { margin: .85rem 0; border: 2px solid #302d29; border-radius: 9px; background: #fbf5e8; }
article img.ts-comic-art { width: 100%; height: auto; border-radius: 7px 7px 0 0; }
.ts-comic-dialogue { padding: 1.15rem .75rem .75rem; }
.ts-chapter-balloon {
  position: relative;
  margin: 0;
  padding: .55rem .85rem;
  border: 2px solid #302d29;
  border-radius: 24px;
  background: white;
  line-height: 1.5;
  font-weight: 600;
  overflow-wrap: anywhere;
}
.ts-comic-tail { position: absolute; top: -8px; left: 1.5rem; width: 12px; height: 12px; border: solid #302d29; border-width: 2px 0 0 2px; background: white; transform: rotate(45deg); }
.ts-comic-speaker { display: block; color: #594334; font-size: .78em; }
