// Method8 — demo · Operating Model Health Survey content (from the workbook).
// 24 questions across the 5 expectations; the 5-point Likert with descriptors.

const SURVEY_SCALE = [
  { n: 1, label: 'Strongly disagree', desc: 'We have major gaps in meeting this expectation.', color: '#f04438' },
  { n: 2, label: 'Disagree', desc: 'We have several gaps in meeting this expectation.', color: '#f97316' },
  { n: 3, label: 'Not sure', desc: 'I am uncertain whether we meet this expectation.', color: '#fdb022' },
  { n: 4, label: 'Agree', desc: 'We mostly meet this expectation, with only minor gaps.', color: '#47cd89' },
  { n: 5, label: 'Strongly agree', desc: 'We fully meet this expectation.', color: '#17b26a' },
];

// per-expectation: score = % agreement (4–5), each question carries its own score
const SURVEY = [
  { id: 'vdo', name: 'Value Delivery & Organisation', score: 87, accent: '#2e90fa', tint: '#eff8ff',
    questions: [
      { id: 'VDO-1', sub: 'Overall expectation', q: 'Our organisation / team operates with clearly defined and understood mandates, services, decisions, interfaces and role accountabilities.', score: 86, overall: true },
      { id: 'VDO-2', sub: 'Mandate', q: 'Our team’s mandate is clearly defined and understood.', score: 94 },
      { id: 'VDO-3', sub: 'Services', q: 'The services our team provides are clearly defined and understood by stakeholders.', score: 91 },
      { id: 'VDO-4', sub: 'Critical Decisions', q: 'Critical decisions are clearly assigned and consistently made by the appropriate people.', score: 79 },
      { id: 'VDO-5', sub: 'Interfaces', q: 'Key interfaces with other teams are clearly defined and effectively managed.', score: 71 },
      { id: 'VDO-6', sub: 'Roles & Accountabilities', q: 'Roles and accountabilities are clearly defined.', score: 88 },
      { id: 'VDO-7', sub: 'Position Descriptions', q: 'Position descriptions accurately reflect responsibilities and expectations.', score: 90 },
      { id: 'VDO-8', sub: 'Structure', q: 'Our organisational structure effectively supports delivery of our mandate.', score: 85 },
    ]},
  { id: 'gs', name: 'Governance & Standards', score: 84, accent: '#0ba5ec', tint: '#f0f9ff',
    questions: [
      { id: 'GS-1', sub: 'Overall expectation', q: 'Our standards, material risks and critical documentation are clearly defined, owned and applied.', score: 84, overall: true },
      { id: 'GS-2', sub: 'Enterprise Standards', q: 'Enterprise standards relevant to our work are clearly understood and consistently applied.', score: 90 },
      { id: 'GS-3', sub: 'Critical Documentation', q: 'Critical documentation is current, accessible and maintained.', score: 72 },
      { id: 'GS-4', sub: 'Material Risks & Owners', q: 'Material risks have clear ownership and are actively managed.', score: 86 },
    ]},
  { id: 'cp', name: 'Critical Processes', score: 67, accent: '#17b26a', tint: '#f0fdf4',
    questions: [
      { id: 'CP-1', sub: 'Overall expectation', q: 'Our critical processes are clearly defined, owned and consistently executed to deliver our mandate.', score: 67, overall: true },
      { id: 'CP-2', sub: 'Critical Processes & Owners', q: 'Critical processes have clearly assigned owners and accountabilities.', score: 71 },
      { id: 'CP-3', sub: 'RACI', q: 'Roles and responsibilities within critical processes are clearly defined and understood.', score: 62 },
    ]},
  { id: 'tech', name: 'Technology', score: 92, accent: '#d444f1', tint: '#fdf4ff',
    questions: [
      { id: 'TECH-1', sub: 'Overall expectation', q: 'Our digital tools, applications and reporting are fit-for-purpose, clearly owned and support performance.', score: 92, overall: true },
      { id: 'TECH-2', sub: 'Applications', q: 'Our applications effectively support how work is performed.', score: 94 },
      { id: 'TECH-3', sub: 'Digital Tools', q: 'Digital tools are fit-for-purpose and enable efficient execution of work.', score: 93 },
      { id: 'TECH-4', sub: 'Reporting', q: 'Reporting provides accurate, timely and useful information for decision-making.', score: 88 },
    ]},
  { id: 'pmr', name: 'Performance Management & Routines', score: 64, accent: '#ef6820', tint: '#fff6ed',
    questions: [
      { id: 'PMR-1', sub: 'Overall expectation', q: 'We operate with clear performance metrics and disciplined routines that drive accountability and continuous improvement.', score: 64, overall: true },
      { id: 'PMR-2', sub: 'Metrics', q: 'Performance metrics clearly measure success and support decision-making.', score: 58 },
      { id: 'PMR-3', sub: 'Scorecards', q: 'Scorecards provide meaningful visibility of performance.', score: 61 },
      { id: 'PMR-4', sub: 'Service Level Agreements', q: 'Service level agreements or performance commitments are clearly defined and monitored.', score: 55 },
      { id: 'PMR-5', sub: 'Meeting Routines', q: 'Meeting routines are effective and support accountability, coordination and improvement.', score: 78 },
    ]},
];

const SURVEY_TOTAL_Q = SURVEY.reduce((n, e) => n + e.questions.length, 0);

Object.assign(window, { SURVEY, SURVEY_SCALE, SURVEY_TOTAL_Q });
