/* /research/reviews — "Real-world reviews", the index of the model review pages (research_reviews_index/index).
   On top of the chrome CSS (the page does not render _portal_css). Research family: navy band, the main control on
   its edge, value-first tiles, rows for explanations, a navy closing card, the "About this page" fold.
   Colours: only the theme tokens (docs/research-human-first/THEME.md). Type in rem, breakpoints in em (40em / 64em),
   nothing under .90625rem (14.5 px), targets ≥ 44 px. Class prefix: rvi-. */

/* base rules (the page renders no _portal_css) */
html{scroll-padding-top:72px}
body{margin:0;background:var(--c-page);color:var(--c-body);font:400 1.0625rem/1.6 var(--sans);font-variant-numeric:lining-nums tabular-nums;overflow-wrap:break-word}
a{color:var(--c-link);text-decoration-thickness:1px;text-underline-offset:3px;text-decoration-color:var(--c-link-line)}
a:hover{text-decoration-color:currentColor}
b,strong{font-weight:700;color:var(--c-ink)}
p{margin:0 0 16px}
main .crumbs{font-size:.90625rem}
main .crumbs ol{flex-wrap:wrap;white-space:normal}
main .crumbs li{flex:0 1 auto}
main>.wrap:first-child{max-width:none;background:var(--c-band);padding:0 max(var(--g),calc((100% - var(--wrap))/2 + var(--g)));position:relative;z-index:3}
main>.wrap:first-child .ctx{margin:0;padding-top:4px;min-height:48px}
main>.wrap:first-child .crumbs{margin:0;color:var(--c-on-band-muted)}
main>.wrap:first-child .crumbs a{color:var(--c-on-band-muted);text-decoration-color:var(--c-on-band-underline)}
main>.wrap:first-child .crumbs li+li::before{color:var(--c-on-band-muted)}
main>.wrap:first-child :focus-visible{outline-color:var(--c-on-band)}

.rvi-root{--rvi-play:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M8 5.5v13l11-6.5z' fill='currentColor'/%3E%3C/svg%3E");
  font-size:1.0625rem;line-height:1.55;color:var(--c-body)}
.rvi-root p{margin:0}
.rvi-root .nw{white-space:nowrap}
.rvi-root :focus-visible{outline:3px solid var(--c-focus);outline-offset:2px}
.rvi-band :focus-visible,.rvi-end :focus-visible{outline-color:var(--c-on-band)}
.rvi-root h2,.rvi-root h3{margin:0;color:var(--c-ink)}

/* ---- the navy band: kicker, H1, the answer, the source line ---- */
.rvi-band{background:var(--c-band);color:var(--c-on-band);padding:12px 0 76px}
.rvi-kick{display:flex;align-items:center;gap:10px;font:700 .90625rem/1.2 var(--sans);letter-spacing:.1em;text-transform:uppercase;color:var(--c-on-band-muted)}
.rvi-kick::before{content:"";flex:none;width:24px;height:3px;background:var(--c-accent)}
.rvi-band h1{margin:12px 0 0;font:700 clamp(1.875rem,4.2vw,2.875rem)/1.08 var(--serif);letter-spacing:-.016em;color:var(--c-on-band);text-wrap:balance;max-width:20em}
.rvi-ld{max-width:40em}
.rvi-lede{font:400 clamp(1.125rem,2vw,1.3125rem)/1.45 var(--sans);color:var(--c-on-band-body);text-wrap:pretty}
.rvi-band b{color:var(--c-on-band);font-weight:700}

