/* Paper presentation, scoped to the two supply-and-demand studies. */
html { scroll-behavior: smooth; scroll-padding-top: 24px; }
body.research-paper-page { margin:0; background:#fff; color:#28313a; font-family:Georgia,"Times New Roman",serif; font-size:18px; line-height:1.8; }
.research-paper-page *, .research-paper-page *::before, .research-paper-page *::after { box-sizing:border-box; }
.research-paper-page .project-detail__top { width:min(calc(100% - 64px),1040px); min-height:72px; margin:0 auto; display:flex; align-items:center; border-bottom:1px solid #dce1e4; }
.research-paper-page .project-detail__top a { color:#395e75; font:600 12px/1.4 Arial,Helvetica,sans-serif; letter-spacing:.06em; text-transform:uppercase; text-decoration:none; }
.research-paper-page .project-detail__top a:hover { text-decoration:underline; }
.research-paper-page .project-detail__main { width:min(calc(100% - 64px),1040px); margin:0 auto; padding:56px 0 80px; }
.research-paper { max-width:980px; margin:0 auto; }
.research-paper a { color:#245b7c; text-underline-offset:3px; }
.research-paper a:focus-visible, .research-paper-page .project-detail__top a:focus-visible { outline:2px solid #28678e; outline-offset:5px; }
.research-paper .paper-header { max-width:800px; margin:0 auto 32px; }
.research-paper .paper-kicker { margin:0 0 16px; color:#536774; font:600 11px/1.5 Arial,Helvetica,sans-serif; letter-spacing:.10em; text-transform:uppercase; }
.research-paper-page .project-detail__main .research-paper h1 { max-width:850px; margin:0 0 22px; color:#1f2d36; font:400 clamp(2.1rem,4.5vw,3.55rem)/1.13 Georgia,"Times New Roman",serif; letter-spacing:-.035em; }
.research-paper .paper-subtitle { margin:0 0 20px; color:#4a5963; font-size:21px; line-height:1.55; }
.research-paper .paper-meta { margin:0 0 26px; color:#64737c; font:12px/1.7 Arial,Helvetica,sans-serif; }
.research-paper .paper-actions { margin:0 0 22px; font:13px/1.7 Arial,Helvetica,sans-serif; }
.research-paper .paper-abstract { margin:0; padding:24px 0; border-top:1px solid #dce1e4; border-bottom:1px solid #dce1e4; font-size:17px; line-height:1.75; }
.research-paper .paper-contents { max-width:800px; margin:0 auto 48px; display:flex; flex-wrap:wrap; gap:10px 25px; font:13px/1.6 Arial,Helvetica,sans-serif; }
.research-paper .paper-section { padding-top:20px; margin-bottom:45px; }
.research-paper h2 { max-width:760px; margin:0 auto 22px; color:#213b4a; font:400 31px/1.25 Georgia,"Times New Roman",serif; letter-spacing:-.025em; }
.research-paper h3 { max-width:760px; margin:32px auto 14px; color:#263d4b; font:600 19px/1.5 Arial,Helvetica,sans-serif; }
.research-paper p { max-width:760px; margin:0 auto 20px; }
.research-paper strong { font-weight:700; }
.research-paper .paper-equation { max-width:800px; margin:26px auto; padding:20px 24px; background:#f3f6f8; border-left:3px solid #8baabd; font:16px/1.7 Arial,Helvetica,sans-serif; }
.research-paper .paper-figure { margin:34px 0 40px; padding:0; }
.research-paper .paper-figure > a { display:block; padding:14px; border:1px solid #e2e7ea; background:#fff; }
.research-paper .paper-figure picture, .research-paper .paper-figure img { display:block; width:100%; max-width:100%; height:auto; }
.research-paper figcaption { max-width:800px; margin:14px auto 0; color:#52616b; font:13px/1.75 Arial,Helvetica,sans-serif; }
.research-paper figcaption strong { color:#354a58; }
.research-paper .paper-table-wrap { max-width:900px; margin:28px auto 34px; overflow-x:auto; }
.research-paper .paper-table { border-collapse:collapse; width:100%; color:#344955; font:13px/1.65 Arial,Helvetica,sans-serif; }
.research-paper .paper-table caption { color:#4d626f; text-align:left; padding-bottom:11px; font-weight:600; }
.research-paper .paper-table th, .research-paper .paper-table td { padding:12px 14px; vertical-align:top; border-bottom:1px solid #dce3e7; text-align:left; }
.research-paper .paper-table th { background:#f2f5f7; color:#284455; font-weight:600; }
.research-paper .paper-table tbody tr:last-child td { border-bottom:2px solid #aabcc7; }
.research-paper .paper-table td:first-child { min-width:150px; }
.research-paper .prose-table td:first-child { width:27%; }
.research-paper .paper-sources { max-width:800px; margin:38px auto 0; padding-top:12px; border-top:1px solid #dce3e7; }
.research-paper .paper-sources h3 { font-size:16px; }
.research-paper .paper-sources p { color:#586a75; font-size:15px; line-height:1.8; }
@media(max-width:600px) {
  body.research-paper-page { font-size:17px; line-height:1.8; }
  .research-paper-page .project-detail__top { width:calc(100% - 36px); min-height:62px; }
  .research-paper-page .project-detail__main { width:calc(100% - 36px); padding:35px 0 55px; }
  .research-paper .paper-subtitle { font-size:19px; }
  .research-paper .paper-meta { font-size:11px; }
  .research-paper .paper-abstract { font-size:16px; }
  .research-paper .paper-contents { gap:10px 20px; margin-bottom:24px; }
  .research-paper h2 { font-size:27px; }
  .research-paper h3 { font-size:17px; }
  .research-paper .paper-figure { margin:28px -10px 32px; }
  .research-paper .paper-figure > a { padding:4px; }
  .research-paper figcaption { margin:12px 10px 0; font-size:12px; }
  .research-paper .paper-equation { padding:16px; font-size:15px; }
  .research-paper .paper-table th, .research-paper .paper-table td { padding:10px 9px; }
  .research-paper .paper-table { font-size:12px; }
}
@media print {
  html { scroll-behavior:auto; }
  body.research-paper-page { color:#111; font-size:11pt; line-height:1.6; }
  .research-paper-page .project-detail__top, .research-paper .paper-contents, .research-paper .paper-actions { display:none; }
  .research-paper-page .project-detail__main { width:100%; padding:0; }
  .research-paper-page .project-detail__main .research-paper h1 { font-size:26pt; }
  .research-paper .paper-subtitle { font-size:14pt; }
  .research-paper h2 { font-size:18pt; break-after:avoid; }
  .research-paper h3 { font-size:12pt; break-after:avoid; }
  .research-paper .paper-figure { break-inside:avoid; page-break-inside:avoid; margin:20px 0; }
  .research-paper .paper-figure > a { border:0; padding:0; }
  .research-paper .paper-figure img { max-height:650px; object-fit:contain; }
  .research-paper figcaption { font-size:9pt; }
  .research-paper a { color:#222; }
}
