/* VesselAssurance chrome for planner / demo — scoped to avoid clobbering planner styles */
.va-shell {
  --va-shell-bg: rgba(15, 23, 42, 0.96);
  --va-shell-border: #334155;
  --va-shell-text: #e2e8f0;
  --va-shell-muted: #94a3b8;
  --va-shell-accent: #38bdf8;
  font-family: "Segoe UI", "Helvetica Neue", Helvetica, Arial, sans-serif;
}

.va-shell .skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: #fff;
  color: #000;
  padding: 0.5rem 1rem;
  z-index: 9999;
}
.va-shell .skip-link:focus { left: 1rem; top: 1rem; }

.va-shell .site-header {
  background: var(--va-shell-bg);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--va-shell-border);
}
.va-shell .container {
  width: min(1600px, calc(100% - 2rem));
  margin: 0 auto;
}
.va-shell .header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.65rem 0;
  max-width: none;
  margin: 0;
  position: static;
  z-index: auto;
  flex-wrap: wrap;
}
.va-shell .brand {
  font-weight: 800;
  font-size: 1.05rem;
  color: #fff;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  line-height: 0;
  flex: 0 1 auto;
  min-width: 0;
}
.va-shell .brand:hover { text-decoration: none; color: #fff; }
.va-shell .brand-logo {
  display: block;
  width: clamp(240px, 18vw, 270px);
  height: auto;
  max-height: 42px;
  object-fit: contain;
  object-position: left center;
}
body.va-planner-page.nav-open {
  overflow: hidden;
}
.va-shell .site-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem 1rem;
  align-items: center;
}
.va-shell .site-nav a {
  color: var(--va-shell-muted);
  font-size: 0.9rem;
  text-decoration: none;
  min-height: 40px;
  display: inline-flex;
  align-items: center;
}
.va-shell .site-nav a:hover { color: #fff; text-decoration: none; }
.va-shell .site-nav a.btn,
.va-shell .site-nav a.btn:hover {
  color: #020617;
  text-decoration: none;
}
.va-shell .btn {
  display: inline-block;
  background: var(--va-shell-accent);
  color: #020617;
  font-weight: 700;
  border: none;
  border-radius: 10px;
  padding: 0.45rem 0.75rem;
  cursor: pointer;
  text-decoration: none;
  font-size: 0.85rem;
}
.va-shell .btn-small { padding: 0.4rem 0.7rem; font-size: 0.82rem; }
.va-shell .nav-toggle {
  display: none;
  appearance: none;
  -webkit-appearance: none;
  background: #f8fafc;
  color: #0f172a;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 0.45rem 0.85rem;
  font: inherit;
  font-size: 0.95rem;
  font-weight: 700;
  cursor: pointer;
}

/* Desktop / tablet default: full chrome stack sticks together */
.va-sticky-chrome {
  position: sticky;
  top: 0;
  z-index: 60;
  padding-top: env(safe-area-inset-top, 0px);
}

body.va-planner-page .app-header {
  position: relative;
  top: auto;
  z-index: 1;
}

@media (max-width: 767px) {
  .va-shell .header-inner {
    flex-wrap: wrap;
    gap: 0.5rem;
    padding: 0.35rem 0;
  }
  .va-shell .container {
    width: min(1600px, calc(100% - 1.25rem));
  }
  .va-shell .brand {
    font-size: 0.95rem;
    line-height: 1.1;
  }
  .va-shell .brand-logo {
    width: clamp(190px, 58vw, 220px);
    max-height: 34px;
  }
  .va-shell .nav-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 40px;
    min-width: 40px;
    padding: 0.35rem 0.7rem;
    font-size: 0.88rem;
    margin-left: auto;
  }
  .va-shell .site-nav {
    display: none;
    width: 100%;
    flex: 1 0 100%;
    flex-direction: column;
    align-items: stretch;
    padding: 0.35rem 0 0.5rem;
    gap: 0.2rem;
    background: rgba(7, 16, 28, 0.98);
    border-top: 1px solid rgba(148, 163, 184, 0.18);
  }
  .va-shell .site-nav.open { display: flex; }
  .va-shell .site-nav a,
  .va-shell .site-nav .btn {
    min-height: 44px;
  }

  /* Keep only the thin VA bar sticky; let planner hero/tabs scroll away */
  .va-sticky-chrome {
    position: static;
    padding-top: 0;
  }
  .va-shell {
    position: sticky;
    top: 0;
    z-index: 120;
    padding-top: env(safe-area-inset-top, 0px);
    background: rgba(15, 23, 42, 0.98);
  }

  .va-demo-banner-inner {
    padding: 0.35rem 0;
    gap: 0.4rem 0.65rem;
    flex-wrap: nowrap;
    align-items: center;
  }
  .va-demo-banner-copy {
    min-width: 0;
    flex: 1 1 auto;
  }
  .va-demo-banner-copy .va-demo-banner-desc {
    display: none; /* keep title only — reclaim vertical space */
  }
  .va-demo-banner-full { display: none; }
  .va-demo-banner-short { display: inline; }
  .va-demo-banner-copy strong {
    font-size: 0.68rem;
    letter-spacing: 0.04em;
    white-space: nowrap;
  }
  .va-demo-banner-actions {
    gap: 0.35rem;
    flex-shrink: 0;
  }
  .va-demo-reset-btn,
  .va-demo-register-btn,
  .va-demo-login-btn {
    min-height: 34px;
    padding: 0.28rem 0.55rem;
    font-size: 0.76rem;
  }
  /* Prefer Reset on small screens; Register remains in nav/CTA */
  .va-demo-banner-actions .va-demo-login-btn,
  .va-demo-banner-actions .va-demo-register-btn {
    display: none;
  }

  body.va-planner-page .save-status-bar:not(.hidden) {
    font-size: 12px;
    padding: 6px 10px;
  }
}

