/* ── Platform-wide top navigation bar ──────────────────────────────────── */
/* Included on all internal hub pages. External hubs do NOT include this.  */

#platform-nav {
    background: #1F3864;
    height: 44px;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 1px 4px rgba(0,0,0,0.25);
}

/* Inner wrapper — matches .container and .hub-nav-inner alignment exactly */
.pnav-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    height: 44px;
    display: flex;
    align-items: center;
    gap: 0;
}

.pnav-brand {
    font-size: 13px;
    font-weight: 700;
    color: #fff;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    white-space: nowrap;
    margin-right: 24px;
    text-decoration: none;
    opacity: 0.9;
}
.pnav-brand:hover { opacity: 1; }

.pnav-links {
    display: flex;
    align-items: center;
    gap: 2px;
    flex: 1;
}

.pnav-link {
    display: inline-flex;
    align-items: center;
    height: 44px;
    padding: 0 14px;
    font-size: 13px;
    font-weight: 500;
    color: rgba(255,255,255,0.70);
    text-decoration: none;
    border-bottom: 2px solid transparent;
    transition: color 0.15s, border-color 0.15s;
    white-space: nowrap;
    cursor: pointer;
}
.pnav-link:hover {
    color: #fff;
    border-bottom-color: rgba(255,255,255,0.35);
}
.pnav-link.active {
    color: #fff;
    border-bottom-color: #fff;
    font-weight: 600;
}

.pnav-divider {
    width: 1px;
    height: 20px;
    background: rgba(255,255,255,0.15);
    margin: 0 8px;
    flex-shrink: 0;
}

/* External portal links — visually distinct from internal hub links */
.pnav-link-ext {
    color: rgba(255,255,255,0.50);
    font-size: 12px;
}
.pnav-link-ext:hover {
    color: rgba(255,255,255,0.85);
    border-bottom-color: rgba(255,255,255,0.25);
}
.pnav-link-ext.active {
    color: #fff;
    border-bottom-color: #fff;
}

.pnav-right {
    display: flex;
    align-items: center;
    gap: 16px;
    font-size: 12px;
    color: rgba(255,255,255,0.65);
    white-space: nowrap;
}

.pnav-user {
    font-size: 12px;
    color: rgba(255,255,255,0.75);
}

.pnav-signout {
    font-size: 12px;
    color: rgba(255,255,255,0.5);
    text-decoration: none;
    cursor: pointer;
    background: none;
    border: none;
    padding: 0;
    font-family: inherit;
    transition: color 0.15s;
}
.pnav-signout:hover { color: #fff; }

/* ── Hub-nav title label — shared across all hubs ──────────────────────── */
/* Sits left of the Level-2 tab buttons, separated by a hairline divider.  */
/* Lives here (not brands.css) so it works on TO DOs and any future hub.   */
.hub-nav-title {
    font-size: 12px;
    font-weight: 700;
    color: #1a2e4a;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    white-space: nowrap;
    padding-right: 14px;
    margin-right: 6px;
    border-right: 1px solid #dde3ec;
    flex-shrink: 0;
}

/* Push hub page header down to account for sticky nav */
.hub-page-header {
    padding: 14px 32px !important;
}
.hub-page-header .btn-ghost {
    display: none !important;  /* hide "← Massanois Tools" — top nav replaces it */
}

/* ── Platform nav "More" dropdown (external portals) ───────────────────── */
.pnav-more-wrapper {
    position: relative;
    display: inline-flex;
    align-items: center;
}
.pnav-more-btn {
    background: none;
    border: none;
    font-family: inherit;
    cursor: pointer;
}
.pnav-more-dropdown {
    display: none;
    position: absolute;
    top: calc(100% + 4px);
    right: 0;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.14);
    min-width: 160px;
    z-index: 1100;
    padding: 4px 0;
}
.pnav-more-dropdown.open { display: block; }
.pnav-more-item {
    display: block;
    padding: 9px 18px;
    font-size: 13px;
    font-weight: 500;
    color: #374151;
    text-decoration: none;
    white-space: nowrap;
    transition: background 0.1s, color 0.1s;
}
.pnav-more-item:hover  { background: #f0f4ff; color: #1d4ed8; }
.pnav-more-item.active { color: #1d4ed8; font-weight: 600; background: #f0f4ff; }

@media (max-width: 640px) {
    .pnav-inner { padding: 0 14px; }
    .pnav-brand { margin-right: 12px; font-size: 11px; }
    .pnav-link { padding: 0 9px; font-size: 12px; }
    .pnav-right { display: none; }
}

/* ── Dev Banner — cross-hub development aid (remove before production) ───── */
.dev-banner {
    background: #fff3cd;
    border: 1px solid #f59e0b;
    border-radius: 8px;
    padding: 8px 14px;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
}
.dev-banner-label { font-size: 11px; color: #92400e; font-weight: 700; flex-shrink: 0; }
.dev-banner-links { display: flex; gap: 16px; align-items: center; flex-wrap: wrap; }
.dev-banner-link  { font-size: 11px; color: #1a2e4a; font-weight: 600; text-decoration: underline; text-underline-offset: 2px; }
.dev-banner-link:hover { color: #2563eb; }
.dev-banner-note  { font-size: 10px; color: #b45309; font-style: italic; flex-shrink: 0; }
