/* Authenticated marketing pages use the same native account menu and entitlements. */
#header [data-public-account-slot] { display:contents; }
#header .lp-nav-actions[data-public-auth=user] > :is(.lp-login,a.lp-button) { display:none; }
#header .public-account-controls { display:flex; align-items:center; gap:12px; min-width:0; }
#header .public-account-controls[data-authenticated=pending] { display:none; }
html[data-auth=user] #header .public-account-controls[data-authenticated=pending] { display:flex; }
html[data-auth=user] #header .lp-nav-actions:not([data-public-auth=guest]) > a.lp-button { display:none; }
#header .lp-account-label { position:absolute; width:1px; height:1px; padding:0; margin:-1px; overflow:hidden; clip-path:inset(50%); white-space:nowrap; }
html[data-auth=user] #header .lp-login:not([data-auth-state=guest]),
#header .public-account-controls #header-account {
  display:inline-flex; align-items:center; justify-content:center; flex:0 0 auto;
  position:relative; box-sizing:border-box; width:40px; height:40px; min-width:40px;
  padding:0; border:2px solid #111; border-radius:50%; color:#111; background:#fff;
  box-shadow:none; line-height:1; cursor:pointer;
}
html[data-auth=user] #header .lp-login:not([data-auth-state=guest]) [data-login-label=user] { display:flex; }
html[data-auth=user] #header .lp-login:not([data-auth-state=guest]) .ph-user-circle,
#header .public-account-controls #header-account > .ph { font-size:30px; line-height:1; }
#header .public-account-controls .public-earn {
  display:inline-flex; flex:0 0 auto; align-items:center; justify-content:center;
  width:40px; height:40px; box-sizing:border-box; border:2px solid #111; border-radius:9px;
  background:#fff; color:#111; text-decoration:none; font-size:20px;
}
#header .public-account-controls .header-balance-group {
  display:inline-flex; height:40px; min-width:0; overflow:hidden;
  border:2px solid #111; border-radius:9px; background:#fff; box-sizing:border-box;
}
#header .public-account-controls .header-balance-group > :is(a,span) {
  display:inline-flex; align-items:center; justify-content:center; gap:6px; min-width:56px;
  box-sizing:border-box; padding:0 12px; color:#111; background:#fff;
  font-size:13px; font-weight:600; line-height:1.2; text-decoration:none; white-space:nowrap;
}
#header .public-account-controls :is(#header-membership,.public-pending-upgrade) { border-inline-start:1px solid #111; background:#eef200; }
#header .public-account-controls [data-annual=true] #header-membership { border-inline-start:0; min-width:96px; }
#header .public-account-controls .header-balance-group .ph { font-size:18px; flex-shrink:0; }
#header .public-account-controls #header-membership > span { white-space:normal; text-align:center; overflow-wrap:anywhere; }
#header .public-account-controls .header-balance-group strong { font-variant-numeric:tabular-nums; }
#header .public-account-controls .header-vip-badge {
  position:absolute; inset-block-start:-5px; inset-inline-end:-4px; display:inline-flex;
  align-items:center; justify-content:center; width:22px; height:22px; box-sizing:border-box;
  border:2px solid #111; border-radius:50%; background:#eef200; pointer-events:none;
}
#header .public-account-controls .header-vip-badge .ph { font-size:13px; }
#header .public-account-controls .header-pending-text { display:block; width:2em; height:12px; border-radius:3px; background:#ddd; }
#header .public-account-controls[data-authenticated=pending] { pointer-events:none; }
#header .public-account-controls :is(a,button):focus-visible { outline:2px solid #0098e4; outline-offset:3px; }
#header .public-account-controls .header-balance-group a:hover { filter:brightness(.96); }
#header .lp-nav-actions[data-public-auth=user] > .lp-language,
html[data-auth=user] #header .lp-nav-actions:not([data-public-auth=guest]) > .lp-language {
  box-sizing:border-box; height:40px; border:2px solid #111; border-radius:9px; padding:0 12px; font-size:13px;
}
@media(max-width:1100px) {
  #header .lp-nav { gap:16px; }
  #header .lp-nav-actions { gap:10px; }
}
@media(max-width:700px) {
  #header .lp-nav-actions { max-width:100%; flex-wrap:wrap; justify-content:flex-end; }
  #header .public-account-controls { gap:8px; max-width:100%; }
  #header .public-account-controls .header-balance-group > :is(a,span) { padding-inline:8px; min-width:48px; font-size:12px; }
  #header .public-account-controls #header-account { width:44px; height:44px; min-width:44px; }
  #header .lp-nav-actions[data-public-auth=user] > .lp-language,
  html[data-auth=user] #header .lp-nav-actions:not([data-public-auth=guest]) > .lp-language { padding-inline:8px; }
  #header .lp-nav-actions[data-public-auth=user] > .lp-language > span,
  html[data-auth=user] #header .lp-nav-actions:not([data-public-auth=guest]) > .lp-language > span { display:none; }
}
/* The verified avatar replaces the first-paint login placeholder. */
html body #header .lp-nav-actions[data-public-auth=user] > .lp-login { display:none; }

/* Legal labels can be wider than one mobile footer column in translated text. */
@media(max-width:700px) {
  .lp-footer { grid-template-columns:repeat(3,minmax(0,1fr)); }
  .lp-footer > div { min-width:0; overflow-wrap:anywhere; }
}
