/* Compact register page hero — frosted chrome pinned under the nav */

:root {
  --app-nav-height: 64px;
  --page-hero-height: 0px;
  --page-hero-divider: rgba(234, 217, 193, 0.22);
}

/* ─── Navigation bar — frosted, sticky in the main column (not viewport-fixed) ─ */

.navigation-bar {
  --app-nav-height: 64px;
  position: -webkit-sticky;
  position: sticky;
  top: 0;
  z-index: 50;
  width: 100%;
  min-height: 64px;
  border-bottom: none !important;
  box-shadow: inset 0 -1px 0 var(--page-hero-divider);
  background: color-mix(in srgb, var(--nav-bar-background, var(--card)) 72%, transparent) !important;
  backdrop-filter: blur(20px) saturate(1.25);
  -webkit-backdrop-filter: blur(20px) saturate(1.25);
}

html.theme-programme:not(.dark) .navigation-bar,
html.theme-programme:not(.dark) .navigation-bar.navigation-bar--programme {
  background: rgba(253, 247, 239, 0.62) !important;
  --page-hero-divider: rgba(234, 217, 193, 0.18);
}

.dark .navigation-bar {
  background: color-mix(in srgb, var(--nav-bar-background, var(--card)) 78%, transparent) !important;
}

.dark .register-hero-bar,
.dark .register-page-toolbar--pinned {
  background: color-mix(in srgb, var(--nav-bar-background, var(--card)) 78%, transparent);
}

.register-hero-bar {
  box-shadow: inset 0 -1px 0 var(--page-hero-divider);
  background: color-mix(in srgb, var(--nav-bar-background, var(--card)) 72%, transparent);
  backdrop-filter: blur(20px) saturate(1.25);
  -webkit-backdrop-filter: blur(20px) saturate(1.25);
  padding: 12px clamp(16px, 2.8vw, 32px);
}

/* Pinned under nav — fixed within the main column, inset for RH help panel */
.register-hero-bar--pinned {
  position: fixed;
  top: var(--app-nav-height, 64px);
  left: var(--sidebar-width, 0px);
  right: var(--help-sidebar-push-width, 0px);
  z-index: 30;
  width: auto;
}

.register-hero-spacer {
  flex-shrink: 0;
  width: 100%;
}

/* Programme cream: match nav frosted chrome */
html.theme-programme:not(.dark) .register-hero-bar {
  background: rgba(253, 247, 239, 0.62);
  --page-hero-divider: rgba(234, 217, 193, 0.18);
}

.register-hero-bar__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: rgba(254, 241, 226, 0.55);
  border: 1px solid rgba(251, 217, 172, 0.65);
  color: var(--primary);
  flex-shrink: 0;
  align-self: center;
}

html.theme-programme:not(.dark) .register-hero-bar__icon {
  background: rgba(254, 241, 226, 0.55);
  border-color: rgba(251, 217, 172, 0.65);
}

.register-hero-bar__title {
  font-size: 1.125rem;
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: -0.02em;
  color: var(--foreground);
}

.register-hero-bar__desc {
  margin-top: 2px;
  font-size: 0.75rem;
  line-height: 1.4;
  color: var(--muted-foreground);
  max-width: 42rem;
}

.register-hero-bar__body {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  min-width: 0;
}

.register-hero-bar__main {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  min-width: 0;
  flex: 1;
}

/* Cream-themed stat badges — sit on the same chrome, slightly raised */
.register-hero-metrics {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.375rem;
}

.register-hero-badge {
  display: inline-flex;
  align-items: baseline;
  gap: 0.3rem;
  padding: 0.2rem 0.55rem;
  border-radius: 9999px;
  border: 1px solid rgba(240, 228, 212, 0.85);
  background: rgba(255, 253, 250, 0.72);
  font-size: 0.6875rem;
  line-height: 1.35;
  color: var(--muted-foreground);
}

html.theme-programme:not(.dark) .register-hero-badge {
  border-color: rgba(240, 228, 212, 0.85);
  background: rgba(255, 253, 250, 0.72);
}

.register-hero-badge__value {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--foreground);
}

.register-hero-badge__label {
  font-weight: 500;
}

.register-hero-badge--progress {
  align-items: center;
  gap: 0.45rem;
  padding: 0.28rem 0.65rem;
}

.register-hero-badge__progress-track {
  width: 3.5rem;
  height: 0.25rem;
  border-radius: 9999px;
  background: rgba(234, 217, 193, 0.65);
  overflow: hidden;
}

.register-hero-badge__progress-fill {
  height: 100%;
  border-radius: 9999px;
  background: color-mix(in oklch, var(--primary) 80%, #a8967f 20%);
  transition: width 0.5s ease;
}

.register-hero-badge__sub {
  font-weight: 500;
  opacity: 0.9;
}

/* Policy Admin pinned toolbar — fixed flush under hero (not used globally) */

.register-page-toolbar--pinned {
  position: fixed;
  top: calc(var(--app-nav-height, 64px) + var(--page-hero-height, 0px));
  left: var(--sidebar-width, 0px);
  right: var(--help-sidebar-push-width, 0px);
  z-index: 28;
  padding: 8px clamp(16px, 2.8vw, 32px);
  background: color-mix(in srgb, var(--nav-bar-background, var(--card)) 68%, transparent);
  backdrop-filter: blur(20px) saturate(1.25);
  -webkit-backdrop-filter: blur(20px) saturate(1.25);
  box-shadow: inset 0 -1px 0 var(--page-hero-divider);
}

html.theme-programme:not(.dark) .register-page-toolbar--pinned {
  background: rgba(253, 247, 239, 0.58);
}

.register-page-toolbar-spacer {
  flex-shrink: 0;
  width: 100%;
}
