:is(.top,footer) .brand .mark{width:29px;height:29px;flex:0 0 29px;line-height:1;overflow:hidden}:is(.top,footer) .brand .mark img{display:block;width:100%;height:100%}

.top .topinner {
  display: grid;
  grid-template-columns: max-content minmax(0, 1fr) max-content;
  align-items: center;
  gap: .7rem clamp(.75rem, 1.5vw, 1.6rem);
  padding-block: .8rem;
}
.top .topinner nav[aria-label="Main navigation"] {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: max-content;
  justify-content: space-between;
  gap: .25rem;
  min-width: 0;
}
.top .topinner nav a {
  display: grid;
  place-items: center;
  min-width: 0;
  min-height: 3rem;
  padding: .3rem .4rem;
  border: 1px solid transparent;
  border-radius: .55rem;
  text-align: center;
  font-size: .875rem;
  line-height: 1.15;
  white-space: nowrap;
}
.top .topinner nav a:is(:hover, :focus-visible, [aria-current="page"]) {
  border-color: #37483a;
  background: #17231e;
  color: #bbf46c;
}
@media (min-width: 981px) {
  .top .topinner {
    width: min(1600px, calc(100% - 2rem));
    height: auto;
    min-height: 4.25rem;
    column-gap: clamp(.55rem, 1.1vw, 1.25rem);
  }
  .top .topinner .brand { font-size: clamp(1rem, 1.55vw, 1.35rem); white-space: nowrap; }
  .top .topinner nav[aria-label="Main navigation"] { gap: .12rem; }
  .top .topinner nav a {
    font-size: clamp(.675rem, 1vw, .875rem);
    padding-inline: clamp(.125rem, .28vw, .4rem);
    min-height: 2.55rem;
    color: #c1cede;
  }
  .top .topinner nav a:is(:hover, :focus-visible, [aria-current="page"]) { color: #bbf46c; }
  .top .topinner > .button {
    padding-inline: clamp(.5rem, .85vw, .85rem);
    white-space: nowrap;
    color: #bbf46c;
    border-color: #587941;
    background: #18251e;
  }
}
.top .mobile-nav-toggle { display: none; }
@media (max-width: 980px) {
  .top .topinner { grid-template-columns: minmax(0, 1fr) auto; }
  .top .topinner nav[aria-label="Main navigation"] { grid-area: 2 / 1 / 3 / -1; }
  .top .topinner > .button { grid-area: 1 / 2; }
  .top .topinner:has(.mobile-nav-toggle) { grid-template-columns: minmax(0, 1fr) auto auto; }
  .top .topinner:has(.mobile-nav-toggle) > .button { grid-area: 1 / 3; }
  .top .mobile-nav-toggle {
    display: block;
    grid-area: 1 / 2;
    min-height: 44px;
    padding: 0 .75rem;
    border: 1px solid #46566b;
    border-radius: .55rem;
    background: #152033;
    color: #eef4fc;
    font: inherit;
  }
  .top .topinner nav[aria-label="Main navigation"] {
    grid-auto-flow: row;
    grid-auto-columns: auto;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    justify-content: stretch;
    max-height: 60vh;
    overflow-y: auto;
  }
  .top .topinner nav.mobile-nav-ready:not(.mobile-nav-open) { display: none; }
  .top .topinner nav a { background: #121c2b; white-space: normal; }
  .top .topinner > .button { min-height: 44px; }
}
@media (max-width: 540px) {
  .top .topinner { column-gap: .35rem; }
  .top .topinner .brand { font-size: 1.05rem; white-space: nowrap; }
  .top .topinner > .button { padding-inline: .5rem; font-size: .75rem; white-space: nowrap; }
  .top .mobile-nav-toggle { padding-inline: .55rem; font-size: .82rem; }
  main :is(img, video, canvas, iframe) { max-width: 100%; }
  main pre { max-width: 100%; overflow-x: auto; }
  .market :is(h1, h2) { overflow-wrap: anywhere; }
  .market :is(.scale-lab-controls, .scale-fit-grid) { grid-template-columns: minmax(0, 1fr); }
  .scale-calculator { grid-template-columns: minmax(0, 1fr); }
  .release-chart-scroll, .scale-table { overscroll-behavior-inline: contain; }
}

@media (max-width: 980px) {
  .top .topinner { position: relative; }
  .top .topinner nav.mobile-nav-ready.mobile-nav-open {
    position: absolute;
    grid-area: auto;
    inset: 100% 0 auto;
    z-index: 10;
    grid-template-columns: minmax(0, 1fr);
    max-height: min(70vh, 34rem);
    padding: .5rem;
    border: 1px solid #46566b;
    border-radius: .7rem;
    background: #0c1420;
    box-shadow: 0 12px 30px #02050ac0;
  }
  .top .topinner nav.mobile-nav-ready a {
    justify-items: start;
    padding-inline: .85rem;
    text-align: start;
  }
  .top .mobile-nav-toggle::after { content: ' ▾'; }
  .top .mobile-nav-toggle[aria-expanded="true"]::after { content: ' ▴'; }
  @media (prefers-reduced-motion: no-preference) {
    .top nav.mobile-nav-open { animation: mobile-menu-in .18s ease-out; }
  }
}
@keyframes mobile-menu-in {
  from { opacity: 0; transform: translateY(-.35rem); }
  to { opacity: 1; transform: translateY(0); }
}
