/* Dedicated Community destinations and public entity pages. */

.community-profile-back {
  display: inline-flex;
  width: fit-content;
  align-items: center;
  gap: 6px;
  color: var(--color-muted, #66636b);
  font-size: .82rem;
  font-weight: 700;
  text-decoration: none;
}
.community-profile-back:hover { color: var(--color-action, #c44926); }

.community-page-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 28px;
  align-items: end;
}
.community-page-hero .hero-copy { max-width: 820px; }
.community-page-hero .hero-copy p { max-width: 70ch; }
.community-page-actions { display: flex; flex-wrap: wrap; gap: 10px; }

.community-destination-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}
.community-destination {
  display: grid;
  gap: 10px;
  min-height: 180px;
  padding: 20px;
  border: 1px solid var(--color-border, rgba(25,24,29,.14));
  border-radius: var(--radius-lg, 16px);
  background: rgba(251,247,239,.76);
  color: inherit;
  text-decoration: none;
}
.community-destination:hover,
.community-destination:focus-visible {
  border-color: rgba(196,73,38,.34);
  background: rgba(255,250,242,.96);
  text-decoration: none;
}
.community-destination h2 { margin: 0; font-size: 1.18rem; }
.community-destination p { margin: 0; }
.community-destination .destination-link {
  margin-top: auto;
  color: var(--color-action, #c44926);
  font-size: .82rem;
  font-weight: 800;
}

.community-summary-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0;
  padding: 18px 0;
  border-top: 1px solid var(--color-border, rgba(25,24,29,.14));
  border-bottom: 1px solid var(--color-border, rgba(25,24,29,.14));
}
.community-summary-strip > div {
  padding: 4px 18px;
  border-right: 1px solid var(--color-border, rgba(25,24,29,.14));
}
.community-summary-strip > div:first-child { padding-left: 0; }
.community-summary-strip > div:last-child { border-right: 0; }
.community-summary-strip strong { display: block; font-size: 1.45rem; }
.community-summary-strip span { color: var(--color-muted, #66636b); font-size: .76rem; }

.community-page-section {
  padding: 24px 0;
  border-top: 1px solid var(--color-border, rgba(25,24,29,.14));
}
.community-page-section:first-of-type { border-top: 0; }
.community-page-section .section-head { max-width: 900px; }

.community-directory-toolbar {
  display: flex;
  gap: 12px;
  align-items: end;
  justify-content: space-between;
  margin: 18px 0;
}
.community-directory-toolbar label {
  display: grid;
  gap: 6px;
  width: min(100%, 420px);
  color: var(--color-muted, #66636b);
  font-size: .78rem;
  font-weight: 700;
}
.community-directory-results {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}
.community-directory-results .community-profile-card,
.community-directory-results .community-host-card {
  height: 100%;
  box-shadow: none;
}
.community-directory-results .community-profile-card > a,
.community-directory-results .community-host-card > a {
  color: inherit;
  text-decoration: none;
}
.community-directory-results .community-profile-card h2,
.community-directory-results .community-host-card h2 {
  margin: 0;
  font-size: 1.05rem;
  line-height: 1.15;
}
.community-directory-results .community-profile-card:hover,
.community-directory-results .community-host-card:hover {
  border-color: rgba(23,106,107,.3);
  background: rgba(255,250,242,.96);
}
.community-directory-results .community-person-cta {
  display: inline-flex;
  margin-top: 12px;
  color: var(--color-action, #c44926);
  font-size: .78rem;
  font-weight: 800;
}

.community-activity-list { display: grid; gap: 0; }
.community-activity-row {
  display: grid;
  grid-template-columns: minmax(160px, .8fr) minmax(200px, 1fr) repeat(2, minmax(100px, .45fr));
  gap: 16px;
  align-items: center;
  padding: 14px 0;
  border-bottom: 1px solid var(--color-border, rgba(25,24,29,.1));
}
.community-activity-row:last-child { border-bottom: 0; }
.community-activity-row strong { display: block; }
.community-activity-row span { color: var(--color-muted, #66636b); font-size: .78rem; }

.community-board-start {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(280px, .9fr);
  gap: 30px;
  align-items: start;
}
.community-board-categories {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.community-board-categories span {
  padding: 8px 11px;
  border: 1px solid rgba(23,106,107,.18);
  border-radius: 999px;
  background: rgba(23,106,107,.07);
  color: var(--color-progress, #176a6b);
  font-size: .78rem;
  font-weight: 700;
}
.community-board-action {
  display: grid;
  gap: 12px;
  padding: 20px;
  border: 1px solid var(--color-border, rgba(25,24,29,.14));
  border-radius: var(--radius-lg, 16px);
  background: rgba(251,247,239,.78);
}
.community-board-action .button { width: 100%; }

.host-profile-rating-list,
.host-profile-feedback-list,
.host-profile-session-list { display: grid; gap: 0; }
.host-profile-rating-row,
.host-profile-session-row {
  display: grid;
  grid-template-columns: minmax(160px, 1fr) minmax(120px, auto);
  gap: 16px;
  align-items: center;
  padding: 12px 0;
  border-bottom: 1px solid var(--color-border, rgba(25,24,29,.1));
}
.host-profile-rating-row:last-child,
.host-profile-session-row:last-child { border-bottom: 0; }
.host-profile-rating-row strong:last-child,
.host-profile-session-row > span:last-child { text-align: right; }
.host-profile-feedback {
  padding: 16px 0;
  border-bottom: 1px solid var(--color-border, rgba(25,24,29,.1));
}
.host-profile-feedback:last-child { border-bottom: 0; }
.host-profile-feedback-head {
  display: flex;
  gap: 10px;
  justify-content: space-between;
  align-items: baseline;
}
.host-profile-feedback p { margin: 8px 0; }
.host-profile-disclosure {
  border-top: 1px solid var(--color-border, rgba(25,24,29,.14));
}
.host-profile-disclosure:last-child { border-bottom: 1px solid var(--color-border, rgba(25,24,29,.14)); }
.host-profile-disclosure > summary {
  list-style: none;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 0;
  cursor: pointer;
}
.host-profile-disclosure > summary::-webkit-details-marker { display: none; }
.host-profile-disclosure > div { padding: 0 0 18px; }
.host-profile-badges { display: flex; flex-wrap: wrap; gap: 8px; }

body[data-flow-page="host-tools"] .registry-board { display: none; }
body[data-flow-page="host-tools"] .hero-panel .auth-panel { display: none; }
body[data-flow-page="host-tools"] .hero-panel { display: block; }
body[data-flow-page="host-tools"] .hero { grid-template-columns: minmax(0, 1fr) minmax(260px, .7fr); }

@media (max-width: 980px) {
  .community-destination-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .community-directory-results { grid-template-columns: 1fr; }
  .community-board-start { grid-template-columns: 1fr; }
}

@media (max-width: 760px) {
  .community-page-hero { grid-template-columns: 1fr; align-items: start; }
  .community-summary-strip { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 0; }
  .community-summary-strip > div:nth-child(2) { border-right: 0; }
  .community-summary-strip > div:nth-child(3) { padding-left: 0; }
  .community-directory-toolbar { align-items: stretch; flex-direction: column; }
  .community-directory-toolbar label { width: 100%; }
  .community-activity-row { grid-template-columns: 1fr 1fr; gap: 8px 14px; }
  body[data-flow-page="host-tools"] .hero { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
  .community-destination-grid { grid-template-columns: 1fr; }
  .community-summary-strip { grid-template-columns: 1fr 1fr; }
}
