/* Revision150: relationship pages only; shared follow behavior lives in follow.js. */
.cw-relations-page {
    --relation-text: #171717;
    --relation-muted: #666;
    --relation-line: #ededed;
    display: grid;
    grid-template-columns: 220px minmax(0, 1fr);
    align-items: start;
    gap: 64px;
    width: min(100%, 1120px);
    margin: 0 auto;
    padding: 48px 32px 80px;
    box-sizing: border-box;
    color: var(--relation-text);
}
.cw-relations-page a { color: inherit; text-decoration: none; }
.cw-relations-back { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; flex-shrink: 0; border-radius: 50%; }
.cw-relations-heading { margin: 4px 0 24px; }
.cw-relations-heading > div { min-width: 0; }
.cw-relations-heading h1 { margin: 0; font-size: 28px; font-weight: 650; line-height: 1.4; letter-spacing: -.02em; overflow-wrap: anywhere; }
.cw-relations-tabs { display: flex; gap: 32px; border-bottom: 1px solid var(--relation-line); }
.cw-relations-tabs a { display: inline-flex; gap: 8px; justify-content: center; align-items: center; min-width: 44px; min-height: 48px; border-bottom: 2px solid transparent; color: var(--relation-muted); font-size: 15px; }
.cw-relations-tabs a[aria-current="page"] { border-color: var(--relation-text); color: var(--relation-text); font-weight: 600; }
.cw-relations-page .cw-follow-list__header { display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: 8px; padding: 8px 0; }
/* The count is visible in the tab; preserve the section heading for screen readers. */
.cw-relations-page .cw-follow-list__title { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.cw-relations-page [data-relation-view="followers"] .cw-follow-list__header { padding: 0; }
.cw-relations-page .cw-follow-list__sort { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-size: 13px; }
.cw-relations-page .cw-follow-list__sort select,
.cw-relations-page .cw-follow-list__sort button { min-height: 44px; border: 0; border-radius: 6px; padding: 0 8px; background: transparent; color: var(--relation-muted); font: inherit; }
.cw-relations-page .cw-follow-list__sort button { cursor: pointer; }
.cw-relations-page .cw-follow-card { border: 0; }
.cw-relations-page .cw-follow-card__body { display: grid; grid-template-columns: 52px minmax(0, 1fr) auto; align-items: start; gap: 16px; padding: 24px 0; }
.cw-relations-page .cw-follow-card + .cw-follow-card { border-top: 1px solid #f3f3f3; }
.cw-relations-page .cw-follow-card__avatar img { display: block; width: 52px; height: 52px; border-radius: 50%; object-fit: cover; }
.cw-relations-page .cw-follow-card__info { min-width: 0; }
.cw-relations-page .cw-follow-card__name { font-size: 16px; font-weight: 600; overflow-wrap: anywhere; }
.cw-relations-page .cw-follow-card__bio { margin: 7px 0 0; color: var(--relation-muted); font-size: 14px; line-height: 1.65; overflow-wrap: anywhere; white-space: pre-line; }
.cw-relations-page .cw-follow-card__meta { color: var(--relation-muted); font-size: 12px; }
.cw-relations-page .cw-follow-card__action { position: static; display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-width: 100px; min-height: 44px; padding: 0 16px; border: 1px solid #171717; border-radius: 999px; background: #171717; color: white; font-size: 13px; font-weight: 600; cursor: pointer; }
.cw-relations-page .cw-follow-card__action.is-following { background: white; border-color: #ddd; color: #555; }
.cw-relations-page .cw-follow-card__action.confirm-unfollow { border-color: #933; color: #933; }
.cw-relations-page .cw-follow-card__action[aria-busy="true"] { opacity: .55; cursor: wait; }
.cw-relations-page .cw-follow-card__action svg { width: 16px; height: 16px; }
.cw-relations-page .cw-follow-card__action .icon-wrap { display: inline-flex; }
.cw-relations-page .cw-follow-empty { padding: 72px 16px; text-align: center; }
.cw-relations-page .cw-follow-empty__title { font-size: 20px; margin: 0 0 12px; }
.cw-relations-page .cw-follow-empty__description { font-size: 14px; color: var(--relation-muted); line-height: 1.6; }
.cw-relations-page .cw-follow-pagination { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-top: 32px; }
.cw-relations-page .page-numbers { display: inline-flex; align-items: center; justify-content: center; min-width: 44px; min-height: 44px; padding: 0 8px; box-sizing: border-box; border-radius: 8px; }
.cw-relations-page .page-numbers.current { background: #171717; color: white; }
.cw-relations-page :is(a,button,select):focus-visible { outline: 2px solid #398a82; outline-offset: 3px; }
.cw-relations-identity, .cw-relations-content { min-width: 0; }
.cw-relations-identity .cw-relations-back { justify-content: flex-start; width: auto; gap: 8px; margin-bottom: 24px; font-size: 13px; color: var(--relation-muted); }
.cw-relations-owner { display: flex; flex-direction: column; align-items: flex-start; gap: 16px; }
.cw-relations-owner img { display: block; width: 72px; height: 72px; border-radius: 50%; object-fit: cover; }
.cw-relations-owner span { font-size: 20px; line-height: 1.4; font-weight: 650; overflow-wrap: anywhere; }
.cw-relations-owner-bio { margin: 12px 0 0; font-size: 13px; line-height: 1.8; color: var(--relation-muted); overflow-wrap: anywhere; white-space: pre-line; }
.cw-relations-count { font-size: 12px; font-weight: 400; color: var(--relation-muted); font-variant-numeric: tabular-nums; }
@media (max-width: 900px) {
    .cw-relations-page { grid-template-columns: minmax(0, 1fr); gap: 28px; max-width: 760px; padding-top: 24px; }
    .cw-relations-identity .cw-relations-back { margin-bottom: 12px; }
    .cw-relations-owner { flex-direction: row; align-items: center; gap: 12px; }
    .cw-relations-owner img { width: 44px; height: 44px; }
    .cw-relations-owner-bio { display: none; }
    .cw-relations-heading { margin: 0 0 16px; }
    .cw-relations-heading h1 { font-size: 24px; }
}
@media (max-width: 480px) {
    .cw-relations-page { padding: 20px 16px 48px; }
    .cw-relations-heading h1 { font-size: 20px; }
    .cw-relations-heading { margin-bottom: 16px; }
    .cw-relations-page .cw-follow-card__body { grid-template-columns: 40px minmax(0, 1fr) auto; gap: 10px; padding: 18px 0; }
    .cw-relations-page .cw-follow-card__avatar img { width: 40px; height: 40px; }
}

/* Reuse the profile follow component with the shared follow.js controller. */
.cw-relations-page .cw-author-follow-control { margin: 0; display: flex; flex-direction: column; align-items: flex-end; }
.cw-relations-page .cw-author-follow-control__button { display: inline-flex; align-items: center; justify-content: center; min-width: 88px; min-height: 44px; padding: 0 16px; border: 1px solid #111; border-radius: 999px; background: #111; color: #fff; font-size: 13px; font-weight: 600; cursor: pointer; white-space: nowrap; }
.cw-relations-page .cw-author-follow-control__button.is-following { background: transparent; border-color: #ddd; color: #555; }
.cw-relations-page .cw-author-follow-control__button.confirm-unfollow { border-color: #8b3434; color: #8b3434; }
.cw-relations-page .cw-author-follow-control__button[aria-busy="true"] { opacity: .55; cursor: wait; }
.cw-relations-page .creator-follow-status:empty { display: none; }
.cw-relations-page .cw-author-follow-control__button { box-shadow: none; transition: background-color 160ms ease, color 160ms ease; }
@media (prefers-reduced-motion: reduce) {
    .cw-relations-page .cw-author-follow-control__button { transition: none; }
}
@media (hover: hover) {
    .cw-relations-page .cw-follow-card__name:hover { text-decoration: underline; text-underline-offset: 3px; }
    .cw-relations-back:hover,
    .cw-relations-page .cw-follow-list__sort button:hover { background: #f7f7f7; }
}
