/* Mobile Space identity and About sheet. The desktop right-rail card remains
   the long-form companion; this is the compact in-feed entry point. */
.space-hero-title-row {
  display: flex;
  align-items: center;
  gap: 8px;
}

.space-hero-title-row .space-hero-title {
  flex: 1 1 auto;
  min-width: 0;
}

.spaces-about-icon {
  display: inline-grid;
  place-items: center;
  flex: 0 0 auto;
  width: 32px;
  height: 32px;
  border: 1px solid var(--color-border, #e3e7ec);
  border-radius: 999px;
  background: transparent;
  color: var(--color-text-muted, #5b6672);
  font: inherit;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
}

.spaces-about-icon:hover,
.spaces-about-icon:focus-visible {
  border-color: var(--color-primary, #0ba8d2);
  color: var(--color-primary, #0ba8d2);
}

@media (min-width: 768px) {
  .spaces-about-icon {
    display: none;
  }
}

.spaces-about-dialog {
  width: min(28rem, calc(100vw - 2rem));
  margin: auto;
  padding: 0;
  border: 0;
  border-radius: 16px;
  background: var(--color-surface, #fff);
  color: var(--color-text, #172033);
  box-shadow: 0 16px 36px rgba(15, 23, 42, 0.18);
}

.spaces-about-dialog::backdrop {
  background: rgba(15, 23, 42, 0.45);
}

.spaces-about-sheet header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 60px;
  padding: 0 16px;
  border-bottom: 1px solid var(--color-border, #e3e7ec);
  font-size: 16px;
}

.spaces-about-sheet header button {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border: 1px solid var(--color-border, #e3e7ec);
  border-radius: 999px;
  background: transparent;
  color: inherit;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
}

.spaces-about-sheet-body {
  padding: 16px;
}

.spaces-about-sheet-body > p {
  margin: 0;
  color: var(--color-text-muted, #5b6672);
  font-size: 14px;
  line-height: 1.5;
}

.spaces-about-sheet-body dl {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
  margin: 16px 0 0;
}

.spaces-about-sheet-body dl div {
  padding: 12px;
  border: 1px solid var(--color-border, #e3e7ec);
  border-radius: 10px;
}

.spaces-about-sheet-body dt {
  color: var(--color-text-muted, #5b6672);
  font-size: 12px;
}

.spaces-about-sheet-body dd {
  margin: 4px 0 0;
  font-size: 15px;
  font-weight: 700;
}

@media (max-width: 640px) {
  .spaces-about-dialog {
    width: 100%;
    max-width: none;
    margin: auto 0 0;
    border-radius: 18px 18px 0 0;
  }
}
