schema: ai-cjm-component-contract/v1 id: person-card version: 2.0.0 status: stable owner: AI CJM Design purpose: Показывает реального эксперта, его роль, специализацию и путь к профилю. use_when: - Нужно показать преподавателя, спикера, автора или команду. evidence: - id: production-style url: https://aicjm.ru/edu/shared/person-card.css?v=20260812-unified-person-cards locator: .person-card, .person-card__media, .person-card__portrait, .person-card__body supports: - anatomy - variant:default - size:default - state:default - id: production-dom url: https://aicjm.ru/edu/teachers/ locator: .teachers-grid .person-card supports: - approved-example - content anatomy: - id: portrait required: true role: Проверенный портрет с индивидуальным crop. - id: category required: true role: Роль в экосистеме. - id: name required: true role: Настоящее имя. - id: position required: true role: Проверенная специализация. - id: profile-link required: true role: Один переход к профилю. variants: - id: default status: stable description: Каноническая композиция v2. evidence_refs: - production-style sizes: - id: default status: stable description: Размер следует токенам и содержимому без локальных чисел. evidence_refs: - production-style states: default: status: stable basis: observed description: person-card default is observed at the exact production locator. evidence_refs: - production-style hover: status: not-applicable basis: not-applicable description: hover is not owned by person-card. focus-visible: status: not-applicable basis: not-applicable description: focus-visible is not owned by person-card. active: status: not-applicable basis: not-applicable description: active is not owned by person-card. selected: status: not-applicable basis: not-applicable description: selected is not owned by person-card. open: status: not-applicable basis: not-applicable description: open is not owned by person-card. disabled: status: not-applicable basis: not-applicable description: disabled is not owned by person-card. loading: status: not-applicable basis: not-applicable description: loading is not owned by person-card. success: status: not-applicable basis: not-applicable description: success is not owned by person-card. error: status: not-applicable basis: not-applicable description: error is not owned by person-card. empty: status: not-applicable basis: not-applicable description: empty is not owned by person-card. responsive: mode: portrait-card-to-single-column reading_order: 'person-card: DOM order remains authoritative at every viewport.' rules: - Preserve person-card anatomy and primary action in one reading sequence. - Wrap text without horizontal page overflow and preserve evidence labels. accessibility: pattern: linked-person-profile semantics: - Expose person-card as the nearest correct native landmark, article or control. keyboard: - Tab reaches real actions in DOM order; Enter or Space follows the native control contract. focus: - Interactive descendants use focus.ring and preserve a visible label. motion: - Reduced motion removes nonessential transitions without hiding state or evidence. tokens: - component.card.background - component.card.text - component.card.border - text.secondary - action.primary - focus.ring content: required: - Проверенный портрет с индивидуальным crop. - Роль в экосистеме. - Настоящее имя. - Проверенная специализация. - Один переход к профилю. constraints: - Сохранять реальный портрет, имя и доказанную роль. - Каждый факт и asset сохраняет provenance. do: - Сохранять реальный портрет, имя и доказанную роль. dont: - Не выдумывать регалии и не применять один crop ко всем. examples: approved: status: stable description: Live person-card at the scoped production locator. evidence: https://aicjm.ru/edu/teachers/ prohibited: description: Не выдумывать регалии и не применять один crop ко всем. acceptance: - id: person-card-1 criterion: Все обязательные anatomy parts присутствуют в DOM и видимы. method: automated-and-manual - id: person-card-2 criterion: На mobile сохраняются reading order, target size и отсутствие overflow. method: browser