/* Public/marketing shell — not part of the original template package (which
   only ships the authenticated console + auth-card pages). Built from the
   same design tokens (variables.css) so it matches visually. */

.pub-body { min-height: calc(100vh / var(--ld-zoom, 1)); display: flex; flex-direction: column; background: var(--bg-deep); color: var(--text-2); }

.pub-topbar {
  border-bottom: 1px solid var(--line-soft);
  background: var(--panel-bg);
  position: sticky; top: 0; z-index: 40;
}
.pub-topbar-inner {
  max-width: 1100px; margin: 0 auto;
  display: flex; align-items: center; gap: 24px;
  padding: 14px 24px;
}
.pub-brand { display: flex; align-items: center; gap: 8px; font-weight: 700; font-size: 15px; color: var(--text); text-decoration: none; }
.pub-nav { display: flex; align-items: center; gap: 20px; flex: 1; }
.pub-nav a { color: var(--text-4); text-decoration: none; font-size: 13px; font-weight: 600; }
.pub-nav a:hover { color: var(--text); }
.pub-nav-actions { display: flex; align-items: center; gap: 10px; }
.pub-btn-ghost, .pub-btn-primary {
  font-size: 12.5px; font-weight: 700; padding: 8px 14px; border-radius: 7px; text-decoration: none;
}
.pub-btn-ghost { color: var(--text-3); border: 1px solid var(--line-input); }
.pub-btn-ghost:hover { color: var(--text); border-color: var(--text-5); }
.pub-btn-primary { background: var(--accent); color: var(--on-accent); }
.pub-btn-primary:hover { filter: brightness(1.08); }
.pub-menu-btn { display: none; background: none; border: none; color: var(--text-3); font-size: 18px; padding: 4px 8px; }

.pub-main { flex: 1; }
.pub-container { max-width: 1100px; margin: 0 auto; padding: 40px 24px; }
.pub-container.narrow { max-width: 760px; }

/* The footer belongs to the shell, so it frames to the same column as
   .page-wrapper (shell.css) -- 1100px here meant its text started and ended
   at different edges from the content directly above it. */
.pub-footer { border-top: 1px solid var(--line); background: var(--bg-deep); margin-top: auto; box-sizing: border-box; min-height: var(--foot-h, 52px); display: flex; flex-direction: column; justify-content: center; }
.pub-footer-inner {
  width: 100%; box-sizing: border-box; max-width: 1400px; margin: 0 auto; padding: 8px 24px;
  display: flex; flex-wrap: wrap; gap: 8px 16px; align-items: center; justify-content: space-between;
  font-size: 11.5px; color: var(--text-5);
}
.pub-footer-inner a { color: var(--text-4); }
.pub-footer-links { display: flex; flex-wrap: wrap; gap: 6px 16px; align-items: center; }
.pub-footer-links a { text-decoration: none; }
.pub-footer-links a:hover { color: var(--accent); text-decoration: underline; }

/* Sign in and Create account are in the sidebar menu too, so the topbar can drop
   them on small screens instead of overflowing. */
@media (max-width: 700px) {
  .topbar-right .pub-btn-ghost { display: none; }
  .topbar-crumbs { min-width: 0; overflow: hidden; }
  .topbar-crumbs > * { white-space: nowrap; }
}
@media (max-width: 520px) {
  .topbar-right .pub-btn-primary { padding: 6px 10px; font-size: 12px; }
}

@media (max-width: 780px) {
  .pub-nav { display: none; }
  .pub-menu-btn { display: inline-flex; }
}
