.page-chrome {
  display: grid;
  gap: 0.2rem;
  margin-bottom: 1.1rem;
}

.page-chrome__topline {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.breadcrumbs {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem;
  color: var(--spot-muted);
  font-size: 0.9rem;
  justify-self: start;
  width: fit-content;
  max-width: 100%;
}

.page-chrome__topline .page-help-popover--global {
  display: inline-grid;
  align-items: center;
  align-self: baseline;
  line-height: 1;
  margin-left: auto;
}

.breadcrumbs__separator {
  opacity: 0.6;
}

.breadcrumbs__link,
.breadcrumbs__current {
  color: inherit;
  text-decoration: none;
}

.breadcrumbs__link:hover {
  color: var(--spot-ink);
}

.breadcrumbs__current {
  font-weight: 600;
}

.page-heading {
  display: flex;
  position: relative;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem;
  min-height: 2rem;
  padding-right: 11rem;
}

.page-heading__title {
  display: grid;
  gap: 0.25rem;
  flex: 1 1 auto;
  min-width: 0;
}

.page-heading h1 {
  margin: 0;
  font-size: clamp(1.45rem, 2vw, 2rem);
  line-height: 1.1;
  flex: 1 1 auto;
  min-width: 0;
}

.page-heading__subtitle {
  margin: 0;
  line-height: 1.25;
}

.page-heading__actions {
  display: flex;
  position: absolute;
  top: 0;
  right: 0;
  flex-wrap: nowrap;
  gap: 0.5rem;
  align-items: center;
}

.page-help-popover {
  position: relative;
  display: inline-block;
}

.page-help-popover > summary {
  list-style: none;
}

.page-help-popover > summary::-webkit-details-marker {
  display: none;
}

.page-help-popover__summary {
  color: rgba(78, 65, 49, 0.82);
  border-color: rgba(130, 108, 76, 0.24);
  background: rgba(255, 252, 246, 0.92);
  font-weight: 700;
  font-size: 0.96rem;
}

.page-help-popover__summary:hover,
.page-help-popover__summary:focus-visible,
.page-help-popover[open] .page-help-popover__summary {
  color: rgba(78, 65, 49, 0.96);
  border-color: rgba(130, 108, 76, 0.36);
  background: rgba(255, 250, 240, 0.98);
}

.page-help-popover__content {
  position: absolute;
  top: calc(100% + 0.45rem);
  right: 0;
  z-index: 12;
  width: min(24rem, calc(100vw - 3rem));
  padding: 0.9rem 1rem;
  border: 1px solid rgba(130, 108, 76, 0.2);
  border-radius: 0.95rem;
  background: rgba(255, 252, 246, 0.98);
  box-shadow: 0 18px 36px rgba(66, 49, 25, 0.12);
}

.page-help-popover__content h3 {
  margin-bottom: 0.4rem;
}

.page-help-popover__content .meta {
  margin-bottom: 0.55rem;
}

.page-help-popover--global {
  position: relative;
}

.page-help-popover--global > summary {
  display: inline-flex;
  align-items: center;
  align-self: center;
  padding: 0;
  margin: 0;
  min-height: 0;
  line-height: 1;
}

.page-help-popover--global > summary::marker {
  content: "";
}

.page-help-popover--global[open] > summary {
  margin-bottom: 0;
}

.page-help-popover__trigger {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2rem;
  padding: 0.28rem 0.7rem;
  border-radius: 999px;
  border: 1px solid rgba(130, 108, 76, 0.18);
  background: rgba(255, 252, 246, 0.72);
  color: rgba(92, 77, 58, 0.78);
  cursor: pointer;
  font: inherit;
  font-size: 0.88rem;
  font-weight: 500;
  line-height: 1;
}

.page-help-popover__trigger:hover,
.page-help-popover__trigger:focus-visible,
.page-help-popover--global[open] .page-help-popover__trigger {
  color: rgba(78, 65, 49, 0.9);
  border-color: rgba(130, 108, 76, 0.28);
  background: rgba(255, 250, 240, 0.9);
}

.page-help-popover__trigger--inline {
  display: inline-flex;
  align-items: center;
  align-self: center;
  vertical-align: middle;
  min-height: auto;
  padding: 0;
  border: 0;
  background: transparent;
  border-radius: 0;
  color: var(--spot-muted);
  line-height: 1;
  font-size: 0.9rem;
  font-weight: 500;
}

.page-help-popover__trigger--inline:hover,
.page-help-popover__trigger--inline:focus-visible,
.page-help-popover--global[open] .page-help-popover__trigger--inline {
  color: var(--spot-ink);
  border-color: transparent;
  background: transparent;
}

@media (max-width: 720px) {
  .page-heading {
    padding-right: 0;
  }

  .page-heading__actions {
    position: static;
    margin-left: auto;
  }
}
