/* Shared header, using the existing ink, paper, red and type palette. */
.site-header.unified-header {
  align-items: center; background: rgba(17,17,15,.96); border-bottom: 1px solid rgba(255,250,241,.12);
  box-sizing: border-box; color: var(--white, #fffaf1); display: grid; gap: 24px;
  grid-template-columns: auto 1fr auto; height: 82px; inset: 0 0 auto; padding: 16px 32px;
  position: fixed; width: 100%; z-index: 30;
}
.unified-header .brand { gap: 12px; min-width: 0; text-decoration: none; }
.unified-header .brand-icon { height: 34px; width: 34px; }
.unified-header .brand strong { font-family: Georgia, 'Times New Roman', serif; font-size: 24px; line-height: 1; white-space: nowrap; }
.unified-header .brand small { color: rgba(255,250,241,.66); display: block; font-size: 11px; line-height: 1.3; margin-top: 5px; }
.shared-navigation { align-items: center; display: flex; gap: 24px; justify-content: center; }
.shared-navigation a { border-bottom: 1px solid transparent; color: rgba(255,250,241,.8); font-size: 11px; font-weight: 800; letter-spacing: .11em; padding: 10px 0 6px; text-decoration: none; text-transform: uppercase; white-space: nowrap; }
.shared-navigation a:hover, .shared-navigation a[aria-current] { border-color: rgba(255,250,241,.55); color: #fffaf1; }
.shared-header-controls { align-items: center; display: flex; gap: 16px; }
.unified-header .lang-toggle { align-items: center; background: transparent; border: 0; color: #fffaf1; display: flex; font-size: 11px; font-weight: 800; gap: 5px; letter-spacing: .11em; min-height: 44px; padding: 0; white-space: nowrap; }
.shared-menu-toggle { display: none; }
.shared-navigation a:focus-visible, .shared-menu-toggle:focus-visible, .unified-header .lang-toggle:focus-visible { outline: 2px solid #ed453d; outline-offset: 5px; }
body[data-guides-page].has-unified-header main { padding-top: 82px; }
html:lang(zh-CN) .shared-navigation a { font-size: 13px; letter-spacing: .06em; text-transform: none; }
@media (max-width: 1100px) {
  .site-header.unified-header { gap: 16px; grid-template-columns: 1fr auto; height: 72px; padding: 12px 20px; }
  .unified-header .brand small { display: none; }
  .unified-header .brand strong { font-size: 22px; }
  .unified-header .brand-icon { height: 30px; width: 30px; }
  .shared-menu-toggle { align-items: center; background: none; border: 0; color: #fffaf1; cursor: pointer; display: flex; flex-direction: column; gap: 6px; justify-content: center; min-height: 44px; padding: 0; width: 32px; }
  .shared-menu-toggle span { background: currentColor; display: block; height: 1px; width: 26px; }
  .shared-navigation { align-items: stretch; background: #11110f; border-bottom: 1px solid rgba(255,250,241,.16); display: none; flex-direction: column; gap: 0; left: 0; max-height: calc(100svh - 72px); overflow-y: auto; padding: 16px 24px 24px; position: fixed; right: 0; top: 72px; }
  .unified-header.is-menu-open .shared-navigation { display: flex; }
  .shared-navigation a, html:lang(zh-CN) .shared-navigation a { border-bottom: 1px solid rgba(255,250,241,.12); font-size: 14px; padding: 15px 0; }
  body[data-guides-page].has-unified-header main { padding-top: 72px; }
}
@media (max-width: 520px) {
  .site-header.unified-header { gap: 10px; padding: 12px 18px; }
  .unified-header .brand { gap: 8px; }
  .unified-header .brand strong { font-size: 20px; }
  .unified-header .brand-icon { height: 28px; width: 28px; }
  .shared-header-controls { gap: 12px; }
}
@media (max-width: 360px) {
  .unified-header .brand strong { font-size: 17px; }
  .shared-header-controls { gap: 8px; }
}
