body .masthead__bar {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  flex-wrap: nowrap;
}

body .masthead__bar h1 {
  margin: 0;
  flex: 1 1 18rem;
  min-width: 0;
  line-height: 1.1;
}

body .title-lock {
  white-space: nowrap;
}

#menuRoot {
  position: relative;
  flex: 0 0 auto;
  align-self: flex-start;
}

#menuRoot .menu-button {
  width: 2.75rem;
  height: 2.75rem;
  padding: 0.7rem 0.6rem;
  border: 1px solid rgba(98, 108, 132, 0.28);
  border-radius: 999px;
  background: rgba(98, 108, 132, 0.12);
  color: inherit;
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  gap: 0.28rem;
  cursor: pointer;
}

#menuRoot .menu-button span {
  display: block;
  width: 100%;
  height: 2px;
  border-radius: 999px;
  background: currentColor;
}

#menuRoot .menu-button[aria-expanded="true"] {
  background: rgba(98, 108, 132, 0.2);
}

#menuRoot .menu-popover {
  position: absolute;
  top: calc(100% + 0.5rem);
  left: 0;
  min-width: 8rem;
  padding: 0.35rem;
  border: 1px solid rgba(98, 108, 132, 0.18);
  border-radius: 1rem;
  background: rgba(248, 249, 252, 0.96);
  box-shadow: 0 16px 40px rgba(15, 23, 42, 0.16);
  backdrop-filter: blur(10px);
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  z-index: 20;
}

#menuRoot .menu-popover[hidden] {
  display: none !important;
}

#menuRoot .menu-item {
  border: 0;
  background: transparent;
  color: inherit;
  padding: 0.7rem 0.9rem;
  border-radius: 0.75rem;
  text-align: left;
  cursor: pointer;
}

#menuRoot .menu-item:hover,
#menuRoot .menu-item.is-active {
  background: rgba(98, 108, 132, 0.12);
}

.view[hidden] {
  display: none;
}

#aboutView .about-panel {
  min-height: clamp(12rem, 28vh, 18rem);
}

#aboutView .about-copy {
  display: grid;
  gap: 1rem;
  width: 100%;
  min-width: 0;
  max-width: 72ch;
  line-height: 1.85;
  overflow-wrap: anywhere;
}

#aboutView .about-copy p {
  margin: 0;
  font-size: 1rem;
}

#aboutView .about-copy a {
  overflow-wrap: anywhere;
  word-break: break-word;
}

#aboutView .about-chart {
  display: flex;
  justify-content: center;
  margin: 0.25rem 0 0.5rem;
}

#aboutView .about-chart img {
  display: block;
  width: min(100%, 980px);
  max-width: 100%;
  height: auto;
  border: 1px solid rgba(148, 163, 184, 0.22);
  border-radius: 16px;
  background: #fff;
}

@media (max-width: 640px) {
  body .masthead__bar {
    align-items: flex-start;
  }

  body .masthead__bar h1 {
    flex: 1 1 auto;
  }

  #aboutView .about-copy {
    max-width: 100%;
  }

  #aboutView .about-chart {
    margin-left: -4px;
    margin-right: -4px;
  }
}
