// Method8 — demo · Interface Health Assessment slides + agenda.
// Identical workshop structure to the Health Assessment, driven by the real
// Interface Health slide pack (slides 1–13) and the platform upload sheet:
// 5 interface-management best practices, polled one per page.

const IF_LOGO = (
  <span className="sl-logo"><svg viewBox="0 0 40 40" fill="none"><path d="M14 12c-4.4 0-8 3.6-8 8s3.6 8 8 8c2.7 0 5-1.3 6.4-3.4M26 28c4.4 0 8-3.6 8-8s-3.6-8-8-8c-2.7 0-5 1.3-6.4 3.4" stroke="#53B1FD" strokeWidth="3.2" strokeLinecap="round"/></svg> Method8</span>
);

// the five interface-management best practices (slides 8–12)
const IF_EXPS = [
  { num: 1, name: 'Services', color: '#1f6fb2', slideLabel: 'Best practice 1', testsLabel: 'What good looks like',
    icon: <g><rect x="3" y="6" width="8" height="6" rx="1"/><rect x="13" y="12" width="8" height="6" rx="1"/><path d="M11 9h4M9 12v3a2 2 0 0 0 2 2h2"/></g>,
    stmt: 'The services provided between teams are clearly defined and understood by both parties.',
    tests: ['Services are clearly defined and agreed.', 'Both parties have a consistent understanding of the services.', 'Shared understanding enables smooth handoffs.'] },
  { num: 2, name: 'Accountability', color: '#1a7a52', slideLabel: 'Best practice 2', testsLabel: 'What good looks like',
    icon: <g><path d="M12 3l8 4v5c0 5-3.5 8-8 10-4.5-2-8-5-8-10V7z"/><path d="M9 12l2 2 4-4"/></g>,
    stmt: 'Role accountability and decision making is clear and effective across the interface.',
    tests: ['Roles and decision rights are clearly defined.', 'Responsibility and authority are understood with minimal overlap.', 'Decisions are timely and accountabilities are applied / improved.'] },
  { num: 3, name: 'Routines', color: '#6b2f8e', slideLabel: 'Best practice 3', testsLabel: 'What good looks like',
    icon: <g><circle cx="12" cy="12" r="9"/><path d="M12 7v5l3 2"/></g>,
    stmt: 'Teams have regular and effective routines in place to ensure ongoing engagement, feedback and performance.',
    tests: ['Regular routines are in place to coordinate work.', 'Routines are effective and focused on outcomes.', 'Routines drive feedback, actions and improvement.'] },
  { num: 4, name: 'Shared metrics', color: '#b54708', slideLabel: 'Best practice 4', testsLabel: 'What good looks like',
    icon: <g><path d="M4 20V10M10 20V4M16 20v-7M22 20V8"/></g>,
    stmt: 'Shared metrics are clearly defined, visible and monitored to ensure the expected level of performance.',
    tests: ['Shared metrics are clearly defined and owned.', 'Metrics are visible and monitored.', 'Metrics drive performance and actions.'] },
  { num: 5, name: 'Ownership & effectiveness', color: '#e8631a', slideLabel: 'Best practice 5', testsLabel: 'What good looks like',
    icon: <g><circle cx="12" cy="8" r="3"/><path d="M5.5 20a6.5 6.5 0 0 1 13 0"/><path d="M19 5l2 2-2 2"/></g>,
    stmt: 'There is clear ownership to ensure the end-to-end interface is working effectively and improving.',
    tests: ['Clear end-to-end ownership.', 'Performance and risks are actively managed.', 'Continuous improvement is driven.'] },
];

