/* Local refinements to the homepage template. */
:root {
  --container-max-width: 912px;
  --preview-width: clamp(215px, 30vw, 280px);
}
.top-nav-name [lang] { font-size: .65em; font-weight: 400; }
.robot-mark {
  display: block;
  width: 30px;
  height: 30px;
  object-fit: contain;
}
.top-nav-links { flex-wrap: wrap; }

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 260px;
  align-items: center;
  gap: .9rem 2.25rem;
  margin-bottom: 1rem;
  padding-bottom: .25rem;
}
.hero-text { max-width: none; }
.hero .hero-bio { margin-bottom: 0; }
.hero-bio p { line-height: inherit; }
.hero-avatar { margin: 0; }
.hero-avatar img { display: block; margin: 0 auto; }
.hero-avatar .hero-links { justify-content: center; gap: .3rem; }
.hero-avatar .hero-links a { padding: .4em .6em; }
.hero-avatar .hero-links li { white-space: nowrap; }
.site-footer p { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: .25rem 1rem; }
.footer-identity { display: inline-flex; align-items: center; gap: .45rem; }

.research-list tr {
  align-items: center;
  gap: 1.25rem;
  padding: .85rem 0;
}
.research-list td:first-child { width: var(--preview-width); }
.research-list td:first-child :is(img, video) {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: contain;
}
.research-list div.title {
  font-size: 1.05rem;
  line-height: 1.32;
}
.research-list div.author,
.research-list .venue-line { font-size: .94rem; }
.research-list div.material { font-size: .9rem; }

.experience-grid { grid-template-columns: 1fr; gap: 0; }
.experience-item {
  display: grid;
  grid-template-columns: 100px minmax(0, 1fr);
  align-items: center;
  gap: 1.1rem;
  padding: .8rem 0;
}
.experience-item + .experience-item { border-top: 1px solid var(--color-border-light); }
.experience-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: auto;
  gap: 8px;
}
.experience-logo img { width: 44px; height: 44px; object-fit: contain; }
.experience-content {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: baseline;
  gap: .2rem 1rem;
}
.experience-institution { font-size: 1rem; margin: 0; }
.experience-period { font-size: .88rem; white-space: nowrap; margin: 0; }
.experience-position { grid-column: 1 / -1; font-size: .92rem; line-height: 1.45; }

@media (min-width: 641px) and (max-width: 768px) {
  .hero-text, .hero-bio .greeting { text-align: left; }
  .research-list tr { flex-direction: row; }
  .research-list td:last-child { width: auto; }
}
@media (max-width: 640px) {
  .hero { grid-template-columns: 1fr; gap: .9rem; }
  .hero-text { text-align: left; }
  .hero .greeting { text-align: left; }
  .hero-avatar {
    display: flex;
    align-items: center;
    gap: .8rem;
    justify-content: flex-start;
  }
  .hero-avatar img { margin: 0; width: 84px; height: 84px; }
  .hero-avatar .hero-links { justify-content: flex-start; margin: 0; }
  .research-list tr { align-items: flex-start; gap: .7rem; padding: .95rem 0; }
  .research-list td:first-child { width: 100%; }
  .experience-item { grid-template-columns: 76px minmax(0, 1fr); gap: .7rem; }
  .experience-logo { gap: 4px; }
  .experience-logo img { width: 34px; height: 34px; }
  .experience-content { grid-template-columns: 1fr; gap: .15rem; }
}
