/* Bar atas + tab bar telefon (dikongsi). Page mesti ada token warna: --surface --bg --ink --muted --line --accent --accent-soft --font-display. */
.topbar[data-nav] { display: block; background: var(--surface); border-bottom: 1px solid var(--line); margin-inline: calc(-1 * var(--nv-body-pad, 0px)); }
.nv-in { max-width: 1120px; margin-inline: auto; padding: 14px 40px; display: flex; align-items: center; gap: 12px 20px; box-sizing: border-box; }
.nv-brand { display: flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; }
.nv-mark { flex: none; width: 36px; height: 36px; border-radius: 10px; background: var(--accent); display: grid; place-items: center; }
.nv-mark svg { width: 24px; height: 24px; display: block; }
.nv-name { font-family: var(--font-display); font-weight: 600; font-size: 21px; }
.nv-i { width: 20px; height: 20px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.nv-links { display: flex; flex-wrap: wrap; gap: 6px; margin-left: auto; }
.nv-links a { display: inline-flex; align-items: center; gap: 8px; min-height: 42px; padding: 0 16px 0 12px; border-radius: 99px; color: var(--ink); font-size: 14px; font-weight: 600; text-decoration: none; white-space: nowrap; }
.nv-links a .nv-i { color: var(--accent); }
.nv-links a:hover { background: var(--bg); }
.nv-links a[aria-current="page"] { background: var(--accent-soft); color: var(--accent); font-weight: 700; }
.nv-links a.nv-stg { border: 1px dashed var(--line); }
.nv-tag { padding: 1px 7px; border-radius: 99px; background: var(--ink); color: var(--surface); font-size: 10.5px; font-weight: 700; letter-spacing: .05em; }
.nv-help { display: inline-flex; align-items: center; gap: 6px; min-height: 42px; padding: 0 6px; color: var(--muted); font-size: 13.5px; font-weight: 600; text-decoration: none; }
.nv-help:hover { color: var(--accent); }
.nv-tt { width: 42px; height: 42px; flex: none; border-radius: 50%; border: 1px dashed var(--line); display: grid; place-items: center; color: var(--ink); }
.nv-tt:hover { border-color: var(--accent); }
.tabbar { display: none; }
.topbar[data-nav] a:focus-visible, .tabbar a:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
@media (max-width: 860px) {
  .nv-in { padding: 12px 16px; gap: 10px; }
  .nv-links { display: none; }
  .nv-help { margin-left: auto; width: 44px; height: 44px; padding: 0; justify-content: center; border-radius: 50%; border: 1px solid var(--line); }
  .nv-help span { display: none; }
  .tabbar { position: fixed; z-index: 30; left: 0; right: 0; bottom: 0; display: grid; grid-template-columns: repeat(var(--nv-tabs, 3), minmax(0, 1fr)); padding: 6px 8px calc(8px + env(safe-area-inset-bottom)); background: var(--surface); border-top: 1px solid var(--line); }
  .tabbar a { display: flex; flex-direction: column; align-items: center; gap: 3px; min-height: 52px; padding-top: 4px; color: var(--muted); font-size: 11.5px; font-weight: 600; text-decoration: none; }
  .tabbar a span { width: 56px; height: 30px; border-radius: 99px; display: grid; place-items: center; }
  .tabbar a[aria-current="page"] { color: var(--accent); font-weight: 700; }
  .tabbar a[aria-current="page"] span { background: var(--accent-soft); }
  body.nv-has-tabs { padding-bottom: calc(84px + env(safe-area-inset-bottom)) !important; }
}
@media (max-width: 640px) {
  .nv-mark { width: 32px; height: 32px; border-radius: 9px; }
  .nv-mark svg { width: 21px; height: 21px; }
  .nv-name { font-size: 19px; }
}
@media print { .tabbar { display: none; } }
