/* Signed-out pages (Login, Forgot password, Listings, ...): the same header as the marketing site (m/site.css .mk-head).
   Only applies under #wrapper.pm-public, which Site.Master sets for visitors who are not signed in. */
#wrapper.pm-public.d-flex #sidebar,
#wrapper.pm-public.d-flex .mobile-topbar { display: none !important; }
#wrapper.pm-public ~ #sidebarBackdrop { display: none !important; }
#wrapper.pm-public.d-flex #page-content-wrapper { margin-left: 0 !important; width: 100% !important; }

.pm-pub-head {
    --pp-bg: #ffffff; --pp-text: #111827; --pp-body: #4b5563; --pp-line: #e5e7eb; --pp-accent: #3b82f6;
    position: sticky; top: 0; z-index: 1040; background: var(--pp-bg); border-bottom: 1px solid var(--pp-line);
    font-family: Inter, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    padding-top: env(safe-area-inset-top, 0px);
}
[data-bs-theme="dark"] .pm-pub-head { --pp-bg: #0f141a; --pp-text: #f3f4f6; --pp-body: #c5cbd3; --pp-line: #2b333d; }
.pm-pub-wrap { position: relative; max-width: 1120px; margin: 0 auto; padding: 0 20px; height: 64px; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.pm-pub-brand { display: flex; align-items: center; gap: 10px; color: var(--pp-text); font-weight: 700; font-size: 1.25rem; text-decoration: none; }
.pm-pub-brand:focus, .pm-pub-brand:active { color: var(--pp-text); }
.pm-pub-box { width: 32px; height: 32px; border-radius: 8px; background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%); display: flex; align-items: center; justify-content: center; }
.pm-pub-box svg { width: 18px; height: 18px; }
.pm-pub-accent { color: var(--pp-accent); font-weight: 400; }
.pm-pub-nav { display: flex; align-items: center; gap: 22px; }
.pm-pub-nav a { color: var(--pp-body); font-weight: 500; font-size: .95rem; text-decoration: none; }
.pm-pub-nav a[aria-current="page"] { color: var(--pp-text); font-weight: 600; }
.pm-pub-nav .pm-pub-signin { color: var(--pp-text); font-weight: 600; }
.pm-pub-nav .pm-pub-cta { background: #2563eb; color: #ffffff; border-radius: 8px; padding: 9px 14px; font-weight: 600; font-size: .92rem; line-height: 1.2; }
/* Three-line menu: borderless icon button, phones only. */
.pm-pub-menu { display: none; background: none; border: 0; padding: 8px; margin: 0; color: var(--pp-text); cursor: pointer; box-shadow: none; touch-action: manipulation; }
.pm-pub-menu svg { width: 24px; height: 24px; display: block; }
.pm-pub-menu:focus-visible, .pm-pub-nav a:focus-visible, .pm-pub-brand:focus-visible { outline: 3px solid #dbeafe; outline-offset: 2px; }
@media (hover: hover) and (pointer: fine) {
    .pm-pub-nav a:hover { color: var(--pp-text); }
    .pm-pub-nav .pm-pub-cta:hover { background: #1d4ed8; color: #ffffff; }
}
@media (max-width: 760px) {
    .pm-pub-menu { display: block; }
    .pm-pub-nav { display: none; position: absolute; left: 0; right: 0; top: 64px; flex-direction: column; align-items: stretch; gap: 0; background: var(--pp-bg); border-bottom: 1px solid var(--pp-line); padding: 6px 20px 14px; }
    .pm-pub-nav.open { display: flex; }
    .pm-pub-nav a { padding: 12px 0; border-bottom: 1px solid var(--pp-line); }
    .pm-pub-nav a:last-child { border-bottom: 0; }
    .pm-pub-nav .pm-pub-cta { margin-top: 10px; padding: 12px 14px; text-align: center; }
}
