.course-topic-map .resource-group[id],
.spec-revision-module[id] {
  /* The document already reserves 92px for the sticky header. */
  scroll-margin-top: 1.25rem;
}

.topic-share-trigger {
  min-height: 32px;
  padding: 3px 8px;
  border: 1px solid #acc6cf;
  border-radius: 6px;
  background: var(--paper, #fff);
  color: var(--teal-dark, #006473);
  font: inherit;
  font-size: .8rem;
  cursor: pointer;
}

.topic-share-trigger:hover {
  background: #e8f4f5;
}

.resource-share-placement {
  display: block;
  margin: .35rem 0;
}

.resource-share-placement .topic-share-trigger {
  pointer-events: auto;
}

.topic-share-dialog,
.topic-share-dialog * {
  box-sizing: border-box;
}

.topic-share-dialog [hidden] {
  display: none;
}

.topic-share-dialog .topic-share-action {
  display: inline-block;
  padding: .55rem .8rem;
  border: 1px solid #006473;
  border-radius: 6px;
  background: #e8f4f5;
  color: #104054;
  font: inherit;
  font-weight: 650;
  text-decoration: none;
  cursor: pointer;
}

.topic-share-dialog {
  width: min(26rem, calc(100% - 2rem));
  max-height: calc(100% - 2rem);
  padding: 1.25rem;
  border: 1px solid #acc6cf;
  border-radius: 12px;
  background: #fff;
  color: var(--navy, #102b3f);
}

.topic-share-dialog::backdrop {
  background: rgb(16 43 63 / .55);
}

.topic-share-dialog h2 {
  margin: 0 2.25rem .25rem 0;
  font-size: 1.3rem;
}

.topic-share-close {
  position: absolute;
  top: .75rem;
  right: .75rem;
  width: 2rem;
  height: 2rem;
  padding: 0;
  border: 1px solid #acc6cf;
  border-radius: 6px;
  background: #fff;
  color: inherit;
  font-size: 1.3rem;
  cursor: pointer;
}

.topic-share-name {
  margin: 0 0 .85rem;
}

.topic-share-dialog label {
  display: block;
  font-weight: 650;
}

.topic-share-dialog input {
  display: block;
  width: 100%;
  margin: .25rem 0 .5rem;
  padding: .45rem .6rem;
  border: 1px solid #acc6cf;
  border-radius: 6px;
  font: inherit;
}

.topic-share-status {
  min-height: 1.5em;
  margin: .25rem 0;
}

.topic-share-qr img {
  display: block;
  margin: 0 0 .5rem;
  image-rendering: pixelated;
}
