#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;
}

#R-logo.R-default.k8s-logo .logo-title > .k8s-logo-byline {
  color: #94a3b8;
  display: block;
  font-size: 14px;
  font-weight: 400;
  margin-top: 0.3rem;
  white-space: nowrap;
}

.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;
}

/* Frame of the protected shortcode, with the label "Confidential" on its top border */
.k8s-confidential {
  border: 1px solid var(--K8S-CONFIDENTIAL-color);
  border-radius: 0.25rem;
  margin: 2rem 0 1.5rem;
  padding: 0.5rem 1rem;
  position: relative;
}

.k8s-confidential-label {
  background-color: var(--MAIN-BG-color);
  color: var(--K8S-CONFIDENTIAL-color);
  font-size: 0.75rem;
  font-weight: 600;
  left: 0.75rem;
  letter-spacing: 0.05em;
  line-height: 1;
  padding: 0 0.4rem;
  position: absolute;
  text-transform: uppercase;
  top: 0;
  transform: translateY(-50%);
}

/* Password form of the protected shortcode; see static/js/protected.js */
.k8s-protected {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 0.5rem 0;
}

.k8s-protected input {
  background-color: var(--CODE-BLOCK-BG-color);
  border: 1px solid var(--CODE-BLOCK-BORDER-color);
  border-radius: 0.25rem;
  color: var(--MAIN-TEXT-color);
  margin: 0;
  padding: 0.3rem 0.6rem;
  width: 16rem;
}

.k8s-protected-error {
  color: #e5534b;
}

/* 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;
}