/* Installed PWA / standalone: same compact chrome + safe area */
@media (max-width: 767px) and (display-mode: standalone) {
  .va-shell {
    padding-top: max(env(safe-area-inset-top, 0px), 0px);
  }
}

/* Demo banner */
.va-demo-banner {
  background: linear-gradient(90deg, #0f3f3a 0%, #134e4a 55%, #1e3a5f 100%);
  border-bottom: 1px solid rgba(153, 246, 228, 0.28);
  color: #ecfeff;
  font-family: "Segoe UI", "Helvetica Neue", Helvetica, Arial, sans-serif;
}
.va-demo-banner-inner {
  width: min(1600px, calc(100% - 2rem));
  margin: 0 auto;
  padding: 0.55rem 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem 1rem;
  align-items: center;
  justify-content: space-between;
}
.va-demo-banner-copy {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  min-width: min(100%, 18rem);
  flex: 1 1 16rem;
}
.va-demo-banner-copy strong {
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #99f6e4;
}
.va-demo-banner-short { display: none; }
.va-demo-banner-copy .va-demo-banner-desc {
  font-size: 0.82rem;
  color: #cffafe;
  line-height: 1.35;
}
.va-demo-banner-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  align-items: center;
}
.va-demo-reset-btn,
.va-demo-register-btn,
.va-demo-login-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 36px;
  padding: 0.35rem 0.75rem;
  border-radius: 8px;
  font-size: 0.82rem;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  border: 1px solid transparent;
}
.va-demo-reset-btn {
  background: rgba(15, 23, 42, 0.45);
  color: #fff;
  border-color: rgba(226, 232, 240, 0.35);
}
.va-demo-register-btn {
  background: #38bdf8;
  color: #020617;
}
.va-demo-login-btn {
  background: transparent;
  color: #e0f2fe;
  border-color: rgba(186, 230, 253, 0.45);
}
.va-demo-reset-btn:hover,
.va-demo-register-btn:hover,
.va-demo-login-btn:hover {
  filter: brightness(1.06);
  text-decoration: none;
}

.va-demo-cta {
  margin: 1.25rem 0 2rem;
  padding: 0 1rem;
}
.va-demo-cta-inner {
  max-width: 1600px;
  margin: 0 auto;
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  padding: 1.1rem 1.25rem;
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: center;
  justify-content: space-between;
  box-shadow: 0 4px 18px rgba(11, 22, 44, 0.06);
}
.va-demo-cta h2 {
  margin: 0 0 0.35rem;
  font-size: 1.05rem;
  color: #0f172a;
}
.va-demo-cta p {
  margin: 0;
  color: #64748b;
  font-size: 0.92rem;
  max-width: 42rem;
}
.va-demo-cta-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

body.va-planner-page .save-status-bar {
  position: sticky;
  top: 0;
  z-index: 55;
}
