/* Research showcase: shared Aceline landing-page tokens. */
#research-results{background:var(--canvas);color:#f4f6fa;border-bottom:1px solid var(--line)}
#research-results .section-head{align-items:center}
#research-results .section-head>p{color:var(--muted)}
#research-results .stack{position:relative;isolation:isolate;min-width:0}
#research-results .stack>article{position:relative;display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);align-items:center;gap:clamp(28px,4vw,56px);padding:clamp(24px,3vw,40px);min-height:var(--project-height,0px);background:var(--surface);border:1px solid var(--line);border-radius:18px;color:#f4f6fa;overflow:hidden}
#research-results .stack>article.card-outgoing{position:absolute;inset:0;z-index:2;pointer-events:none}
#research-results .stack.is-shuffling>article{will-change:transform,opacity;pointer-events:none}
#research-results .document-preview,#research-results .detail{min-width:0}
#research-results .image-button{display:block;position:relative;width:100%;padding:0;border:1px solid var(--line);border-radius:10px;overflow:hidden;background:#fff;text-align:left}
#research-results .image-button img{display:block;width:100%;height:clamp(250px,25vw,340px);object-fit:contain;background:white}
#research-results .expand{position:absolute;right:12px;bottom:12px;background:#f1f4fa;color:var(--navy);border:1px solid #071c4025;border-radius:6px;padding:8px 12px;font-size:11px;transition:background .2s ease}
#research-results .image-button:hover .expand{background:#dfe4ec}
#research-results .category,#research-results .summary-label{display:block;font-size:10px;font-weight:600;line-height:1.6;letter-spacing:1.3px;color:#aeb7c6;text-transform:uppercase}
#research-results .project-title{font-size:clamp(23px,2.2vw,30px);font-weight:500;line-height:1.3;letter-spacing:-.7px;margin:12px 0 26px}
#research-results .project-summary{display:grid;gap:22px}
#research-results .project-summary p{font-size:14px;line-height:1.8;color:var(--muted);margin:9px 0 0}
#research-results .result{border-top:1px solid var(--line);padding-top:22px}
#research-results .asset-tabs{display:flex;gap:8px;flex-wrap:wrap;padding:12px 0 0}
#research-results .project-assets:has(:only-child){display:none}
#research-results .asset-tabs button{background:transparent;color:#b5bdca;border:1px solid #ffffff30;border-radius:6px;padding:8px 10px;font-size:10px;line-height:1.5;min-height:36px;transition:background .2s ease,color .2s ease,border-color .2s ease}
#research-results .asset-tabs button:hover{background:var(--surface-raised);color:#f4f6fa;border-color:#ffffff60}
#research-results .asset-tabs button[aria-pressed=true]{background:#eef1f6;color:var(--navy);border-color:#eef1f6}
#research-results .project-navigation{display:flex;justify-content:space-between;align-items:center;gap:18px;margin-top:24px}
#research-results .controls{display:flex;align-items:center;gap:10px}
#research-results .arrow{width:44px;height:44px;display:grid;place-items:center;border:1px solid #ffffff35;background:transparent;color:#f4f6fa;border-radius:6px;font-size:20px;transition:background .2s ease,border-color .2s ease}
#research-results .arrow:hover{background:var(--surface-raised);border-color:#ffffff70}
#research-results .count{font-size:12px;color:var(--muted);margin-left:12px;font-variant-numeric:tabular-nums;white-space:nowrap}
#research-results .count b{font-size:16px;color:#f4f6fa;font-weight:500}
#research-results .dots{display:flex;position:static;align-items:center;width:auto;gap:4px;padding:0;margin:0;border:0;background:transparent;box-shadow:none;flex-direction:row}
#research-results .dots button{display:grid;place-items:center;width:28px;height:44px;padding:0;border:0;background:transparent;border-radius:4px}
#research-results .dots button::after{content:'';width:6px;height:6px;background:#59616e;border-radius:10px;transition:width .25s ease,background .25s ease}
#research-results .dots button[aria-current=true]::after{width:22px;background:#eef1f6}
#research-results dialog{border:0;padding:0;inset:0;margin:auto;width:100vw;max-width:100vw;height:100dvh;max-height:100dvh;background:#060d1a;color:white}
#research-results dialog::backdrop{background:#060d1a}
#research-results .viewer-head{display:flex;justify-content:space-between;align-items:center;gap:15px;padding:18px 25px;border-bottom:1px solid #ffffff20}
#research-results .viewer-head>span{font-size:14px}
#research-results .viewer-head button{border:1px solid #ffffff30;background:#ffffff12;border-radius:5px;padding:9px 13px;font-size:12px;color:white}
#research-results .viewer-head a{font-size:12px;color:white;padding:8px}
#research-results .viewer-image{height:calc(100dvh - 205px);overflow:auto;display:flex;align-items:flex-start;justify-content:center;padding:20px}
#research-results #rr-full{height:100%;max-width:100%;object-fit:contain}
#research-results #rr-full.zoomed{height:auto;max-width:none;width:max(1200px,100%);flex-shrink:0}
#research-results .viewer-image:has(.zoomed){justify-content:flex-start}
#research-results .viewer-foot{display:flex;justify-content:center;align-items:center;gap:25px}
#research-results .viewer-foot span{font-size:11px;color:#bbc3ce}
#research-results .viewer-foot .arrow{width:36px;height:36px;font-size:18px}
#research-results #rr-viewer-tabs{padding:10px 25px}
#research-results #rr-viewer-tabs button{background:#ffffff15;color:white;border-color:#ffffff30}
#research-results #rr-viewer-tabs button[aria-pressed=true]{background:white;color:#071c40}

#research-results dialog{background:var(--canvas)}
@media(max-width:900px){#research-results .stack>article{gap:28px;padding:28px}#research-results .project-summary p{font-size:13px}}
@media(max-width:760px){#research-results .stack>article{grid-template-columns:minmax(0,1fr);gap:26px;padding:24px;align-content:start}#research-results .image-button img{height:clamp(220px,58vw,330px)}#research-results .project-title{font-size:25px;margin-bottom:22px}#research-results .project-summary p{font-size:14px}}
@media(max-width:500px){#research-results .stack>article{padding:20px;gap:24px}#research-results .image-button img{height:230px}#research-results .category,#research-results .summary-label{font-size:9px}#research-results .project-summary{gap:18px}#research-results .result{padding-top:18px}#research-results .asset-tabs{gap:6px}#research-results .asset-tabs button{font-size:9px;padding:8px}#research-results .controls{gap:6px}#research-results .count{margin-left:4px}#research-results .dots{gap:0}#research-results .dots button{width:23px}#research-results .project-navigation{gap:8px}#research-results .viewer-head{flex-wrap:wrap;padding:12px}#research-results .viewer-head>span{width:100%}#research-results .viewer-image{height:calc(100dvh - 245px);padding:10px}}
@media(prefers-reduced-motion:reduce){#research-results *{transition:none!important;animation:none!important}}

@media(max-width:800px){#research-results .section-head{align-items:stretch}}

/* Keep all eight project selectors comfortably spaced on small screens. */
@media(max-width:500px){#research-results .project-navigation{flex-direction:column;gap:12px}#research-results .dots{justify-content:center;flex-wrap:wrap}#research-results .dots button{width:30px}#research-results .controls{justify-content:center;gap:10px}}
