/* The existing full research article uses the homepage's color and type system. */
:root{--paper:#fafdff;--ink:#142d49;--muted:#577185;--line:#d5e5f0;--accent:#136ca4;--accent-light:#e1f1fc;--green:#176c9d}
html{font-synthesis:none}body{background:var(--paper);font-weight:500}h1,h2,h3,h4{color:var(--ink)}p{color:var(--muted)}::selection{background:#cbe9fa}.masthead{background:rgba(250,253,255,.96);backdrop-filter:blur(16px);border-color:var(--line)}.masthead nav a{color:var(--ink)}.masthead nav a.current{color:var(--accent)}.brand-edition{font-size:17px;letter-spacing:.02em}.brand-wordmark img{width:112px;height:46px;object-fit:contain}.logo-crop{background:transparent}.header-cta,.button.solid,.avatar-play{background:var(--accent);border-color:var(--accent);color:white}.header-cta:hover,.button.solid:hover,.avatar-play:hover{background:#0d527e}.language-control{border-color:var(--line);color:var(--ink);background:#fff}.language-control:focus-within{outline-color:var(--accent)}.hero-art.vtuber-stage{background-image:linear-gradient(90deg,rgba(250,253,255,.9),rgba(250,253,255,.45)),url('/assets/sky-observatory.png');background-size:cover;background-position:center 30%;border-color:var(--line)}.hero-art .art-grid{display:none}.avatar-emotions button{color:var(--ink);border-color:var(--line);background:rgba(255,255,255,.8);font-weight:600}.avatar-emotions button[aria-pressed=true]{background:#e1f1fc;border-color:#7eb7d9;color:var(--accent)}.avatar-emotions button:hover{border-color:var(--accent)}.story-guide{border-color:var(--line)}.guide-heading,.small-label{color:var(--accent)}.research-snapshot{font-size:14px;line-height:1.8;margin-top:22px;max-width:55em}.research-language-fallback{display:flex;gap:10px;font-size:13px}.research-language-fallback a{color:var(--accent)}.fallback-samples{display:grid;gap:12px;margin-top:30px}.fallback-samples details{min-width:0;border-bottom:1px solid var(--line);padding-bottom:12px;font-size:14px;overflow-wrap:anywhere}.fallback-samples audio{width:100%;margin-top:12px}.js-ready .reveal{opacity:1;transform:none}.feature-index a{font-weight:600}.feature-index{gap:12px}.result-notes a{color:var(--accent);text-decoration:underline;text-underline-offset:3px}.term-popup{border-color:var(--line)}.vtuber-mini-close,.avatar-toolbar button,#avatar-restore{border-color:var(--line);color:var(--ink)}.avatar-toolbar button:hover,.vtuber-mini-close:hover{background:#e1f1fc}.footer{border-color:var(--line)}
@media(max-width:760px){.masthead .brand-edition{display:none}.masthead .brand-wordmark img{width:94px}.hero{padding-top:25px}.hero-grid{gap:28px}}
@media(prefers-reduced-motion:reduce){html{scroll-behavior:auto}}

/* Full-body mascot poses replace the abstract chapter illustrations. */
.guide-item{grid-template-columns:132px minmax(0,1fr);gap:18px}
.guide-art.guide-character{height:auto;aspect-ratio:1;background:transparent;border-radius:0;overflow:visible}
.guide-character img{display:block;width:100%;height:100%;object-fit:contain}
@media(min-width:761px) and (max-width:1080px){.guide-item{grid-template-columns:96px minmax(0,1fr);gap:14px}}
@media(max-width:760px){.guide-item{grid-template-columns:112px minmax(0,1fr);gap:18px}}
@media(max-width:360px){.guide-item{grid-template-columns:96px minmax(0,1fr);gap:16px}}

/* Expressions stay visible while translated labels and tab state change. */
.emotion-tabs{display:grid;grid-template-columns:repeat(4,minmax(0,1fr))}
.emotion-tabs button{display:flex;align-items:center;justify-content:center;gap:10px;min-width:0;padding:10px 12px}
.emotion-tabs .emotion-icon{display:block;flex:0 0 52px;width:52px;height:52px;object-fit:contain}
.emotion-tabs .emotion-label{display:block;margin:0;font:inherit;color:inherit}
@media(min-width:761px) and (max-width:1050px){.emotion-tabs button{gap:6px;padding-inline:8px}.emotion-tabs .emotion-icon{flex-basis:44px;width:44px;height:44px}}
@media(max-width:760px){.emotion-tabs{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}.emotion-tabs button{flex-direction:column;gap:4px;padding:10px 8px}.emotion-tabs .emotion-icon{flex-basis:48px;width:48px;height:48px}}

/* Evaluation data from the archived report, with horizontally scrollable metrics. */
.evaluation-overview h3,.mos-results>h3{font-size:22px;line-height:1.6;margin-bottom:20px}
.evaluation-intro{max-width:1050px;font-size:16px;line-height:1.85}
.evaluation-intro b{color:var(--ink);font-weight:700}
.overview-scroll{margin:30px 0 0;border-top:0;overscroll-behavior-x:contain}
.overview-table{min-width:1100px;table-layout:fixed;border-collapse:separate;border-spacing:0;font-family:var(--font);font-size:15px;line-height:1.7}
.overview-table .model-column{width:240px}
.overview-table .emotions-column{width:150px}
.overview-table th,.overview-table td{padding:18px 10px;border-bottom:1px solid var(--line);font:inherit;vertical-align:middle;color:var(--muted)}
.overview-table thead th{text-align:right;font-size:14px;vertical-align:bottom;font-weight:500}
.overview-table thead th[scope=colgroup]{text-align:center;color:var(--ink);border-bottom:0;font-weight:600}
.overview-table th small{display:block;margin-top:4px;font-size:13px;line-height:1.6;color:var(--muted);font-weight:500}
.overview-table tbody th{color:var(--ink);text-align:left;font-weight:500}
.overview-table td{white-space:nowrap}
.overview-table td strong{font-weight:700;color:var(--ink)}
.overview-table tbody tr,.overview-table tbody tr:hover{background:transparent}
.overview-table tbody tr.ours{background:#eef8fd}
.overview-table tbody tr.ours th{font-weight:500}
.overview-table tbody tr.ours th span{font:inherit;margin:0;padding:0;border:0}
.overview-table .unsupported{text-align:left;white-space:normal;font-size:14px}
.model-name{display:flex;align-items:center;gap:8px}
.model-name>span:last-child{min-width:0}
.model-mark{display:inline-block;width:18px;height:18px;flex:0 0 18px;border-radius:4px;background-position:center;background-size:contain;background-repeat:no-repeat}
.model-fish{background-image:url('/blog/research/assets/models/fish.png')}
.model-index{background-image:url('/blog/research/assets/models/index.png')}
.model-resemble{background-image:url('/blog/research/assets/models/resemble.png')}
.model-ours{background-image:url('/assets/iroha-logo.svg')}
.model-irodori{background:linear-gradient(135deg,#f5a452,#e95780);color:white;text-align:center}
.model-irodori::before{content:'Ir';display:block;font:700 12px/18px var(--font)}
.mos-results{margin-top:48px}
.supplementary-results{grid-template-columns:repeat(2,minmax(0,1fr))}

.mobile-release-link{display:none}
@media(max-width:1050px){
  html{scroll-padding-top:132px}
  .masthead{height:auto;min-height:0;flex-wrap:wrap;gap:0 12px;padding:8px max(16px,env(safe-area-inset-left)) 0}
  .masthead>.header-cta{display:none}
  .masthead>.language-control{margin-left:auto}
  .masthead .language-control select{min-height:44px;font-size:16px}
  .masthead>nav{display:flex;order:3;flex:0 0 100%;min-width:0;gap:22px;overflow-x:auto;overscroll-behavior-x:contain;scrollbar-width:thin}
  .masthead>nav a{display:flex;align-items:center;min-height:44px;flex-shrink:0;white-space:nowrap;font-size:14px}
  .masthead>nav .mobile-release-link{color:var(--accent)}
}
@media(max-width:760px){
  .hero-actions{flex-wrap:wrap}
  .avatar-emotions{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
  .avatar-emotions button,.mini-tabs button,.emotion-tabs button{min-height:44px}
  .play-button,.compact .play-button{width:44px;height:44px;flex-basis:44px}
  .wave-wrap{min-height:44px}
  .wave-seek{min-height:44px}
  .feature-index a{display:inline-flex;align-items:center;min-height:44px}
  .table-scroll{max-width:100%;width:100%;margin-right:0;padding-right:0;overscroll-behavior-x:contain;scrollbar-width:thin}
  .table-scroll th:first-child,.table-scroll td:first-child{position:sticky;left:0;z-index:1;background:var(--paper);box-shadow:1px 0 var(--line)}
  .table-scroll .ours th:first-child,.table-scroll .ours td:first-child{background:#eef8fd}
  .vtuber-mini-close{width:44px;height:44px;right:0;top:-12px}
  .avatar-toolbar button{width:44px;height:44px;border-radius:50%}
  #avatar-restore{min-height:44px;bottom:max(12px,env(safe-area-inset-bottom));left:max(12px,env(safe-area-inset-left))}
  .footer{padding-bottom:max(36px,env(safe-area-inset-bottom))}
  .evaluation-overview h3,.mos-results>h3{font-size:20px}
  .evaluation-intro{font-size:15px}
  .overview-table{min-width:1000px;font-size:14px}
  .overview-table .model-column{width:140px}
  .overview-table th,.overview-table td{padding:16px 10px}
  .overview-table thead th[scope=colgroup]{text-align:left}
  .overview-table .metric-group{position:sticky;left:150px;display:inline-block}
  .table-scroll .overview-table th,.table-scroll .overview-table td{position:static;box-shadow:none;background:transparent}
  .table-scroll .overview-table tbody th,.table-scroll .overview-table thead tr:first-child>th:first-child{position:sticky;left:0;z-index:1;background:var(--paper);box-shadow:1px 0 var(--line)}
  .table-scroll .overview-table .ours th{background:#eef8fd}
  .mos-results{margin-top:36px}
  .supplementary-results{grid-template-columns:1fr}
}

.brand-edition .studios-wordmark{display:block;width:112px;height:46px;object-fit:contain;mix-blend-mode:multiply}

.brand-wordmark + .brand-edition{margin-inline-start:-20px}

@media(min-width:1101px){.brand-wordmark + .brand-edition{margin-inline-start:-30px}}

.footer .brand-wordmark{width:106px;flex-shrink:0}
