/* Temporary demo only. All logo rules are scoped to the signed-in sidebar. */
.sidebar .brand[data-demo-logo="03"] .wordmark small { color: #79dda1; }
.sidebar .brand[data-demo-logo="04"] .demo-logo-bio,
.sidebar .brand[data-demo-logo="04"] .wordmark small,
.sidebar .brand[data-demo-logo="05"] .wordmark strong,
.sidebar .brand[data-demo-logo="05"] .wordmark small { color: #a0efbd; }
.sidebar .brand[data-demo-logo="05"] .eyebrow { color: #a7cbb7; }
.sidebar .brand[data-demo-logo="06"] .demo-logo-bio,
.sidebar .brand[data-demo-logo="06"] .wordmark small { color: #e6f3bf; }
.sidebar .brand[data-demo-logo="07"] .wordmark small { color: #c4f0d1; }
.sidebar .brand[data-demo-logo="08"] .wordmark small { color: #bcebc8; }

.sidebar .brand[data-demo-logo="07"] {
  position: relative;
  isolation: isolate;
}
.sidebar .brand[data-demo-logo="07"]::before {
  content: "";
  position: absolute;
  inset: -20px -10px 8px;
  z-index: -1;
  border-radius: 8px;
  pointer-events: none;
  background-image: linear-gradient(90deg, rgba(12, 33, 28, .85), rgba(12, 33, 28, .45) 57%, rgba(12, 33, 28, .1)), url('/assets/demo-logo/hero.webp');
  background-size: cover;
  background-position: center 45%;
}

.sidebar .brand[data-demo-logo="08"] .wordmark { position: relative; }
.sidebar .brand[data-demo-logo="08"] .wordmark img { visibility: hidden; }
.sidebar .brand[data-demo-logo="08"] .wordmark::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 45px;
  height: 45px;
  pointer-events: none;
  background-image: url('/assets/demo-logo/hero.webp');
  background-size: 180px auto;
  background-position: 80% 29%;
  -webkit-mask-image: url('/assets/logo-white.svg');
  mask-image: url('/assets/logo-white.svg');
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  -webkit-mask-size: contain;
  mask-size: contain;
  -webkit-mask-position: center;
  mask-position: center;
  filter: brightness(1.7) saturate(1.15);
}

.demo-logo-switcher {
  position: fixed;
  right: max(18px, env(safe-area-inset-right));
  bottom: max(18px, env(safe-area-inset-bottom));
  z-index: 80;
  display: flex;
  align-items: center;
  gap: 9px;
  max-width: calc(100vw - 24px);
  padding: 8px;
  border: 1px solid #d3ded5;
  border-radius: 16px;
  color: #17372b;
  background: #ffffffed;
  box-shadow: 0 6px 28px #061f182b;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}
.demo-logo-switcher[hidden] { display: none; }
.demo-logo-switcher-arrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  min-width: 44px;
  min-height: 44px;
  padding: 0;
  border: 1px solid #d4dfd4;
  border-radius: 10px;
  background: #edf3e9;
  color: #104f35;
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
  touch-action: manipulation;
}
.demo-logo-switcher-arrow:hover { background: #dfead9; }
.demo-logo-switcher-arrow:active { background: #d0e3ca; }
.demo-logo-switcher-arrow:focus-visible { outline: 3px solid #12613f; outline-offset: 2px; }
.demo-logo-switcher-copy { display: flex; flex-direction: column; gap: 4px; width: 184px; min-width: 0; }
.demo-logo-switcher-counter { color: #63766a; font-size: 9px; font-weight: 700; letter-spacing: 1px; font-variant-numeric: tabular-nums; }
.demo-logo-switcher-name { font-size: 11px; font-weight: 600; line-height: 1.35; }

@media (max-width: 400px) {
  .demo-logo-switcher { right: max(12px, env(safe-area-inset-right)); bottom: max(12px, env(safe-area-inset-bottom)); gap: 7px; }
  .demo-logo-switcher-copy { width: 166px; }
}
@media print { .demo-logo-switcher { display: none; } }
