.site-shell #contents-button,
.site-shell > #contents {
  display: none !important;
}

.site-shell > .site-header.pill-nav-row,
.site-shell > .modebar.pill-nav-row {
  width: max-content !important;
  max-width: calc(100vw - 24px);
  min-width: 0;
  height: 44px !important;
  margin: 5px auto;
  padding: 4px !important;
  justify-self: center;
  align-self: center;
  border: 1px solid rgba(255, 255, 255, .58) !important;
  border-radius: 999px !important;
  background: rgba(248, 247, 243, .68) !important;
  box-shadow: 0 9px 30px rgba(17, 18, 22, .14), inset 0 1px rgba(255, 255, 255, .72) !important;
  -webkit-backdrop-filter: blur(18px) saturate(1.25) !important;
  backdrop-filter: blur(18px) saturate(1.25) !important;
}

.site-shell.pill-navigation {
  grid-template-rows: 54px 54px minmax(0, 1fr) 0;
}

.site-shell.pill-navigation > footer {
  display: none !important;
}

.site-header.pill-nav-row {
  display: flex !important;
  grid-template-columns: none !important;
  justify-content: center !important;
  gap: 4px !important;
}

.site-header.pill-nav-row > span {
  display: none !important;
}

.site-header.pill-nav-row nav,
.modebar.pill-nav-row > div {
  display: flex !important;
  align-items: stretch;
  gap: 3px !important;
}

.modebar.pill-nav-row {
  display: flex !important;
  justify-content: center !important;
  gap: 3px !important;
}

.pill-nav-row .pill-control,
.pill-nav-row .language-switcher {
  position: relative;
  flex: 0 0 auto;
  min-height: 34px;
  padding: 0 14px !important;
  overflow: hidden;
  border: 0 !important;
  border-radius: 999px !important;
  color: #121317;
  background: rgba(255, 255, 255, .82) !important;
  box-shadow: inset 0 0 0 1px rgba(17, 18, 22, .08);
  font: 700 11px/1 "Helvetica Neue", Arial, sans-serif !important;
  letter-spacing: .045em !important;
  text-decoration: none;
  text-transform: uppercase;
  white-space: nowrap;
  cursor: pointer;
  isolation: isolate;
}

.pill-nav-row .pill-control {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  vertical-align: middle;
}

.pill-nav-row .pill-home {
  color: #fff;
  background: #121317 !important;
}

.pill-nav-row .pill-control::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 0;
  border-radius: inherit;
  background: #b82922;
  transform: scaleX(0);
  transform-origin: center;
  transition: transform .34s cubic-bezier(.2, .8, .2, 1);
}

.pill-nav-row .pill-control:hover::before,
.pill-nav-row .pill-control:focus-visible::before,
.pill-nav-row .pill-control.is-active::before,
.pill-nav-row .pill-control[aria-pressed="true"]::before {
  transform: scaleX(1);
}

.pill-nav-row .label-stack {
  position: relative;
  z-index: 1;
  display: inline-flex;
  height: 100%;
  align-items: center;
  justify-content: center;
  line-height: 1;
}

.pill-nav-row .pill-label,
.pill-nav-row .pill-label-hover {
  display: inline-flex;
  height: 100%;
  align-items: center;
  justify-content: center;
  transition: transform .28s cubic-bezier(.2, .8, .2, 1), opacity .2s ease;
}

.pill-nav-row .pill-label-hover {
  position: absolute;
  inset: 0;
  color: #fff;
  opacity: 0;
  transform: translateY(140%);
}

.pill-nav-row .pill-control:hover .pill-label,
.pill-nav-row .pill-control:focus-visible .pill-label,
.pill-nav-row .pill-control.is-active .pill-label,
.pill-nav-row .pill-control[aria-pressed="true"] .pill-label {
  opacity: 0;
  transform: translateY(-140%);
}

.pill-nav-row .pill-control:hover .pill-label-hover,
.pill-nav-row .pill-control:focus-visible .pill-label-hover,
.pill-nav-row .pill-control.is-active .pill-label-hover,
.pill-nav-row .pill-control[aria-pressed="true"] .pill-label-hover {
  opacity: 1;
  transform: translateY(0);
}

.pill-nav-row .pill-control.is-active::after,
.pill-nav-row .pill-control[aria-current="page"]::after {
  content: "";
  position: absolute;
  bottom: 3px;
  left: 50%;
  z-index: 3;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: #fff;
  transform: translateX(-50%);
}

.pill-nav-row .language-switcher {
  display: inline-flex !important;
  gap: 2px !important;
  min-height: 34px;
  padding: 3px !important;
  align-items: stretch;
}

.site-header.pill-nav-row .language-switcher button {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  min-width: 32px;
  min-height: 28px;
  padding: 0 8px !important;
  border-radius: 999px;
  font-size: 11px !important;
}

.site-header.pill-nav-row .language-switcher button.active {
  color: #fff;
  background: #b82922;
}

.modebar.pill-nav-row b {
  display: inline-flex !important;
  align-items: center;
  min-height: 34px;
  padding: 0 12px;
  border-radius: 999px;
  color: #fff;
  background: #121317;
  font: 700 11px/1 ui-monospace, SFMono-Regular, Menlo, monospace !important;
  letter-spacing: .06em;
  white-space: nowrap;
}

