.site-header {
  background: #fff;
  border-bottom: 1px solid var(--line, #e5e7eb);
  position: sticky;
  top: 0;
  z-index: 10;
}

.site-header .masthead {
  box-sizing: border-box;
  max-width: 1120px;
  min-height: 64px;
  margin: 0 auto;
  padding: 8px 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
}

.medplay-home {
  display: inline-flex;
  flex: none;
}

.medplay-home img {
  display: block;
  width: 110px;
  height: 48px;
  object-fit: contain;
}

.highlight-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--ink, #111827);
  text-decoration: none;
  white-space: nowrap;
}

.highlight-brand .mark {
  width: 36px;
  height: 36px;
  flex: none;
  border-radius: 9px;
  background: var(--brand, #b84a3e);
  color: #fff;
  display: grid;
  place-items: center;
  font: bold 23px Georgia, serif;
}

.highlight-brand .brand-copy {
  display: flex;
  align-items: baseline;
  gap: 8px;
  font-size: 18px;
  line-height: 1.3;
}

.highlight-brand .byline {
  color: var(--muted, #6b7280);
  font-size: 16px;
  font-weight: 400;
}

.hero-brand { margin-bottom: 20px; }
.hero-brand .mark { width: 44px; height: 44px; font-size: 28px; }
.hero-brand .brand-copy { font-size: 22px; }
.hero-brand .byline { font-size: 18px; }
.page-brand { text-align: center; margin-bottom: 36px; }

.site-header .header-action {
  color: var(--ink, #111827);
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
}

.site-header .short-label { display: none; }

.site-nav {
  min-width: 0;
}

.site-nav .nav-links {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 24px;
  margin: 0;
  padding: 0;
  font-size: 14px;
  line-height: 1.5;
  white-space: nowrap;
}

.site-nav a {
  color: var(--muted, #6b7280);
  text-decoration: none;
}

.site-nav .flashcards-link { font-weight: 400; }

.site-nav a:hover,
.site-header .header-action:hover { color: var(--brand, #b84a3e); }

.site-header a:focus-visible {
  outline: 3px solid var(--brand, #b84a3e);
  outline-offset: 5px;
  border-radius: 4px;
}

html { scroll-padding-top: 84px; }

@media (max-width: 900px) {
  .site-nav a:not([href="#download"]):not(.flashcards-link) { display: none; }
}

@media (max-width: 600px) {
  .site-header .masthead { min-height: 60px; padding: 8px 16px; gap: 16px; }
  .medplay-home img { width: 88px; height: 40px; }
  .highlight-brand { gap: 7px; }
  .highlight-brand .mark { width: 30px; height: 30px; font-size: 20px; }
  .highlight-brand .brand-copy { gap: 7px; font-size: 18px; }
  .highlight-brand .byline { font-size: 14px; }
  .hero-brand .mark { width: 36px; height: 36px; font-size: 24px; }
  .site-header .header-action { font-size: 12px; }
  .site-header .long-label { display: none; }
  .site-header .short-label { display: inline; }
  .site-nav .nav-links { gap: 18px; font-size: 13px; }
}

@media (max-width: 360px) {
  .site-header .masthead { padding-right: 12px; padding-left: 12px; gap: 4px; }
  .medplay-home img { width: 76px; height: 37px; }
  .highlight-brand .brand-copy { font-size: 17px; }
}
