/* Curated public profile and the owner editor share the profile design tokens. */
.profile-featured-heading { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: var(--ds-space-3); margin-bottom: var(--ds-space-4); }
.profile-featured-heading h2 { margin: 0; }
.profile-memory-tabs { display: inline-flex; flex-wrap: wrap; gap: var(--ds-space-1); padding: var(--ds-space-1); margin-bottom: var(--ds-space-4); border-radius: var(--ds-radius-md); background: var(--ds-surface); }
.profile-memory-tabs a { display: inline-flex; align-items: center; justify-content: center; min-height: var(--ds-space-12); padding: var(--ds-space-2) var(--ds-space-4); color: var(--ds-ink-soft); border-radius: var(--ds-radius-sm); text-decoration: none; font-weight: 600; }
.profile-memory-tabs a[aria-current] { color: var(--ds-ink); background: var(--ds-card); box-shadow: var(--ds-shadow-card); }
.profile-featured-description { margin: 0 0 var(--ds-space-6); color: var(--ds-ink-soft); }
.profile-featured-main { max-width: 960px; }
.profile-featured-title { margin: 0 0 var(--ds-space-3); font-family: Montserrat, sans-serif; font-size: var(--ds-font-size-h1); line-height: var(--ds-line-height-h1); }
.profile-featured-section { margin-top: var(--ds-space-8); padding-top: var(--ds-space-6); border-top: 1px solid var(--ds-line); }
.profile-featured-section h2 { font-family: Montserrat, sans-serif; font-size: var(--ds-font-size-h3); line-height: var(--ds-line-height-h3); }
.profile-featured-help { display: block; color: var(--ds-ink-soft); font-size: var(--ds-font-size-bodySm); line-height: var(--ds-line-height-bodySm); margin-top: var(--ds-space-1); }
.profile-featured-mode { display: flex; align-items: flex-start; gap: var(--ds-space-3); padding: var(--ds-space-4); border: 1px solid var(--ds-input-border); border-radius: var(--ds-radius-md); cursor: pointer; }
.profile-featured-mode input, .profile-featured-selected-label input, .profile-featured-choice input { flex: none; width: var(--ds-space-5); height: var(--ds-space-5); accent-color: var(--ds-brand-strong); }
.profile-featured-selection { list-style: none; padding: 0; margin: var(--ds-space-4) 0; display: flex; flex-direction: column; gap: var(--ds-space-3); }
.profile-featured-selection li { display: flex; align-items: center; flex-wrap: wrap; justify-content: space-between; gap: var(--ds-space-2); padding: var(--ds-space-3); border: 1px solid var(--ds-line); border-radius: var(--ds-radius-md); background: var(--ds-card); }
.profile-featured-selected-label { display: flex; align-items: center; flex: 1 1 220px; gap: var(--ds-space-3); min-height: var(--ds-space-12); cursor: pointer; min-width: 0; }
.profile-featured-position { font-variant-numeric: tabular-nums; color: var(--ds-ink-soft); }
.profile-featured-selected-title { min-width: 0; overflow-wrap: anywhere; font-weight: 600; }
.profile-featured-order-controls { display: none; flex-wrap: wrap; gap: var(--ds-space-1); }
[data-enhanced] .profile-featured-order-controls { display: flex; }
.profile-featured-order-controls button { min-height: var(--ds-space-12); padding: var(--ds-space-2); border: 0; border-radius: var(--ds-radius-sm); background: var(--ds-surface); color: var(--ds-link); font: inherit; font-size: var(--ds-font-size-bodySm); cursor: pointer; }
.profile-featured-order-controls button:disabled { color: var(--ds-ink-soft); opacity: .65; cursor: default; }
.profile-featured-search { margin-bottom: var(--ds-space-5); }
.profile-featured-search label { display: block; margin-bottom: var(--ds-space-2); font-weight: 600; }
.profile-featured-search > div { display: flex; gap: var(--ds-space-2); }
.profile-featured-search input { min-width: 0; flex: 1; border: 1px solid var(--ds-input-border); border-radius: var(--ds-radius-sm); padding: var(--ds-space-3); color: var(--ds-ink); background: var(--ds-card); font: inherit; }
.profile-featured-search button { background: var(--ds-card); font: inherit; cursor: pointer; }
.profile-featured-candidate { display: flex; flex-direction: column; height: 100%; gap: var(--ds-space-2); padding: var(--ds-space-2); border: 1px solid var(--ds-line); border-radius: var(--ds-radius-md); cursor: pointer; }
.profile-featured-candidate:has(input:checked) { border-color: var(--ds-brand-strong); }
.profile-featured-choice { display: flex; align-items: center; gap: var(--ds-space-2); min-height: var(--ds-space-12); margin-top: auto; color: var(--ds-link); font-size: var(--ds-font-size-bodySm); }
.profile-featured-pagination { display: flex; align-items: center; flex-wrap: wrap; gap: var(--ds-space-3); margin-top: var(--ds-space-5); }
.profile-featured-pagination span { color: var(--ds-ink-soft); font-size: var(--ds-font-size-bodySm); }
.profile-featured-actions { position: sticky; bottom: 0; display: flex; flex-wrap: wrap; gap: var(--ds-space-3); padding: var(--ds-space-4) 0; background: var(--ds-card); border-top: 1px solid var(--ds-line); }
.profile-featured-save { min-height: var(--ds-space-12); padding: var(--ds-space-3) var(--ds-space-5); border: 0; border-radius: var(--ds-radius-md); color: var(--ds-on-cta); background: var(--ds-brand); font: inherit; font-weight: 600; cursor: pointer; }
.profile-featured-save:hover { background: var(--ds-brand-hover); }
.profile-featured-error { color: var(--ds-error-text); padding: var(--ds-space-4); margin-bottom: var(--ds-space-4); border: 1px solid currentColor; border-radius: var(--ds-radius-sm); }
.profile-featured-notice { color: var(--ds-ink-soft); }
.profile-featured-live { min-height: var(--ds-space-6); margin-top: var(--ds-space-4); color: var(--ds-ink-soft); }
.public-profile-page :is(button, input):focus-visible { outline: 3px solid var(--ds-focus); outline-offset: var(--ds-space-1); }
.public-profile-page [hidden] { display: none !important; }
@media (max-width: 812px) {
  .profile-featured-main .public-profile-body { padding: var(--ds-space-4); }
  .profile-featured-selection li { flex-direction: column; align-items: stretch; }
  .profile-featured-selected-label { flex-basis: auto; }
  .profile-featured-order-controls { justify-content: space-between; }
  .profile-featured-heading > .public-profile-edit { width: 100%; }
}
