/* Shared Scales-style header for About and Guide.
 * Visual values mirror csss/indexstyle.css (the Scales page).
 * Scales itself retains its existing styles and markup. */
body > header.about-header,
body > header {
  position: relative;
  z-index: 20;
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 8px 20px;
  background: rgba(242, 242, 242, 0.8);
  background-image: none;
  color: #000;
  box-shadow: none;
}

body > header.about-header h1,
body > header h1 {
  flex: 1 1 auto;
  min-width: 0;
  margin: 0;
  padding: 0;
  color: #000;
  font-family: Arial, sans-serif;
  font-size: 1.8rem;
  font-weight: 700;
  line-height: normal;
  text-shadow: none;
  overflow-wrap: break-word;
}

body > header.about-header .language-selector,
body > header .language-selector {
  flex: 0 0 auto;
  width: auto;
  min-width: 0;
  max-width: 64px;
  margin: 0;
  padding: 3px 5px;
  border: 1px solid #767676;
  border-radius: 2px;
  background-color: #fff;
  color: #000;
  font-family: Arial, sans-serif;
  font-size: .8rem;
  font-weight: 400;
  line-height: normal;
}

@media (max-width: 380px) {
  body > header.about-header,
body > header {
    gap: 8px;
    padding-inline: 12px;
  }
  body > header.about-header h1,
body > header h1 {
    font-size: clamp(1.3rem, 6.5vw, 1.8rem);
  }
}