.modebar.pill-nav-row .mode-switch {
  border: 0 !important;
}

.mobile-bottom-pill-row {
  display: none;
}

.mobile-top-pill-row,
.mobile-menu-sheet {
  display: none;
}

.cover-tagline.is-turning {
  opacity: 0 !important;
  pointer-events: none;
  transform: translateY(-46%) translateX(-18px) !important;
  transition-duration: .16s !important;
}

@media (max-width: 760px) {
  .site-shell.pill-navigation {
    grid-template-rows: 58px minmax(0, 1fr) 0;
  }

  .site-shell > .site-header.pill-nav-row,
  .site-shell > .modebar.pill-nav-row {
    display: none !important;
  }

  .mobile-top-pill-row {
    z-index: 30;
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: stretch;
    gap: 3px;
    height: 48px;
    margin: 6px;
    padding: 4px;
    border: 1px solid rgba(255, 255, 255, .62);
    border-radius: 999px;
    background: rgba(248, 247, 243, .72);
    box-shadow: 0 10px 28px rgba(17, 18, 22, .16), inset 0 1px rgba(255, 255, 255, .74);
    -webkit-backdrop-filter: blur(18px) saturate(1.25);
    backdrop-filter: blur(18px) saturate(1.25);
  }

  .mobile-top-pill-row .pill-control {
    min-width: 0;
    min-height: 38px;
    padding: 0 11px !important;
    font-size: 10px !important;
  }

  .mobile-top-pill-row .mobile-home-action {
    color: #fff;
    background: #121317 !important;
  }

  .mobile-top-pill-row .mobile-folio-action {
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .mobile-bottom-pill-row {
    position: absolute;
    right: 10px;
    bottom: 6px;
    left: 10px;
    z-index: 24;
    display: flex;
    height: 48px;
    align-items: stretch;
    gap: 3px;
    padding: 4px;
    border: 1px solid rgba(255, 255, 255, .62);
    border-radius: 999px;
    background: rgba(248, 247, 243, .7);
    box-shadow: 0 10px 28px rgba(17, 18, 22, .18), inset 0 1px rgba(255, 255, 255, .74);
    -webkit-backdrop-filter: blur(18px) saturate(1.25);
    backdrop-filter: blur(18px) saturate(1.25);
  }

  .mobile-bottom-pill-row .pill-control {
    min-width: 0;
    min-height: 38px;
    padding: 0 10px !important;
  }

  .mobile-bottom-pill-row .mobile-page-arrow {
    flex: 1 1 50%;
    color: #fff;
    background: #121317 !important;
    font-size: 10px !important;
  }

  .mobile-menu-sheet {
    position: absolute;
    top: 60px;
    right: 8px;
    left: 8px;
    z-index: 60;
    display: block;
    padding: 18px;
    border: 1px solid rgba(255, 255, 255, .72);
    border-radius: 24px;
    background: rgba(248, 247, 243, .94);
    box-shadow: 0 22px 60px rgba(17, 18, 22, .28);
    -webkit-backdrop-filter: blur(22px) saturate(1.2);
    backdrop-filter: blur(22px) saturate(1.2);
  }

  .mobile-menu-sheet[hidden] { display: none !important; }

  .mobile-menu-head,
  .mobile-menu-language {
    display: flex;
    align-items: center;
    justify-content: space-between;
  }

  .mobile-menu-head {
    margin-bottom: 12px;
    font-size: 12px;
    text-transform: uppercase;
  }

  .mobile-menu-head button,
  .mobile-menu-language button {
    border: 0;
    border-radius: 999px;
    background: #fff;
    padding: 9px 12px;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
  }

  .mobile-menu-links {
    display: grid;
  }

  .mobile-menu-links button {
    position: relative;
    border: 0;
    border-top: 1px solid rgba(17, 18, 22, .18);
    background: transparent;
    padding: 15px 8px;
    text-align: left;
    font-size: clamp(24px, 7vw, 34px);
    font-weight: 700;
    letter-spacing: -.055em;
  }

  .mobile-menu-links button.is-active {
    color: #b82922;
  }

  .mobile-menu-links button.is-active::after {
    content: "CURRENT";
    position: absolute;
    right: 8px;
    top: 50%;
    font-size: 8px;
    letter-spacing: .08em;
    transform: translateY(-50%);
  }

  .mobile-menu-language {
    justify-content: flex-start;
    gap: 7px;
    padding-top: 14px;
    border-top: 1px solid rgba(17, 18, 22, .18);
  }

  .mobile-menu-language span {
    margin-right: auto;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
  }

  .mobile-menu-language button.active {
    color: #fff;
    background: #b82922;
  }

  .site-shell.pill-navigation > .index-view {
    padding-bottom: 74px !important;
  }
}

@media (prefers-reduced-motion: reduce) {
  .pill-nav-row .pill-control::before,
  .pill-nav-row .pill-label,
  .pill-nav-row .pill-label-hover {
    transition: none;
  }
}
