/* One navigation shell (header + footer) for marketing, help, account and checkout pages. */
.global-header.site-header {
  position: sticky; top: 0; z-index: 40; display: block; width: 100%; max-width: none;
  min-height: 0; margin: 0; padding: 0; border: 0; border-bottom: 1px solid var(--rule);
  border-radius: 0; background: rgba(255,255,255,.94); box-shadow: none;
  -webkit-backdrop-filter: saturate(1.4) blur(10px); backdrop-filter: saturate(1.4) blur(10px);
  font-family: var(--sans);
}
.global-header .header-inner {
  max-width: var(--max); margin-inline: auto; padding-inline: 32px; height: var(--header-h);
  display: flex; align-items: center; gap: 24px;
}
.global-header .brand {
  display: inline-flex; align-items: center; gap: 10px; flex-shrink: 0; min-height: 44px;
  color: var(--ink); text-decoration: none; font-family: var(--serif); font-size: 26px;
  font-weight: 400; letter-spacing: -0.03em; line-height: 1;
}
.global-header .brand img { width: 28px; height: 28px; }
.global-header .icon, .shell-footer .icon {
  width: 20px; height: 20px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.75;
  stroke-linecap: round; stroke-linejoin: round;
}
.global-header .desktop-nav { display: flex; gap: 4px; margin-left: 16px; }
.global-header .desktop-nav a {
  display: inline-flex; align-items: center; min-height: 44px; padding: 0 12px; border-radius: var(--r-sm);
  color: var(--muted); font-size: 16px; font-weight: 500; text-decoration: none; white-space: nowrap;
}
.global-header .desktop-nav a[aria-current="page"], .global-header .desktop-nav a[aria-current="true"] { color: var(--ink); box-shadow: inset 0 -2px 0 var(--accent); border-radius: 0; }
.global-header .header-actions { margin-left: auto; display: flex; align-items: center; gap: 12px; }
.global-header .account-chip {
  display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 0 16px 0 12px;
  border-radius: var(--r-pill); background: var(--surface); color: var(--ink); font-size: 14px;
  font-weight: 600; text-decoration: none; white-space: nowrap;
}
.global-header .account-chip .icon { width: 18px; height: 18px; }
.global-header .account-chip[aria-current="page"] { background: var(--accent-soft); color: var(--accent-strong); box-shadow: none; }
.global-header .nav-primary {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 40px;
  padding: 0 16px; border: 0; border-radius: var(--r-pill); background: var(--ink); color: #fff;
  font-size: 14px; font-weight: 600; text-decoration: none; white-space: nowrap;
  transition: background-color var(--t-fast) var(--ease-out);
}
.global-header .mobile-toggle {
  display: none; width: 44px; height: 44px; min-width: 44px; padding: 0; align-items: center; justify-content: center;
  border: 0; border-radius: var(--r-sm); background: transparent; color: var(--ink); cursor: pointer;
}
.global-header .mobile-toggle .icon { width: 24px; height: 24px; }
.global-header #mobile-nav { position: static; padding: 0; max-height: calc(100dvh - var(--header-h)); overflow-y: auto; border-top: 1px solid var(--rule); background: var(--ground); }
.global-header #mobile-nav a {
  display: flex; align-items: center; min-height: 52px; padding: 0 16px; border-bottom: 1px solid var(--rule);
  color: var(--ink); font-weight: 500; text-decoration: none;
}
.global-header #mobile-nav a[aria-current="page"], .global-header #mobile-nav a[aria-current="true"] { color: var(--accent); }
.global-header [hidden] { display: none !important; }
.global-header :focus-visible, .shell-footer :focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 4px; }
@media (hover: hover) {
  .global-header .desktop-nav a:hover { color: var(--ink); background: var(--surface); }
  .global-header .account-chip:hover { background: var(--surface-2); color: var(--ink); }
  .global-header .nav-primary:hover { background: #000; color: #fff; }
}

.shell-footer { border-top: 1px solid var(--rule); padding-block: 48px; margin-top: 96px; font-family: var(--sans); color: var(--ink); background: var(--ground); }
.shell-footer .footer-inner { max-width: var(--max); margin-inline: auto; padding-inline: 32px; }
.shell-footer .footer-grid { display: grid; grid-template-columns: minmax(0, 2fr) repeat(4, minmax(0, 1fr)); gap: 24px; }
.shell-footer .brand { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; color: var(--ink); text-decoration: none; font-family: var(--serif); font-size: 26px; font-weight: 400; letter-spacing: -0.03em; line-height: 1; }
.shell-footer .brand img { width: 28px; height: 28px; }
.shell-footer .footer-tagline { margin: 12px 0 0; color: var(--muted); font-size: 14px; }
.shell-footer h2 { margin: 0 0 12px; font-family: var(--sans); font-size: 14px; font-weight: 600; letter-spacing: 0; line-height: 1.4; }
.shell-footer ul { display: grid; gap: 4px; margin: 0; padding: 0; list-style: none; }
.shell-footer ul a { display: inline-flex; align-items: center; min-height: 32px; color: var(--muted); font-size: 14px; text-decoration: none; overflow-wrap: anywhere; }
.shell-footer .copyright { margin: 32px 0 0; color: var(--muted); font-size: 13px; }
@media (hover: hover) { .shell-footer ul a:hover { color: var(--ink); text-decoration: underline; } }

html:lang(zh-CN) h1 em, html:lang(zh-CN) h2 em { font-style: normal; }
html:lang(zh-CN) h1, html:lang(zh-CN) h2 { letter-spacing: 0; }
h1, h2 { text-wrap: balance; }
@media (max-width: 1023px) {
  .shell-footer .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .shell-footer .footer-grid > :first-child { grid-column: 1 / -1; }
}
@media (max-width: 900px) {
  .global-header .desktop-nav, .global-header .nav-primary { display: none; }
  .global-header .mobile-toggle { display: inline-flex; }
  .global-header .header-actions { gap: 8px; }
}
@media (max-width: 767px) {
  .global-header .header-inner, .shell-footer .footer-inner { padding-inline: 16px; }
  .shell-footer { margin-top: 64px; }
}
@media (max-width: 380px) {
  .global-header .header-inner { gap: 8px; }
  .global-header .brand { font-size: 23px; gap: 8px; }
  .global-header .brand img { width: 24px; height: 24px; }
  .global-header .account-chip { padding: 0 10px; }
  .global-header .account-chip .chip-label { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

/* Downloads remain disabled until release testing is complete. */
.nav-primary[aria-disabled="true"], .btn[aria-disabled="true"] { cursor: default; opacity: .65; pointer-events: none; }
#mobile-nav > [aria-disabled="true"] { display: block; padding: 12px 8px; opacity: .6; }

/* The six-link public navigation needs more room than the account header. */
@media (max-width: 1199px) {
  .global-header.seo-header .desktop-nav, .global-header.seo-header .nav-primary { display: none; }
  .global-header.seo-header .mobile-toggle { display: inline-flex; }
  .global-header.seo-header .header-actions { gap: 8px; }
}

/* Preview offer bar (server-rendered only while a promotion is active; no JS, no layout shift) */
.promo-bar { background: var(--accent-soft, #eef1df); border-bottom: 1px solid var(--rule, #e3e3da); color: var(--ink, #1d1d1b); font-size: 15px; line-height: 1.45; }
.promo-bar-inner { max-width: var(--max, 1200px); margin-inline: auto; padding: 10px var(--s6, 24px); display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; }
.promo-tag { display: inline-block; padding: 2px 10px; border-radius: 999px; background: var(--accent, #4d6200); color: #fff; font-size: 13px; font-weight: 700; letter-spacing: .02em; }
.promo-text { font-weight: 600; }
.promo-bar a { color: var(--accent-strong, #3a4a00); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
@media (max-width: 600px) { .promo-bar-inner { padding: 8px 16px; font-size: 14px; } }
.pricing-page .cost-table .promo-cell { color: var(--accent-strong, #3a4a00); background: var(--accent-soft, #eef1df); }
