/* Quiet, shared controls. Load after the main stylesheet. */
.reaction-button {
  min-width: 104px;
  min-height: 40px;
  gap: 8px;
  padding: 10px 14px;
  border: 1px solid #ffffff1c;
  border-radius: 8px;
  background: #19191b;
  color: #c5c5c9;
  box-shadow: none;
  font-size: 12px;
  font-weight: 500;
  line-height: 1.35;
  letter-spacing: 0;
  transition: background-color 160ms ease, color 160ms ease, border-color 160ms ease;
}

.reaction-button svg {
  width: 15px;
  height: 15px;
  stroke-width: 1.65;
}

.reaction-button .reaction-count {
  min-width: 8px;
  padding: 0;
  border: 0;
  color: inherit;
  font-size: 11px;
  line-height: 1;
  font-variant-numeric: tabular-nums;
  opacity: .65;
}

.reaction-button:hover:not(:disabled) {
  border-color: #ffffff30;
  background: #242427;
  color: #f5f5f5;
  transform: none;
}

.reaction-button.is-selected,
.reaction-button[aria-pressed="true"] {
  border-color: #ececed;
  background: #ececed;
  color: #161618;
}

.reaction-button.is-selected:hover:not(:disabled),
.reaction-button[aria-pressed="true"]:hover:not(:disabled) {
  border-color: #fff;
  background: #fff;
  color: #161618;
}

.reaction-button:disabled {
  cursor: wait;
  opacity: .55;
}

.reaction-button[aria-busy="true"] {
  cursor: progress;
}

.reaction-button:focus-visible,
.connect-reaction:focus-visible,
.contact-detail .button:focus-visible {
  outline: 2px solid #f3f3f5;
  outline-offset: 3px;
}

/* Three actions belong to one surface; spacing separates them. */
.site-reaction-actions {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: stretch;
  gap: 4px;
  width: 432px;
  max-width: 100%;
  min-width: 0;
  padding: 4px;
  border: 1px solid #ffffff14;
  border-radius: 12px;
  background: #18181a;
  box-shadow: none;
}

.site-reaction-actions > span {
  display: flex;
  min-width: 0;
}

.site-reaction-actions .reaction-button,
.site-reaction-actions .connect-reaction {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-width: 0;
  min-height: 40px;
  gap: 7px;
  margin: 0;
  padding: 10px 7px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: #c3c3c8;
  box-shadow: none;
  font-size: 12px;
  font-weight: 500;
  line-height: 1.35;
  letter-spacing: 0;
  white-space: nowrap;
  transition: background-color 160ms ease, color 160ms ease;
}

.site-reaction-actions .reaction-button svg,
.site-reaction-actions .connect-reaction svg {
  width: 15px;
  height: 15px;
  flex: 0 0 auto;
}

.site-reaction-actions .reaction-button .reaction-count {
  min-width: 0;
  padding: 0;
  border: 0;
  font-size: 11px;
  opacity: .65;
}

.site-reaction-actions .connect-reaction > span {
  margin: 0;
  color: #7d7d84;
  font-size: 12px;
}

.site-reaction-actions .reaction-button:hover:not(:disabled),
.site-reaction-actions .connect-reaction:hover {
  border: 0;
  background: #27272a;
  color: #fff;
}

.site-reaction-actions .reaction-button.is-selected,
.site-reaction-actions .reaction-button[aria-pressed="true"] {
  background: #ececed;
  color: #171719;
}

.site-reaction-actions .reaction-button.is-selected:hover:not(:disabled),
.site-reaction-actions .reaction-button[aria-pressed="true"]:hover:not(:disabled) {
  background: #fff;
  color: #171719;
}

.site-reaction-actions .reaction-button:focus-visible,
.site-reaction-actions .connect-reaction:focus-visible {
  outline-offset: -2px;
}

/* Compact project reactions stay small without becoming round badges. */
.reaction-button.compact,
.directory-row .reaction-button.compact,
.project-top .reaction-button.compact {
  min-width: 48px;
  min-height: 30px;
  gap: 6px;
  padding: 7px 9px;
  border-radius: 7px;
  background: #18181b;
  font-size: 10px;
}

