/* The host theme sets html to 18px. The Navigator's approved card system was
 * designed on a 16px scale, so normalise only pages using this blank shell. */
html:has(body.bdk-plugin-shell) {
  font-size: 16px !important;
}

html {
  background: var(--bdk-color-page);
  background-image: none !important;
}

body.bdk-plugin-shell {
  min-height: 100vh;
  margin: 0;
  background: var(--bdk-color-page);
  background-image: none !important;
}

/* The persona report frame breaks out of the reading measure to take the
   viewport width. `clip` absorbs the scrollbar-width difference between 100vw
   and the body's content box without creating a scroll container, so sticky
   positioning and vertical scrolling are untouched. */
html:has(body.bdk-plugin-shell) {
  overflow-x: clip;
}

body.bdk-plugin-shell::before,
body.bdk-plugin-shell::after {
  content: none !important;
  background-image: none !important;
}

/* The host heading defaults include 0.05em tracking. It alters wrapping in
 * Roboto Slab cards, so the Navigator owns these inherited type properties. */
.bdk-plugin-shell .bdk-demo h1,
.bdk-plugin-shell .bdk-demo h2,
.bdk-plugin-shell .bdk-demo h3,
.bdk-plugin-shell .bdk-demo h4,
.bdk-plugin-shell .bdk-demo h5,
.bdk-plugin-shell .bdk-demo h6 {
  font-family: var(--bdk-font-heading) !important;
  letter-spacing: normal !important;
  text-transform: none !important;
}

.bdk-plugin-shell .bdk-demo-card h2 {
  letter-spacing: 0 !important;
}

/* This blank template deliberately owns its type scale. Elementor rules can
 * otherwise arrive after the plugin and alter card wrapping or hierarchy. */
.bdk-plugin-shell .bdk-demo,
.bdk-plugin-shell .bdk-demo button,
.bdk-plugin-shell .bdk-demo input {
  font-family: var(--bdk-font-interface) !important;
}

.bdk-plugin-shell .bdk-demo-card--material h2 {
  font-family: var(--bdk-font-heading) !important;
  font-size: 1.3rem !important;
  font-weight: 600 !important;
  line-height: 1.25 !important;
  letter-spacing: -0.01em !important;
}

.bdk-plugin-shell .bdk-demo-card--course h2 {
  font-family: var(--bdk-font-heading) !important;
  font-size: 1.3rem !important;
  font-weight: 600 !important;
  line-height: 1.25 !important;
  letter-spacing: -0.01em !important;
}

.bdk-plugin-shell .bdk-demo-card__summary {
  font-family: var(--bdk-font-interface) !important;
}

.bdk-shell__skip-link {
  position: fixed;
  z-index: 100001;
  top: 0.75rem;
  left: 0.75rem;
  padding: 0.6rem 0.85rem;
  border: 2px solid var(--bdk-color-deep-teal);
  background: var(--bdk-color-white);
  color: var(--bdk-color-deep-teal);
  font-family: var(--bdk-font-interface);
  font-weight: 700;
  text-decoration: none;
  transform: translateY(calc(-100% - 1rem));
}

.bdk-shell__skip-link:focus {
  transform: translateY(0);
}

.admin-bar .bdk-shell__skip-link {
  top: 2.75rem;
}

@media screen and (max-width: 782px) {
  .admin-bar .bdk-shell__skip-link {
    top: 3.625rem;
  }
}
