/* Identification shared by the individual demos; catalogues keep their own navigation. */
:root {
  --demo-topbar-height: 64px;
}

body.demo-has-topbar {
  padding-top: var(--demo-topbar-height);
}

.demo-topbar,
.demo-topbar * {
  box-sizing: border-box;
}

.demo-topbar {
  position: fixed;
  inset: 0 0 auto;
  z-index: 150;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  gap: 10px 24px;
  min-height: 64px;
  padding: 14px clamp(18px, 3vw, 48px);
  border-bottom: 1px solid rgba(255, 255, 255, .14);
  background: rgba(12, 14, 16, .96);
  color: #f3f0e9;
  font-family: "Helvetica Neue", Arial, sans-serif;
  line-height: 1.5;
  backdrop-filter: blur(14px);
}

.demo-topbar .demo-catalogue-link {
  justify-self: start;
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  color: inherit;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: .1em;
  text-decoration: none;
  text-transform: uppercase;
}

.demo-topbar .demo-catalogue-link:hover {
  text-decoration: underline;
  text-underline-offset: 5px;
}

.demo-topbar .demo-catalogue-link:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 4px;
}

.demo-topbar .demo-identity {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px 13px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .18em;
  text-align: center;
  text-transform: uppercase;
}

.demo-topbar .demo-identity i {
  width: 28px;
  height: 1px;
  background: currentColor;
  opacity: .65;
}

.demo-topbar .demo-identity small {
  font-size: 9px;
  font-weight: 500;
  letter-spacing: .2em;
}

.demo-topbar .demo-concept-tag {
  font-size: 9px;
  letter-spacing: .1em;
  text-align: right;
  text-transform: uppercase;
  color: #c5c6c7;
}

.demo-context-note {
  margin: 0;
  padding: 18px clamp(18px, 3vw, 48px);
  background: #0c0e10;
  color: #c5c6c7;
  font: 12px/1.6 "Helvetica Neue", Arial, sans-serif;
}

@media (max-width: 1279px) {
  :root { --demo-topbar-height: 92px; }
  .demo-topbar { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .demo-topbar .demo-identity { justify-self: end; }
  .demo-topbar .demo-identity small,
  .demo-topbar .demo-identity i { display: none; }
  .demo-topbar .demo-concept-tag { grid-column: 1 / -1; text-align: center; }
}

@media (max-width: 599px) {
  :root { --demo-topbar-height: 120px; }
  .demo-topbar { grid-template-columns: minmax(0, 1fr); gap: 6px; padding-block: 10px; }
  .demo-topbar .demo-catalogue-link,
  .demo-topbar .demo-identity { justify-self: center; text-align: center; }
}
