/* Claimed profiles use the shared Clan Finder banner and overlapping avatar layout. */
.managed-clan-page .profile-wrap {
  width: min(calc(100% - 2 * clamp(16px, 5vw, 64px)), 1080px);
}
.managed-profile-hero { overflow: hidden; border: 1px solid #ffffff24; border-radius: 4px; background: #0e1518; box-shadow: 0 1px 3px #0003; }
.managed-profile-banner { position: relative; width: 100%; height: 144px; overflow: hidden; border-bottom: 1px solid #ffffff24; background: #151515; }
.managed-profile-banner--empty { background: inherit; border-bottom: 0; }
.managed-profile-banner .profile-hero__banner { position: absolute; z-index: auto; inset: 0; display: block; width: 100%; height: 100%; object-fit: cover; }
.managed-profile-body { padding: 0 20px 28px; }
.managed-profile-top { display: grid; gap: 20px; align-items: start; }
.managed-profile-identity { display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.managed-profile-avatar { position: relative; z-index: 1; flex-shrink: 0; width: 112px; height: 112px; margin: -64px auto 0; overflow: hidden; border: 4px solid #1f1f1f; border-radius: 50%; background: #111; box-shadow: 0 0 0 2px #75c9d366, 0 8px 24px #0004; }
.managed-profile-avatar .clan-sigil { display: block; width: 100%; height: 100%; border: 0; border-radius: 0; }
.managed-profile-avatar .clan-sigil img { display: block; width: 100%; height: 100%; object-fit: cover; filter: none; }
.managed-profile-copy { min-width: 0; }
.managed-profile-title { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.managed-profile-title h1 { margin: 0; font-size: clamp(28px, 3vw, 36px); line-height: 1.15; font-weight: 900; letter-spacing: -.025em; overflow-wrap: anywhere; }
.managed-profile-title .listing-state { font-size: 10px; letter-spacing: .025em; }
.managed-profile-summary { margin: 8px 0 0; max-width: 48rem; font-size: 18px; font-weight: 600; line-height: 28px; color: #b4b6b5; overflow-wrap: anywhere; }
.managed-profile-meta { display: flex; flex-wrap: wrap; gap: 8px; margin: 16px 0 0; }
.managed-profile-meta > div { min-width: 0; padding: 8px 12px; border: 1px solid #ffffff24; border-radius: 4px; background: #0a1114; }
.managed-profile-meta dt { font-size: 10px; font-weight: 700; color: #8c999e; text-transform: uppercase; }
.managed-profile-meta dd { margin: 4px 0 0; font-size: 14px; line-height: 20px; font-weight: 700; overflow-wrap: anywhere; }
.managed-profile-hero .managed-profile-actions { display: flex; flex-flow: row wrap; align-items: flex-start; justify-content: flex-start; gap: 8px; width: auto; min-width: 0; }
.managed-profile-actions .button, .managed-profile-actions .community-action, .managed-profile-actions .text-action { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; width: auto; padding: 8px 12px; border: 1px solid #ffffff24; border-radius: 6px; background: #0c1316; color: #d8dedd; font: inherit; font-size: 14px; font-weight: 650; line-height: 20px; letter-spacing: 0; text-transform: none; text-decoration: none; }
.managed-profile-actions .discord-button { border-color: #75c9d35c; color: var(--cyan); }
.managed-profile-actions .community-actions--profile { display: contents; }
.managed-profile-actions .community-actions--profile .community-action { flex-direction: row; flex: 0 0 auto; gap: 8px; padding: 8px 12px; border: 1px solid #ffffff24; }
.managed-profile-actions .compare-toggle { order: 0; flex: 0 0 auto; width: auto; }
.managed-profile-actions .discord-button { flex: 0 0 auto; white-space: nowrap; }
.managed-profile-actions .community-action svg { width: 16px; height: 16px; }
.managed-profile-actions .community-action span { display: inline; }
.managed-profile-actions .community-action strong { font-size: 12px; }
.managed-profile-actions .profile-action-links { display: contents; }
.managed-profile-actions .button:hover, .managed-profile-actions .community-action:hover, .managed-profile-actions .text-action:hover { border-color: var(--cyan); background: #15252a; }
.managed-profile-stats { display: grid; gap: 12px; margin: 28px 0 0; }
.managed-profile-stats > div { position: relative; display: flex; align-items: center; gap: 12px; min-width: 0; min-height: 96px; padding: 12px; border: 1px solid #ffffff24; border-radius: 6px; background: #0a1114; }
.managed-stat-icon { display: flex; align-items: center; justify-content: center; flex-shrink: 0; width: 48px; height: 48px; border: 1px solid #75c9d34d; border-radius: 4px; color: var(--cyan); background: #111; }
.managed-stat-icon svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.managed-profile-stats dl { min-width: 0; margin: 0; }
.managed-profile-stats dt { font-size: 12px; font-weight: 700; text-transform: uppercase; color: #8c999e; }
.managed-profile-stats dd { margin: 8px 0 0; font-size: 16px; line-height: 22px; font-weight: 800; overflow-wrap: anywhere; }
.managed-clan-page .profile-layout { grid-template-columns: minmax(0,1fr); gap: 24px; align-items: start; margin-top: 24px; }
.managed-clan-page .profile-column { gap: 24px; align-content: start; min-width: 0; }
.managed-clan-page .profile-panel { min-width: 0; padding: 20px; border: 1px solid #ffffff24; border-radius: 4px; background: #0e1518; }
.managed-clan-page .profile-panel h2 { font-size: 20px; line-height: 28px; font-weight: 800; letter-spacing: -.015em; }
.managed-clan-page .profile-panel__copy { margin-top: 12px; font-size: 16px; line-height: 28px; white-space: pre-line; overflow-wrap: anywhere; }
.managed-clan-page .profile-panel .tag-list { margin-top: 16px; }
.managed-clan-page .profile-panel .tag-list li { padding: 6px 10px; font-size: 12px; }
.managed-clan-page .profile-discovery-links { display: flex; flex-wrap: wrap; gap: 8px 12px; margin-top: 20px; padding-top: 16px; border-top: 1px solid var(--line); font-size: 13px; }
.managed-clan-page .profile-discovery-links strong { width: 100%; }
.managed-clan-page .profile-discovery-links a { color: var(--cyan); line-height: 24px; }
/* Recruitment details read as one quiet list, without nested cards. */
.managed-clan-page .recruitment-detail-grid { display: grid; grid-template-columns: minmax(0,1fr); gap: 0; margin-top: 16px; border: 0; background: none; }
.managed-clan-page .recruitment-detail-grid > div { min-width: 0; padding: 16px 0; background: none; }
.managed-clan-page .recruitment-detail-grid > div + div { border-top: 1px solid #ffffff14; }
.managed-clan-page .recruitment-detail-grid > div:first-child { padding-top: 0; }
.managed-clan-page .recruitment-detail-grid > div:last-child { padding-bottom: 0; }
.managed-clan-page .recruitment-detail-grid h3 { margin: 0 0 4px; color: #e1e8e8; font-size: 14px; font-weight: 650; line-height: 22px; letter-spacing: 0; text-transform: none; }
.managed-clan-page .recruitment-detail-grid p { margin: 0; color: #b4c3c8; font-size: 14px; line-height: 23px; white-space: pre-line; overflow-wrap: anywhere; }
.managed-clan-page .profile-facts div { gap: 16px; }
.managed-clan-page .profile-facts dd { overflow-wrap: anywhere; }
/* Match the responsive banner proportions in the owner editor as well. */
.listing-form { grid-template-columns: minmax(0,1fr); }
.listing-form .form-actions { flex-wrap: wrap; }
.listing-form > *, .listing-form .form-field, .listing-form .choice-group { min-width: 0; }
.listing-form input, .listing-form select, .listing-form textarea { min-width: 0; max-width: 100%; }
.media-preview--banner { aspect-ratio: 1184 / 144; }
.media-editor-grid, .media-preview, .media-preview canvas { min-width: 0; max-width: 100%; }
[data-preview-mode="mobile"] .media-preview--banner { width: min(100%,350px); margin-inline: auto; aspect-ratio: 350 / 144; }
.banner-preview-switch { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.banner-preview-switch button { min-height: 44px; padding: 8px 12px; border: 1px solid var(--line); border-radius: 4px; background: #0c1316; color: var(--ink); font: inherit; font-size: 13px; cursor: pointer; }
.banner-preview-switch button[aria-pressed="true"] { border-color: var(--cyan); color: var(--cyan); }
.banner-preview-switch button:focus-visible { outline: 2px solid var(--cyan); outline-offset: 3px; }
@media (min-width: 640px) {
  .managed-profile-banner { height: auto; aspect-ratio: 1184 / 144; }
  .managed-profile-body { padding-inline: 28px; }
  .managed-profile-identity { flex-direction: row; align-items: flex-start; }
  .managed-profile-avatar { width: 144px; height: 144px; margin: -80px 0 0; }
  .managed-profile-copy { padding-top: 24px; }
}
@media (min-width: 768px) {
  .managed-profile-stats { grid-template-columns: repeat(3,minmax(0,1fr)); }
}
@media (min-width: 1024px) {
  .managed-profile-top { grid-template-columns: minmax(0,1fr) 384px; }
  .managed-profile-avatar { width: 160px; height: 160px; margin-top: -96px; }
  .managed-profile-copy { padding-top: 28px; }
  .managed-profile-hero .managed-profile-actions { width: 384px; justify-content: flex-end; padding-top: 28px; }
  .managed-profile-actions .button, .managed-profile-actions .community-action, .managed-profile-actions .text-action { min-height: 40px; }
}
@media (min-width: 1200px) {
  .managed-clan-page .profile-layout { grid-template-columns: minmax(0,1fr) 340px; }
}
@media (min-width: 640px) and (max-width: 1199px) {
  .managed-clan-page .profile-wrap { max-width: 900px; }
}
@media (max-width: 900px) {
  .media-editor-grid { grid-template-columns: minmax(0,1fr); }
}
@media (max-width: 700px) {
  .listing-form .form-grid { grid-template-columns: minmax(0,1fr); }
}
