/* Step 3 review: quiet, accessible sharing tools beside the existing
   Overview heading. Scoped to this review; all reading/photo styles stay
   with their existing modules. */
body.atlas-guide.profile-share-review .profile-heading-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: .55rem .6rem;
  min-width: 0;
  margin: -.12rem 0 .8rem;
}

body.atlas-guide.profile-share-review .profile-heading-row > .profile-overview-heading {
  flex: 0 1 auto;
  min-width: 0;
  margin: 0;
}

body.atlas-guide.profile-share-review .profile-share-actions {
  display: flex;
  flex: 0 1 auto;
  flex-wrap: wrap;
  align-items: center;
  gap: .4rem;
  min-width: 0;
  max-width: 100%;
}

body.atlas-guide.profile-share-review .profile-share-actions button {
  display: inline-flex;
  flex: none;
  align-items: center;
  justify-content: center;
  gap: .3rem;
  box-sizing: border-box;
  min-width: 65px;
  min-height: 44px;
  margin: 0;
  border: 1px solid #c3ccbb;
  border-radius: 2px;
  padding: .5rem .4rem;
  background: transparent;
  color: var(--atlas-forest);
  font: 500 .76rem/1.3 system-ui, sans-serif;
  letter-spacing: 0;
  text-align: center;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
}

body.atlas-guide.profile-share-review .profile-share-actions .profile-share-copy {
  min-width: 84px;
}

body.atlas-guide.profile-share-review .profile-share-actions button svg {
  display: block;
  flex: none;
  width: 18px;
  height: 18px;
}

body.atlas-guide.profile-share-review .profile-share-actions button:hover:not(:disabled):not([aria-disabled="true"]) {
  border-color: #93a28a;
  background: #e8ecdf;
  color: #163d29;
}

body.atlas-guide.profile-share-review .profile-share-actions button:active:not(:disabled):not([aria-disabled="true"]) {
  background: #e0e7d8;
}

body.atlas-guide.profile-share-review .profile-share-actions button:focus-visible,
body.atlas-guide.profile-share-review .profile-share-fallback .profile-share-url:focus-visible {
  outline: 3px solid var(--atlas-focus);
  outline-offset: 3px;
}

body.atlas-guide.profile-share-review .profile-share-actions button:disabled,
body.atlas-guide.profile-share-review .profile-share-actions button[aria-disabled="true"] {
  opacity: .55;
  cursor: default;
}

/* Keep the live region in the accessibility tree when it has no text. */
body.atlas-guide.profile-share-review .profile-share-status {
  display: block;
  min-height: 0;
  margin: 0;
  border: 0;
  padding: 0;
  color: #596e52;
  font: .78rem/1.55 system-ui, sans-serif;
  overflow-wrap: anywhere;
}

body.atlas-guide.profile-share-review .profile-share-status:empty {
  height: 0;
  margin: 0;
  padding: 0;
}

body.atlas-guide.profile-share-review .profile-share-status:not(:empty) {
  margin: .4rem 0;
}

body.atlas-guide.profile-share-review .profile-share-fallback {
  min-width: 0;
  margin: .5rem 0 1rem;
  border: 1px solid #d5dccb;
  border-radius: 2px;
  padding: .7rem;
  background: #f2f3e9;
  color: var(--atlas-ink);
}

body.atlas-guide.profile-share-review .profile-share-fallback[hidden] {
  display: none;
}

body.atlas-guide.profile-share-review .profile-share-fallback p {
  margin: 0 0 .5rem;
  color: #50634b;
  font: .82rem/1.55 system-ui, sans-serif;
}

body.atlas-guide.profile-share-review .profile-share-fallback label {
  display: block;
  margin: .55rem 0 .35rem;
  color: #50634b;
  font: 500 .78rem/1.5 system-ui, sans-serif;
}

body.atlas-guide.profile-share-review .profile-share-fallback .profile-share-url {
  display: block;
  box-sizing: border-box;
  width: 100%;
  min-width: 0;
  min-height: 44px;
  margin: 0;
  border: 1px solid #bdc8b4;
  border-radius: 2px;
  padding: .55rem .65rem;
  background: #fffdf7;
  color: var(--atlas-forest);
  font: .8rem/1.4 system-ui, sans-serif;
  white-space: nowrap;
  cursor: text;
}

@media (max-width: 700px) {
  body.atlas-guide.profile-share-review .profile-heading-row {
    margin-top: 0;
  }

  body.atlas-guide.profile-share-review .profile-share-fallback .profile-share-url {
    font-size: 1rem;
  }
}
