/* BNGo shared chrome, loaded on every public page: tokens, page base, header, menu, bottom navigation. */
:root{--brand:#1375ee;--brand2:#10b96c;--bg:#f7fafc;--bngo-blue:#0f6ad8;--bngo-blue-dark:#0b57b3;--bngo-green:#0a8a4b;--bngo-ink:#10213b;--bngo-muted:#566779;--bngo-line:#e4ebf3;--bngo-tint:#f2f7fc;--bngo-price:#d92d20;--bngo-r:12px;--bngo-r-s:8px;--bngo-wrap:1160px;--bngo-font:-apple-system,BlinkMacSystemFont,system-ui,"Segoe UI",Roboto,"PingFang SC","Noto Sans CJK SC","Microsoft YaHei",sans-serif}
html,body{max-width:100%;overflow-x:clip}
body{background:var(--bg);color:var(--bngo-ink)}
.topbar,.bngo-home,.bngo-footer,.bottom-nav{font-family:var(--bngo-font)}
.main{max-width:none;padding:0 0 30px;min-height:calc(100vh - 180px)}
.main>.bngo-home{max-width:none}
body:has(.bngo-home) .main{padding-bottom:0}
.bngo-icon{display:block;width:20px;height:20px;flex:0 0 auto}
.topbar a:focus-visible,.topbar button:focus-visible,.topbar summary:focus-visible,.bngo-home a:focus-visible,.bngo-footer a:focus-visible,.bottom-nav a:focus-visible{outline:2px solid var(--bngo-blue);outline-offset:2px;border-radius:4px}

/* Header */
.topbar{float:none;padding:0;background:rgba(255,255,255,.97);border-bottom:1px solid var(--bngo-line)}
.topbar-inner{position:relative;max-width:var(--bngo-wrap);height:60px;min-height:60px;margin:auto;padding:0 20px;display:flex;align-items:center;flex-wrap:nowrap;gap:14px}
.topbar-inner .brand.bngo-brand{display:flex;flex-direction:column;align-items:flex-start;flex:0 0 auto;line-height:1;text-decoration:none;color:var(--bngo-ink)}
.topbar-inner .brand.bngo-brand .bngo-brand-name{display:flex!important;flex-direction:row;white-space:nowrap;font-size:26px;font-weight:900;letter-spacing:-.07em;line-height:1}
.topbar-inner .brand.bngo-brand .bngo-brand-name span{display:inline!important}
.topbar-inner .brand.bngo-brand small{display:block;font-size:10px;font-weight:700;margin-top:3px;letter-spacing:0;color:var(--bngo-muted)}
.bngo-brand-name span:first-child,.bngo-footer strong span:first-child{color:#1274ed}
.bngo-brand-name span:last-child,.bngo-footer strong span:last-child{color:#0ab75f}
.city-switch{display:flex;align-items:center;gap:3px;flex:0 0 auto;border:0;background:var(--bngo-tint);border-radius:var(--bngo-r-s);padding:7px 10px 7px 7px;font-size:13px;white-space:nowrap;color:var(--bngo-blue)}
.city-switch a{color:var(--bngo-ink);text-decoration:none}
.city-switch .bngo-icon{width:16px;height:16px}
.bngo-desktop-nav{display:none;align-items:center;gap:2px;min-width:0;flex:1;white-space:nowrap}
.bngo-desktop-nav a{font-size:14px;font-weight:600;color:var(--bngo-ink);text-decoration:none;padding:8px;border-radius:var(--bngo-r-s)}
.bngo-desktop-nav a:hover{color:var(--bngo-blue);background:var(--bngo-tint)}
.bngo-header-locales{position:relative;display:block;margin-left:auto;z-index:60;flex:0 0 auto}
.bngo-header-locales summary{display:flex;align-items:center;gap:4px;min-height:40px;padding:0 6px;cursor:pointer;list-style:none;font-size:13px;color:var(--bngo-ink);white-space:nowrap}
.bngo-header-locales summary::-webkit-details-marker{display:none}
.bngo-header-locales summary .bngo-icon{width:18px;height:18px;color:var(--bngo-muted)}
.bngo-header-locales summary .bngo-icon:last-child{width:14px;height:14px}
.bngo-locale-options{position:absolute;top:calc(100% + 6px);right:0;min-width:120px;display:flex;flex-direction:column;padding:5px;background:#fff;border:1px solid var(--bngo-line);border-radius:var(--bngo-r-s);box-shadow:0 10px 24px rgba(19,47,79,.12)}
.bngo-locale-options a{min-height:40px;display:flex;align-items:center;padding:0 10px;border-radius:6px;font-size:14px;color:var(--bngo-ink);text-decoration:none}
.bngo-locale-options a:hover,.bngo-locale-options a[aria-current]{background:var(--bngo-tint)}
.topbar .header-actions{display:flex;align-items:center;gap:6px;flex:0 0 auto!important;width:auto;min-width:0;margin-left:0}
.bngo-account-link,.bngo-register-link,.bngo-publish-link{display:inline-flex;align-items:center;justify-content:center;min-height:40px;padding:0 10px;font-size:14px;font-weight:600;text-decoration:none;color:var(--bngo-ink);border-radius:var(--bngo-r-s);white-space:nowrap}
.bngo-account-link:hover,.bngo-register-link:hover{background:var(--bngo-tint)}
.header-actions a.bngo-publish-link{gap:4px;padding:0 14px 0 10px;background:var(--bngo-blue);color:#fff;margin-left:4px}
.header-actions a.bngo-publish-link:hover{background:var(--bngo-blue-dark)}
.bngo-publish-link .bngo-icon{width:18px;height:18px}
.topbar .header-actions button.btn.mobile-nav-toggle{display:inline-flex!important;align-items:center;justify-content:center;width:44px;height:44px;padding:0;background:#fff;color:var(--bngo-ink);border:1px solid var(--bngo-line);border-radius:var(--bngo-r-s)}

/* Menu: same panel at every width; channels are hidden only while the desktop nav shows them. */
.topbar .header-actions .header-action-links{display:none!important;position:absolute;top:calc(100% + 1px);left:auto;right:20px;width:min(380px,calc(100vw - 40px));max-height:calc(100vh - 80px);max-height:calc(100dvh - 80px);overflow-y:auto;padding:14px;background:#fff;border:1px solid var(--bngo-line);border-radius:0 0 var(--bngo-r) var(--bngo-r);box-shadow:0 14px 30px rgba(13,43,80,.15);z-index:50}
.topbar .header-actions .header-action-links.is-open{display:flex!important;flex-direction:column;align-items:stretch;gap:8px}
.header-action-links>*{width:100%;max-width:none!important;text-align:left}
.header-action-links .btn{display:flex!important;align-items:center;min-height:44px;margin:0;padding:8px 12px;font-size:14px;white-space:normal!important}
.header-action-links .btn.primary{justify-content:center;background:var(--bngo-blue);border-color:var(--bngo-blue);color:#fff}
.bngo-menu-search{display:flex!important;align-items:center;height:44px;max-width:none;margin:0;padding:0 0 0 12px;background:var(--bngo-tint);border:1px solid var(--bngo-line);border-radius:var(--bngo-r-s)}
.bngo-menu-search input[type=search]{flex:1;min-width:0;height:42px;padding:0;margin:0;border:0;outline:0;background:transparent;font-size:15px;box-shadow:none}
.bngo-menu-search button{display:grid;place-items:center;flex:0 0 44px;height:42px;border:0;background:transparent;color:var(--bngo-blue);cursor:pointer}
.bngo-mobile-links{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:6px}
.bngo-mobile-links a{display:flex;align-items:center;gap:8px;min-height:44px;padding:4px 8px;font-size:14px;font-weight:600;color:var(--bngo-ink);text-decoration:none;background:var(--bngo-tint);border-radius:var(--bngo-r-s)}
.bngo-mobile-links .bngo-service-icon{width:32px;height:32px;border-radius:8px}
.bngo-mobile-links .bngo-icon{width:18px;height:18px}

/* Channel colour pairs, used by the home grid, the action cards and the menu. */
.bngo-service-icon{display:grid;place-items:center;flex:0 0 auto;width:48px;height:48px;border-radius:14px}
.bngo-service-icon .bngo-icon{width:26px;height:26px}
.bngo-coral{color:#d9363e;background:#feeeee}.bngo-blue{color:#0f6ad8;background:#e8f2fe}.bngo-green{color:#0a8a4b;background:#e6f7ee}.bngo-orange{color:#c8590a;background:#fff1e4}.bngo-purple{color:#7c3fd1;background:#f3ecfd}.bngo-pink{color:#cf2f70;background:#fdecf3}.bngo-sky{color:#0f7fb8;background:#e6f5fc}.bngo-mint{color:#0b7f6c;background:#e3f6f2}.bngo-gold{color:#a86a00;background:#fdf3dd}

/* Bottom navigation (phones only, hidden from 561px by bnlife.css). */
.bottom-nav{grid-template-columns:repeat(4,minmax(0,1fr));padding-bottom:env(safe-area-inset-bottom)}
.bottom-nav a{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:2px;min-height:52px;font-size:11px;color:var(--bngo-muted)}
.bottom-nav a .bngo-icon{width:22px;height:22px}
.bottom-nav a[aria-current="page"]{color:var(--bngo-blue);font-weight:700}
.bottom-nav .bngo-nav-publish{color:var(--bngo-blue);font-weight:700}

@media(max-width:1239px){.topbar-inner .bngo-desktop-nav{display:none}}
@media(min-width:1240px){
  .bngo-desktop-nav{display:flex}
  .bngo-header-locales{margin-left:0}
  html[lang="vi-VN"] .city-switch{display:none} /* Vietnamese labels need the room; the brand line already names Bắc Ninh. */
  html[lang="vi-VN"] .bngo-register-link{display:none} /* Still in the menu. */
  html[lang="vi-VN"] .bngo-desktop-nav a{font-size:13px;padding:8px 6px}
  .bngo-mobile-links,.bngo-menu-search{display:none!important}
}
@media(max-width:760px){body{padding-top:0}.topbar{position:sticky;top:0}.bngo-register-link{display:none}}
@media(max-width:640px){.topbar-inner .bngo-publish-link{display:none}.city-switch{display:none}}
@media(max-width:360px){.bngo-account-link{display:none}}
@media(max-width:560px){
  .topbar-inner{height:56px;min-height:56px;padding:0 12px;gap:6px}
  .topbar-inner .brand.bngo-brand .bngo-brand-name{font-size:24px}
  .topbar .header-actions{gap:2px}
  .bngo-header-locales summary{min-height:44px;padding:0 4px}
  .bngo-account-link{min-height:44px;padding:0 8px}
  .topbar .header-actions .header-action-links{left:0;right:0;width:auto;top:100%;border-width:1px 0;border-radius:0;max-height:calc(100vh - 56px - 56px);max-height:calc(100dvh - 56px - 56px)}
}

/* Page zoom is allowed again; 16px fields stop iOS zooming in on focus. */
@media (max-width:767px){input[type=text],input[type=search],input[type=email],input[type=tel],input[type=number],input[type=password],input[type=url],input:not([type]),select,textarea{font-size:16px}}
/* Not-found page */
.bngo-notfound{max-width:420px;margin:0 auto;padding:48px 16px 56px;text-align:center}
.bngo-notfound .bngo-notfound-code{margin:0 0 8px;font-size:48px;line-height:1.1;font-weight:700;color:var(--bngo-blue)}
.bngo-notfound h1{margin:0 0 8px;font-family:inherit;font-size:22px;line-height:1.35;font-weight:700;color:var(--bngo-ink)}
.bngo-notfound p{margin:0 0 20px;font-size:15px;line-height:1.6;color:var(--bngo-muted)}
.bngo-notfound .btn{float:none;display:inline-block;margin:4px}
/* Buttons on inner pages use the brand blue, not the old theme colour. */
body .btn.btn-primary{background:var(--bngo-blue);border-color:var(--bngo-blue);color:#fff}
body .btn.btn-primary:hover,body a.btn.btn-primary:hover{background:var(--bngo-blue-dark);border-color:var(--bngo-blue-dark);color:#fff}
.error404 .btn.btn-secondary{border-color:var(--bngo-blue);color:var(--bngo-blue)}
.bngo-prelaunch{display:flex;gap:8px;align-items:flex-start;max-width:var(--bngo-wrap);margin:8px auto 0;padding:8px 12px;background:#fff8e6;border:1px solid #f3d48a;border-radius:var(--bngo-r-s);font-size:13px;line-height:1.5;color:#5c4400}
.bngo-prelaunch strong{flex:0 0 auto;padding:0 6px;border-radius:4px;background:#f5b400;color:#3d2b00;font-size:12px;line-height:20px}
@media (max-width:1199px){.bngo-prelaunch{margin:8px 16px 0}}
.bngo-contact-paused p{margin:0;padding:10px 12px;background:#fff8e6;border:1px solid #f3d48a;border-radius:var(--bngo-r-s);font-size:13px;line-height:1.5;color:#5c4400}
