.help-lesson {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: grid;
  grid-template: auto minmax(0, 1fr) / minmax(0, 1fr);
  background: #061820;
}

.help-lesson:not(.is-interactive) {
  background: var(--page-background);
}

.help-stage {
  position: absolute;
  inset: 0;
}

.help-header {
  position: relative;
  z-index: 4;
  grid-area: 1 / 1;
  display: flex;
  flex-direction: column;
  height: var(--site-header-height);
}

#help-heading {
  display: block;
  align-content: center;
  flex: none;
  margin: 0;
  padding: 0 var(--page-gutter);
  height: 100%;
  white-space: nowrap;
  overflow: hidden;
  font-family: inherit;
  font-size: calc(var(--brand-font-size) * 0.75);
  letter-spacing: normal;
  line-height: 1.35;
  background: rgb(6 24 32 / 50%);
  backdrop-filter: blur(6px);
}

.help-brand {
  vertical-align: baseline;
  align-items: baseline;
}

.help-brand img {
  align-self: center;
}

.help-brand:hover span,
#help-home-link:hover {
  text-decoration: underline;
}

#help-home-link {
  color: inherit;
  text-decoration: none;
}

.help-explanation {
  border-radius: 0.5rem;
  background: rgb(11 44 56 / 60%);
  backdrop-filter: blur(6px);
}

.help-explanation {
  position: relative;
  z-index: 4;
  grid-area: 2 / 1;
  align-self: start;
  min-height: 0;
  margin: 0.5rem var(--page-gutter) 0;
  padding: 0.75rem 1rem;
  border: 1px solid #19627f;
  font-size: clamp(0.95rem, 1.4vw, 1.15rem);
}

.help-explanation.is-content {
  align-self: stretch;
  overflow-y: auto;
  overscroll-behavior: contain;
  margin: 0;
  padding: 0.75rem var(--page-gutter) 4.5rem;
  border: 0;
  border-radius: 0;
  background: transparent;
  backdrop-filter: none;
}

.help-text p {
  line-height: 1.45;
  margin: 0 0 1em;
}

.is-interactive .help-text p {
  margin-bottom: 0.4em;
}

.help-text > :last-child,
.help-text > div > :last-child {
  margin-bottom: 0;
}

.help-text a {
  color: #bcecf4;
}

.help-toc {
  margin-bottom: 1em;
}

.help-toc ol {
  margin: 0;
  padding-left: 1.5em;
  line-height: 1.6;
}

#help-continue {
  display: inline-block;
  margin-top: 1em;
}

.is-interactive #help-continue {
  margin-top: 0.4em;
}

#help-board-host {
  position: absolute;
  inset: 0;
}

#help-board-layout {
  grid-area: 2 / 1;
  min-width: 0;
  min-height: 0;
  pointer-events: none;
}

.help-board-line {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.help-board-line {
  z-index: 1;
  opacity: 0.5;
}

#help-board-line-shape {
  fill: #ffdf00;
}

.help-navigation {
  position: absolute;
  z-index: 4;
  right: 0.75rem;
  bottom: 0.75rem;
  display: flex;
  align-items: center;
  padding: 0 0.125rem;
  border: 1px solid #19627f;
  border-radius: 0.375rem;
  background: #0b2c38;
}

#help-progress {
  min-width: 1.5rem;
  font-size: 0.85rem;
  text-align: center;
}

.help-navigation button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2.75rem;
  min-height: 2.75rem;
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  cursor: pointer;
}

.help-navigation button:hover:not(:disabled) {
  background: #154357;
}

.help-navigation button:disabled {
  opacity: 0.35;
  cursor: default;
}

.help-error-panel {
  position: fixed;
  z-index: 1001;
  bottom: 0;
  left: 0;
  right: 0;
  background: #511b1b;
}

.help-error-panel p,
.help-error-panel button {
  margin: 0.5rem;
}