const IF_AGENDA = [
  { ch: '1. Introduction', steps: [
    { k: 'slide', t: 'title', title: 'Introductions', sub: 'Interface Health Assessment', kicker: 'Welcome' },
    { k: 'slide', t: 'bullets', title: 'Objectives', kicker: 'Why we are here', items: [
      'Create a shared understanding of the interface management best practices.',
      'Assess — based on the expertise of the team — alignment to the best practices.',
      'Proactively identify the gap-closure actions with the most impact / value to improve interface management.' ] },
    { k: 'slide', t: 'bullets', title: 'Our Journey Today', kicker: 'Agenda', items: [
      'Build shared understanding of the interface management best practices.',
      'For each best practice, assess alignment, gaps and feedback.',
      'Align on the most value-add gap-closure actions to improve interface management.' ] },
    { k: 'slide', t: 'rules', title: 'Session expectations', kicker: 'Ground rules', sub: 'A shared opportunity to reflect, learn and improve together.', rules: [
      'Work as ONE team.', 'SPEAK UP — share your honest views.', 'Prompt to capture actions and feedback.' ] },
  ]},
  { ch: '2. Shared understanding', steps: [
    { k: 'slide', t: 'bullets', title: 'Build shared understanding', kicker: 'Chapter 2', sub: 'Please SPEAK UP — it is normal to have questions. Let’s work together to create clarity.', items: [
      'We will build our understanding of the 5 interface management best practices.',
      'We will assess our understanding using a team poll.' ] },
    { k: 'slide', t: 'divider', title: 'The five interface management best practices', kicker: 'Building our understanding' },
    { k: 'q', measure: 'Understanding', title: 'I understand the interface best practices that have been outlined today.', dist: [0, 0, 1, 4, 3] },
  ]},
  { ch: '3. Assess alignment', steps: [
    { k: 'slide', t: 'bullets', title: 'Assessing alignment', kicker: 'Chapter 3', sub: 'Use your best judgement — we are seeking perspectives to drive discussion, not perfection.', items: [
      'We will work as a team to assess alignment to these best practices and identify gaps.',
      'Each best practice is introduced, then polled.' ] },
    { k: 'slide', t: 'exp', exp: 0 },
    { k: 'q', measure: 'Services', expRef: 0, title: 'The services, including scope, inputs/outputs, service levels, and supporting tools used to manage the interface between our teams, are clearly defined and consistently understood by both parties.', dist: [0, 2, 3, 3, 0] },
    { k: 'slide', t: 'exp', exp: 1 },
    { k: 'q', measure: 'Accountability', expRef: 1, title: 'Roles, accountabilities, and decision-making authority between our teams are clearly defined, understood, and consistently applied.', dist: [1, 3, 2, 2, 0] },
    { k: 'slide', t: 'exp', exp: 2 },
    { k: 'q', measure: 'Routines', expRef: 2, title: 'There are regular and effective routines in place between our teams that enable ongoing coordination, feedback, and performance management.', dist: [0, 1, 2, 4, 1] },
    { k: 'slide', t: 'exp', exp: 3 },
    { k: 'q', measure: 'Shared metrics', expRef: 3, title: 'Shared metrics between our teams are clearly defined, visible, and actively monitored to manage performance.', dist: [2, 3, 2, 1, 0] },
    { k: 'slide', t: 'exp', exp: 4 },
    { k: 'q', measure: 'Ownership', expRef: 4, title: 'Someone is clearly responsible for ensuring this interface works well, including resolving issues and improving how the teams work together.', dist: [1, 2, 3, 2, 0] },
  ]},
  { ch: '4. Assess performance', steps: [
    { k: 'slide', t: 'bullets', title: 'Assessing performance', kicker: 'Chapter 4', sub: 'Please be open and honest, and ready to discuss any opportunities to strengthen the interface.', items: [
      'We will assess our current performance of the interface to deliver the outcomes expected.' ] },
    { k: 'q', measure: 'Overall', title: 'Today, this interface works effectively between our teams.', dist: [0, 2, 3, 3, 0] },
  ]},
  { ch: '5. Opportunities', steps: [
    { k: 'comment', title: 'What are the 2–3 biggest things that would improve how our interfaces are managed?' },
  ]},
  { ch: '6. Action summary & close-out', steps: [
    { k: 'q', measure: 'Session quality', title: 'Today’s team discussion was high quality and enabled constructive dialogue and feedback that added value.', dist: [0, 0, 1, 3, 4] },
  ]},
];

const IF_STEPS = [];
IF_AGENDA.forEach((c, ci) => c.steps.forEach((s) => IF_STEPS.push({ ...s, chapter: ci })));

Object.assign(window, { IF_AGENDA, IF_STEPS, IF_EXPS, IF_LOGO });
