/* Dr. Grasp-RL paper edition. The existing galleries retain their controls. */
/* Compact identity and resources leave the first screen for the project film. */
.paper-hero{padding-top:30px}
.paper-hero .hero-grid{display:block;padding:0 0 20px}
.paper-hero h1{margin:0;letter-spacing:0;font-weight:400;line-height:1.1}
.paper-hero .project-name{font-size:clamp(38px,4.8vw,68px);line-height:1.05;letter-spacing:-.055em;white-space:nowrap}
.paper-hero .paper-subtitle{font-size:clamp(20px,2vw,28px);line-height:1.3;letter-spacing:-.025em;max-width:1000px;margin-top:12px}
.paper-subtitle em{font-style:normal;color:var(--ink)}
.authors{font-size:14px;line-height:1.7;margin:18px 0 2px}
.authors span{padding:0 9px;color:var(--muted)}
.affiliation{font-size:12px;color:var(--muted);margin:0;line-height:1.6}
.affiliation>span{display:inline-block;margin-right:18px}.authors sup,.affiliation sup{font-size:9px;margin:0 3px}
.resource-links{display:flex;flex-wrap:wrap;gap:10px;margin:0 0 26px}
.resource-link{display:flex;align-items:center;gap:9px;padding:10px 14px;border:1px solid var(--rule);font-size:13px}
.resource-link svg{width:18px;height:18px;flex-shrink:0}
.resource-link small{display:inline;margin-left:10px;font-size:10px;color:var(--muted);font-weight:400}
.resource-link[aria-disabled=true]{cursor:default}
.resource-link[aria-disabled=true]:hover{text-decoration:none}
.resource-link[href]:hover{border-color:var(--ink);text-decoration:none}
.overview{border-top:1px solid var(--ink);background:#f0efe9}
.project-film{margin:0;background:#fff;border:1px solid var(--ink)}
.project-film video{background:#111;aspect-ratio:16/9;max-height:76vh}
.project-film figcaption{padding:14px 18px;display:flex;justify-content:space-between;gap:18px;font-size:12px;line-height:1.5;border-top:1px solid var(--rule)}
.project-film figcaption>span:last-child{color:var(--muted);flex-shrink:0}
.project-film figcaption a{text-decoration:underline;text-underline-offset:3px;color:var(--ink)}
.paper-figure{margin:0 0 32px;background:white;border:1px solid var(--rule)}
.paper-figure>a{display:block;cursor:zoom-in}
.paper-figure img{display:block;max-width:100%;width:100%;height:auto;padding:16px}
.paper-figure figcaption{border-top:1px solid var(--rule);padding:13px 18px;font-size:12px;line-height:1.6;color:var(--muted)}
.results{border-top:1px solid var(--ink);background:#fff}
.result-heading{display:flex;justify-content:space-between;gap:20px;align-items:baseline;margin:0 0 16px}
.result-heading h3{font-size:25px;font-weight:400;letter-spacing:-.035em;margin:0}
.result-heading p{font-family:var(--mono);font-size:11px;color:var(--muted);margin:0;line-height:1.6}
.transfer-heading{margin-top:38px}
.result-table-wrap{overflow-x:auto;border-top:1px solid var(--ink);border-bottom:1px solid var(--ink)}
.result-table{border-collapse:collapse;width:100%;font-size:17px;font-variant-numeric:tabular-nums;min-width:570px}
.result-table caption{text-align:left;padding:12px 16px;font-family:var(--mono);font-size:10px;color:var(--muted);background:var(--paper)}
.result-table th,.result-table td{padding:15px 22px;text-align:right;border-top:1px solid var(--rule)}
.result-table tr>*:first-child{text-align:left}
.result-table thead th{font-size:12px;font-weight:400;font-family:var(--mono);line-height:1.5}
.result-table thead tr:first-child>th[colspan]{text-align:center;background:#f0efe9}
.result-table thead tr:nth-child(2) th:first-child{text-align:right}
.result-table tbody th{font-weight:400}
.result-table tbody tr:last-child{background:#f8f3ee}
.result-table:not(.transfer-table) tbody tr:last-child{color:#be301e;font-weight:600}
.result-table:not(.transfer-table) tbody tr:last-child th{font-weight:600}
.transfer-table tbody tr:last-child{background:transparent}
.transfer-table tbody tr:nth-child(even){background:var(--paper)}
.result-note{font-size:12px;line-height:1.65;color:var(--muted);max-width:960px;margin:14px 0 0}
.recovery-panel{margin:38px 0 28px;padding:30px;background:var(--ink);color:var(--paper);display:grid;grid-template-columns:1fr 1fr;gap:50px}
.recovery-panel .mono{color:#ff8b6f}
.recovery-panel h3{font-size:28px;font-weight:400;line-height:1.18;letter-spacing:-.035em;margin:16px 0}
.recovery-panel h3 strong{display:block;font-size:76px;letter-spacing:-.06em;font-weight:400;color:#ff8b6f;line-height:1.1;margin-bottom:15px}
.recovery-panel>div>p{font-size:12px;color:#c9c9c1;line-height:1.6}
.attempt-bar{display:flex;height:36px;width:100%;margin:4px 0 24px;gap:3px}
.attempt-one{background:#c9c9c1}.attempt-two{background:#ee402a}.attempt-three{background:#ff947d}.attempt-four{background:#ffd1c1}
.attempt-legend{list-style:none;margin:0;padding:0}
.attempt-legend li{display:flex;gap:12px;align-items:center;padding:9px 0;font-size:13px;border-bottom:1px solid #474740}
.attempt-legend i{width:10px;height:10px;flex-shrink:0}
.attempt-legend strong{margin-left:auto;font-family:var(--mono);font-weight:400}
.recovery-panel .result-note{color:#c9c9c1;font-size:11px;margin-top:18px}
.diversity-detail{border-top:1px solid var(--rule);border-bottom:1px solid var(--rule)}
.diversity-detail summary{padding:18px 0;cursor:pointer;display:flex;justify-content:space-between;gap:20px;align-items:center;font-size:18px}
.diversity-detail summary:after{content:'+';font-size:25px;color:var(--red)}
.diversity-detail[open] summary:after{content:'−'}
.diversity-detail summary>.mono{color:var(--muted);margin-left:auto;font-size:10px}
.diversity-detail .paper-figure{max-width:900px;margin:0 auto 25px}
.table-scroll-hint{display:none}
@media(max-width:700px){.table-scroll-hint{display:block;color:var(--muted);font-size:9px;margin:0 0 12px;line-height:1.6}}

/* Paired paper figures stay in one row; full-size images open on click. */
.diversity-figures{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:20px;align-items:start}
.diversity-detail .diversity-figures .paper-figure{max-width:none;min-width:0;margin:0}
.diversity-figure-label{padding:14px 18px;border-bottom:1px solid var(--rule);font-size:11px;color:var(--muted)}
.diversity-zoom-note{margin:16px 0 24px;font-size:10px;color:var(--muted)}
.realworld-card[hidden]{display:none}
.realworld-expand{display:flex;flex-direction:column;justify-content:center;align-items:flex-start;gap:14px;padding:24px;background:var(--ink);color:var(--paper);border-color:var(--ink);cursor:pointer;transition:background .15s,border-color .15s}
.realworld-expand:hover{background:var(--red);border-color:var(--red)}
.rw-expand-title{font-size:22px;line-height:1.2;letter-spacing:-.025em}
.rw-expand-meta{font-size:10px;line-height:1.5}
.realworld-collapse{margin-top:18px;padding:12px 18px;border:1px solid var(--ink);background:transparent;color:var(--ink);font:inherit;font-size:13px;cursor:pointer}
.realworld-collapse:hover{background:var(--ink);color:var(--paper)}
.realworld-collapse[hidden]{display:none}
@media(max-width:700px){
  .realworld-expand{padding:18px}
  .rw-expand-title{font-size:20px}
  .diversity-figures{gap:10px}
  .diversity-figure-label{padding:10px 8px;font-size:9px}
  .diversity-figures .paper-figure figcaption{padding:10px 8px}
  .diversity-zoom-note{font-size:9px}
}

/* Chapter headings lead; descriptions and optional technical notes stay secondary. */
.section{padding-top:32px;padding-bottom:36px}
.section-heading{gap:16px;margin-bottom:24px;align-items:baseline}
.section-number{min-width:0;font-size:12px}
.section-heading h2{font-size:clamp(30px,3vw,42px);font-weight:600;letter-spacing:-.04em;line-height:1.12}
.section-note{font-size:10px}
.project-film figcaption{font-size:12px;padding:10px 14px}
.supporting-detail{margin-top:22px;border-top:1px solid var(--rule);padding:0}
.supporting-detail summary{cursor:pointer;padding:14px 0;font-size:14px;font-weight:500}
.supporting-detail p{font-size:13px;line-height:1.7;color:var(--muted);max-width:940px;margin:0 0 12px}
.episode-heading h3{font-size:24px}.episode-heading{padding-top:20px}
.split-tabs button{font-size:17px;padding:14px 18px;gap:5px}
.split-tabs{margin-bottom:14px}
.test-collection-note{padding:12px 0 18px}
.test-collection-note p{font-size:13px}
.result-heading h3{font-size:21px;line-height:1.3}
.recovery-panel{background:#f4f3ee;color:var(--ink);gap:36px;padding:24px}
.recovery-panel .mono{color:var(--muted)}
.recovery-panel h3{font-size:20px;letter-spacing:-.025em;line-height:1.4;margin:12px 0}
.recovery-panel h3 strong{font-size:28px;display:inline;color:var(--ink);letter-spacing:-.03em;font-weight:600}
.recovery-panel h3 br{display:none}
.recovery-panel>div>p,.recovery-panel .result-note{color:var(--muted)}
.attempt-legend li{border-color:var(--rule)}
footer{padding:26px var(--pad);background:var(--ink);color:var(--paper)}
.footer-compact{display:flex;align-items:baseline;justify-content:space-between;gap:20px;margin-bottom:18px}
.footer-compact>a:first-child{font-size:20px;font-weight:600;letter-spacing:-.035em}
.footer-compact>a:last-child{font-size:12px;text-decoration:underline}
.design-credit{font-size:11px;line-height:1.75;max-width:1050px;color:#b8b8af;margin:10px 0 0}
.design-credit a{color:#eee;text-decoration:underline;text-underline-offset:3px}
@media(min-width:1700px){.paper-hero,.section,footer{padding-left:max(var(--pad),calc((100vw - 1570px)/2));padding-right:max(var(--pad),calc((100vw - 1570px)/2))}}
@media(max-width:700px){
  .topbar{height:auto;min-height:52px;flex-wrap:wrap;gap:10px;padding:12px 16px}
  .topbar nav{gap:14px}.topbar nav a[href="#results"]{display:none}
  .paper-hero{padding-top:24px}.paper-hero .hero-grid{padding:0 0 16px}
  .paper-hero .project-name{font-size:clamp(34px,9vw,52px)}
  .paper-hero .paper-subtitle{font-size:20px;line-height:1.3;margin-top:10px}
  .authors{font-size:13px;margin-top:14px}.authors span{padding:0 4px}
  .affiliation{font-size:11px}.affiliation>span{display:block}
  .resource-links{gap:8px;margin-bottom:22px}
  .resource-link{font-size:12px;padding:9px 10px;gap:7px}
  .resource-link small{font-size:9px;margin-left:7px}
  .section{padding-top:26px;padding-bottom:30px}
  .section-heading{gap:10px;margin-bottom:18px}.section-number{min-width:0;font-size:10px}
  .section-heading h2{font-size:29px}
  .project-film video{max-height:none}.project-film figcaption{padding:9px 10px;gap:10px;font-size:11px;flex-wrap:wrap}
  .project-film figcaption>span:last-child{flex-shrink:1}
  .supporting-detail{margin-top:18px}.supporting-detail p{font-size:12px}
  .split-tabs button{font-size:16px;padding:12px;gap:5px}
  .test-collection-note p{font-size:12px}
  .episode-heading h3{font-size:22px}
  .result-heading{flex-direction:column;gap:6px}.result-heading h3{font-size:20px}
  .result-heading p{font-size:10px}.result-note{font-size:11px}
  .result-table{font-size:15px;min-width:535px}.result-table th,.result-table td{padding:12px 14px}
  .result-table thead th{font-size:10px}
  .recovery-panel{grid-template-columns:1fr;gap:18px;padding:20px 16px;margin-top:26px}
  .recovery-panel h3{font-size:18px}.recovery-panel h3 strong{font-size:25px}
  .attempt-bar{height:28px;margin-top:0}
  .diversity-detail summary{font-size:15px;gap:12px}.diversity-detail summary>.mono{display:none}
  .paper-figure img{padding:5px}.paper-figure figcaption{font-size:11px}
  .footer-compact>a:first-child{font-size:18px}
}
