.demo-departments,
.demo-department-links {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: .5rem;
}

.demo-departments {
  padding: .65rem 1rem;
  background: #123d40;
  color: white;
  font: 600 15px/1.5 system-ui, sans-serif;
}

.demo-departments-label {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  margin-inline-end: .5rem;
}

.demo-department-links a {
  color: white;
  text-decoration: underline;
  text-underline-offset: 4px;
  padding: .4rem .8rem;
  border-radius: 5px;
}

.demo-department-links a[aria-current] {
  background: white;
  color: #123d40;
  text-decoration: none;
}

.demo-departments a:focus-visible {
  outline: 3px solid #ffc971;
  outline-offset: 2px;
}

.demo-departments .demo-support-link {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  min-height: 34px;
  padding: .25rem .8rem;
  border: 1px solid #81c4b7;
  border-radius: 999px;
  background: #215458;
  color: white;
  font-size: 14px;
  text-decoration: none;
}

.demo-departments .demo-support-link:hover {
  background: #2c686a;
}

.demo-support-icon {
  position: relative;
  width: .875rem;
  height: .65rem;
  border: 1.5px solid currentColor;
  border-radius: .25rem;
}

.demo-support-icon::after {
  position: absolute;
  bottom: -.21rem;
  left: .14rem;
  width: .25rem;
  height: .25rem;
  border-left: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  background: #215458;
  content: "";
  transform: skewY(-42deg);
}

.demo-support-link:hover .demo-support-icon::after {
  background: #2c686a;
}

@media (max-width: 600px) {
  .demo-departments {
    padding: .5rem;
  }

  .demo-departments-label {
    display: none;
  }

  .demo-department-links {
    flex-basis: 100%;
    gap: .25rem;
  }
}

.demo-scenario select{max-width:100%}.demo-scenario button{margin:.5rem}.demo-scenario p{max-width:74ch}
.demo-day{max-height:85vh;overflow:auto}

.demo-pickup-intro {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
  margin-bottom: .875rem;
}

.demo-pickup-steps ol {
  margin: 0 0 .5rem;
  padding-left: 1.5rem;
  list-style: decimal;
}

.demo-pickup-steps li + li {
  margin-top: .35rem;
}

.demo-viewer-controls {
  display: inline-grid;
  grid-template-areas: "label label" "viewer reset";
  align-items: center;
  gap: .5rem;
  max-width: 100%;
  margin-top: .5rem;
}

.nursing-workspace .demo-viewer-controls label {
  grid-area: label;
  margin: 0;
}

.nursing-workspace .demo-viewer-controls select {
  grid-area: viewer;
  min-width: 0;
  margin: 0;
}

.demo-scenario .demo-viewer-controls button {
  grid-area: reset;
  justify-self: end;
  margin: 0;
}

@media (max-width: 520px) {
  .demo-viewer-controls {
    display: grid;
    grid-template-areas: "label reset" "viewer viewer";
  }

  .demo-scenario .demo-viewer-controls button {
    padding-inline: .55rem;
    font-size: .875rem;
  }
}

.nursing-workspace:not([data-view="calendar"]) .demo-pickup-intro,
.nursing-workspace:not([data-view="calendar"]) .demo-scheduler-intro,
.nursing-workspace:not([data-view="calendar"]) .demo-signup-link,
.nursing-workspace:not([data-view="hourly-coverage"]) .demo-coverage-intro,
.nursing-workspace:not(:has(#monthly-auto-schedule .nursing-auto-actions > button.nursing-primary)) .demo-scheduler-action,
.nursing-workspace:not(:has(.hourly-coverage-next-gap-action)) .demo-coverage-action {
  display:none;
}

a.demo-departments-label {
  color: white;
  text-decoration: none;
}

.demo-departments .demo-start-link {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: .25rem .9rem;
  border-radius: 999px;
  background: #b8481f;
  color: white;
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
}

.demo-departments .demo-start-link:hover {
  background: #9c3a16;
}
