/* Guest-facing detail and state treatments. Transactional controls keep their existing handlers. */
.guest-tag {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  max-width: 100%;
  margin: 0;
  padding: .25rem .625rem;
  border: 1px solid currentColor;
  border-radius: 2px;
  font-size: .8125rem;
  font-weight: 700;
  line-height: 1.25;
  color: var(--ink);
  background: var(--white);
  overflow-wrap: anywhere;
}

#verified-discovery .verified-event-copy .guest-tag {
  margin-block: .5rem 0;
  background: var(--cream);
}

.guest-event-time {
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}

.verified-event-detail {
  margin-block: 1.25rem .5rem;
  padding: 0;
  background: var(--white);
}

.guest-event-spotlight {
  display: grid;
  justify-items: start;
  gap: .375rem;
  padding: clamp(1rem, 4vw, 2rem);
  border-bottom: 1px solid var(--ink);
  background: var(--paper);
  color: var(--ink);
}

.guest-event-spotlight h3 {
  max-width: 22ch;
  margin: 0;
  font-family: var(--display);
  font-size: clamp(1.375rem, 4vw, 2.5rem);
  font-weight: 400;
  letter-spacing: -.025em;
  line-height: 1.06;
  overflow-wrap: anywhere;
}

.guest-event-spotlight p {
  margin: 0;
}

.guest-venue-name {
  font-weight: 700;
}

.guest-event-spotlight .guest-tag {
  margin-block-start: .5rem;
}

.guest-event-spotlight .text-button {
  min-height: 44px;
  color: var(--ink);
}

.verified-event-detail > .verified-event-rounds {
  margin: 0;
  padding: clamp(1rem, 4vw, 2rem);
  border: 0;
}

.verified-event-detail > .together-create {
  margin: 0 clamp(1rem, 4vw, 2rem) 1.25rem;
}

.verified-event-rounds > h4 {
  font-size: 1.25rem;
}

.guest-rounds {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 18rem), 1fr));
  gap: .875rem;
  align-items: start;
  margin-block-start: .75rem;
}

.guest-rounds .verified-round {
  justify-items: stretch;
  gap: .625rem;
  border: 1px solid var(--border);
  padding: 1rem;
  background: var(--white);
}

.guest-rounds .verified-round h5 {
  font-size: 1.2rem;
  line-height: 1.18;
}

.guest-rounds .verified-round > :is(.button, .text-button) {
  justify-self: start;
}

.activity-card:is(.guest-activity, .completed-moment, .staple-record) {
  padding: clamp(.875rem, 3vw, 1.5rem);
  border: 1px solid var(--border);
  background: var(--white);
}

.guest-activity h3, .staple-record h3, .completed-moment h3 {
  margin: 0;
  line-height: 1.12;
}

.guest-activity .activity-time {
  margin-block: .375rem .625rem;
  font-size: 1rem;
}

.guest-activity .capacity-copy, .verified-round .capacity-copy {
  font-weight: 700;
}

.guest-activity .discovery-fit {
  padding: .75rem .875rem;
  border: 1px solid var(--border);
  background: var(--cream);
}

:is(.guest-activity, .verified-round) .participation-status {
  width: fit-content;
  margin-block-start: .75rem;
  padding: .375rem .6875rem;
  border: 1px solid var(--ink);
  border-radius: 2px;
  line-height: 1.3;
  background: var(--cream);
}

:is(.guest-activity, .verified-round)[data-activity-state="reserved"] .participation-status {
  background: var(--success-surface);
}

:is(.guest-activity, .verified-round)[data-activity-state="waitlisted"] .participation-status {
  background: var(--selected);
}

:is(.guest-activity, .verified-round)[data-activity-state="rescheduled"] .participation-status,
:is(.guest-activity, .verified-round)[data-activity-state="offered"] .participation-status {
  background: var(--accent-soft);
}

:is(.guest-activity, .verified-round)[data-activity-state="full"] .capacity-copy {
  padding: .375rem .625rem;
  background: var(--cream);
}

.guest-activity[data-activity-state="cancelled"] .capacity-copy {
  padding: .375rem .625rem;
  background: var(--error-surface);
}

.guest-closed-note {
  margin-block-start: .625rem;
  color: var(--ink);
  font-size: .925rem;
}