/* ---- the main control on the band's edge: the search and the model tiles ---- */
.rvi-pick{position:relative;z-index:2;margin-top:-52px;background:var(--c-card);border-radius:12px;box-shadow:0 10px 30px var(--c-shadow-deep);padding:20px 16px 22px}
.rvi-root .rvi-pick h2{font:700 clamp(1.375rem,2.6vw,1.75rem)/1.2 var(--serif)}
.rvi-find{margin-top:14px;max-width:40rem}
.rvi-lab{display:block;margin-bottom:8px;font:700 .96875rem/1.3 var(--sans);color:var(--c-ink)}
.rvi-row{display:flex;gap:8px}
.rvi-in{position:relative;flex:1;min-width:0}
.rvi-in::before{content:"";position:absolute;left:14px;top:50%;width:20px;height:20px;margin-top:-10px;background:var(--c-muted);
  -webkit-mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M9.5,3A6.5,6.5 0 0,1 16,9.5C16,11.11 15.41,12.59 14.44,13.73L14.71,14H15.5L20.5,19L19,20.5L14,15.5V14.71L13.73,14.44C12.59,15.41 11.11,16 9.5,16A6.5,6.5 0 0,1 3,9.5A6.5,6.5 0 0,1 9.5,3M9.5,5C7,5 5,7 5,9.5C5,12 7,14 9.5,14C12,14 14,12 14,9.5C14,7 12,5 9.5,5Z'/%3E%3C/svg%3E") center/100% no-repeat;
  mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M9.5,3A6.5,6.5 0 0,1 16,9.5C16,11.11 15.41,12.59 14.44,13.73L14.71,14H15.5L20.5,19L19,20.5L14,15.5V14.71L13.73,14.44C12.59,15.41 11.11,16 9.5,16A6.5,6.5 0 0,1 3,9.5A6.5,6.5 0 0,1 9.5,3M9.5,5C7,5 5,7 5,9.5C5,12 7,14 9.5,14C12,14 14,12 14,9.5C14,7 12,5 9.5,5Z'/%3E%3C/svg%3E") center/100% no-repeat}
.rvi-in input{box-sizing:border-box;width:100%;min-height:52px;padding:0 14px 0 44px;border:1.5px solid var(--c-edge);border-radius:8px;background:var(--c-control);color:var(--c-ink);font:400 1.0625rem/1.2 var(--sans);-webkit-appearance:none;appearance:none}
.rvi-in input::placeholder{color:var(--c-muted)}
.rvi-in input:focus{outline:3px solid var(--c-focus);outline-offset:1px;border-color:var(--c-brand)}
.rvi-go{flex:none;min-height:52px;padding:0 22px;border:1.5px solid var(--c-brand);border-radius:8px;background:var(--c-brand-fill);color:var(--c-on-brand);font:700 1.0625rem/1.2 var(--sans);cursor:pointer}
.rvi-go:hover{background:var(--c-brand-fill-hover)}
.rvi-st{margin-top:10px!important;font-size:1rem;color:var(--c-muted)}
.rvi-alt{margin-top:4px!important;font-weight:600}
.rvi-alt a{display:inline-flex;align-items:center;min-height:44px}

.rvi-models{list-style:none;margin:16px 0 0;padding:0;display:grid;grid-template-columns:minmax(0,1fr);gap:10px}
.rvi-models>li[hidden]{display:none}
.rvi-m{display:grid;grid-template-columns:120px minmax(0,1fr);gap:14px;align-items:start;height:100%;box-sizing:border-box;padding:10px 14px 10px 10px;background:var(--c-card);border:1.5px solid var(--c-line);border-radius:12px;color:var(--c-body);text-decoration:none;transition:border-color .12s,box-shadow .12s}
.rvi-m:hover{border-color:var(--c-brand);box-shadow:0 8px 20px var(--c-shadow)}
.m-pic{position:relative;display:block;aspect-ratio:4/3;border-radius:8px;overflow:hidden;background:var(--c-photo-frame)}
.m-pic.is-thumb{aspect-ratio:16/9}
.m-pic img{display:block;width:100%;height:100%;object-fit:cover}
.m-pic .m-dead{display:none}
.m-pl{position:absolute;left:50%;top:50%;width:40px;height:40px;margin:-20px 0 0 -20px;border-radius:50%;background:var(--c-band);box-shadow:0 0 0 2px var(--c-on-band-line);opacity:.9}
.m-pl::after{content:"";position:absolute;inset:11px 9px 11px 12px;background:var(--c-on-band);-webkit-mask:var(--rvi-play) center/100% no-repeat;mask:var(--rvi-play) center/100% no-repeat}
.m-t{display:flex;flex-direction:column;gap:6px;min-width:0;align-self:stretch}
.m-n{font:700 1.3125rem/1.2 var(--serif);color:var(--c-ink);letter-spacing:-.005em}
.rvi-m:hover .m-n{text-decoration:underline;text-underline-offset:4px;text-decoration-thickness:2px}
.m-f{font-size:1rem;line-height:1.35;color:var(--c-body)}
.m-y{font-size:1rem;line-height:1.4;color:var(--c-body)}
.m-yl{color:var(--c-muted)}
.m-yc{color:var(--c-ink);white-space:nowrap}
.m-go{margin-top:auto;padding-top:4px;font:700 1rem/1.3 var(--sans);color:var(--c-link)}
.rvi-m:hover .m-go{color:var(--c-deep)}

/* ---- sections under the control ---- */
.rvi-body{padding-bottom:8px}
.rvi-sec{margin-top:48px}
.rvi-root .rvi-sec h2{font:700 clamp(1.5rem,3vw,2rem)/1.2 var(--serif);letter-spacing:-.008em;text-wrap:balance}
.rvi-sub{margin-top:8px!important;max-width:62ch;color:var(--c-body)}

/* "How these pages work": term → one sentence, rows */
.rvi-dl{margin:16px 0 0;display:grid;grid-template-columns:minmax(0,1fr)}
.rvi-dl>div{display:grid;grid-template-columns:minmax(0,1fr);gap:2px 24px;padding:12px 0;border-top:1px solid var(--c-line)}
.rvi-dl>div:last-child{border-bottom:1px solid var(--c-line)}
.rvi-dl dt{font:700 1.0625rem/1.4 var(--sans);color:var(--c-ink)}
.rvi-dl dd{margin:0;font-size:1.0625rem;line-height:1.55;max-width:62ch}
.rvi-how .rvi-dl{background:var(--c-card);border:1.5px solid var(--c-line);border-radius:12px;padding:4px 18px}
.rvi-how .rvi-dl>div:first-child{border-top:0}
.rvi-how .rvi-dl>div:last-child{border-bottom:0}
.rvi-how .is-not dt{color:var(--c-deep)}

/* the moment strip: the model page's moment-card look; each card opens the model page at that moment */
.rvi-mos{list-style:none;margin:18px 0 0;padding:0;display:grid;grid-template-columns:minmax(0,1fr);gap:14px}
.rvi-mo{display:flex;flex-direction:column;height:100%;box-sizing:border-box;background:var(--c-card);border:1.5px solid var(--c-line);border-radius:12px;overflow:hidden;color:inherit;text-decoration:none}
.rvi-mo:hover{border-color:var(--c-brand)}
.rvi-mo:focus-visible{outline-offset:-3px}
.mo-th{position:relative;display:block;aspect-ratio:16/9;background:var(--c-track);overflow:hidden}
.mo-th img{display:block;width:100%;height:100%;object-fit:cover}
.mo-th .m-pl{width:52px;height:52px;margin:-26px 0 0 -26px}
.mo-th .m-pl::after{inset:14px 12px 14px 16px}
.mo-len{position:absolute;right:8px;bottom:8px;padding:3px 8px;border-radius:6px;background:var(--c-band);color:var(--c-on-band);font:700 .90625rem/1.2 var(--sans)}
.mo-b{display:flex;flex-direction:column;gap:10px;flex:1;padding:14px 16px 12px}
.mo-k{font:700 .90625rem/1.3 var(--sans);letter-spacing:.06em;text-transform:uppercase;color:var(--c-deep)}
.mo-yr{font-weight:600;letter-spacing:0;text-transform:none;color:var(--c-muted)}
.mo-s{font:600 1.0625rem/1.42 var(--sans);color:var(--c-ink);text-wrap:pretty}
.mo-q{font:italic 400 1.0625rem/1.5 var(--serif);color:var(--c-body);padding-left:12px;border-left:3px solid var(--c-range-strong);text-wrap:pretty}
.mo-who{display:flex;flex-wrap:wrap;align-items:center;gap:6px 8px;font-size:.96875rem;line-height:1.3;color:var(--c-muted)}
.mo-ch{color:var(--c-ink);font-weight:500}
.mo-role{display:inline-flex;align-items:center;padding:3px 9px;border-radius:999px;font:600 .90625rem/1.2 var(--sans);background:var(--c-pale);color:var(--c-on-pale)}
.mo-role.r-mechanic{background:var(--c-side-b-tint);color:var(--c-higher-text)}
.mo-role.r-owner{background:var(--c-ok-tint);color:var(--c-ok)}
.mo-go{display:block;margin-top:auto;min-height:44px;box-sizing:border-box;padding-top:10px;border-top:1px solid var(--c-hairline);font:700 1rem/1.3 var(--sans);color:var(--c-link)}
.rvi-mo:hover .mo-go{color:var(--c-deep);text-decoration:underline;text-underline-offset:3px}

/* the comparisons that exist */
.rvi-prs{list-style:none;margin:18px 0 0;padding:0;display:grid;grid-template-columns:minmax(0,1fr);gap:10px}
.rvi-pr{display:flex;flex-direction:column;gap:6px;height:100%;box-sizing:border-box;padding:14px 18px;background:var(--c-card);border:1.5px solid var(--c-line);border-radius:12px;color:var(--c-body);text-decoration:none}
.rvi-pr:hover{border-color:var(--c-brand);box-shadow:0 8px 20px var(--c-shadow)}
.pr-n{font:700 1.25rem/1.25 var(--serif);color:var(--c-ink)}
.pr-vs{font:400 1rem/1 var(--sans);color:var(--c-muted);margin:0 2px}
.pr-w{font-size:1rem;line-height:1.45;color:var(--c-body)}
.pr-f{font-size:.96875rem;color:var(--c-muted)}
.pr-go{margin-top:auto;padding-top:4px;min-height:28px;font:700 1rem/1.3 var(--sans);color:var(--c-link)}
.rvi-pr:hover .pr-go{color:var(--c-deep);text-decoration:underline;text-underline-offset:3px}

/* the navy closing card */
.rvi-end{margin-top:56px;background:var(--c-band);border-radius:12px;padding:26px 18px 28px;color:var(--c-on-band-body)}
.rvi-root .rvi-end h2{font:700 clamp(1.375rem,2.6vw,1.75rem)/1.25 var(--serif);color:var(--c-on-band)}
.rvi-end p{margin-top:6px;color:var(--c-on-band-body);max-width:60ch}
.rvi-end .e-a{display:flex;flex-direction:column;gap:12px;margin-top:20px}
.rvi-end .e-a a{display:flex;align-items:center;justify-content:center;gap:4px;min-height:52px;padding:6px 22px;box-sizing:border-box;border-radius:8px;font:700 1.0625rem/1.25 var(--sans);text-decoration:none;text-align:center;border:1.5px solid transparent}
.rvi-end .e-pri{background:var(--c-on-band);border-color:var(--c-on-band);color:var(--c-band)}
.rvi-end .e-pri:hover{background:var(--c-on-band-body)}
.rvi-end .e-sec{border-color:var(--c-on-band-chip-edge);color:var(--c-on-band)}
.rvi-end .e-sec:hover{background:var(--c-on-band);color:var(--c-band)}

/* "About this page" */
.rvi-about{margin-top:24px;margin-bottom:40px;background:var(--c-card);border:1.5px solid var(--c-line);border-radius:12px}
.rvi-about>summary{list-style:none;cursor:pointer;display:flex;align-items:center;justify-content:space-between;gap:12px;min-height:60px;padding:0 18px;color:var(--c-ink);font:700 1.0625rem/1.3 var(--sans)}
.rvi-about>summary::-webkit-details-marker{display:none}
.rvi-about>summary:hover .s-t{text-decoration:underline;text-underline-offset:3px}
.rvi-about>summary::after{content:"";flex:none;width:9px;height:9px;margin-right:4px;border-right:2px solid var(--c-brand);border-bottom:2px solid var(--c-brand);transform:translateY(-3px) rotate(45deg)}
.rvi-about[open]>summary::after{transform:translateY(2px) rotate(-135deg)}
.rvi-about .a-b{padding:4px 18px 22px;border-top:1px solid var(--c-hairline);display:flex;flex-direction:column;gap:14px}
.rvi-about .rvi-dl>div{border-color:var(--c-hairline)}
.rvi-about .a-c{font-size:1rem;color:var(--c-muted);max-width:62ch}
.rvi-about a{display:inline-flex;align-items:center;min-height:44px;font-weight:600}

/* ---- tablet ---- */
@media (min-width:40em){
  .rvi-pick{padding:24px 26px 26px}
  .rvi-models{grid-template-columns:repeat(2,minmax(0,1fr))}
  .rvi-models>li:last-child:nth-child(odd){grid-column:1/-1}
  .rvi-m{grid-template-columns:150px minmax(0,1fr)}
  .rvi-mos{grid-template-columns:repeat(2,minmax(0,1fr))}
  .rvi-prs{grid-template-columns:repeat(2,minmax(0,1fr))}
  .rvi-dl>div{grid-template-columns:minmax(0,14rem) minmax(0,1fr)}
  .rvi-end{padding:32px 36px}
  .rvi-end .e-a{flex-direction:row;flex-wrap:wrap}
}
/* ---- desktop: the five models side by side, pictures on top ---- */
@media (min-width:64em){
  .rvi-pick{padding:28px 32px 30px}
  .rvi-models{grid-template-columns:repeat(5,minmax(0,1fr))}
  .rvi-models>li:last-child:nth-child(odd){grid-column:auto}
  .rvi-m{display:flex;flex-direction:column;align-items:stretch;gap:12px;padding:10px 10px 14px}
  .rvi-m .m-t{flex:1;padding:0 6px}
  .rvi-mos{grid-template-columns:repeat(4,minmax(0,1fr))}
  .rvi-prs{grid-template-columns:repeat(3,minmax(0,1fr))}
}
@media (prefers-reduced-motion:reduce){.rvi-m,.rvi-pr{transition:none}}
