/* Data first, followed by two uninterrupted profile views. */
.compare-dialog { width:min(1100px,calc(100vw - 48px)); max-width:none; max-height:calc(100dvh - 48px); padding:0; border:1px solid var(--line); border-radius:8px; background:var(--panel); }
.compare-dialog .dialog-header { position:sticky; top:0; z-index:3; min-height:64px; padding:10px 28px; background:var(--panel); border-bottom:1px solid var(--line); font:500 13px var(--reading); }
.compare-intro { padding:28px 32px 20px; }
.compare-intro h2 { font:600 clamp(32px,3vw,44px)/1.05 var(--display); letter-spacing:0; }
.compare-intro p { max-width:65ch; margin-top:10px; font:14px/1.6 var(--reading); color:var(--muted); }
.comparison-scroll { margin:0; padding:0 32px; overflow-x:auto; }
.comparison-table { width:100%; min-width:0; table-layout:fixed; border-collapse:collapse; font:14px/1.5 var(--reading); }
.comparison-table th,.comparison-table td { width:auto; min-width:0; padding:14px 16px; vertical-align:top; text-align:left; border-bottom:1px solid var(--line); overflow-wrap:anywhere; }
.comparison-table th:first-child,.comparison-table td:first-child { width:26%; padding-left:0; }
.comparison-table tr>:last-child { padding-right:0; }
.comparison-table thead th { color:var(--text); font:600 25px/1.15 var(--display); padding-top:12px; padding-bottom:18px; text-transform:none; letter-spacing:0; }
.comparison-table thead th:first-child { font:500 12px/1.5 var(--reading); color:var(--muted); }
.comparison-table thead small { display:block; margin-top:7px; font:400 12px/1.5 var(--reading); color:var(--muted); }
.comparison-thumbnail { width:min(150px,100%); height:64px; margin:0 0 12px; }
.comparison-thumbnail svg,.comparison-thumbnail img { display:block; width:100%; height:100%; object-fit:contain; }
.comparison-table tbody th { font:500 12px/1.5 var(--reading); color:var(--muted); text-transform:none; letter-spacing:0; }
.comparison-scroll>.data-note { padding:16px 0 24px; border:0; font:12px/1.6 var(--reading); }
.compare-dialog .dimension-comparison { margin:0 32px 32px; padding:28px 0 0; border:0; border-top:1px solid var(--line); border-radius:0; background:transparent; scroll-margin-top:76px; }
.compare-dialog .dimension-heading h3 { margin:0 0 24px; font:600 30px/1.1 var(--display); }
.compare-dialog .length-scales { max-width:660px; margin:0 auto; background:none; }
.compare-dialog .dimension-heading,.compare-dialog .span-comparison { max-width:660px; margin-left:auto; margin-right:auto; }
.compare-dialog .length-row { margin-bottom:26px; }
.compare-dialog .length-label { gap:16px; background:none; }
.compare-dialog .length-label strong { font:600 23px var(--display); }
.compare-dialog .length-label>span { font:500 14px var(--reading); }
.compare-dialog .length-illustration { height:auto; margin:12px 0; overflow:visible; }
.compare-dialog .length-illustration svg { display:block; height:auto; max-width:100%; }
.compare-dialog .length-illustration img { position:static; width:100%; height:auto; max-width:100%; transform:none; object-fit:contain; }
.compare-dialog .length-track { height:3px; background:var(--soft); border-radius:0; }
.compare-dialog .length-track i { height:3px; background:var(--accent); border-radius:0; }
.compare-dialog .length-row small { padding-top:10px; font:12px/1.5 var(--reading); background:none; }
.compare-dialog .ruler-labels { font:11px var(--reading); color:var(--muted); }
.compare-dialog .person-reference { margin-top:18px; }
.compare-dialog .span-comparison { margin-top:24px; }
.compare-dialog .data-note { font:12px/1.6 var(--reading); border-left:0; }
@media(max-width:600px) {
  .compare-dialog { width:100%; max-width:none; max-height:100dvh; height:100dvh; margin:0; border:0; border-radius:0; }
  .compare-dialog .dialog-header { padding:8px 20px; min-height:60px; }
  .compare-intro { padding:24px 20px 14px; }
  .compare-intro p { font-size:13px; }
  .comparison-scroll { padding:0 20px; }
  .comparison-table { font-size:12px; line-height:1.5; }
  .comparison-table th,.comparison-table td { padding:12px 8px; }
  .comparison-table th:first-child,.comparison-table td:first-child { width:25%; }
  .comparison-table tbody th,.comparison-table thead th:first-child { font-size:11px; }
  .comparison-table thead th { font-size:20px; }
  .comparison-table thead small { font-size:10px; }
  .comparison-thumbnail { height:48px; margin-bottom:10px; }
  .compare-dialog .dimension-comparison { margin:0 20px 28px; padding-top:24px; }
  .compare-dialog .length-label strong { font-size:21px; }
  .compare-dialog .length-label>span { font-size:12px; }
}
