/* Shared site header: logo | dynamic page title | flexible space | check-in | points | account */
nav.global-header { display:flex!important;align-items:center!important;gap:12px!important;box-sizing:border-box;min-height:64px;width:100%;max-width:600px;margin-left:auto;margin-right:auto;padding-left:16px;padding-right:16px;background:var(--surface);color:var(--ink); }
nav.global-header .nav-logo, nav.global-header .brand {display:inline-flex;flex:0 0 28px;width:28px;height:28px;margin:0;padding:0;align-items:center;justify-content:center;}
nav.global-header .nav-logo img, nav.global-header .brand .brand-logo {width:28px;height:28px;display:block;}
nav.global-header .brand-text {display:none;}
nav.global-header .global-header-title {margin:0!important;min-width:0;font-size:20px;font-weight:500;line-height:1.35;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;}
nav.global-header .global-header-space {flex:1;min-width:4px;}
nav.global-header .global-header-signin {flex:none;display:inline-flex;align-items:center;justify-content:center;gap:5px;min-height:34px;box-sizing:border-box;padding:6px 12px;border:1px solid var(--ink);border-radius:999px;background:var(--ink);color:var(--surface);font:inherit;font-size:13px;font-weight:600;text-decoration:none;white-space:nowrap;cursor:pointer;}
nav.global-header .global-header-signin svg {width:16px;height:16px;}
nav.global-header .global-header-signin:disabled {opacity:.56;cursor:default;}
nav.global-header .global-header-points {display:inline-flex;flex:none;align-items:center;gap:4px;color:var(--ink);text-decoration:none;font-size:13px;font-variant-numeric:tabular-nums;white-space:nowrap;}
nav.global-header .global-header-points svg {width:19px;height:19px;}
nav.global-header #account {flex:none;margin:0!important;}
nav.global-header .nav-btn {display:inline-flex;align-items:center;justify-content:center;width:32px;height:32px;padding:0;border:1px solid var(--border);border-radius:10px;background:var(--surface);color:var(--ink);cursor:pointer;}
nav.global-header .nav-btn svg {width:18px;height:18px;}
nav.global-header .nav-btn[hidden] {display:none;}
nav.global-header .global-header-signin[hidden],nav.global-header .global-header-points[hidden] {display:none!important;}
nav.global-header .global-header-extra{margin:0 2px;}
nav.global-header .global-header-lang {margin:0 3px 0 0;font-size:11px;}
.global-header-menu {position:absolute;z-index:40;right:12px;top:calc(100% - 2px);display:grid;min-width:165px;border:1px solid var(--border);background:var(--surface);box-shadow:0 8px 24px rgba(0,0,0,.12);}
.global-header-menu a,.global-header-menu button {display:block;padding:12px 15px;background:transparent;border:0;text-align:left;color:var(--ink);font:inherit;font-size:13px;text-decoration:none;cursor:pointer;}
.global-header-menu a:hover,.global-header-menu button:hover{background:var(--panel);}
.global-header-tip{position:fixed;z-index:1000;bottom:24px;left:50%;transform:translateX(-50%);padding:10px 18px;background:var(--ink);color:var(--surface);font-size:13px;box-shadow:0 4px 16px #0002;}
@media(max-width:480px){nav.global-header {gap:8px!important;padding-left:12px;padding-right:12px;}nav.global-header .global-header-title{font-size:18px;}nav.global-header .global-header-signin{padding:6px 10px;font-size:12px;}nav.global-header .global-header-signin svg{display:none;}nav.global-header .global-header-points{gap:2px;font-size:12px;}nav.global-header .global-header-points svg{width:16px;height:16px;}nav.global-header .global-header-lang {font-size:10px;}}

/* On secondary and tertiary routes, retain the existing back arrow inside the top bar. */
nav.global-header .global-header-back {display:inline-flex;align-items:center;justify-content:center;flex:0 0 32px;width:32px;height:32px;margin:0!important;padding:0;color:var(--ink);text-decoration:none;}
nav.global-header .global-header-back svg {display:block;width:18px;height:18px;}
nav.global-header.global-header-secondary .global-header-title {font-size:20px;}
@media(max-width:480px){nav.global-header.global-header-secondary .global-header-title {font-size:18px;}}

/* Preserve each page family's original header behavior: board sticky, account fixed. */
nav.global-header.nav {position:sticky;top:0;z-index:10;}
nav.global-header.subnav {position:fixed;inset:0 0 auto;z-index:10;height:calc(64px + env(safe-area-inset-top, 0px));padding-top:env(safe-area-inset-top, 0px);}
nav.global-header .global-header-signin.is-signed {border-color:var(--border);background:var(--panel);color:var(--muted);}
nav.global-header .global-header-signin:focus-visible {outline:2px solid var(--ink);outline-offset:3px;}
