/* Navigation preview, layered over the existing project-page styles. */
main > section > .section-heading .eyebrow,
main > section > .research-copy > .eyebrow,
main > section > .resources-intro > .eyebrow { display: none; }
html[data-theme="immersive"] main > section > .section-heading > p { display: none; }
html[data-theme] main > section > .section-heading { grid-template-columns: minmax(0, 1fr); gap: 0; }
html[data-theme="research"] { --paper: #fff; --surface: #fff; --line: #e3e8e5; --header-height: 76px; }
.project-nav-header, .project-nav-header * { letter-spacing: 0 !important; }
html .header.project-nav-header {
  display: grid; grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 28px; min-height: 76px; padding: 0 40px;
  max-width: none; background: #fff; color: #1c2924;
  border-bottom: 1px solid #dce3de; overflow: visible;
}
html .project-nav-header .brand { font-size: 20px; gap: 8px; }
html .project-nav-header .brand-mark { width: 29px; height: 29px; flex-basis: 29px; }
html .header .project-navigation {
  display: flex; flex-direction: row; position: static; justify-content: center; align-items: center;
  gap: 14px; padding: 0; margin: 0; border: 0; background: transparent;
  width: auto; max-height: none; overflow: visible; box-shadow: none;
}
.nav-group { position: relative; min-width: 0; }
.nav-trigger {
  display: flex; gap: 9px; align-items: center; min-height: 44px;
  padding: 10px 12px; border: 0; background: transparent; border-radius: 5px;
  color: inherit; font: 550 14px/1.3 var(--sans); cursor: pointer; white-space: nowrap;
}
.nav-trigger:hover, .nav-trigger[aria-expanded="true"] { background: #e8eeea; color: #205942; }
.nav-chevron { display: inline-flex; }
.nav-chevron .icon { width: 14px; height: 14px; transform: rotate(0); }
.nav-trigger[aria-expanded="true"] .nav-chevron { transform: rotate(180deg); }
.nav-dropdown {
  position: absolute; top: calc(100% + 13px); left: 0; width: 306px;
  padding: 10px; border: 1px solid #dbe3de; border-radius: 8px;
  background: #fff; box-shadow: 0 14px 36px rgb(26 52 37 / 12%);
  color: #1b2b22; white-space: normal;
}
.nav-dropdown[hidden] { display: none !important; }
html .header .navigation a::after { display: none; }
html .header .navigation .nav-item {
  display: flex; align-items: center; gap: 12px; width: 100%;
  padding: 12px; border: 0; border-radius: 5px; min-height: 49px;
  font: 500 14px/1.45 var(--sans); color: #26372e; text-decoration: none;
}
html .header .navigation .nav-item:hover { background: #eff4f1; color: #235840; }
.nav-item-label { min-width: 0; }
.nav-item > span > small { display: block; margin-top: 4px; font-size: 12px; font-weight: 400; color: #7a857e; }
@media (min-width: 901px) { #nav-panel-core { width: 372px; } }
.nav-group-gallery .nav-dropdown { width: 294px; }
.nav-group-design .nav-dropdown {
  width: 610px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr));
  left: 50%; transform: translateX(-50%); gap: 6px; padding: 14px;
}
html .header .navigation .nav-design-item {
  display: flex; flex-direction: column; align-items: stretch; padding: 10px;
  gap: 11px; border: 0; border-radius: 5px; min-width: 0;
}
html .header .navigation .nav-design-item:hover { background: #eff4f1; }
.nav-figure-preview { display: flex; align-items: center; justify-content: center; padding: 10px; aspect-ratio: 2.15; background: #fff; border: 1px solid #e8ede9; border-radius: 4px; }
.nav-figure-preview img { width: 100%; height: 100%; max-height: 105px; object-fit: contain; }
.nav-design-caption { display: flex; gap: 9px; align-items: baseline; min-width: 0; }
.nav-design-caption small { font: 11px var(--mono); color: #799083; }
.nav-design-caption strong { font: 550 13px/1.45 var(--sans); overflow-wrap: anywhere; }
.nav-design-caption .icon { margin-left: auto; width: 13px; height: 13px; flex: 0 0 13px; }
.architecture-figure-5 { grid-template-columns: minmax(0, 1fr); gap: 24px; }
.architecture-figure-5 .architecture-caption { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr); align-items: center; gap: 32px; }
.architecture-figure-5 .architecture-caption p { margin: 0; }
.architecture-figure-5 .architecture-image { border-radius: 6px; padding: 16px; }
.architecture-figure-5 .architecture-image > img { height: auto; aspect-ratio: 2326 / 558; object-fit: contain; }
@media (max-width: 700px) {
  .architecture-figure-5 .architecture-caption { grid-template-columns: minmax(0, 1fr); gap: 16px; }
  .architecture-figure-5 .architecture-image { padding: 8px; }
}
html .project-nav-header .header-right { gap: 12px; }
html .project-nav-header .language { font-size: 12px; min-height: 36px; padding: 0 10px; border-radius: 5px; }
html .project-nav-header .header-cta { min-height: 40px; padding: 8px 14px; font-size: 13px; border-radius: 5px; }
.nav-trigger:focus-visible, .nav-dropdown a:focus-visible, .hero-resource:focus-visible, .community-action:focus-visible { outline: 2px solid #318768; outline-offset: 4px; }
html[data-theme="research"] .research-heading.hero-resource-heading {
  display: flex; flex-direction: column; align-items: center; gap: 28px;
  margin: 0 auto 30px; width: 100%; max-width: 1120px;
}
.hero-resource-heading, .hero-resource-heading * { letter-spacing: 0 !important; }
html[data-theme="research"] .hero-resource-heading > .hero-identity { align-self: center; text-align: center; }
html[data-theme="research"] .hero-resource-heading #hero-title { margin: 0; font-size: 80px; line-height: 1.1; white-space: nowrap; }
.hero-resource-tagline { margin: 14px 0 0; color: #607369; font: 400 18px/1.5 var(--sans); }
.hero-resource-links { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; width: 100%; }
.hero-resource {
  display: flex; align-items: center; justify-content: flex-start; gap: 8px;
  min-height: 64px; min-width: 0; padding: 8px 12px; text-align: left;
  border: 1px solid #dce4df; border-radius: 12px; background: #fff; color: #25362d;
  text-decoration: none; cursor: pointer;
  box-shadow: 0 2px 3px rgb(27 46 34 / 3%);
  transition: border-color 160ms ease, background 160ms ease, box-shadow 160ms ease;
}
.hero-resource-symbol { display: inline-flex; align-items: center; justify-content: center; width: 26px; height: 26px; flex: 0 0 26px; }
.hero-resource-symbol img { display: block; width: 26px; height: 26px; object-fit: contain; }
.hero-resource-symbol .icon { width: 23px; height: 23px; flex: 0 0 23px; }
.hero-resource-copy { display: flex; flex-direction: column; min-width: 0; gap: 3px; }
.hero-resource-copy strong { font: 650 15px/1.3 var(--sans); white-space: nowrap; }
.hero-resource-copy small { color: #758177; font: 400 11px/1.35 var(--sans); white-space: normal; }
.hero-resource > .hero-resource-end { margin-left: auto; width: 13px; height: 13px; flex: 0 0 13px; color: #7f9587; }
.hero-resource:hover { border-color: #7e9d8b; background: #fbfdfb; box-shadow: 0 5px 14px rgb(27 46 34 / 8%); }
.hero-resource-huggingface .hero-resource-symbol { background: transparent; }
.hero-resource-huggingface img { width: 100%; height: 100%; }
.hero-resource-demo { background: #203e30; color: #fff; border-color: #203e30; box-shadow: 0 4px 12px rgb(32 62 48 / 13%); }
.hero-resource-demo .hero-resource-symbol { color: #dbefcc; }
.hero-resource-demo small { color: #c5d7cb; }
.hero-resource-demo > .hero-resource-end { color: #dbefcc; }
.hero-resource-demo:hover { background: #2f5742; border-color: #2f5742; }
.hero-resource-report .hero-resource-symbol { color: #7a718c; }
.hero-resource-report.is-pending small { color: #786483; }
.hero-resource-report.is-pending > .hero-resource-end { display: none; }
.hero-resource-benchmark .hero-resource-symbol { color: #407ea0; }
.hero-resource-benchmark:hover { background: #f4f9fc; border-color: #85a8bd; }
.community-section { border-top: 1px solid var(--line); }
.community-empty { display: flex; align-items: center; gap: 24px; padding: 38px 0; border-block: 1px solid var(--line); }
.community-symbol { display: inline-flex; color: #789285; }
.community-symbol .icon { width: 38px; height: 38px; }
.community-empty h3 { margin: 0; font: 550 20px/1.4 var(--sans); letter-spacing: 0; }
.community-empty p { margin: 7px 0 0; color: var(--muted); font: 400 14px/1.6 var(--sans); }
.community-action { margin-left: auto; display: inline-flex; align-items: center; gap: 16px; color: #305941; font: 550 14px var(--sans); white-space: nowrap; }
.community-action .icon { width: 20px; height: 20px; }
@media (min-width: 901px) {
  html[data-theme] #world-memory .capability-showcase-media {
    grid-template-columns: minmax(0, 1fr) minmax(0, 220px);
    grid-template-rows: auto auto;
    column-gap: 32px;
    row-gap: 0;
    align-items: start;
  }
  html[data-theme] #world-memory .capability-featured {
    display: grid;
    grid-column: 1;
    grid-row: 1 / span 2;
    grid-template-rows: subgrid;
    margin: 0;
    min-width: 0;
  }
  html[data-theme] #world-memory .capability-featured-frame {
    aspect-ratio: 1280 / 704;
    border: 0;
  }
  html[data-theme] #world-memory .capability-featured-frame video {
    height: 100%;
    aspect-ratio: auto;
    object-fit: contain;
  }
  html[data-theme] #world-memory .capability-video-strip {
    grid-column: 2;
    grid-row: 1;
    align-self: stretch;
    contain: size;
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: repeat(3, minmax(0, 1fr));
    gap: 12px;
    min-height: 0;
  }
  html[data-theme] #world-memory .capability-video {
    display: grid;
    grid-template-rows: minmax(0, 1fr) auto;
    min-height: 0;
    justify-items: start;
  }
  html[data-theme] #world-memory .capability-video-frame {
    width: auto;
    height: 100%;
    max-height: 121px;
    max-width: 100%;
    aspect-ratio: 1280 / 704;
  }
  html[data-theme] #world-memory .capability-video-frame img {
    width: 100%;
    height: 100% !important;
    object-fit: contain;
  }
  html[data-theme] #world-memory .capability-video figcaption {
    width: 100%;
    padding: 5px 0 0;
    gap: 2px 8px;
    border-bottom: 0;
  }
  html[data-theme] #world-memory .capability-video figcaption strong {
    font-size: 12px;
    line-height: 1.4;
    letter-spacing: 0;
  }
  html[data-theme] #world-memory .capability-video figcaption span,
  html[data-theme] #world-memory .capability-video figcaption small {
    font-size: 10px;
    line-height: 1.4;
    letter-spacing: 0;
  }
  html[data-theme] #world-memory .capability-video-action {
    width: 26px;
    height: 26px;
    right: 7px;
    bottom: 7px;
  }
}
@media (min-width: 901px) {
  html[data-theme="research"] .research-hero { padding-top: 36px; padding-bottom: 28px; }
  /* A restrained media width, independent of viewport height. */
  html[data-theme="research"] .research-showcase.trailer-showcase { width: min(100%, 960px); min-width: 0; }
}
@media (max-width: 1100px) and (min-width: 901px) {
  html .header.project-nav-header { gap: 16px; padding-inline: 24px; }
  html .header .project-navigation { gap: 2px; }
  .nav-trigger { font-size: 13px; padding-inline: 9px; gap: 6px; }
  .hero-resource { padding-inline: 12px; gap: 8px; }
  .hero-resource-copy strong { font-size: 13px; }
  .hero-resource-copy small { font-size: 10px; }
  .hero-resource > .hero-resource-end { display: none; }
}
@media (max-width: 900px) {
  html[data-theme="research"] { --header-height: 112px; }
  html .header.project-nav-header { grid-template-columns: 1fr auto; gap: 0 12px; padding: 10px 20px 0; min-height: 112px; }
  html .header .project-navigation { grid-column: 1 / -1; grid-row: 2; width: 100%; justify-content: space-between; gap: 0; border-top: 1px solid #e6ebe7; margin-top: 8px; }
  .nav-group { position: static; }
  .nav-trigger { font-size: 14px; padding-inline: 8px; min-height: 43px; }
  .nav-dropdown, .nav-group-design .nav-dropdown, .nav-group-gallery .nav-dropdown { left: 16px; right: 16px; top: calc(100% + 1px); transform: none; width: auto; max-height: min(65dvh, 500px); overflow: auto; }
  html[data-theme="research"] .hero-resource-heading #hero-title { font-size: 64px; }
  html[data-theme="research"] .research-heading.hero-resource-heading { gap: 20px; margin-bottom: 24px; }
  .hero-resource-links { max-width: 650px; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 10px; }
  .hero-resource { grid-column: span 3; min-height: 56px; padding: 8px 12px; }
  .hero-resource-demo { order: -1; grid-column: 1 / -1; justify-content: center; }
  .hero-resource-demo > .hero-resource-end { margin-left: 20px; }
  html[data-theme="research"] .research-showcase.trailer-showcase { width: min(100%, 650px); }
  .community-empty { flex-wrap: wrap; gap: 20px; }
  .community-action { margin-left: 58px; }
}
@media (max-width: 540px) {
  html .header.project-nav-header { padding-inline: 16px; }
  html .project-nav-header .brand { font-size: 17px; }
  html .project-nav-header .brand-mark { width: 24px; height: 24px; flex-basis: 24px; }
  html .project-nav-header .header-right { gap: 7px; }
  html .project-nav-header .header-cta { padding: 7px 10px; font-size: 12px; min-height: 36px; }
  html .project-nav-header .language { width: auto; padding-inline: 7px; min-width: 32px; }
  html .project-nav-header .language span { display: none; }
  .nav-trigger { font-size: 12px; padding-inline: 4px; gap: 5px; }
  .nav-group-design .nav-dropdown { padding: 7px; gap: 0; }
  html .header .navigation .nav-design-item { padding: 8px; gap: 8px; }
  .nav-design-caption { gap: 6px; }
  .nav-design-caption strong { font-size: 12px; }
  .nav-design-caption .icon { display: none; }
  .nav-figure-preview { padding: 4px; }
  .hero-resource { gap: 10px; padding: 7px 12px; min-height: 52px; }
  .hero-resource-copy strong { font-size: 14px; }
  .hero-resource-copy small { font-size: 10px; }
  .hero-resource > .hero-resource-end { display: none; }
  .hero-resource-demo > .hero-resource-end { display: block; }
  .hero-resource-symbol, .hero-resource-symbol img { width: 23px; height: 23px; flex-basis: 23px; }
  html[data-theme="research"] .research-hero { padding-top: 24px; padding-bottom: 18px; }
  html[data-theme="research"] .research-heading.hero-resource-heading { gap: 18px; margin-bottom: 20px; }
  html[data-theme="research"] .hero-resource-heading #hero-title { font-size: 52px; }
  .hero-resource-tagline { margin-top: 10px; font-size: 14px; }
}
@media (max-width: 360px) {
  .hero-resource { gap: 7px; padding-inline: 9px; }
  .hero-resource-copy strong { font-size: 12px; }
  .hero-resource-copy small { font-size: 9px; }
  .hero-resource-symbol, .hero-resource-symbol img { width: 21px; height: 21px; flex-basis: 21px; }
  html[data-theme="research"] .hero-resource-heading #hero-title { font-size: 46px; }
  html .project-nav-header .brand { font-size: 15px; }
  .nav-trigger { font-size: 11px; padding-inline: 0; gap: 3px; }
  html .header .project-navigation { gap: 7px; }
  .nav-chevron .icon { width: 10px; height: 10px; }
}
@media (prefers-reduced-motion: reduce) { .hero-resource { transition: none; } }

/* White editorial layout: familiar navigation, clear introductions, softer media. */
html[data-theme="research"] {
  --ink: #192b23;
  --muted: #627168;
  --content: 80rem;
  --media-radius: 20px;
}
html[data-theme="research"] body { background: #fff; }
html[data-theme="research"] .research-hero { padding-top: 44px; padding-bottom: 44px; }
html[data-theme="research"] .research-heading.hero-resource-heading { gap: 28px; margin-bottom: 32px; }
html[data-theme="research"] .hero-resource-heading > .hero-identity { width: 100%; }
html[data-theme="research"] .hero-resource-heading #hero-title { font-size: clamp(52px, 6vw, 80px); }
.hero-intro-label { margin: 0 0 16px; color: #507961; font: 550 11px/1.5 var(--sans); }
.hero-resource-heading .hero-intro-label { letter-spacing: 0.16em !important; }
.hero-resource-tagline { margin-top: 12px; color: #334f40; font-size: 20px; line-height: 1.5; }
.hero-intro-copy { max-width: 650px; margin: 14px auto 0; color: var(--muted); font: 400 16px/1.75 var(--sans); text-wrap: pretty; }
html[data-theme="research"] .research-showcase.trailer-showcase {
  border-radius: var(--media-radius);
  overflow: hidden;
  isolation: isolate;
  box-shadow: 0 16px 40px -26px rgb(20 47 33 / 30%);
}
html[data-theme="research"] main > .section { margin-block: 0; padding-top: 64px; padding-bottom: 40px; }
html[data-theme="research"] main > section > .section-heading {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 16px;
  width: 100%;
  max-width: 960px;
  margin: 0 auto 32px;
  align-items: start;
}
html[data-theme="research"] main > section > .section-heading h2 {
  margin: 0;
  max-width: 850px;
  color: var(--ink);
  font: 550 clamp(28px, 2.7vw, 38px)/1.22 var(--sans);
  letter-spacing: -0.035em;
  text-wrap: balance;
}
html[data-theme="research"] main > section > .section-heading > p {
  display: block;
  max-width: 680px;
  margin: 0;
  justify-self: start;
  color: var(--muted);
  font: 400 16px/1.8 var(--sans);
  text-wrap: pretty;
  -webkit-line-clamp: unset;
  line-clamp: unset;
  max-height: none;
  overflow: visible;
}
html[data-theme="research"] :is(.journey-shell, .interleaved-layout, .longform-layout, #world-memory .capability-showcase-media) { max-width: 960px; }
html[data-theme="research"] :is(.journey-screen, .capability-featured-frame, .world-visual) {
  border-radius: var(--media-radius);
  overflow: hidden;
  isolation: isolate;
}
html[data-theme="research"] :is(.interleaved-player > video, .longform-stage > video) { border-radius: var(--media-radius); }
html[data-theme="research"] :is(.capability-video-frame, .interleaved-case img) { border-radius: 12px; }
html[data-theme="research"] :is(.architecture-tabs, .architecture-figures, .community-empty) { max-width: 960px; margin-inline: auto; }
html[data-theme="research"] .architecture-tabs button { border-radius: 10px; }
html[data-theme="research"] .architecture-image { border-radius: 16px; }
html[data-theme="research"] .architecture-figure { padding-top: 24px; }
html[data-theme="research"] .community-section { border-top: 0; }
html[data-theme="research"] .community-empty {
  padding: 32px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: #fafcfb;
}
html[data-theme="research"] .video-summary-caption { border-bottom-color: #edf0ee; }
/* Align resources, media, galleries and captions to the same reading column. */
html[data-theme="research"] .hero-resource-links { max-width: 960px; }
html[data-theme="research"] .hero-resource { gap: 8px; box-shadow: 0 1px 2px rgb(25 43 35 / 3%); }
html[data-theme="research"] .hero-resource-copy strong { font-size: 14px; }
html[data-theme="research"] .hero-resource > .hero-resource-end { display: none; }
html[data-theme="research"] .hero-resource-symbol,
html[data-theme="research"] .hero-resource-symbol img { width: 22px; height: 22px; flex-basis: 22px; }
html[data-theme="research"] .hero-resource-demo { box-shadow: 0 3px 8px rgb(32 62 48 / 10%); }
html[data-theme="research"] :is(#worlds > .showcase-toolbar, #worlds > .showcase-viewport, #community > [data-picked-grid]) { width: 100%; max-width: 960px; margin-inline: auto; }
html[data-theme="research"] :is(#worlds, #community) .showcase-toolbar {
  align-items: center;
  gap: 12px 24px;
  padding-top: 16px;
  margin-bottom: 20px;
  border-top-color: #e8edea;
}
html[data-theme="research"] :is(#worlds, #community) .showcase-toolbar > span { font-size: 12px; line-height: 1.65; }
html[data-theme="research"] :is(#worlds, #community) .showcase-navigation button { width: 44px; height: 44px; border-color: #dce4df; background: #fff; color: #334f40; }
html[data-theme="research"] :is(#worlds, #community) .showcase-navigation button:hover:enabled { background: #f2f6f3; border-color: #82998b; }
html[data-theme="research"] :is(#worlds, #community) .showcase-track .world-card { width: clamp(280px, 43vw, 440px); }
html[data-theme="research"] :is(#worlds, #community) .world-visual { box-shadow: none; border: 1px solid rgb(25 43 35 / 6%); }
html[data-theme="research"] :is(#worlds, #community) .world-card-caption { padding-top: 14px; align-items: start; gap: 12px; }
html[data-theme="research"] #community .world-category {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  white-space: normal;
  overflow: hidden;
  overflow-wrap: anywhere;
  text-transform: none;
  letter-spacing: 0;
  color: #253c2e;
  font: 500 14px/1.55 var(--sans);
}
html[data-theme="research"] #community .world-card-caption small { margin-top: 5px; font-size: 12px; opacity: 1; color: #718078; }
html[data-theme="research"] :is(#worlds, #community) .card-arrow { width: 44px; height: 44px; flex-basis: 44px; border: 1px solid #e3e8e5; }
html[data-theme="research"] .interleaved-case { border-radius: 12px; padding: 6px; transition: border-color 160ms ease, background 160ms ease; }
html[data-theme="research"] .interleaved-case[aria-pressed="true"] { background: #f2f6f3; border-color: #6f8f7c; }
html[data-theme="research"] .interleaved-case-meta strong {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  white-space: normal;
  min-height: 3em;
  font-size: 12px;
  line-height: 1.5;
}
html[data-theme="research"] .architecture-tabs button[aria-selected="true"] { background: #edf4ef; border-color: #8da495; color: #244b34; }
html[data-theme="research"] .longform-arrow { box-shadow: 0 3px 10px rgb(25 43 35 / 10%); }
html[data-theme="research"] main > section[id] { scroll-margin-top: 0; }
@media (max-width: 900px) {
  html[data-theme="research"] .research-hero { padding-top: 36px; padding-bottom: 28px; }
  html[data-theme="research"] .research-heading.hero-resource-heading { gap: 24px; }
  .hero-intro-copy { max-width: 580px; }
  html[data-theme="research"] .hero-resource-links { max-width: 650px; }
  html[data-theme="research"] .hero-resource-copy strong { font-size: 14px; }
  html[data-theme="research"] main > .section { padding-top: 48px; padding-bottom: 40px; }
}
@media (max-width: 540px) {
  html[data-theme="research"] { --media-radius: 14px; }
  html[data-theme="research"] .research-hero { padding-top: 28px; padding-bottom: 24px; }
  html[data-theme="research"] .hero-resource-heading #hero-title { font-size: clamp(44px, 12vw, 60px); }
  html[data-theme="research"] .research-heading.hero-resource-heading { gap: 22px; margin-bottom: 24px; }
  .hero-intro-label { margin-bottom: 12px; font-size: 10px; }
  .hero-resource-tagline { font-size: 16px; margin-top: 10px; }
  .hero-intro-copy { font-size: 14px; line-height: 1.75; margin-top: 12px; }
  html[data-theme="research"] main > .section { padding-top: 40px; padding-bottom: 32px; }
  html[data-theme="research"] main > section > .section-heading { gap: 12px; margin-bottom: 24px; }
  html[data-theme="research"] main > section > .section-heading h2 { font-size: 27px; line-height: 1.3; letter-spacing: -0.025em; }
  html[data-theme="research"] main > section > .section-heading > p { font-size: 14px; line-height: 1.8; }
  html[data-theme="research"] .community-empty { padding: 24px 20px; border-radius: 16px; }
  html[data-theme="research"] :is(#worlds, #community) .showcase-track .world-card { width: min(320px, 78vw); }
  html[data-theme="research"] :is(#worlds, #community) .showcase-toolbar { gap: 10px; }
  html[data-theme="research"] :is(#worlds, #community) .showcase-toolbar > span { flex: 1 1 160px; font-size: 11px; }
  html[data-theme="research"] #community .world-category { font-size: 13px; }
}
@media (min-width: 901px) and (max-width: 1100px) { html[data-theme="research"] .hero-resource-copy strong { font-size: 13px; } }
@media (max-width: 360px) { html[data-theme="research"] .hero-resource-copy strong { font-size: 12px; } }
@media (prefers-reduced-motion: reduce) { html[data-theme="research"] .interleaved-case { transition: none; } }

/* One large player and a consistent, duration-free example selector. */
html[data-theme] :is(#interaction, #interleaved, #world-memory) .example-browser {
  display: grid;
  width: 100%;
  max-width: 960px;
  margin-inline: auto;
  grid-template-columns: minmax(0, 1fr);
  gap: 18px;
}
html[data-theme] :is(#interaction, #interleaved, #world-memory) .example-player {
  display: block;
  grid-column: 1;
  grid-row: 1;
  min-width: 0;
  margin: 0;
}
html[data-theme] :is(#interaction, #interleaved, #world-memory) .example-media {
  display: block;
  min-width: 0;
  aspect-ratio: 1280 / 704;
  overflow: hidden;
  border: 0;
  border-radius: var(--media-radius, 20px);
  background: var(--media);
}
html[data-theme] :is(#interaction, #interleaved, #world-memory) .example-media > video {
  display: block;
  width: 100%;
  height: 100%;
  aspect-ratio: auto;
  object-fit: contain;
  border-radius: 0;
}
html[data-theme] :is(#interaction, #interleaved, #world-memory) .example-choices {
  display: grid;
  grid-column: 1;
  grid-row: 2;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  grid-template-rows: auto;
  width: 100%;
  max-width: none;
  min-height: 0;
  margin: 0;
  padding: 0;
  gap: 10px;
  border: 0;
  contain: none;
  align-self: start;
}
html[data-theme] :is(#interaction, #interleaved, #world-memory) .example-choice {
  display: grid;
  grid-template-rows: auto 1fr;
  min-width: 0;
  min-height: 0;
  margin: 0;
  padding: 6px;
  gap: 7px;
  border: 1px solid transparent;
  border-radius: 12px;
  background: transparent;
  text-align: left;
  justify-items: stretch;
}
html[data-theme] :is(#interaction, #interleaved, #world-memory) .example-choice[aria-pressed="true"] {
  border-color: #6f8f7c;
  background: #f2f6f3;
  color: #192b23;
}
html[data-theme] :is(#interaction, #interleaved, #world-memory) .example-choice:focus-visible { outline: 2px solid #318768; outline-offset: 3px; }
html[data-theme] :is(#interaction, #interleaved, #world-memory) .example-choice .interleaved-case-image {
  min-width: 0;
  min-height: 0;
  width: 100%;
  aspect-ratio: 1280 / 704;
  border-radius: 8px;
}
html[data-theme] :is(#interaction, #interleaved, #world-memory) .example-choice .interleaved-case-image::after { display: none; }
html[data-theme] :is(#interaction, #interleaved, #world-memory) .example-choice img {
  display: block;
  width: 100%;
  height: 100%;
  max-height: none;
  aspect-ratio: auto;
  object-fit: cover;
  opacity: .86;
}
html[data-theme] :is(#interaction, #interleaved, #world-memory) .example-choice:is(:hover, [aria-pressed="true"]) img { opacity: 1; }
html[data-theme] :is(#interaction, #interleaved, #world-memory) .example-choice .interleaved-case-meta { padding: 0 2px 2px; }
html[data-theme] :is(#interaction, #interleaved, #world-memory) .example-choice .interleaved-case-meta > strong {
  min-height: 2.9em;
  font-size: 12px;
  line-height: 1.45;
  font-weight: 500;
}
@media (min-width: 901px) {
  html[data-theme] :is(#interaction, #interleaved, #world-memory) .example-browser {
    grid-template-columns: minmax(0, 1fr) clamp(168px, 20.833%, 200px);
    grid-template-rows: auto;
    column-gap: 24px;
    row-gap: 0;
    align-items: start;
  }
  html[data-theme] :is(#interaction, #interleaved, #world-memory) .example-player {
    display: block;
    grid-row: 1;
  }
  html[data-theme] :is(#interaction, #interleaved, #world-memory) .example-choices {
    grid-column: 2;
    grid-row: 1;
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: repeat(3, auto);
    align-self: start;
    contain: none;
  }
  html[data-theme] :is(#interaction, #interleaved, #world-memory) .example-choice { grid-template-rows: auto auto; gap: 5px; }
}
@media (max-width: 540px) {
  html[data-theme] :is(#interaction, #interleaved, #world-memory) .example-choices { gap: 6px; }
  html[data-theme] :is(#interaction, #interleaved, #world-memory) .example-choice { padding: 4px; gap: 6px; }
}
@media (min-width: 901px) {
  /* Keep all four capability players on the same columns. */
  html[data-theme="research"] .longform-layout.longform-carousel-layout {
    grid-template-columns: minmax(0, 1fr) clamp(168px, 20.833%, 200px);
    column-gap: 24px;
  }
  html[data-theme="research"] .longform-carousel-layout > .longform-rail { padding-inline: 0; }
  html[data-theme="research"] .longform-carousel-layout .longform-rail .stat { padding-block: 14px; }
}

/* Full research title preview: locally served Google Sans Flex. */
@font-face {
  font-family: "Google Sans Flex";
  src: url("typefaces/google-sans-flex-latin.9ec7b22b710ffd07.woff2") format("woff2");
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
}
html[data-theme="research"] .hero-resource-heading #hero-title {
  width: 100%;
  max-width: 1040px;
  margin: 0 auto;
  font-family: "Google Sans Flex", Arial, Helvetica, sans-serif;
  font-size: clamp(32px, 4.7vw, 64px);
  font-weight: 400;
  font-style: normal;
  font-optical-sizing: auto;
  line-height: 1.1;
  letter-spacing: -0.025em !important;
  white-space: normal;
  text-wrap: balance;
}
html[data-theme="research"] .hero-resource-heading #hero-title + .hero-team {
  margin-top: 22px;
}
@media (max-width: 540px) {
  html[data-theme="research"] .hero-resource-heading #hero-title {
    max-width: 460px;
    font-size: clamp(30px, 8.2vw, 40px);
    line-height: 1.12;
    letter-spacing: -0.025em !important;
  }
  html[data-theme="research"] .hero-resource-heading #hero-title + .hero-team { margin-top: 18px; }
}

/* Reading typography shared with the full research title. */
html[data-theme="research"] {
  --sans: "Google Sans Flex", Arial, Helvetica, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans CJK SC", sans-serif;
  --type-body: 17.5px;
  --reading-leading: 1.55;
}
html[data-theme="research"] body { font-optical-sizing: auto; }
html[data-theme="research"] :is(
  .hero-intro-copy, .section-heading > p, .combined-style-heading > p,
  .research-intro > p, .research-copy > p, .architecture-caption > p,
  #architecture-dialog-description
) {
  font-family: var(--sans);
  font-size: var(--type-body);
  font-weight: 400;
  font-style: normal;
  line-height: var(--reading-leading);
  letter-spacing: 0.01em;
  font-feature-settings: "ss02" on;
  text-wrap: pretty;
}
html[data-theme="research"] .hero-resource-heading .hero-intro-copy {
  letter-spacing: 0.01em !important;
}
html[data-theme="research"] main > section > .section-heading h2 {
  font-weight: 500;
  letter-spacing: -0.018em;
}
html[data-theme="research"] .architecture-caption h3 { font-weight: 500; }
html[data-theme="research"]:lang(zh-CN) { --reading-leading: 1.75; }
html[data-theme="research"]:lang(zh-CN) :is(
  .hero-intro-copy, .section-heading > p, .architecture-caption > p,
  #architecture-dialog-description
) { letter-spacing: 0; }
html[data-theme="research"]:lang(zh-CN) .hero-resource-heading .hero-intro-copy { letter-spacing: 0 !important; }
@media (max-width: 540px) {
  html[data-theme="research"] { --type-body: 16px; }
}

/* Five symmetric resource buttons keep Demo centered; sharing belongs to the header. */
html[data-theme="research"] .hero-resource-links {
  grid-template-columns: repeat(5, minmax(0, 1fr));
  align-items: stretch;
  gap: 12px;
}
html[data-theme="research"] .hero-resource {
  justify-content: center;
  min-height: 52px;
  padding-inline: 8px;
  gap: 8px;
  grid-column: auto;
}
html[data-theme="research"] .hero-resource-demo { order: 0; }
.header-share { flex: 0 0 auto; }
.header-share .project-share-trigger {
  min-height: 44px;
  padding: 8px 12px;
  gap: 7px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 500;
  box-shadow: none;
  white-space: nowrap;
}
.header-share .project-share-trigger::after { flex-shrink: 0; }
.header-share .project-share-panel {
  left: auto;
  right: 0;
  transform: none;
  max-height: calc(100dvh - 90px);
  overflow-y: auto;
}
@media (max-width: 1100px) {
  .header-share .project-share-trigger { width: 44px; padding: 10px; }
  .header-share .project-share-trigger > span,
  .header-share .project-share-trigger::after { display: none; }
}
@media (max-width: 900px) {
  html[data-theme="research"] .hero-resource-links { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  html[data-theme="research"] .hero-resource-demo {
    grid-column: 1 / -1;
    grid-row: 1;
    justify-self: center;
    width: min(220px, 100%);
  }
  html[data-theme="research"] .hero-resource-github { grid-column: 1; grid-row: 2; }
  html[data-theme="research"] .hero-resource-huggingface { grid-column: 2; grid-row: 2; }
  html[data-theme="research"] .hero-resource-report { grid-column: 1; grid-row: 3; }
  html[data-theme="research"] .hero-resource-benchmark { grid-column: 2; grid-row: 3; }
  .header-share .project-share { position: static; }
  .header-share .project-share-panel { top: calc(100% + 8px); right: 16px; max-height: calc(100dvh - 136px); }
}
@media (max-width: 540px) {
  html[data-theme="research"] .hero-resource-demo { width: min(180px, 100%); }
  html[data-theme="research"] .header.project-nav-header { column-gap: 8px; }
  html[data-theme="research"] .project-nav-header .header-right { gap: 5px; }
}
@media (max-width: 360px) {
  html[data-theme="research"] .header.project-nav-header { padding-inline: 12px; column-gap: 6px; }
  html[data-theme="research"] .project-nav-header .header-right { gap: 4px; }
  html[data-theme="research"] .project-nav-header .brand { font-size: 14px; gap: 6px; }
  html[data-theme="research"] .project-nav-header .brand-mark { width: 22px; height: 22px; flex-basis: 22px; }
  html[data-theme="research"] .project-nav-header .language { min-width: 28px; padding-inline: 5px; }
  html[data-theme="research"] .project-nav-header .header-cta { padding-inline: 7px; font-size: 11px; }
}

/* Team credit beneath the title, project introduction beneath the trailer. */
html[data-theme="research"] .hero-team {
  margin: 0;
  color: var(--muted);
  font: 500 var(--type-body)/1.5 var(--sans);
}
html[data-theme="research"] .trailer-intro-copy {
  max-width: 700px;
  margin: 24px auto 0;
  text-align: center;
}
@media (max-width: 540px) {
  html[data-theme="research"] .trailer-intro-copy { margin-top: 20px; }
}

/* Center the navigation against the page, with equal space on either side. */
@media (min-width: 1024px) {
  html[data-theme="research"] .header.project-nav-header {
    grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  }
  html[data-theme="research"] .project-nav-header .header-identity { justify-self: start; }
  html[data-theme="research"] .project-nav-header .header-right { justify-self: end; }
  html[data-theme="research"] .header .project-navigation { width: max-content; }
}
@media (min-width: 1024px) and (max-width: 1279px) {
  html[data-theme="research"] .header.project-nav-header { padding-inline: 24px; column-gap: 16px; }
  html[data-theme="research"] .header .project-navigation { gap: 2px; }
  html[data-theme="research"] .nav-trigger { font-size: 13px; padding-inline: 9px; gap: 6px; }
}
@media (max-width: 1279px) {
  .header-share .project-share-trigger { width: 44px; padding: 10px; }
  .header-share .project-share-trigger > span,
  .header-share .project-share-trigger::after { display: none; }
}
@media (min-width: 901px) and (max-width: 1023px) {
  html[data-theme="research"] { --header-height: 112px; }
  html[data-theme="research"] .header.project-nav-header {
    grid-template-columns: 1fr auto; gap: 0 12px; padding: 10px 20px 0; min-height: 112px;
  }
  html[data-theme="research"] .header .project-navigation {
    grid-column: 1 / -1; grid-row: 2; width: 100%; justify-content: center;
    gap: 14px; border-top: 1px solid #e6ebe7; margin-top: 8px;
  }
  html[data-theme="research"] .nav-group { position: static; }
  html[data-theme="research"] .nav-dropdown {
    left: 16px; right: 16px; top: calc(100% + 1px); transform: none; width: auto;
    max-height: min(65dvh, 500px); overflow: auto;
  }
  .header-share .project-share { position: static; }
  .header-share .project-share-panel { top: calc(100% + 8px); right: 16px; max-height: calc(100dvh - 136px); }
}