.reaction-button.compact svg,
.project-top .reaction-button.compact svg {
  width: 13px;
  height: 13px;
}

.reaction-button.compact .reaction-count,
.project-top .reaction-button.compact .reaction-count {
  padding: 0;
  border: 0;
  font-size: 10px;
}

.reaction-button.compact.is-selected,
.reaction-button.compact[aria-pressed="true"] {
  background: #ececed;
  color: #161618;
}

/* People are introduced through type and space, without numbered rules. */
.connect-people {
  display: grid;
  align-content: start;
  gap: 28px;
  min-width: 0;
  padding: 7px 30px 7px 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  backdrop-filter: none;
  overflow: visible;
}

.connect-people > div,
.connect-people > div:last-child {
  display: block;
  min-width: 0;
  padding: 0;
  border: 0;
}

.connect-people > div > span {
  display: none;
}

.connect-people h3 {
  margin: 0;
  color: #e1e1e4;
  font-size: 18px;
  font-weight: 500;
  line-height: 1.55;
  letter-spacing: normal;
  overflow-wrap: anywhere;
}

.connect-people p {
  grid-column: auto;
  max-width: 43ch;
  margin: 7px 0 0;
  color: #96969f;
  font-size: 13px;
  font-weight: 400;
  line-height: 1.9;
  overflow-wrap: anywhere;
}

.contact-detail {
  min-width: 0;
  padding: 31px;
  border: 1px solid #ffffff0d;
  border-radius: 16px;
  background: #151517;
  box-shadow: none;
  backdrop-filter: none;
}

.contact-detail h3 {
  margin-top: 18px;
  color: #e8e8eb;
  font-size: 28px;
  font-weight: 450;
  line-height: 1.3;
  letter-spacing: -.025em;
}

.contact-detail p {
  max-width: 32ch;
  margin-top: 17px;
  color: #9898a1;
  font-size: 13px;
  line-height: 1.9;
}

.contact-detail .button {
  min-width: 0;
  min-height: 40px;
  gap: 24px;
  margin-top: 24px;
  padding: 11px 16px;
  border: 1px solid #ececed;
  border-radius: 8px;
  background: #ececed;
  color: #171719;
  box-shadow: none;
  font-size: 12px;
  line-height: 1.4;
}

.contact-detail .button:hover {
  border-color: #fff;
  background: #fff;
  color: #171719;
}

.contact-detail .contact-note {
  margin-top: 13px;
  color: #7e7e87;
  font-size: 11px;
  line-height: 1.5;
  overflow-wrap: anywhere;
}

@media (max-width: 760px) {
  .site-reaction-actions {
    width: 432px;
    margin-top: 15px;
  }

  .connect-people {
    gap: 24px;
    padding: 5px 0 12px;
  }

  .connect-people h3 {
    font-size: 17px;
  }

  .connect-people p {
    font-size: 13px;
  }

  .contact-detail {
    padding: 25px;
  }

  .contact-detail h3 {
    font-size: 27px;
  }

  .contact-detail p {
    font-size: 13px;
  }
}

@media (max-width: 420px) {
  .site-reaction-actions {
    gap: 2px;
    padding: 3px;
  }

  .site-reaction-actions .reaction-button,
  .site-reaction-actions .connect-reaction {
    gap: 4px;
    min-height: 39px;
    padding: 10px 3px;
    font-size: 11px;
  }

  .site-reaction-actions .reaction-button svg,
  .site-reaction-actions .connect-reaction svg {
    width: 12px;
    height: 12px;
  }

  .site-reaction-actions .reaction-button .reaction-count {
    font-size: 10px;
  }

  .site-reaction-actions .connect-reaction > span {
    display: none;
  }

  .reaction-button.compact,
  .directory-row .reaction-button.compact,
  .project-top .reaction-button.compact {
    min-width: 46px;
    gap: 5px;
    padding: 7px 8px;
  }

  .connect-people h3 {
    font-size: 16px;
  }

  .contact-detail {
    padding: 23px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .reaction-button,
  .site-reaction-actions .reaction-button,
  .site-reaction-actions .connect-reaction {
    transition: none;
  }
}
