/* PINTARA v4.5.6 | Public header navigation only. Safe overlay above 4.5.5. */
/* Use more of the viewport for navigation without changing content widths. */
.topbar .topbar-inner {
  width: min(1460px, calc(100% - 36px));
  gap: clamp(8px, 1.2vw, 18px);
}
.topbar .logo { flex: 0 0 auto; }
.topbar .toplinks {
  display: flex;
  align-items: center;
  flex: 0 0 auto;
  flex-wrap: nowrap;
  gap: clamp(9px, 0.85vw, 16px);
  font-size: clamp(11.5px, 0.88vw, 13px);
  white-space: nowrap;
}
.topbar .toplinks > a { display: inline-block; flex-shrink: 0; white-space: nowrap; line-height: 1.4; }
.topbar .top-actions { flex: 0 0 auto; gap: 6px; }
.topbar .top-actions .btn.small { padding: 9px 12px; }
.topbar .top-actions .quiet { padding: 8px; }
.p456-menu-button { display: none; }
.p456-mobile-nav[hidden] { display: none !important; }

/* On small notebooks/tablets show a proper navigation drawer instead of
   squeezing two-word navigation labels into two lines. */
@media (max-width: 1200px) {
  .topbar .toplinks { display: none !important; }
  .p456-menu-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    margin-left: auto;
    padding: 8px 11px;
    min-height: 42px;
    border: 1px solid var(--p328-stroke, #33465c);
    border-radius: 12px;
    font: 750 13px/1.1 system-ui,-apple-system,"Segoe UI",sans-serif;
    color: var(--p328-text, #eaf3ff);
    background: var(--p328-card, #172940);
    cursor: pointer;
    flex: 0 0 auto;
    white-space: nowrap;
  }
  .p456-menu-glyph { font-size: 17px; line-height: 1; }
  .p456-menu-button:focus-visible,.p456-mobile-nav a:focus-visible { outline: 3px solid #5f9fff; outline-offset: 3px; }
  .p456-menu-button[aria-expanded="true"] { border-color: #4385d9; }
  .topbar { position: sticky; }
  .p456-mobile-nav {
    width: min(405px, calc(100% - 24px));
    max-height: min(75vh, 630px);
    overflow-y: auto;
    position: absolute;
    right: 12px;
    top: calc(100% + 4px);
    z-index: 30;
    border: 1px solid var(--p328-stroke,#344d69);
    border-radius: 16px;
    background: var(--p328-card,#172a41);
    color: var(--p328-text,#e9f2ff);
    box-shadow: 0 18px 44px rgba(0,0,0,.2);
  }
  .p456-mobile-nav-inner { display: grid; padding: 10px; gap: 2px; }
  .p456-mobile-nav a { display: block; padding: 11px 12px; border-radius: 9px; font-size: 14px; font-weight: 700; line-height: 1.35; text-decoration: none; color: inherit; white-space: nowrap; }
  .p456-mobile-nav a:hover { background: rgba(83,149,226,.12); }
  .p456-mobile-nav-footer { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; padding-top: 12px; margin: 8px 2px 2px; border-top: 1px solid var(--p328-stroke,#344d69); }
  .p456-mobile-nav-footer a { text-align: center; background: rgba(96,158,224,.09); }
  .p456-mobile-nav-footer .p456-mobile-cta { background: #2879df; color: white; }
}
@media (min-width: 1201px) { .p456-mobile-nav { display: none !important; } }
@media (max-width: 650px) {
  .topbar .topbar-inner { width: calc(100% - 24px); gap: 7px; }
  .topbar .top-actions .quiet { display: none; } /* Masuk remains in mobile drawer */
  .p456-menu-button { margin-left: auto; padding: 8px 10px; }
  .topbar .top-actions .btn.small { padding: 9px 10px; font-size: 11px; white-space: nowrap; }
}
@media (max-width: 440px) {
  .topbar .logo { gap: 5px; }
  .topbar .logo img { width: 37px; height: 37px; }
  .topbar .logo strong { font-size: 16px; }
  .topbar .top-actions .btn.small { display: none; } /* Daftar remains in mobile drawer */
}