.guest-activity .offer-note,
.inbox-target .offer-note {
  border: 1px solid var(--ink);
  background: var(--accent-soft);
}

.memory-detail {
  padding: clamp(1rem, 4vw, 2rem);
  border: 1px solid var(--border);
  background: var(--white);
}

.memory-detail > h3 {
  max-width: 24ch;
  margin-block: 0 .375rem;
  font-size: clamp(1.375rem, 4vw, 2rem);
  font-weight: 400;
  line-height: 1.08;
}

.memory-detail .memory-note {
  max-width: 68ch;
  font-size: 1.0625rem;
}

.staple-place {
  margin: 0;
  font-weight: 600;
}

.memory-audience {
  margin-block-start: .625rem;
  background: var(--selected);
}

.completed-moment .guest-tag {
  margin-block: .625rem .25rem;
  background: var(--success-surface);
}

.memory-photo-panel input[type="file"] {
  max-width: 100%;
  min-height: 44px;
}

.memory-photo-panel input::file-selector-button {
  font: inherit;
  font-weight: 700;
}

.staples-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: .25rem 1rem;
}

.staples-actions .text-button { display: inline-flex; align-items: center; }

.staple-view-toolbar { margin-block: -.375rem .625rem; }
.staple-view-toolbar .button { min-height: 44px; }
#memory-detail:has(> .staple-view-toolbar) {
  border: 0;
  background: transparent;
}
.staple-view-caption { margin-block: 1rem .625rem; }
.staple-view-caption h3 {
  max-width: 26ch;
  margin-block: 0 .375rem;
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(1.5rem, 4vw, 2.25rem);
  line-height: 1.08;
  letter-spacing: -.025em;
  overflow-wrap: anywhere;
}

.staple-access-summary { margin-block: .5rem; font-weight: 600; overflow-wrap: anywhere; }
.staple-access-summary:empty { display: none; }
.staple-share-audience { margin-block: .5rem; font-weight: 700; }
.staple-photo-mount {
  position: relative;
  width: min(100%, 48rem);
  padding: 0;
  margin: 0;
  border: 1px solid var(--separator);
  border-radius: 12px;
  overflow: hidden;
  background: var(--ink);
}

.staple-photo-mount .private-memory-photo {
  display: block;
  width: 100%;
  max-inline-size: 100%;
  max-height: min(34rem, 56vh);
  max-height: min(34rem, 56svh);
  margin: 0;
  border-radius: 0;
  object-fit: contain;
}

.staple-photo-mark {
  position: absolute;
  inset: auto .7rem .7rem auto;
  width: clamp(2.25rem, 10vw, 3.75rem);
  height: auto;
  padding: .375rem;
  background: var(--white);
  border-radius: 4px;
  pointer-events: none;
}

.shared-staple-story .shared-photo-mount { margin-block: .25rem .625rem; }
.shared-staple-story .staple-place { margin-block-start: .5rem; }
.memory-shared-staples, .memory-photo-panel { scroll-margin-top: .5rem; }

.inbox-target {
  border: 1px solid var(--border);
  background: var(--cream);
}

.inbox-card.unread {
  border: 1px solid var(--deep-teal);
  background: var(--cream);
}

.inbox-activity-name {
  margin-block-start: .375rem;
  font-size: 1.0625rem;
  font-weight: 700;
}

.inbox-notice-meta {
  margin-block: .5rem .25rem;
  font-size: .875rem;
  line-height: 1.35;
}

.inbox-card.unread .inbox-notice-meta {
  font-weight: 700;
}

.together-event-name {
  font-size: 1.25rem;
  font-weight: 700;
  line-height: 1.2;
}

.together-invitation-event { font-size: 1.375rem; font-weight: 700; margin-block: .3rem; }
.together-invitation-deadline {
  margin-block: .75rem .375rem;
  font-weight: 700;
  color: var(--ink);
}

#verified-map-selection { margin-block: 0 .5rem; font-weight: 700; }
#verified-map-selection:empty { display: none; }
#verified-map-canvas { margin-block: .5rem; }

.together-plan-row .guest-tag {
  margin-block-start: .5rem;
  background: var(--cream);
}

@media (max-width: 400px) {
  #memory-detail:has(> .staple-view-toolbar) { padding-inline: 0; }
  .guest-rounds .verified-round > :is(.button, .text-button) {
    justify-self: stretch;
  }
}
