/* Shared navbar + footer for every public page except the homepage and the app.
   The markup lives in backend/modules/site_chrome.py (synced into each page between
   <!-- pms:nav --> / <!-- pms:footer --> markers; guides via generate_seo_pages.py,
   /startups via backend/modules/startup_pages.py). Same look as the homepage's nav and
   footer in landing.css, scoped under .pms-* so each page's own nav/footer/a/ul
   rules can't reach in. */
.pms-nav, .pms-nav *, .pms-mm, .pms-mm *, .pms-footer, .pms-footer * { box-sizing: border-box; }

.pms-nav {
    position: sticky; top: 0; z-index: 1000; display: block; width: 100%; max-width: none; flex: none; float: none;
    margin: 0; padding: 1rem 5%; height: auto; min-height: 0;
    font-family: 'Plus Jakarta Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
    background: rgba(255, 250, 245, 0.86);
    -webkit-backdrop-filter: blur(16px) saturate(1.4); backdrop-filter: blur(16px) saturate(1.4);
    border: 0; border-bottom: 1px solid rgba(236, 229, 220, 0.9);
    box-shadow: 0 10px 30px -24px rgba(124, 45, 18, 0.35);
}
.pms-nav .pms-nav-in {
    max-width: 1200px; margin: 0 auto; padding: 0;
    display: flex; justify-content: space-between; align-items: center; gap: 1rem;
}
.pms-nav .pms-brand {
    display: flex; align-items: center; gap: 0.5rem; flex-shrink: 0;
    font-weight: 800; font-size: 1.25rem; line-height: 1.2; color: #1c1917; text-decoration: none;
}
.pms-nav .pms-mark {
    width: 30px; height: 30px; border-radius: 9px; display: grid; place-items: center; flex-shrink: 0;
    background: linear-gradient(180deg, #fb923c, #f97316 55%, #ea580c);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.4), 0 6px 14px -6px rgba(249, 115, 22, 0.7);
}
.pms-nav .pms-mark svg { width: 19px; height: 19px; display: block; }
.pms-nav .pms-links { display: flex; align-items: center; gap: 2rem; margin: 0; padding: 0; }
.pms-nav .pms-links a {
    margin: 0; padding: 0; background: none; border: 0; text-decoration: none; white-space: nowrap;
    color: #57534e; font-weight: 600; font-size: 0.9rem; line-height: 1.4; transition: color 0.2s;
}
.pms-nav .pms-links a:hover, .pms-nav .pms-links a[aria-current="page"] { color: #f97316; }
.pms-nav .pms-links a.pms-signin { color: #1c1917; font-weight: 700; padding: 0.55rem 0.2rem; }
.pms-nav .pms-links a.pms-signin:hover { color: #f97316; }
.pms-nav .pms-links a.pms-cta {
    color: #fff; font-weight: 800; border-radius: 10px; padding: 0.6rem 1.15rem;
    background: linear-gradient(180deg, #fb923c, #f97316 55%, #ea580c);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.35), 0 4px 12px -6px rgba(249, 115, 22, 0.6);
}
.pms-nav .pms-links a.pms-cta:hover { color: #fff; filter: brightness(1.06); }
.pms-new {
    font-size: .7em; font-weight: 700; line-height: 1; background: #fff7ed; color: #c2410c;
    border: 1px solid #fed7aa; border-radius: 999px; padding: 2px 6px; margin-left: 5px; vertical-align: 2px;
}
.pms-nav .pms-burger {
    display: none; background: none; border: 0; cursor: pointer; padding: 0.5rem; margin: 0;
    position: relative; z-index: 1002; box-shadow: none; width: auto; height: auto;
}
.pms-nav .pms-burger span {
    display: block; width: 22px; height: 2px; background: #1c1917; margin: 5px 0; border-radius: 2px; transition: all 0.3s;
}
.pms-nav .pms-burger.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.pms-nav .pms-burger.active span:nth-child(2) { opacity: 0; }
.pms-nav .pms-burger.active span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

.pms-mm {
    display: none; position: fixed; inset: 0; z-index: 1001;
    background: rgba(255, 255, 255, 0.98); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
    flex-direction: column; align-items: center; justify-content: center; gap: 1.1rem;
    font-family: 'Plus Jakarta Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
}
.pms-mm.active { display: flex; }
.pms-mm a {
    font-size: 1.2rem; font-weight: 600; color: #1c1917; text-decoration: none; padding: 0.5rem 2rem; margin: 0; border: 0; background: none;
}
.pms-mm a:hover { color: #f97316; }
.pms-mm a.pms-cta { background: #f97316; color: #fff; border-radius: 8px; font-weight: 700; margin-top: 0.75rem; }

@media (max-width: 1140px) { .pms-nav .pms-links { gap: 1.15rem; } }
@media (max-width: 1000px) { .pms-nav .pms-links { gap: 0.85rem; } .pms-nav .pms-links a { font-size: 0.85rem; } }
@media (max-width: 920px) { .pms-nav .pms-links a.pms-cta { display: none; } }
@media (max-width: 840px) { .pms-nav .pms-links { gap: 0.65rem; } }
@media (max-width: 768px) {
    .pms-nav { padding: 0.85rem 4%; }
    .pms-nav .pms-links { display: none; }
    .pms-nav .pms-burger { display: block; }
    .pms-nav .pms-brand { font-size: 1.1rem; }
}

.pms-footer {
    display: block; width: 100%; max-width: none; flex: none; float: none; margin: 0; padding: 4rem 5% 2rem;
    font-family: 'Plus Jakarta Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
    font-size: 0.95rem; line-height: 1.5; text-align: left;
    background: #fffaf5; color: #57534e; border: 0; border-top: 1px solid #ece5dc;
}
.pms-footer .pms-fgrid {
    display: grid; grid-template-columns: 1.5fr repeat(5, 1fr); gap: 2rem;
    max-width: 1200px; margin: 0 auto 3rem; padding: 0;
}
.pms-footer .pms-fbrand {
    display: flex; align-items: center; gap: 0.5rem; margin: 0 0 0.8rem;
    font-size: 1.4rem; font-weight: 800; color: #1c1917;
}
.pms-footer .pms-fbrand::after { content: ""; width: 8px; height: 8px; border-radius: 50%; background: #f97316; }
.pms-footer .pms-fdesc { margin: 0; max-width: 260px; line-height: 1.6; color: #57534e; }
.pms-footer h4 { margin: 0 0 1rem; padding: 0; font-size: 0.95rem; font-weight: 700; color: #1c1917; }
.pms-footer ul { list-style: none; margin: 0; padding: 0; }
.pms-footer li { margin: 0 0 0.7rem; padding: 0; }
.pms-footer li::before { content: none; }
.pms-footer a { color: #57534e; text-decoration: none; background: none; transition: color 0.2s;
    margin: 0; padding: 0; border: 0; font-size: inherit; font-weight: inherit; display: inline; }
.pms-footer a:hover { color: #f97316; }
.pms-footer a.pms-all { color: #1c1917; font-weight: 700; }
.pms-footer .pms-fbottom {
    max-width: 1200px; margin: 0 auto; padding: 1.5rem 0 0; border-top: 1px solid #ece5dc;
    display: flex; justify-content: space-between; align-items: center; gap: 1rem; flex-wrap: wrap; font-size: 0.88rem;
}
.pms-footer .pms-fbottom div { display: flex; gap: 1.5rem; flex-wrap: wrap; }
.pms-footer .pms-fbottom a { color: inherit; }
@media (max-width: 1024px) { .pms-footer .pms-fgrid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 640px) { .pms-footer .pms-fgrid { grid-template-columns: repeat(2, 1fr); gap: 1.75rem; } .pms-footer { padding-top: 3rem; } }

/* Homepage only: the launch-badge ribbon sits just above the shared footer (index.html). */
.pms-badges { display: block; background: #fffaf5; border-top: 1px solid #ece5dc; padding: 1.25rem 5% 0.5rem; margin: 0; }
.pms-badges + .pms-footer, .pms-badges + * .pms-footer { border-top: 0; }
