/* Community profile composition. Scoped to this route so community discovery cards remain unchanged. */
.community-profile-page .community-profile-main { padding: 54px 0 84px; }
.community-profile-page .community-profile-status {
  display: grid; grid-template-columns: auto minmax(0,1fr); gap: 18px; align-items: center;
  margin-bottom: 18px; padding: 18px 22px; border: 1px solid var(--warn); background: var(--bg-1);
}
.community-profile-page .community-profile-status strong { color: var(--warn); font: 700 .7rem var(--mono); letter-spacing: .12em; text-transform: uppercase; }
.community-profile-page .community-profile-status p { margin: 0; color: var(--text-mid); }
.community-profile-page .community-profile-hero { overflow: hidden; border: 1px solid var(--line2); background: var(--bg-1); }
.community-profile-page .community-profile-cover { position: relative; height: clamp(180px,22vw,290px); overflow: hidden; background: #151a1e; }
.community-profile-page .community-profile-cover::after { content: ''; position: absolute; inset: auto 0 0; height: 1px; background: var(--line2); }
.community-profile-page .community-profile-cover-media,
.community-profile-page .community-profile-cover-media img { display: block; width: 100%; height: 100%; }
.community-profile-page .community-profile-cover-media img { object-fit: cover; }
.community-profile-page .without-banner .community-profile-cover { height: 92px; background: #151a1e; }
.community-profile-page .without-banner .community-profile-cover::before { content: ''; position: absolute; inset: auto 0 0; width: 34%; height: 3px; background: var(--accent); }
.community-profile-page .community-profile-identity {
  display: grid; grid-template-columns: 116px minmax(0,1fr) minmax(300px,390px); gap: 26px;
  align-items: start; padding: 0 40px 40px;
}
.community-profile-page .community-profile-mark { position: relative; margin-top: -44px; }
.community-profile-page .community-profile-logo,
.community-profile-page .community-profile-logo img,
.community-profile-page .community-profile-logo-faction,
.community-profile-page .community-profile-logo-fallback {
  display: grid; width: 112px; height: 112px; place-items: center; object-fit: cover;
  border: 1px solid var(--line2); background: var(--bg-0);
}
.community-profile-page .community-profile-logo img { border: 0; }
.community-profile-page .community-profile-logo-faction svg { width: 58px; height: 58px; }
.community-profile-page .community-profile-logo-fallback { color: var(--text-mid); font: 700 2.4rem var(--display); }
.community-profile-page .community-profile-title { min-width: 0; padding-top: 28px; }
.community-profile-page .community-profile-meta { display: flex; flex-wrap: wrap; gap: 8px 18px; margin: 0 0 10px; }
.community-profile-page .community-profile-meta span { position: relative; color: var(--text-dim); font: 700 .62rem var(--mono); letter-spacing: .11em; text-transform: uppercase; }
.community-profile-page .community-profile-meta span + span::before { content: '/'; position: absolute; left: -12px; color: var(--line2); }
.community-profile-page .community-profile-meta .is-recruiting { color: var(--ok); }
.community-profile-page .community-profile-title h1 { margin: 0; font-size: clamp(3rem,6vw,5.4rem); line-height: .88; }
.community-profile-page .community-profile-tagline { max-width: 670px; margin: 16px 0 0; color: var(--text-mid); font-size: 1.05rem; line-height: 1.55; }
.community-profile-page .community-profile-actions { padding-top: 28px; }
.community-profile-page .community-profile-join { display: inline-flex; margin-bottom: 16px; }
.community-profile-page .community-profile-follow { display: flex; align-items: center; gap: 13px; flex-wrap: wrap; }
.community-profile-page .community-profile-follow form { margin: 0; }
.community-profile-page .community-profile-text-action { color: var(--text-hi); font: 700 .62rem var(--mono); letter-spacing: .09em; text-transform: uppercase; }
.community-profile-page .community-profile-text-action:hover { color: var(--accent); }
.community-profile-page .community-profile-actions > p { margin: 12px 0 18px; color: var(--text-dim); font-size: .78rem; line-height: 1.55; }
.community-profile-page .community-profile-command-row { display: flex; align-items: center; gap: 9px; flex-wrap: wrap; }
.community-profile-page .community-profile-command-row .share-controls { margin: 0; }
.community-profile-page .community-public-nav { margin: 18px 0 30px; padding: 0 14px; border: 1px solid var(--line); background: var(--bg-1); }
.community-profile-page .community-public-nav a { padding: 15px 14px; }
.community-profile-page .community-subnav { margin-top: 18px; }
.community-profile-page .community-recruitment-callout,
.community-profile-page .community-profile-request {
  display: flex; align-items: center; justify-content: space-between; gap: 28px;
  margin-bottom: 22px; padding: 26px 30px; border: 1px solid var(--line2); background: var(--bg-1);
}
.community-profile-page .community-recruitment-callout { border-left: 3px solid var(--accent); }
.community-profile-page .community-recruitment-callout span,
.community-profile-page .community-profile-request span,
.community-profile-page .community-profile-panel > header > span {
  color: var(--accent); font: 700 .61rem var(--mono); letter-spacing: .14em; text-transform: uppercase;
}
.community-profile-page .community-recruitment-callout h2 { margin: 5px 0 4px; font-size: 1.55rem; }
.community-profile-page .community-recruitment-callout p,
.community-profile-page .community-profile-request p { margin: 0; color: var(--text-mid); }
.community-profile-page .community-profile-request strong { display: block; margin: 5px 0 3px; font-family: var(--display); font-size: 1.25rem; }
.community-profile-page .community-profile-layout { display: grid; grid-template-columns: minmax(0,1.65fr) minmax(310px,.75fr); gap: 22px; align-items: start; }
.community-profile-page .community-profile-content,
.community-profile-page .community-profile-sidebar { display: grid; gap: 22px; }
.community-profile-page .community-profile-panel {
  min-width: 0; padding: 40px; border: 1px solid var(--line2); background: var(--bg-1); box-shadow: none;
}
.community-profile-page .community-profile-panel > header { margin-bottom: 26px; padding-bottom: 20px; border-bottom: 1px solid var(--line); }
.community-profile-page .community-profile-panel > header h2 { margin: 7px 0 0; color: var(--text-hi); font-size: clamp(1.65rem,3vw,2.2rem); line-height: 1; }
.community-profile-page .community-profile-panel > header p { margin: 9px 0 0; color: var(--text-mid); font-size: .86rem; }
.community-profile-page .community-profile-about .prose { color: var(--text-mid); font-size: 1rem; line-height: 1.8; }
.community-profile-page .community-profile-empty { padding: 28px; border: 1px solid var(--line); background: var(--bg-0); }
.community-profile-page .community-profile-empty strong { display: block; color: var(--text-hi); font-family: var(--display); font-size: 1.25rem; }
.community-profile-page .community-profile-empty p { margin: 7px 0 0; color: var(--text-mid); }
.community-profile-page .community-profile-events > header { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; }
.community-profile-page .community-profile-events > header p { margin: 0; }
.community-profile-page .community-profile-events-list { display: grid; gap: 1px; background: var(--line); border: 1px solid var(--line); }
.community-profile-page .community-profile-event-row { display: flex; align-items: center; gap: 16px; min-width: 0; padding: 15px 18px; background: var(--bg-1); color: var(--text-hi); text-decoration: none; }
.community-profile-page .community-profile-event-row:hover { background: var(--bg-hover); }
.community-profile-page .community-profile-event-row .cpe-date { flex: none; color: var(--text-dim); font: 700 .68rem var(--mono); letter-spacing: .08em; text-transform: uppercase; }
.community-profile-page .community-profile-event-row .cpe-title { min-width: 0; overflow: hidden; font-weight: 600; text-overflow: ellipsis; white-space: nowrap; }
.community-profile-page .community-profile-servers .srv-list { margin: 0; }
.community-profile-page .community-profile-activity dl { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 1px; margin: 0; background: var(--line); }
.community-profile-page .community-profile-activity dl > div { min-width: 0; padding: 17px; background: var(--bg-0); }
.community-profile-page .community-profile-activity dl > div:first-child { grid-column: 1 / -1; }
.community-profile-page .community-profile-activity dt { color: var(--text-dim); font: 700 .58rem var(--mono); letter-spacing: .09em; text-transform: uppercase; }
.community-profile-page .community-profile-activity dd { margin: 5px 0 0; color: var(--text-hi); font: 700 1.55rem var(--display); overflow-wrap: anywhere; }
.community-profile-page .community-profile-activity > p { margin: 17px 0 0; color: var(--text-dim); font-size: .75rem; line-height: 1.55; }
.community-profile-page .community-profile-factions .fac-list { display: grid; gap: 18px; margin: 0; }
.community-profile-page .community-profile-factions .fac-item { align-items: flex-start; gap: 14px; }
.community-profile-page .community-profile-factions .fac-item svg { width: 34px; height: 34px; margin-top: 2px; }
.community-profile-page .community-profile-factions .fn { font-size: 1.1rem; }
.community-profile-page .community-profile-factions .fb { margin-top: 3px; }
.community-profile-page .community-profile-links > div { display: grid; gap: 9px; }
.community-profile-page .community-profile-links .b { justify-content: center; width: 100%; }
.community-profile-page .community-profile-staff .staff-list { margin: 0; }
.community-profile-page .community-profile-staff .staff-row { min-width: 0; padding: 10px 0; border-top: 1px solid var(--line); }
.community-profile-page .community-profile-staff .staff-row:first-child { padding-top: 0; border-top: 0; }
.community-profile-page .community-profile-staff .profile-link { min-width: 0; overflow: hidden; color: var(--text-hi); text-overflow: ellipsis; white-space: nowrap; }
.community-profile-page .community-profile-back { display: inline-flex; margin-top: 30px; color: var(--text-mid); font: 700 .64rem var(--mono); letter-spacing: .1em; text-transform: uppercase; }
.community-profile-page .community-profile-back::before { content: '\2190'; margin-right: 9px; color: var(--accent); }
.community-profile-page .community-profile-back:hover { color: var(--text-hi); }
@media (max-width: 980px) {
  .community-profile-page .community-profile-identity { grid-template-columns: 100px minmax(0,1fr); padding: 0 30px 32px; }
  .community-profile-page .community-profile-mark { margin-top: -36px; }
  .community-profile-page .community-profile-logo,
  .community-profile-page .community-profile-logo img,
  .community-profile-page .community-profile-logo-faction,
  .community-profile-page .community-profile-logo-fallback { width: 96px; height: 96px; }
  .community-profile-page .community-profile-actions { grid-column: 1 / -1; padding-top: 0; }
  .community-profile-page .community-profile-layout { grid-template-columns: 1fr; }
  .community-profile-page .community-profile-sidebar { grid-template-columns: repeat(2,minmax(0,1fr)); }
}
@media (max-width: 680px) {
  .community-profile-page .community-profile-main { padding: 24px 0 64px; }
  .community-profile-page .community-profile-cover { height: 150px; }
  .community-profile-page .without-banner .community-profile-cover { height: 62px; }
  .community-profile-page .community-profile-identity { grid-template-columns: 76px minmax(0,1fr); gap: 16px; padding: 0 24px 24px; }
  .community-profile-page .community-profile-mark { margin-top: -24px; }
  .community-profile-page .community-profile-logo,
  .community-profile-page .community-profile-logo img,
  .community-profile-page .community-profile-logo-faction,
  .community-profile-page .community-profile-logo-fallback { width: 72px; height: 72px; }
  .community-profile-page .community-profile-logo-faction svg { width: 38px; height: 38px; }
  .community-profile-page .community-profile-title { padding-top: 17px; }
  .community-profile-page .community-profile-title h1 { font-size: clamp(2.45rem,13vw,4rem); }
  .community-profile-page .community-profile-meta { gap: 6px 14px; }
  .community-profile-page .community-profile-meta span + span::before { left: -9px; }
  .community-profile-page .community-profile-tagline { font-size: .92rem; }
  .community-profile-page .community-profile-actions { margin-top: 5px; }
  .community-profile-page .community-profile-command-row,
  .community-profile-page .community-profile-command-row .share-controls { align-items: stretch; flex-direction: column; width: 100%; }
  .community-profile-page .community-profile-command-row .b,
  .community-profile-page .community-profile-command-row .share-controls .b { justify-content: center; width: 100%; }
  .community-profile-page .community-profile-status,
  .community-profile-page .community-recruitment-callout,
  .community-profile-page .community-profile-request { align-items: flex-start; flex-direction: column; padding: 24px; }
  .community-profile-page .community-profile-status { display: grid; grid-template-columns: 1fr; }
  .community-profile-page .community-recruitment-callout .b,
  .community-profile-page .community-profile-request .b { justify-content: center; width: 100%; }
  .community-profile-page .community-profile-panel { padding: 24px; }
  .community-profile-page .community-profile-sidebar { grid-template-columns: 1fr; }
  .community-profile-page .community-profile-activity dl { grid-template-columns: 1fr; }
  .community-profile-page .community-profile-activity dl > div:first-child { grid-column: auto; }
}
@media (prefers-reduced-motion: reduce) {
  .community-profile-page *,
  .community-profile-page *::before,
  .community-profile-page *::after { scroll-behavior: auto; transition-duration: .01ms !important; }
}

/* Connected servers: the same row shape as the landing page live blocks. */
.community-profile-page .com-server-list { display:grid; border:1px solid var(--line); border-radius:var(--radius-sm); background:var(--bg-1); overflow:hidden; }
.community-profile-page .com-server-row { display:grid; grid-template-columns:72px minmax(0,1fr) auto auto auto; gap:18px; align-items:center; min-height:84px; padding:16px 20px; border-top:1px solid var(--line); }
.community-profile-page .com-server-row:first-child { border-top:0; }
.community-profile-page .com-server-row:hover { background:var(--bg-hover); }
.community-profile-page .com-server-art { display:block; width:72px; height:44px; overflow:hidden; border:1px solid var(--line2); border-radius:var(--radius-sm); background:var(--bg-0); }
.community-profile-page .com-server-art img { display:block; width:100%; height:100%; object-fit:cover; }
.community-profile-page .com-server-copy { display:grid; gap:4px; min-width:0; }
.community-profile-page .com-server-name { overflow:hidden; color:var(--text-hi); font-size:1rem; font-weight:600; line-height:1.3; text-overflow:ellipsis; white-space:nowrap; text-decoration:none; }
.community-profile-page .com-server-name:hover { color:var(--accent); }
.community-profile-page .com-server-meta { overflow:hidden; color:var(--text-mid); font-size:.85rem; line-height:1.4; text-overflow:ellipsis; white-space:nowrap; }
.community-profile-page .com-server-state { font:600 .64rem var(--mono); letter-spacing:.12em; text-transform:uppercase; white-space:nowrap; color:var(--text-dim); }
.community-profile-page .com-server-state.ok,.community-profile-page .com-server-state.live { color:var(--ok); }
.community-profile-page .com-server-state.danger,.community-profile-page .com-server-state.dead { color:var(--danger); }
.community-profile-page .com-server-open { flex:none; }
.community-profile-page .com-server-actions { display:flex; flex-direction:column; gap:6px; align-items:flex-end; }
@media (max-width:640px) {
  .community-profile-page .com-server-row { grid-template-columns:56px minmax(0,1fr); gap:12px; padding:14px 16px; }
  .community-profile-page .com-server-art { width:56px; height:36px; }
  .community-profile-page .com-server-state { grid-column:2; }
  .community-profile-page .com-server-actions { grid-column:2; align-items:flex-start; }
}


.community-follow-text {
  display: inline-flex;
  align-items: baseline;
  gap: 6px;
  padding: 0;
  border: 0;
  background: none;
  color: var(--text-mid);
  font: 600 .84rem/1.2 var(--sans);
  cursor: pointer;
  text-decoration: none;
}
.community-follow-text:hover, .community-follow-text.on { color: var(--text-hi); }
.community-follow-text span { color: var(--text-dim); font-weight: 600; }





/* hq-supporter-size */
.hq-supporter {
  display: block !important;
  width: 125px !important;
  height: 125px !important;
  max-width: 125px !important;
  max-height: 125px !important;
  margin: 10px 0 4px !important;
  object-fit: contain;
}
.com-row .hq-supporter,
.com-card .hq-supporter,
.com-server-copy .hq-supporter,
.com-server-name .hq-supporter,
.user-facts .hq-supporter,
.user-identity .hq-supporter {
  display: inline-block !important;
  width: 28px !important;
  height: 28px !important;
  max-width: 28px !important;
  max-height: 28px !important;
  margin: 0 0 0 8px !important;
}
@media (max-width: 760px) {
  .hq-supporter {
    width: 96px !important;
    height: 96px !important;
    max-width: 96px !important;
    max-height: 96px !important;
  }
}

.community-profile-page .com-server-supporter { display:grid; place-items:center; min-height:40px; }
.community-profile-page .com-server-supporter .hq-supporter {
  width: 36px !important; height: 36px !important; max-width: 36px !important; max-height: 36px !important; margin: 0 !important;
}

.hq-supporter-label {
  color: var(--accent, #E4572E);
  font: 700 .62rem/1 var(--mono);
  letter-spacing: .12em;
  text-transform: uppercase;
  white-space: nowrap;
}
.com-row-cell.c-supporter { justify-items: start; }
.community-profile-page .com-server-supporter { justify-items: start; min-width: 0; }

/* hq-supporter-under-mark */
.community-profile-page .community-profile-mark { display:flex; flex-direction:column; align-items:center; gap:10px; }
.community-profile-page .community-profile-mark .hq-supporter {
  width:125px !important; height:125px !important; max-width:125px !important; max-height:125px !important; margin:0 !important;
}
@media (max-width:760px) {
  .community-profile-page .community-profile-mark .hq-supporter { width:72px !important; height:72px !important; max-width:72px !important; max-height:72px !important; }
}
