.site-shell {
  container: site-shell / inline-size;
  position: relative;
  z-index: 5;
  background: #10191e;
  color: #eff5f1;
  border-bottom: 1px solid #35484b;
  font: 600 .92rem/1.35 "Avenir Next", Avenir, "Segoe UI", system-ui, sans-serif;
  text-align: start;
}
:lang(zh-Hans) .site-shell {
  font-family: "PingFang SC", "Microsoft YaHei", "Noto Sans CJK SC", system-ui, sans-serif;
}
.site-shell .site-shell-core,
.site-shell .site-trail {
  box-sizing: border-box;
  width: min(100% - 3rem, 1300px);
  margin-inline: auto;
  display: flex;
  align-items: center;
}
.site-shell .site-shell-core {
  gap: clamp(.85rem, 2.5cqw, 2.8rem);
  min-height: 67px;
}
.site-shell a {
  color: #b7c8ca;
  text-decoration: none;
  border: 0;
  background: transparent;
}
.site-shell a:hover,
.site-shell a[aria-current] {
  color: #dffb78;
}
.site-shell a:focus-visible,
.site-shell summary:focus-visible {
  outline: 2px solid #dffb78;
  outline-offset: 4px;
}
.site-shell .site-identity {
  display: block;
  line-height: 0;
  flex: 0 0 126px;
}
.site-shell .site-identity img {
  display: block;
  max-width: 100%;
  width: 126px;
  height: auto;
}
.site-shell .site-primary,
.site-shell .site-locales {
  display: flex;
  align-items: center;
  gap: clamp(.75rem, 2cqw, 2.1rem);
}
.site-shell .site-primary { margin-inline: auto; }
.site-shell .site-primary a {
  white-space: nowrap;
  padding-block: .4rem;
}
.site-shell .site-primary a[aria-current] { box-shadow: inset 0 -2px #dffb78; }
.site-shell .site-locales {
  gap: .75rem;
  font-size: .79rem;
  white-space: nowrap;
  margin-inline-start: auto;
}
.site-shell .site-menu { display: none; }
.site-shell .site-trail {
  min-height: 35px;
  gap: .75rem 1.5rem;
  justify-content: space-between;
  flex-wrap: wrap;
  border-top: 1px solid #2b3d42;
  color: #c3d0d0;
  font-size: .77rem;
  font-weight: 500;
  padding-block: .35rem;
}
.site-shell .site-trail ol {
  margin: 0;
  padding: 0;
  display: flex;
  gap: .4rem;
  align-items: baseline;
  flex-wrap: wrap;
  list-style: none;
}
.site-shell .site-trail li { display: inline-flex; gap: .4rem; align-items: baseline; }
.site-shell .site-trail li + li::before { content: "/"; color: #819298; }
.site-shell .site-trail a:hover { text-decoration: underline; }
.site-shell .site-locate { color: #dffb78; }

@container site-shell (width < 790px) {
  .site-shell .site-shell-core, .site-shell .site-trail { width: calc(100% - 2rem); }
  .site-shell .site-shell-core { gap: .78rem; min-height: 56px; }
  .site-shell .site-primary { display: none; }
  .site-shell .site-identity { flex: 0 0 110px; }
  .site-shell .site-menu {
    display: block;
    margin: 0;
    margin-inline-start: auto;
    padding: 0;
    background: transparent;
    border: 0;
  }
  .site-shell .site-locales { margin: 0; gap: .6rem; }
  .site-shell .site-menu summary,
  .site-shell .site-menu summary:hover {
    background: #10191e;
    cursor: pointer;
    padding: .38rem .55rem;
    color: #eff5f1;
    border: 1px solid #52676d;
    border-radius: .28rem;
    font-weight: 650;
    white-space: nowrap;
  }
  .site-shell .site-menu nav {
    position: absolute;
    inset-inline: 1rem;
    top: 55px;
    z-index: 6;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: .24rem .8rem;
    padding: .7rem;
    border: 1px solid #52676d;
    border-radius: .35rem;
    box-shadow: 0 12px 30px #0007;
    background: #101c23;
  }
  .site-shell .site-menu nav a { display: block; padding: .6rem .45rem; }
  .site-shell .site-trail { column-gap: .8rem; row-gap: .12rem; }
}

.site-shell {
  display: block;
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 0;
}
html:lang(zh-Hans) .site-shell[data-shell-language="en"],
html:not(:lang(zh-Hans)) .site-shell[data-shell-language="zh-Hans"] {
  display: none;
}
.page-section-picker {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .55rem 1rem;
  margin-block: 1.15rem .85rem;
  padding: .8rem 1rem;
  color: #eff5f1;
  background: #14232a;
  border: 1px solid #40565a;
  border-radius: .45rem;
  font: 600 .9rem/1.35 "Avenir Next", Avenir, system-ui, sans-serif;
}
.page-section-picker label { flex: 0 0 auto; color: #d7e3e3; }
.page-section-picker select {
  min-width: 0;
  flex: 1 1 13rem;
  max-width: 100%;
  min-height: 40px;
  padding: .4rem .6rem;
  color: #eff5f1;
  background-color: #10191e;
  border: 1px solid #6c8285;
  border-radius: .26rem;
  font: inherit;
  color-scheme: dark;
}
.page-section-picker :focus-visible { outline: 2px solid #dffb78; outline-offset: 3px; }
[data-page-index-panel][hidden] { display: none !important; }
[data-page-index="topics"].page-index-ready .topic-directory { display: block; }
[data-page-index="guide"].page-index-ready #TOC { display: none; }
[data-page-index="research"].page-index-ready .research-nav { display: none; }
[data-page-index="launch"] [data-page-index-panel] { margin-top: .75rem; }
.site-shell .site-wordmark {
  display: inline-block;
  color: #dffb78;
  font-size: 1.28rem;
  font-weight: 760;
  line-height: 1.1;
}
