schema: ai-cjm-component-contract/v1 id: program-card version: 2.0.0 status: stable owner: AI CJM Design purpose: Объясняет формат программы через аудиторию, рабочий процесс и результат. use_when: - Сравниваются программы, форматы обучения или продуктовые пакеты. evidence: - id: production-style url: https://aicjm.ru/edu/styles.css?v=20260811-edu-canon locator: .format-grid article, .format-grid h3, .format-grid p supports: - anatomy - variant:default - size:default - state:default - id: production-dom url: https://aicjm.ru/edu/ locator: .formats .format-grid article supports: - approved-example - content anatomy: - id: format required: true role: Название программы или формата. - id: audience required: true role: Для кого предназначено. - id: work required: true role: Что происходит внутри. - id: output required: true role: Что остаётся у команды. - id: action required: false role: Переход к форме или detail. 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: program-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 program-card. focus-visible: status: not-applicable basis: not-applicable description: focus-visible is not owned by program-card. active: status: not-applicable basis: not-applicable description: active is not owned by program-card. selected: status: not-applicable basis: not-applicable description: selected is not owned by program-card. open: status: not-applicable basis: not-applicable description: open is not owned by program-card. disabled: status: not-applicable basis: not-applicable description: disabled is not owned by program-card. loading: status: not-applicable basis: not-applicable description: loading is not owned by program-card. success: status: not-applicable basis: not-applicable description: success is not owned by program-card. error: status: not-applicable basis: not-applicable description: error is not owned by program-card. empty: status: not-applicable basis: not-applicable description: empty is not owned by program-card. responsive: mode: program-grid-to-reading-stack reading_order: 'program-card: DOM order remains authoritative at every viewport.' rules: - Preserve program-card anatomy and primary action in one reading sequence. - Wrap text without horizontal page overflow and preserve evidence labels. accessibility: pattern: program-summary-article semantics: - Expose program-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 - type.size.heading-small - action.primary content: required: - Название программы или формата. - Для кого предназначено. - Что происходит внутри. - Что остаётся у команды. constraints: - Формулировать наблюдаемый output программы. - Каждый факт и asset сохраняет provenance. do: - Формулировать наблюдаемый output программы. dont: - Не заменять описание абстрактным названием тарифа. examples: approved: status: stable description: Live program-card at the scoped production locator. evidence: https://aicjm.ru/edu/ prohibited: description: Не заменять описание абстрактным названием тарифа. acceptance: - id: program-card-1 criterion: Все обязательные anatomy parts присутствуют в DOM и видимы. method: automated-and-manual - id: program-card-2 criterion: На mobile сохраняются reading order, target size и отсутствие overflow. method: browser