/* Share step, household invite and the share pages (/quiz/r/<band>/). QUIZ_SHARE=true builds only.
   Tokens only, like site.css: the build refuses typed colours in every stylesheet except tokens.css. */

.share-block[hidden] { display: none; }
.share-block {
  margin-top: var(--cp-space-8); padding: var(--cp-space-6);
  background: var(--cp-color-surface-soft); border-radius: var(--cp-radius-lg);
  border-left: 4px solid var(--cp-color-accent-brand);
}
.share-block h2 { font-size: var(--cp-font-size-h3); margin: 0 0 var(--cp-space-3); }
.share-block p { margin: 0 0 var(--cp-space-4); }
.share-buttons { display: flex; flex-wrap: wrap; gap: var(--cp-space-3); margin-bottom: var(--cp-space-4); }
@media (max-width: 479px) { .share-buttons .btn { flex: 1 1 100%; } }
.share-link-row[hidden] { display: none; }
.share-link {
  width: 100%; min-height: 44px; padding: var(--cp-space-2) var(--cp-space-3);
  border: 1px solid var(--cp-color-border-input); border-radius: var(--cp-radius-md);
  background: var(--cp-color-surface-page); color: var(--cp-color-text-body);
  font-family: inherit; font-size: var(--cp-font-size-small);
}
.share-buttons .btn .share-i { width: 18px; height: 18px; }
/* The app links as icon buttons: 44px targets, a line icon and the app's name. */
.share-intents { list-style: none; padding: 0; margin: 0 0 var(--cp-space-2); display: flex; flex-wrap: wrap; gap: var(--cp-space-2); }
.share-intent {
  display: inline-flex; align-items: center; gap: var(--cp-space-2); min-height: 44px; padding: var(--cp-space-2) var(--cp-space-4) var(--cp-space-2) var(--cp-space-3);
  border-radius: var(--cp-radius-pill); background: var(--cp-color-surface-page); box-shadow: inset 0 0 0 1px var(--cp-color-border-subtle);
  color: var(--cp-color-text-heading); font-weight: var(--cp-font-weight-bold); font-size: var(--cp-font-size-small); text-decoration: none;
  transition: box-shadow var(--cp-motion-duration-fast) var(--cp-motion-ease-out), color var(--cp-motion-duration-fast) var(--cp-motion-ease-out);
}
.share-intent:hover { color: var(--cp-color-text-heading); box-shadow: inset 0 0 0 1px var(--cp-color-text-heading), var(--cp-shadow-sm); }
.share-intent:focus-visible { outline: 2px solid var(--cp-color-border-focus); outline-offset: 2px; }
.share-i { width: 20px; height: 20px; flex: 0 0 auto; fill: none; stroke: currentColor; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; }
.share-intent .share-i { color: var(--cp-color-text-label); }
@media (max-width: 479px) {
  .share-intents li { flex: 1 1 auto; display: flex; }
  .share-intent { flex: 1; justify-content: center; }
}

/* The share page */
.share-wrap { max-width: 760px; }
.share-card {
  margin: var(--cp-space-6) 0; padding: var(--cp-space-6);
  background: var(--cp-color-surface-inverse); color: var(--cp-color-text-inverse);
  border-radius: var(--cp-radius-xl);
}
.share-card p { margin: 0; }
.share-card-kicker { color: var(--cp-color-text-inverse-muted); text-transform: uppercase; letter-spacing: var(--cp-font-letter-spacing-label); font-size: var(--cp-font-size-small); font-weight: var(--cp-font-weight-bold); }
.share-card-label { font-size: var(--cp-font-size-h1); font-weight: var(--cp-font-weight-bold); line-height: var(--cp-font-line-height-tight); margin: var(--cp-space-2) 0 var(--cp-space-5) !important; }
.share-meter { list-style: none; padding: 0; margin: 0 0 var(--cp-space-4); display: grid; grid-template-columns: repeat(10, 1fr); gap: var(--cp-space-1); }
.share-meter li { height: 10px; border-radius: var(--cp-radius-pill); background: var(--cp-color-surface-inverse-soft); box-shadow: inset 0 0 0 1px var(--cp-color-text-inverse-subtle); }
.share-meter li.on { background: var(--cp-color-accent-brand); }
.share-card-note { color: var(--cp-color-text-inverse-subtle); font-size: var(--cp-font-size-small); }
.share-facts { padding-left: var(--cp-space-5); margin: 0 0 var(--cp-space-6); }
.share-privacy { color: var(--cp-color-text-muted); font-size: var(--cp-font-size-small); margin-top: var(--cp-space-4); }
/* Inside .prose pages (the thanks page) the list keeps no indent or tick marks. */
.share-block ul.share-intents { padding: 0; margin-left: 0; }
.share-block .share-intents li { margin: 0; padding: 0; }
.share-block .share-intents li::before { content: none; display: none; }
