#R-header-wrapper {
  background-color: var(--INTERNAL-MENU-SECTIONS-BG-color);
}

#R-logo.R-default.k8s-logo {
  align-items: center;
  color: #ffffff;
  flex-direction: row;
  gap: 0.75rem;
  justify-content: flex-start;
  margin-block: 1.75rem 2rem;
  padding-inline: 1.75rem 1.25rem;
}

#R-logo.R-default.k8s-logo:hover,
#R-logo.R-default.k8s-logo:hover * {
  color: #ffffff;
}

#R-logo.R-default.k8s-logo .k8s-logo-image {
  display: block;
  flex: 0 0 auto;
  width: 4.5rem;
}

#R-logo.R-default.k8s-logo .k8s-logo-image img {
  display: block;
  height: auto;
  max-width: 100%;
}

#R-logo.R-default.k8s-logo .logo-title {
  color: #ffffff;
  font-size: 1.5rem;
  font-weight: 600;
  line-height: 1.15;
  text-align: start;
  overflow-wrap: normal;
  width: min-content; /* one word per line */
  word-break: normal;
}

.k8s-resource {
  color: var(--K8S-RESOURCE-color);
}

/* Code blocks of the reveal shortcode stay blurred until clicked; see static/js/reveal.js */
.k8s-reveal {
  position: relative;
}

.k8s-reveal:not(.k8s-revealed) {
  cursor: pointer;
}

.k8s-reveal:not(.k8s-revealed) > * {
  pointer-events: none;
  user-select: none;
}

.k8s-reveal:not(.k8s-revealed) code {
  filter: blur(6px);
}

.k8s-reveal:not(.k8s-revealed)::after {
  background-color: var(--CODE-BLOCK-BG-color);
  border: 1px solid var(--CODE-BLOCK-BORDER-color);
  border-radius: 0.25rem;
  color: var(--MAIN-TITLES-TEXT-color);
  content: "Click to reveal";
  font-weight: 600;
  left: 50%;
  padding: 0.15rem 0.75rem;
  position: absolute;
  top: 50%;
  transform: translate(-50%, -50%);
  white-space: nowrap;
}

.k8s-reveal:focus-visible {
  outline: 2px solid var(--K8S-RESOURCE-color);
  outline-offset: 2px;
}

/* Sub-section headings inside notice boxes, e.g. on the Setup page */
.box-content h5 {
  font-size: 1.15rem;
  font-weight: 600;
  margin-block: 1.75rem 0.5rem;
}

.box-content h5:first-child {
  margin-block-start: 0.25rem;
}

/* The lines between the steps (---) reach over the text area to the edges of the content area,
   using the same widths as the padding of Relearn's #R-body-inner */
#R-body-inner hr {
  margin-inline: -3.25rem;
}

@media screen and (max-width: 59.999rem) {
  #R-body-inner hr {
    margin-inline: -2rem;
  }
}

@media screen and (max-width: 47.999rem) {
  #R-body-inner hr {
    margin-inline: -1.25rem;
  }
}

/* "## Optional Tasks" and its "### Task N: <Name>" headings */
h2#optional-tasks,
h3[id^="task-"] {
  color: var(--K8S-OPTIONAL-color);
}

/* "## Clean Up" heading at the end of a lab */
h2#clean-up {
  color: var(--K8S-CLEANUP-color);
}

#R-homelinks > .R-menu-divider {
  display: none;
}

#R-header-topbar {
  border-inline-end-color: transparent;
}
