/* === Demo answer data for the Castle Connolly AI search pitch (v2) === */
/* Pure data. Doctor and dentist names are fictional; everything else (hospitals, insurers,
   schools, cities, program facts, article titles and URLs) is real, captured from
   castleconnolly.com and verified external sources on 2026-09-04. See DATA-SCHEMA.md. */

/* ---------- PROVIDERS (shared pool, keyed by id) ---------- */
/* Sections spread from this pool so the same doctor has the same id/name/facts everywhere
   (needed for Saved and the compare view). Each usage overrides sourceNum, featured and
   enhancedProfile per section, since those are section-specific, not identity facts. */

const PROVIDERS = {
  /* --- Cardiology --- */
  'p-crd-01': {
    id: 'p-crd-01', name: 'Elena Marsh, MD', initials: 'EM', gender: 'F',
    specialty: 'Cardiology', subspecialty: 'Interventional Cardiology',
    programs: ['Top Doctor'], topDoctorSince: 2015, boardCertified: true,
    hospital: 'Massachusetts General Hospital', practice: 'MGH Heart Center',
    address: '55 Fruit St', city: 'Boston', state: 'MA', zip: '02114', distance: '1.5 mi',
    insurance: ['Aetna', 'Blue Cross Blue Shield of MA', 'Cigna', 'Medicare', 'UnitedHealthcare'],
    acceptingNew: true, newPatients: true, telehealth: true, nextAvailable: 'Tue, Sep 15',
    bookOnline: true, eveningHours: false,
    phone: '(617) 555-0142', languages: ['English', 'Spanish'],
    education: 'Harvard Medical School', residency: 'Massachusetts General Hospital', yearsExperience: 19,
    profileUrl: 'https://www.castleconnolly.com/doctors/elena-marsh-cardiology',
  },
  'p-crd-02': {
    id: 'p-crd-02', name: 'Daniel Osei, MD', initials: 'DO', gender: 'M',
    specialty: 'Cardiology', subspecialty: 'Cardiac Electrophysiology',
    programs: ['Top Doctor'], topDoctorSince: 2011, boardCertified: true,
    hospital: 'Brigham and Women\'s Hospital', practice: 'Brigham and Women\'s Heart & Vascular Center',
    address: '75 Francis St', city: 'Boston', state: 'MA', zip: '02115', distance: '2.2 mi',
    insurance: ['Aetna', 'Blue Cross Blue Shield of MA', 'Harvard Pilgrim', 'Medicare'],
    acceptingNew: true, newPatients: true, telehealth: true, nextAvailable: 'Thu, Sep 17',
    bookOnline: true, eveningHours: true,
    phone: '(617) 555-0187', languages: ['English'],
    education: 'Yale School of Medicine', residency: 'Brigham and Women\'s Hospital', yearsExperience: 23,
    profileUrl: 'https://www.castleconnolly.com/doctors/daniel-osei-cardiology',
  },
  'p-crd-03': {
    id: 'p-crd-03', name: 'Priya Raman, MD', initials: 'PR', gender: 'F',
    specialty: 'Cardiology', subspecialty: 'General Cardiology',
    programs: ['Top Doctor'], topDoctorSince: 2019, boardCertified: true,
    hospital: 'Beth Israel Deaconess Medical Center', practice: 'CardioVascular Institute',
    address: '330 Brookline Ave', city: 'Boston', state: 'MA', zip: '02215', distance: '2.4 mi',
    insurance: ['Aetna', 'Cigna', 'UnitedHealthcare', 'Tufts Health Plan'],
    acceptingNew: true, newPatients: true, telehealth: false, nextAvailable: 'Mon, Sep 21',
    bookOnline: true, eveningHours: false,
    phone: '(617) 555-0164', languages: ['English', 'Hindi'],
    education: 'Johns Hopkins University School of Medicine', residency: 'Beth Israel Deaconess Medical Center', yearsExperience: 12,
    profileUrl: 'https://www.castleconnolly.com/doctors/priya-raman-cardiology',
  },
  'p-crd-04': {
    id: 'p-crd-04', name: 'Marcus Whitfield, MD', initials: 'MW', gender: 'M',
    specialty: 'Cardiology', subspecialty: 'Interventional Cardiology',
    programs: ['Top Doctor'], topDoctorSince: 2008, boardCertified: true,
    hospital: 'Tufts Medical Center', practice: 'Tufts Medical Center CardioVascular Center',
    address: '800 Washington St', city: 'Boston', state: 'MA', zip: '02111', distance: '0.9 mi',
    insurance: ['Blue Cross Blue Shield of MA', 'Cigna', 'Medicare', 'Medicaid'],
    acceptingNew: false, newPatients: false, telehealth: true, nextAvailable: 'Fri, Oct 2',
    bookOnline: false, eveningHours: false,
    phone: '(617) 555-0119', languages: ['English'],
    education: 'Tufts University School of Medicine', residency: 'Tufts Medical Center', yearsExperience: 27,
    profileUrl: 'https://www.castleconnolly.com/doctors/marcus-whitfield-cardiology',
  },
  'p-crd-05': {
    id: 'p-crd-05', name: 'Sofia Delgado, MD', initials: 'SD', gender: 'F',
    specialty: 'Cardiology', subspecialty: 'Non-Invasive Cardiology',
    programs: [], boardCertified: true,
    hospital: 'Boston Medical Center', practice: 'Boston Medical Center Cardiology',
    address: '1 Boston Medical Center Pl', city: 'Boston', state: 'MA', zip: '02118', distance: '1.6 mi',
    insurance: ['Aetna', 'MassHealth', 'UnitedHealthcare'],
    acceptingNew: true, newPatients: true, telehealth: true, nextAvailable: 'Wed, Sep 16',
    bookOnline: false, eveningHours: true,
    phone: '(617) 555-0173', languages: ['English', 'Spanish', 'Portuguese'],
    education: 'Boston University School of Medicine', residency: 'Boston Medical Center', yearsExperience: 8,
    profileUrl: 'https://www.castleconnolly.com/doctors/sofia-delgado-cardiology',
  },
  'p-crd-06': {
    id: 'p-crd-06', name: 'Grace Okafor, MD', initials: 'GO', gender: 'F',
    specialty: 'Cardiology', subspecialty: 'General Cardiology',
    programs: ['Top Doctor'], topDoctorSince: 2016, boardCertified: true,
    hospital: 'Mount Auburn Hospital', practice: 'Mount Auburn Heart & Vascular',
    address: '330 Mt Auburn St', city: 'Cambridge', state: 'MA', zip: '02138', distance: '3.5 mi',
    insurance: ['Aetna', 'Blue Cross Blue Shield of MA', 'Cigna', 'Medicare'],
    acceptingNew: true, newPatients: true, telehealth: false, nextAvailable: 'Thu, Sep 24',
    bookOnline: false, eveningHours: false,
    phone: '(617) 555-0128', languages: ['English', 'Yoruba'],
    education: 'Case Western Reserve University School of Medicine', residency: 'Mount Auburn Hospital', yearsExperience: 14,
    profileUrl: 'https://www.castleconnolly.com/doctors/grace-okafor-cardiology',
  },
  'p-crd-07': {
    id: 'p-crd-07', name: 'Owen Bianchi, MD', initials: 'OB', gender: 'M',
    specialty: 'Cardiology', subspecialty: 'General Cardiology',
    programs: [], boardCertified: true,
    hospital: 'Newton-Wellesley Hospital', practice: 'Newton-Wellesley Cardiology Associates',
    address: '2014 Washington St', city: 'Newton', state: 'MA', zip: '02462', distance: '9.5 mi',
    insurance: ['Cigna', 'UnitedHealthcare', 'Tufts Health Plan'],
    acceptingNew: true, newPatients: true, telehealth: false, nextAvailable: 'Mon, Sep 28',
    bookOnline: false, eveningHours: false,
    phone: '(617) 555-0136', languages: ['English', 'Italian'],
    education: 'Boston University School of Medicine', residency: 'Newton-Wellesley Hospital', yearsExperience: 10,
    profileUrl: 'https://www.castleconnolly.com/doctors/owen-bianchi-cardiology',
  },
  'p-crd-08': {
    id: 'p-crd-08', name: 'Anthony Reyes, MD', initials: 'AR', gender: 'M',
    specialty: 'Cardiology', subspecialty: 'Non-Invasive Cardiology',
    programs: ['Top Doctor'], topDoctorSince: 2012, boardCertified: true,
    hospital: 'Massachusetts General Hospital', practice: 'MGH Cardiology Associates',
    address: '55 Fruit St', city: 'Boston', state: 'MA', zip: '02114', distance: '1.5 mi',
    insurance: ['Aetna', 'Cigna', 'UnitedHealthcare', 'Tufts Health Plan'],
    acceptingNew: true, newPatients: true, telehealth: true, nextAvailable: 'Sat, Sep 12',
    bookOnline: true, eveningHours: true,
    phone: '(617) 555-0195', languages: ['English', 'Tagalog'],
    education: 'Boston University School of Medicine', residency: 'Massachusetts General Hospital', yearsExperience: 16,
    profileUrl: 'https://www.castleconnolly.com/doctors/anthony-reyes-cardiology',
  },
  'p-crd-09': {
    id: 'p-crd-09', name: 'Kwame Yeboah, MD', initials: 'KY', gender: 'M',
    specialty: 'Cardiology', subspecialty: 'Interventional Cardiology',
    programs: ['Top Doctor'], topDoctorSince: 2013, boardCertified: true,
    hospital: 'Boston Medical Center', practice: 'Boston Medical Center Cardiology',
    address: '1 Boston Medical Center Pl', city: 'Boston', state: 'MA', zip: '02118', distance: '1.6 mi',
    insurance: ['Aetna', 'MassHealth', 'Blue Cross Blue Shield of MA'],
    acceptingNew: true, newPatients: true, telehealth: true, nextAvailable: 'Fri, Sep 18',
    bookOnline: true, eveningHours: false,
    phone: '(617) 555-0184', languages: ['English', 'Twi'],
    education: 'Howard University College of Medicine', residency: 'Boston Medical Center', yearsExperience: 20,
    profileUrl: 'https://www.castleconnolly.com/doctors/marcus-yeboah-cardiology',
  },

  /* --- Pediatrics --- */
  'p-ped-01': {
    id: 'p-ped-01', name: 'Whitney Park, MD', initials: 'WP', gender: 'F',
    specialty: 'Pediatrics', subspecialty: 'General Pediatrics',
    programs: ['Top Doctor'], topDoctorSince: 2017, boardCertified: true,
    hospital: 'Boston Children\'s Hospital', practice: 'Boston Children\'s Primary Care at Longwood',
    address: '300 Longwood Ave', city: 'Boston', state: 'MA', zip: '02115', distance: '2.3 mi',
    insurance: ['Blue Cross Blue Shield of MA', 'Aetna', 'UnitedHealthcare'],
    acceptingNew: true, newPatients: true, telehealth: true, nextAvailable: 'Mon, Sep 14',
    bookOnline: true, eveningHours: false,
    phone: '(617) 555-0211', languages: ['English', 'Mandarin'],
    education: 'Stanford University School of Medicine', residency: 'Boston Children\'s Hospital', yearsExperience: 11,
    profileUrl: 'https://www.castleconnolly.com/doctors/whitney-park-pediatrics',
  },
  'p-ped-02': {
    id: 'p-ped-02', name: 'Julian Ferreira, MD', initials: 'JF', gender: 'M',
    specialty: 'Pediatrics', subspecialty: 'General Pediatrics',
    programs: ['Top Doctor'], topDoctorSince: 2013, boardCertified: true,
    hospital: 'MassGeneral Hospital for Children', practice: 'MassGeneral Hospital for Children Pediatrics',
    address: '55 Fruit St', city: 'Boston', state: 'MA', zip: '02114', distance: '1.5 mi',
    insurance: ['Blue Cross Blue Shield of MA', 'Cigna', 'Medicaid'],
    acceptingNew: true, newPatients: true, telehealth: true, nextAvailable: 'Wed, Sep 16',
    bookOnline: true, eveningHours: false,
    phone: '(617) 555-0224', languages: ['English', 'Portuguese'],
    education: 'University of Massachusetts Chan Medical School', residency: 'MassGeneral Hospital for Children', yearsExperience: 15,
    profileUrl: 'https://www.castleconnolly.com/doctors/julian-ferreira-pediatrics',
  },
  'p-ped-03': {
    id: 'p-ped-03', name: 'Aisha Bello, MD', initials: 'AB', gender: 'F',
    specialty: 'Pediatrics', subspecialty: 'General Pediatrics',
    programs: ['Top Doctor'], topDoctorSince: 2018, boardCertified: true,
    hospital: 'Tufts Children\'s Hospital', practice: 'Tufts Children\'s Hospital Pediatrics',
    address: '800 Washington St', city: 'Boston', state: 'MA', zip: '02111', distance: '0.9 mi',
    insurance: ['Blue Cross Blue Shield of MA', 'Aetna', 'Harvard Pilgrim'],
    acceptingNew: true, newPatients: true, telehealth: true, nextAvailable: 'Fri, Sep 18',
    bookOnline: true, eveningHours: true,
    phone: '(617) 555-0237', languages: ['English', 'Yoruba'],
    education: 'Howard University College of Medicine', residency: 'Tufts Children\'s Hospital', yearsExperience: 9,
    profileUrl: 'https://www.castleconnolly.com/doctors/aisha-bello-pediatrics',
  },
  'p-ped-04': {
    id: 'p-ped-04', name: 'Connor Walsh, MD', initials: 'CW', gender: 'M',
    specialty: 'Pediatrics', subspecialty: 'General Pediatrics',
    programs: [], boardCertified: true,
    hospital: 'Boston Medical Center', practice: 'Boston Medical Center Pediatrics',
    address: '1 Boston Medical Center Pl', city: 'Boston', state: 'MA', zip: '02118', distance: '1.6 mi',
    insurance: ['Blue Cross Blue Shield of MA', 'MassHealth'],
    acceptingNew: true, newPatients: true, telehealth: true, nextAvailable: 'Tue, Sep 15',
    bookOnline: false, eveningHours: false,
    phone: '(617) 555-0248', languages: ['English', 'Spanish', 'Haitian Creole'],
    education: 'Boston University School of Medicine', residency: 'Boston Medical Center', yearsExperience: 7,
    profileUrl: 'https://www.castleconnolly.com/doctors/connor-reyes-pediatrics',
  },
  'p-ped-05': {
    id: 'p-ped-05', name: 'Ingrid Lindqvist, MD', initials: 'IL', gender: 'F',
    specialty: 'Pediatrics', subspecialty: 'General Pediatrics',
    programs: ['Top Doctor'], topDoctorSince: 2014, boardCertified: true,
    hospital: 'Back Bay Pediatrics', practice: 'Back Bay Pediatrics',
    address: '447 Boylston St', city: 'Boston', state: 'MA', zip: '02116', distance: '1.1 mi',
    insurance: ['Blue Cross Blue Shield of MA', 'Aetna', 'Cigna'],
    acceptingNew: true, newPatients: true, telehealth: true, nextAvailable: 'Mon, Sep 14',
    bookOnline: true, eveningHours: true,
    phone: '(617) 555-0259', languages: ['English', 'Swedish'],
    education: 'Brown University Warren Alpert Medical School', residency: 'Boston Children\'s Hospital', yearsExperience: 13,
    profileUrl: 'https://www.castleconnolly.com/doctors/grace-lindqvist-pediatrics',
  },
  'p-ped-06': {
    id: 'p-ped-06', name: 'Adrian Feld, MD', initials: 'AF', gender: 'M',
    specialty: 'Pediatrics', subspecialty: 'General Pediatrics',
    programs: [], boardCertified: true,
    hospital: 'Beacon Pediatric Associates', practice: 'Beacon Pediatric Associates',
    address: '24 Beacon St', city: 'Boston', state: 'MA', zip: '02108', distance: '2.0 mi',
    insurance: ['Blue Cross Blue Shield of MA', 'UnitedHealthcare'],
    acceptingNew: false, newPatients: false, telehealth: false, nextAvailable: 'Mon, Oct 5',
    bookOnline: false, eveningHours: false,
    phone: '(617) 555-0262', languages: ['English'],
    education: 'Georgetown University School of Medicine', residency: 'Boston Medical Center', yearsExperience: 21,
    profileUrl: 'https://www.castleconnolly.com/doctors/marcus-feld-pediatrics',
  },
  'p-ped-07': {
    id: 'p-ped-07', name: 'Simone Achebe, MD', initials: 'SA', gender: 'F',
    specialty: 'Pediatrics', subspecialty: 'General Pediatrics',
    programs: ['Top Doctor'], topDoctorSince: 2020, boardCertified: true,
    hospital: 'Brookline Village Pediatrics', practice: 'Brookline Village Pediatrics',
    address: '1567 Beacon St', city: 'Brookline', state: 'MA', zip: '02446', distance: '2.6 mi',
    insurance: ['Blue Cross Blue Shield of MA', 'Aetna', 'Tufts Health Plan'],
    acceptingNew: true, newPatients: true, telehealth: true, nextAvailable: 'Thu, Sep 17',
    bookOnline: true, eveningHours: true,
    phone: '(617) 555-0273', languages: ['English', 'French'],
    education: 'Icahn School of Medicine at Mount Sinai', residency: 'Boston Children\'s Hospital', yearsExperience: 6,
    profileUrl: 'https://www.castleconnolly.com/doctors/simone-achebe-pediatrics',
  },

  /* --- Pediatric dentistry --- */
  'p-den-01': {
    id: 'p-den-01', name: 'Nina Cho, DMD', initials: 'NC', gender: 'F',
    specialty: 'Pediatric Dentistry', subspecialty: null,
    programs: ['Top Dentist'], topDoctorSince: 2016, boardCertified: true,
    hospital: 'Boston Children\'s Hospital Dentistry', practice: 'Boston Children\'s Hospital Department of Dentistry',
    address: '300 Longwood Ave', city: 'Boston', state: 'MA', zip: '02115', distance: '2.3 mi',
    insurance: ['Delta Dental', 'MetLife', 'Cigna Dental'],
    acceptingNew: true, newPatients: true, telehealth: false, nextAvailable: 'Wed, Sep 16',
    bookOnline: true, eveningHours: false,
    phone: '(617) 555-0311', languages: ['English', 'Korean'],
    education: 'Harvard School of Dental Medicine', residency: 'Boston Children\'s Hospital', yearsExperience: 12,
    profileUrl: 'https://www.castleconnolly.com/doctors/nina-cho-pediatric-dentistry',
  },
  'p-den-02': {
    id: 'p-den-02', name: 'Theo Bell, DMD', initials: 'TB', gender: 'M',
    specialty: 'Pediatric Dentistry', subspecialty: null,
    programs: ['Top Dentist'], topDoctorSince: 2012, boardCertified: true,
    hospital: 'Tufts University School of Dental Medicine', practice: 'Tufts Dental Facilities, Pediatric Clinic',
    address: '1 Kneeland St', city: 'Boston', state: 'MA', zip: '02111', distance: '0.9 mi',
    insurance: ['Delta Dental', 'Guardian', 'Blue Cross Blue Shield of MA Dental Blue'],
    acceptingNew: true, newPatients: true, telehealth: false, nextAvailable: 'Mon, Sep 14',
    bookOnline: false, eveningHours: false,
    phone: '(617) 555-0324', languages: ['English'],
    education: 'Tufts University School of Dental Medicine', residency: 'Tufts Medical Center', yearsExperience: 18,
    profileUrl: 'https://www.castleconnolly.com/doctors/marcus-bell-pediatric-dentistry',
  },
  'p-den-03': {
    id: 'p-den-03', name: 'Sarah Kwan, DMD', initials: 'SK', gender: 'F',
    specialty: 'Pediatric Dentistry', subspecialty: null,
    programs: ['Top Dentist'], topDoctorSince: 2019, boardCertified: true,
    hospital: 'Back Bay Pediatric Dentistry', practice: 'Back Bay Pediatric Dentistry',
    address: '200 Newbury St', city: 'Boston', state: 'MA', zip: '02116', distance: '1.2 mi',
    insurance: ['Delta Dental', 'Aetna Dental', 'Cigna Dental'],
    acceptingNew: true, newPatients: true, telehealth: false, nextAvailable: 'Tue, Sep 15',
    bookOnline: true, eveningHours: true,
    phone: '(617) 555-0337', languages: ['English', 'Cantonese'],
    education: 'Boston University Henry M. Goldman School of Dental Medicine', residency: 'Boston Children\'s Hospital', yearsExperience: 8,
    profileUrl: 'https://www.castleconnolly.com/doctors/sarah-kwan-pediatric-dentistry',
  },
  'p-den-04': {
    id: 'p-den-04', name: 'James Okonkwo, DMD', initials: 'JO', gender: 'M',
    specialty: 'Pediatric Dentistry', subspecialty: null,
    programs: ['Top Dentist'], topDoctorSince: 2014, boardCertified: true,
    hospital: 'Beacon Hill Pediatric Dentistry', practice: 'Beacon Hill Pediatric Dentistry',
    address: '74 Joy St', city: 'Boston', state: 'MA', zip: '02114', distance: '1.8 mi',
    insurance: ['Delta Dental', 'MetLife', 'Guardian'],
    acceptingNew: true, newPatients: true, telehealth: false, nextAvailable: 'Thu, Sep 17',
    bookOnline: true, eveningHours: false,
    phone: '(617) 555-0348', languages: ['English', 'Igbo'],
    education: 'University of Pennsylvania School of Dental Medicine', residency: 'Boston Children\'s Hospital', yearsExperience: 15,
    profileUrl: 'https://www.castleconnolly.com/doctors/james-okonkwo-pediatric-dentistry',
  },
  'p-den-05': {
    id: 'p-den-05', name: 'Irina Petrov, DMD', initials: 'IP', gender: 'F',
    specialty: 'Pediatric Dentistry', subspecialty: null,
    programs: ['Top Dentist'], topDoctorSince: 2021, boardCertified: true,
    hospital: 'Charles River Pediatric Dental', practice: 'Charles River Pediatric Dental',
    address: '1 Western Ave', city: 'Cambridge', state: 'MA', zip: '02163', distance: '3.1 mi',
    insurance: ['Delta Dental', 'Blue Cross Blue Shield of MA Dental Blue'],
    acceptingNew: true, newPatients: true, telehealth: false, nextAvailable: 'Mon, Sep 21',
    bookOnline: false, eveningHours: false,
    phone: '(617) 555-0359', languages: ['English', 'Russian'],
    education: 'Columbia University College of Dental Medicine', residency: 'Boston Children\'s Hospital', yearsExperience: 5,
    profileUrl: 'https://www.castleconnolly.com/doctors/elena-petrov-pediatric-dentistry',
  },
  'p-den-06': {
    id: 'p-den-06', name: 'David Lin, DMD', initials: 'DL', gender: 'M',
    specialty: 'Pediatric Dentistry', subspecialty: null,
    programs: ['Top Dentist'], topDoctorSince: 2015, boardCertified: true,
    hospital: 'Cambridge Pediatric Dentistry', practice: 'Cambridge Pediatric Dentistry',
    address: '955 Massachusetts Ave', city: 'Cambridge', state: 'MA', zip: '02139', distance: '3.6 mi',
    insurance: ['Delta Dental', 'Cigna Dental', 'Aetna Dental'],
    acceptingNew: true, newPatients: true, telehealth: false, nextAvailable: 'Wed, Sep 23',
    bookOnline: true, eveningHours: true,
    phone: '(617) 555-0362', languages: ['English', 'Mandarin'],
    education: 'New York University College of Dentistry', residency: 'Tufts Medical Center', yearsExperience: 11,
    profileUrl: 'https://www.castleconnolly.com/doctors/david-lin-pediatric-dentistry',
  },
};

/* ---------- PROFILE (demo consumer account concept) ---------- */

const PROFILE = {
  name: 'Jordan Ellis', firstName: 'Jordan', initials: 'JE',
  location: 'Boston, MA 02116', city: 'Boston, MA', zip: '02116',
  plan: 'Aetna', planFull: 'Aetna Choice POS II',
  family: [{ name: 'Maya', age: 7, relation: 'daughter', dentalPlan: 'Delta Dental' }],
  preferences: { telehealth: true, eveningAppointments: true },
  savedIds: ['p-crd-01', 'p-den-01'],
  savedHospitalIds: ['h-mgh'],
  savedTopicIds: ['t-hosp-faq', 't-cardio-appt'],
  savedSearches: [
    'Should I see the top-rated cardiologist at a community hospital or one at Mass General?',
    'Top dentist for my 7-year-old who takes Delta Dental',
  ],
  savedAt: { 'p-crd-01': '2 days ago', 'p-den-01': '1 week ago', 'h-mgh': '2 days ago', 't-hosp-faq': '5 days ago', 't-cardio-appt': '2 days ago', s0: '2 days ago', s1: '1 week ago' },
  searchPrefs: { sort: 'top', types: ['doctors', 'dentists', 'hospitals', 'topics'], bookOnlineFirst: false, resultsFirst: false },
  recentSearches: [
    'Top dentist for my 7-year-old who takes Delta Dental',
    'Should I see the top-rated cardiologist at a community hospital or one at Mass General?',
    'Which Top Doctor cardiologists near me take my plan and can see me this month?',
    'Best pediatrician within 10 miles of me who takes Blue Cross and sees new patients',
    'Top Doctor cardiologists in Boston, MA who take Aetna',
    'Which Boston hospitals are Castle Connolly Top Hospitals for heart care?',
  ],
  note: 'Demo account. Castle Connolly has no consumer account today; this shows what one could add.',
};

/* ---------- CARDIO_AETNA ---------- */

const CARDIO_AETNA = {
  key: 'CARDIO_AETNA',
  query: 'Top Doctor cardiologists in Boston, MA who take Aetna',
  chatLabel: 'Cardiology · Boston · Aetna',
  match: ['cardiolog', 'heart doctor'],
  defaultScope: 'doctors',
  entry: 'structured',
  signedIn: false,
  structured: { specialty: 'Cardiology', location: 'Boston, MA', insurance: 'Aetna', distance: '10 mi' },
  filters: { specialty: 'Cardiology', insurance: 'Aetna', location: 'Boston, MA', distance: '10 mi' },
  summary: [
    { text: 'Castle Connolly lists ' },
    { text: '41 Top Doctor cardiologists within 10 miles of Boston who accept Aetna', cite: [1] },
    { text: '. Top Doctors are ' },
    { text: 'the top 7% of U.S. physicians', cite: [2] },
    { text: ', more than 72,000 recognized in 2026 out of over 1.1 million U.S. doctors, chosen by peer nomination and vetted by Castle Connolly\'s research team rather than paid placement. Two of the hospitals below, ' },
    { text: 'Tufts Medical Center and Boston Medical Center, are Nationally Ranked Castle Connolly Top Hospitals for Heart & Vascular Surgery', cite: [3, 4] },
    { text: '.' },
  ],
  sections: [
    {
      id: 'providers', scope: 'doctors', title: 'Cardiologists near Boston, MA', kind: 'providers',
      count: 41, note: 'Sorted by Top Doctor status, then distance from 02116',
      items: [
        { ...PROVIDERS['p-crd-01'], featured: true, enhancedProfile: true, sourceNum: 1 },
        { ...PROVIDERS['p-crd-02'], sourceNum: 1 },
        { ...PROVIDERS['p-crd-03'], sourceNum: 1 },
        { ...PROVIDERS['p-crd-04'], sourceNum: 1 },
        { ...PROVIDERS['p-crd-05'], sourceNum: 1 },
        { ...PROVIDERS['p-crd-06'], sourceNum: 1 },
        { ...PROVIDERS['p-crd-07'], sourceNum: 1 },
      ],
    },
    {
      id: 'hospitals', scope: 'hospitals', title: 'Hospitals with cardiac surgery recognition', kind: 'hospitals',
      count: 4,
      items: [
        { id: 'h-tufts', name: 'Tufts Medical Center', city: 'Boston', state: 'MA', distance: '0.9 mi', phone: '(617) 636-5000',
          programs: ['Top Hospital'],
          rankings: [
            { procedure: 'Coronary Artery Bypass Graft Surgery (CABG)', rank: 'Nationally Ranked', scope: 'National' },
            { procedure: 'Heart Valve Replacement', rank: 'Nationally Ranked', scope: 'National' },
          ], sourceNum: 3 },
        { id: 'h-bmc', name: 'Boston Medical Center', city: 'Boston', state: 'MA', distance: '1.6 mi', phone: '(617) 638-8000',
          programs: ['Top Hospital'],
          rankings: [{ procedure: 'Coronary Artery Bypass Graft Surgery (CABG)', rank: 'Nationally Ranked', scope: 'National' }],
          sourceNum: 4 },
        { id: 'h-bidmc', name: 'Beth Israel Deaconess Medical Center-Boston', city: 'Boston', state: 'MA', distance: '2.4 mi', phone: '(617) 667-7000',
          programs: ['Top Hospital'],
          rankings: [{ procedure: 'Coronary Artery Bypass Graft Surgery (CABG)', rank: 'Regionally Ranked', scope: 'Massachusetts' }],
          sourceNum: 5 },
        { id: 'h-mgh', name: 'Massachusetts General Hospital', city: 'Boston', state: 'MA', distance: '1.5 mi', phone: '(617) 726-2000',
          programs: ['Top Hospital'], rankings: [],
          note: 'Castle Connolly Top Hospital for general and cancer surgery. Not on the 2026 Heart & Vascular Surgery list; Top Doctor cardiologists practice here.',
          sourceNum: 6 },
      ],
    },
    {
      id: 'topics', scope: 'topics', title: 'Related reading', kind: 'articles',
      items: [
        { id: 't-cardio-appt', title: 'What to Know Before Your Cardiology Appointment', category: 'Cardiology',
          url: 'https://www.castleconnolly.com/topics/interventional-cardiology/what-to-know-before-your-cardiology-appointment', date: 'Jun 2026', sourceNum: 7 },
        { id: 't-what-cvd', title: 'What Is Cardiovascular Disease?', category: 'Cardiology',
          url: 'https://www.castleconnolly.com/topics/cardiovascular-disease/what-is-cardiovascular-disease', date: 'Mar 2026', sourceNum: 8 },
        { id: 't-interventional', title: 'What Is Interventional Cardiology?', category: 'Cardiology',
          url: 'https://www.castleconnolly.com/topics/interventional-cardiology/what-is-interventional-cardiology', date: 'Apr 2024', sourceNum: 9 },
      ],
    },
  ],
  sources: [
    { num: 1, name: 'Castle Connolly', title: 'Top Doctors directory search: Cardiovascular Disease, Boston, MA', date: 'Sep 2026', url: 'https://www.castleconnolly.com/specialty/cardiovascular-disease/boston-ma', type: 'directory' },
    { num: 2, name: 'Castle Connolly', title: 'Castle Connolly Research & Selection Process', date: '2026', url: 'https://www.castleconnolly.com/about-us/how-castle-connolly-selects-top-doctors', type: 'directory' },
    { num: 3, name: 'Castle Connolly', title: 'Tufts Medical Center, Top Hospital profile', date: '2026', url: 'https://www.castleconnolly.com/top-hospitals/tufts-medical-center-ntl0112', type: 'directory' },
    { num: 4, name: 'Castle Connolly', title: 'Boston Medical Center, Top Hospital profile', date: '2026', url: 'https://www.castleconnolly.com/top-hospitals/boston-medical-center-bos1000', type: 'directory' },
    { num: 5, name: 'Castle Connolly', title: 'Beth Israel Deaconess Medical Center-Boston, Top Hospital profile', date: '2026', url: 'https://www.castleconnolly.com/top-hospitals/beth-israel-deaconess-medical-center-boston-ntl0626', type: 'directory' },
    { num: 6, name: 'Castle Connolly', title: 'Massachusetts General Hospital, Top Hospital profile', date: '2026', url: 'https://www.castleconnolly.com/top-hospitals/massachusetts-general-hospital-bos1024', type: 'directory' },
    { num: 7, name: 'Castle Connolly', title: 'What to Know Before Your Cardiology Appointment', date: 'Jun 2026', url: 'https://www.castleconnolly.com/topics/interventional-cardiology/what-to-know-before-your-cardiology-appointment', type: 'directory' },
    { num: 8, name: 'Castle Connolly', title: 'What Is Cardiovascular Disease?', date: 'Mar 2026', url: 'https://www.castleconnolly.com/topics/cardiovascular-disease/what-is-cardiovascular-disease', type: 'directory' },
    { num: 9, name: 'Castle Connolly', title: 'What Is Interventional Cardiology?', date: 'Apr 2024', url: 'https://www.castleconnolly.com/topics/interventional-cardiology/what-is-interventional-cardiology', type: 'directory' },
  ],
  followups: [
    { q: 'Which of these cardiologists offer telehealth visits?', to: 'CARDIO_TELEHEALTH' },
    { q: 'Which have evening appointments?', to: 'CARDIO_EVENING' },
    { q: 'How are Castle Connolly Top Doctors selected?', to: 'WHAT_IS_TOP_DOCTOR' },
  ],
};

/* ---------- PEDIATRICIAN_BCBS ---------- */

const PEDIATRICIAN_BCBS = {
  key: 'PEDIATRICIAN_BCBS',
  query: 'Best pediatrician within 10 miles of me who takes Blue Cross and sees new patients',
  chatLabel: 'Pediatrician · near you · Blue Cross',
  match: ['pediatric', 'kids doctor', 'child doctor'],
  defaultScope: 'doctors',
  entry: 'natural',
  signedIn: false,
  structured: { specialty: 'Pediatrics', location: 'Boston, MA 02116', insurance: 'Blue Cross Blue Shield of MA', distance: '10 mi' },
  filters: { specialty: 'Pediatrics', insurance: 'Blue Cross Blue Shield of MA', location: 'Boston, MA 02116', distance: '10 mi', acceptingNew: true },
  summary: [
    { text: 'Castle Connolly doesn\'t rate or rank doctors against each other, so there\'s no single "best." ' },
    { text: '7 pediatricians within 10 miles of Boston accept Blue Cross Blue Shield of MA', cite: [1] },
    { text: '; ' },
    { text: '6 of them are accepting new patients, and 5 are Castle Connolly Top Doctors', cite: [1] },
    { text: ', ' },
    { text: 'peer-nominated and vetted by Castle Connolly\'s research team', cite: [2] },
    { text: ', among the top 7% of U.S. physicians, rather than rated by star or score.' },
  ],
  sections: [
    {
      id: 'providers', scope: 'doctors', title: 'Pediatricians near Boston, MA 02116', kind: 'providers',
      count: 7, note: 'Sorted by Top Doctor status, then distance from 02116',
      items: [
        { ...PROVIDERS['p-ped-01'], featured: true, enhancedProfile: true, sourceNum: 1 },
        { ...PROVIDERS['p-ped-02'], sourceNum: 1 },
        { ...PROVIDERS['p-ped-03'], sourceNum: 1 },
        { ...PROVIDERS['p-ped-04'], sourceNum: 1 },
        { ...PROVIDERS['p-ped-05'], sourceNum: 1 },
        { ...PROVIDERS['p-ped-06'], sourceNum: 1 },
        { ...PROVIDERS['p-ped-07'], sourceNum: 1 },
      ],
    },
    {
      id: 'topics', scope: 'topics', title: 'Related reading', kind: 'articles',
      items: [
        { id: 't-what-peds', title: 'What Is Pediatrics?', category: 'Pediatrics',
          url: 'https://www.castleconnolly.com/topics/pediatrics/what-is-pediatrics', date: 'Aug 2023', sourceNum: 3 },
        { id: 't-choose-peds', title: 'How to Choose a Pediatrician', category: 'Parenting',
          url: 'https://www.healthychildren.org/English/family-life/health-management/Pages/How-To-Choose-A-Pediatrician.aspx', date: '2026', sourceNum: 4 },
      ],
    },
  ],
  sources: [
    { num: 1, name: 'Castle Connolly', title: 'Top Doctors directory search: Pediatrics, Boston, MA 02116', date: 'Sep 2026', url: 'https://www.castleconnolly.com/specialty/pediatrics/boston-ma', type: 'directory' },
    { num: 2, name: 'Castle Connolly', title: 'Castle Connolly Research & Selection Process', date: '2026', url: 'https://www.castleconnolly.com/about-us/how-castle-connolly-selects-top-doctors', type: 'directory' },
    { num: 3, name: 'Castle Connolly', title: 'What Is Pediatrics?', date: 'Aug 2023', url: 'https://www.castleconnolly.com/topics/pediatrics/what-is-pediatrics', type: 'directory' },
    { num: 4, name: 'HealthyChildren.org (AAP)', title: 'How to Choose a Pediatrician', date: '2026', url: 'https://www.healthychildren.org/English/family-life/health-management/Pages/How-To-Choose-A-Pediatrician.aspx', type: 'external' },
  ],
  followups: [
    { q: 'What should I bring to my child\'s first pediatrician visit?', to: 'PEDIATRICIAN_FIRST_VISIT' },
    { q: 'Which of these pediatricians are Top Doctors?', to: 'WHAT_IS_TOP_DOCTOR' },
    { q: 'Can I book an appointment online?', to: 'BOOK_ONLINE' },
  ],
};

/* ---------- CARDIO_MY_PLAN ---------- */

const CARDIO_MY_PLAN = {
  key: 'CARDIO_MY_PLAN',
  query: 'Which Top Doctor cardiologists near me take my plan and can see me this month?',
  chatLabel: 'Cardiologists · your plan · this month',
  match: ['my plan', 'see me this month', 'take my plan'],
  defaultScope: 'doctors',
  entry: 'natural',
  signedIn: true,
  profileUse: ['location', 'plan'],
  structured: { specialty: 'Cardiology', location: 'Boston, MA 02116', insurance: 'Aetna', distance: '10 mi' },
  filters: { specialty: 'Cardiology', distance: '10 mi', availability: 'This month' },
  summary: [
    { text: 'Near you (02116), ' },
    { text: '6 Castle Connolly Top Doctor cardiologists accept your plan, Aetna', cite: [1] },
    { text: ', and have ' },
    { text: 'an appointment available this month', cite: [1] },
    { text: '. All are within 10 miles of Boston, MA 02116, and most ' },
    { text: 'book online through Castle Connolly\'s Zocdoc integration', cite: [2] },
    { text: '.' },
  ],
  sections: [
    {
      id: 'providers', scope: 'doctors', title: 'Cardiologists on your plan, available this month', kind: 'providers',
      count: 6, note: 'Sorted by Top Doctor status, then next available appointment',
      items: [
        { ...PROVIDERS['p-crd-01'], sourceNum: 1 },
        { ...PROVIDERS['p-crd-02'], featured: true, enhancedProfile: true, sourceNum: 1 },
        { ...PROVIDERS['p-crd-03'], sourceNum: 1 },
        { ...PROVIDERS['p-crd-09'], sourceNum: 1 },
        { ...PROVIDERS['p-crd-06'], sourceNum: 1 },
        { ...PROVIDERS['p-crd-08'], sourceNum: 1 },
      ],
    },
  ],
  sources: [
    { num: 1, name: 'Castle Connolly', title: 'Top Doctors directory search: Cardiovascular Disease, Boston, MA 02116, Aetna', date: 'Sep 2026', url: 'https://www.castleconnolly.com/specialty/cardiovascular-disease/boston-ma', type: 'directory' },
    { num: 2, name: 'PR Newswire', title: 'Castle Connolly Top Doctors and Zocdoc Announce Partnership', date: '2026', url: 'https://www.prnewswire.com/news-releases/castle-connolly-top-doctors-and-zocdoc-announce-partnership-that-will-enable-people-to-find-and-book-appointments-with-castle-connolly-top-doctors-instantly-301774619.html', type: 'booking' },
  ],
  followups: [
    { q: 'Compare a community hospital cardiologist with one at Mass General', to: 'COMPARE_HOSPITAL' },
    { q: 'Which of these have evening appointments?', to: 'CARDIO_EVENING' },
    { q: 'How are Castle Connolly Top Doctors selected?', to: 'WHAT_IS_TOP_DOCTOR' },
  ],
  followupsSignedIn: [
    { q: 'Compare Dr. Marsh at Mass General with a cardiologist at a community hospital', to: 'COMPARE_HOSPITAL' },
    { q: 'Which of these have evening hours, since I prefer them?', to: 'CARDIO_EVENING' },
    { q: 'How were these matched to my Aetna plan?', to: 'WHAT_IS_TOP_DOCTOR' },
  ],
};

/* ---------- COMPARE_HOSPITAL ---------- */

const COMPARE_HOSPITAL = {
  key: 'COMPARE_HOSPITAL',
  query: 'Should I see the top-rated cardiologist at a community hospital or one at Mass General?',
  chatLabel: 'Compare: community hospital vs Mass General',
  match: ['community hospital', 'mass general', 'or one at'],
  defaultScope: 'ask',
  entry: 'natural',
  signedIn: true,
  profileUse: ['location', 'plan'],
  summary: [
    { text: 'Castle Connolly doesn\'t rate doctors against each other, there\'s no "top-rated." ' },
    { text: 'Both cardiologists below are Castle Connolly Top Doctors', cite: [1] },
    { text: ', one practicing at Mount Auburn Hospital, a community teaching hospital in Cambridge, and one at Massachusetts General Hospital in Boston. The table shows ' },
    { text: 'each hospital\'s Castle Connolly Top Hospital recognition, distance from 02116, insurance, and availability', cite: [2, 3] },
    { text: ' so you can weigh what matters most to you.' },
  ],
  sections: [
    {
      id: 'compare-cardio', scope: 'ask', title: 'Community hospital vs. Massachusetts General Hospital', kind: 'compare',
      intro: 'Neither hospital is ranked against the other. Mount Auburn Hospital is a community teaching hospital in Cambridge; Massachusetts General Hospital is a large academic medical center in Boston. Both cardiologists are Castle Connolly Top Doctors[1].',
      columns: [
        { providerId: 'p-crd-06', label: 'Community hospital' },
        { providerId: 'p-crd-01', label: 'Academic medical center' },
      ],
      rows: [
        { label: 'Top Doctor recognition', values: ['Top Doctor since 2016, Cardiology[1]', 'Top Doctor since 2015, Interventional Cardiology[1]'] },
        { label: 'Hospital affiliation', values: ['Mount Auburn Hospital, Cambridge, MA', 'Massachusetts General Hospital, Boston, MA'] },
        { label: 'Hospital recognition', values: ['Top Hospital for mastectomy and hernia repair surgery, regionally ranked for C-section surgery[2]. Not on the 2026 Heart & Vascular Surgery list.', 'Top Hospital for general and cancer surgery[3]. Not on the 2026 Heart & Vascular Surgery list.'] },
        { label: 'Distance from you (02116)', values: ['3.5 mi', '1.5 mi'] },
        { label: 'Insurance', values: ['Accepts Aetna', 'Accepts Aetna'] },
        { label: 'Next available', values: ['Thu, Sep 24', 'Tue, Sep 15'] },
        { label: 'Telehealth', values: ['Not offered', 'Offered'] },
        { label: 'Evening hours', values: ['Not offered', 'Not offered'] },
      ],
      footnote: 'Castle Connolly Top Hospitals recognizes hospitals procedure by procedure, not hospital-wide; a hospital can be a Top Hospital for one specialty and not appear on another specialty\'s list[4]. Neither hospital here is on the 2026 Heart & Vascular Surgery list, so this comparison rests on the doctors\' own Top Doctor recognition, distance, insurance, and availability, not a hospital cardiac ranking.',
    },
    {
      id: 'both-doctors', scope: 'doctors', title: 'Both doctors', kind: 'providers',
      count: 2,
      items: [
        { ...PROVIDERS['p-crd-06'], sourceNum: 2 },
        { ...PROVIDERS['p-crd-01'], featured: true, enhancedProfile: true, sourceNum: 3 },
      ],
    },
    {
      id: 'hospitals', scope: 'hospitals', title: 'The two hospitals', kind: 'hospitals',
      count: 2,
      items: [
        { id: 'h-mta', name: 'Mount Auburn Hospital', city: 'Cambridge', state: 'MA', distance: '3.5 mi', phone: '(617) 492-3500',
          programs: ['Top Hospital'],
          rankings: [
            { procedure: 'Mastectomy', rank: 'Ranked', scope: 'National' },
            { procedure: 'Hernia Repair Surgery', rank: 'Ranked', scope: 'National' },
            { procedure: 'C-section Surgery', rank: 'Regionally Ranked', scope: 'Massachusetts' },
          ],
          note: 'Castle Connolly Top Hospital for mastectomy and hernia repair surgery, regionally ranked for C-section surgery. Not on the 2026 Heart & Vascular Surgery list; Top Doctor cardiologists practice here.',
          sourceNum: 2 },
        { id: 'h-mgh', name: 'Massachusetts General Hospital', city: 'Boston', state: 'MA', distance: '1.5 mi', phone: '(617) 726-2000',
          programs: ['Top Hospital'], rankings: [],
          note: 'Castle Connolly Top Hospital for general and cancer surgery. Not on the 2026 Heart & Vascular Surgery list; Top Doctor cardiologists practice here.',
          sourceNum: 3 },
      ],
    },
    {
      id: 'topics', scope: 'topics', title: 'How Top Hospitals are ranked', kind: 'articles',
      items: [
        { id: 't-hosp-faq', title: 'Castle Connolly Top Hospitals FAQ', category: 'Methodology',
          url: 'https://www.castleconnolly.com/castle-connolly-top-hospitals-faq', date: '2026', sourceNum: 4 },
      ],
    },
  ],
  sources: [
    { num: 1, name: 'Castle Connolly', title: 'Castle Connolly Research & Selection Process', date: '2026', url: 'https://www.castleconnolly.com/about-us/how-castle-connolly-selects-top-doctors', type: 'directory' },
    { num: 2, name: 'Castle Connolly', title: 'Mount Auburn Hospital, Top Hospital profile', date: '2026', url: 'https://www.castleconnolly.com/top-hospitals/mount-auburn-hospital-bos1065', type: 'directory' },
    { num: 3, name: 'Castle Connolly', title: 'Massachusetts General Hospital, Top Hospital profile', date: '2026', url: 'https://www.castleconnolly.com/top-hospitals/massachusetts-general-hospital-bos1024', type: 'directory' },
    { num: 4, name: 'Castle Connolly', title: 'Castle Connolly Top Hospitals FAQ', date: '2026', url: 'https://www.castleconnolly.com/castle-connolly-top-hospitals-faq', type: 'directory' },
  ],
  followups: [
    { q: 'Which of these hospitals are Top Hospitals for heart care?', to: 'HOSPITALS_CARDIAC' },
    { q: 'How are Castle Connolly Top Doctors and Top Hospitals selected?', to: 'WHAT_IS_TOP_DOCTOR' },
    { q: 'Can I book online with either doctor?', to: 'BOOK_ONLINE' },
  ],
  followupsSignedIn: [
    { q: 'Which of these hospitals are Top Hospitals for heart care, near me?', to: 'HOSPITALS_CARDIAC' },
    { q: 'Book online with the Mass General cardiologist I saved', to: 'BOOK_ONLINE' },
    { q: 'How were these two matched to my Aetna plan?', to: 'WHAT_IS_TOP_DOCTOR' },
  ],
};

/* ---------- DENTIST_MAYA ---------- */

const DENTIST_MAYA = {
  key: 'DENTIST_MAYA',
  query: 'Top dentist for my 7-year-old who takes Delta Dental',
  chatLabel: 'Pediatric dentist · Maya · Delta Dental',
  match: ['dentist', '7-year-old', 'year-old'],
  defaultScope: 'dentists',
  entry: 'natural',
  signedIn: true,
  profileUse: ['location', 'family'],
  structured: { specialty: 'Pediatric Dentistry', location: 'Boston, MA 02116', insurance: 'Delta Dental', distance: '10 mi' },
  filters: { specialty: 'Pediatric Dentistry', distance: '10 mi' },
  summary: [
    { text: 'For Maya (age 7), ' },
    { text: '6 Castle Connolly Top Dentists specializing in pediatric dentistry accept Delta Dental within 10 miles of Boston', cite: [1] },
    { text: '. Top Dentists represent ' },
    { text: 'the top 10% of U.S. dentists', cite: [2] },
    { text: ', ' },
    { text: 'more than 22,000 recognized in 2026', cite: [2] },
    { text: ', peer-nominated and vetted by Castle Connolly\'s research team.' },
  ],
  sections: [
    {
      id: 'providers', scope: 'dentists', title: 'Pediatric dentists near Boston, MA 02116', kind: 'providers',
      count: 6, note: 'Sorted by Top Dentist status, then distance from 02116',
      items: [
        { ...PROVIDERS['p-den-01'], featured: true, enhancedProfile: true, sourceNum: 1 },
        { ...PROVIDERS['p-den-02'], sourceNum: 1 },
        { ...PROVIDERS['p-den-03'], sourceNum: 1 },
        { ...PROVIDERS['p-den-04'], sourceNum: 1 },
        { ...PROVIDERS['p-den-05'], sourceNum: 1 },
        { ...PROVIDERS['p-den-06'], sourceNum: 1 },
      ],
    },
    {
      id: 'topics', scope: 'topics', title: 'Related reading', kind: 'articles',
      items: [
        { id: 't-dental-ins', title: '7 Dental Insurance Facts That Patients Should Know in 2026', category: 'Dental Insurance',
          url: 'https://www.castleconnolly.com/topics/top-doctor-spotlights/7-dental-insurance-facts-that-patients-should-know-in-2026', date: '2026', sourceNum: 3 },
        { id: 't-first-visit', title: 'First Dental Visit for Baby', category: 'Dental Care',
          url: 'https://www.mouthhealthy.org/life-stages/babies-and-kids/first-dental-visit-for-baby', date: '2026', sourceNum: 4 },
      ],
    },
  ],
  sources: [
    { num: 1, name: 'Castle Connolly', title: 'Top Dentists directory search: Pediatric Dentistry, Boston, MA 02116, Delta Dental', date: 'Sep 2026', url: 'https://www.castleconnolly.com/dentist-specialty/pediatric-dentistry', type: 'directory' },
    { num: 2, name: 'Castle Connolly', title: 'Castle Connolly Top Dentists', date: '2026', url: 'https://www.castleconnolly.com/top-dentists', type: 'directory' },
    { num: 3, name: 'Castle Connolly', title: '7 Dental Insurance Facts That Patients Should Know in 2026', date: '2026', url: 'https://www.castleconnolly.com/topics/top-doctor-spotlights/7-dental-insurance-facts-that-patients-should-know-in-2026', type: 'directory' },
    { num: 4, name: 'MouthHealthy (ADA)', title: 'First Dental Visit for Baby', date: '2026', url: 'https://www.mouthhealthy.org/life-stages/babies-and-kids/first-dental-visit-for-baby', type: 'external' },
  ],
  followups: [
    { q: 'What happens at a child\u2019s first dental visit?', to: 'DENTIST_FIRST_VISIT' },
    { q: 'How are Castle Connolly Top Dentists selected?', to: 'WHAT_IS_TOP_DOCTOR' },
    { q: 'Can we book online?', to: 'BOOK_ONLINE' },
  ],
  followupsSignedIn: [
    { q: 'What should we bring to Maya\'s first visit?', to: 'DENTIST_FIRST_VISIT' },
    { q: 'How are Top Dentists selected?', to: 'WHAT_IS_TOP_DOCTOR' },
    { q: 'Book online for Maya', to: 'BOOK_ONLINE' },
  ],
};

/* ---------- HOSPITALS_CARDIAC ---------- */

const HOSPITALS_CARDIAC = {
  key: 'HOSPITALS_CARDIAC',
  query: 'Which Boston hospitals are Castle Connolly Top Hospitals for heart care?',
  chatLabel: 'Top Hospitals · heart care · Boston',
  match: ['top hospital', 'hospitals for heart', 'best hospital'],
  defaultScope: 'hospitals',
  entry: 'natural',
  signedIn: false,
  summary: [
    { text: 'Of the major Boston-area hospitals, ' },
    { text: 'Tufts Medical Center and Boston Medical Center are Nationally Ranked Castle Connolly Top Hospitals for Heart & Vascular Surgery', cite: [1, 2] },
    { text: ', and ' },
    { text: 'Beth Israel Deaconess Medical Center-Boston is Regionally Ranked for Coronary Artery Bypass Graft Surgery', cite: [3] },
    { text: '. ' },
    { text: 'Massachusetts General Hospital and Brigham and Women\'s Hospital are Castle Connolly Top Hospitals for other specialties but are not on the 2026 Heart & Vascular Surgery list', cite: [4, 5] },
    { text: '; Top Doctor cardiologists still practice at both.' },
  ],
  sections: [
    {
      id: 'hospitals', scope: 'hospitals', title: 'Boston-area hospitals and heart care recognition', kind: 'hospitals',
      count: 5,
      items: [
        { id: 'h-tufts', name: 'Tufts Medical Center', city: 'Boston', state: 'MA', distance: '0.9 mi', phone: '(617) 636-5000',
          programs: ['Top Hospital'],
          rankings: [
            { procedure: 'Coronary Artery Bypass Graft Surgery (CABG)', rank: 'Nationally Ranked', scope: 'National' },
            { procedure: 'Heart Valve Replacement', rank: 'Nationally Ranked', scope: 'National' },
          ], sourceNum: 1 },
        { id: 'h-bmc', name: 'Boston Medical Center', city: 'Boston', state: 'MA', distance: '1.6 mi', phone: '(617) 638-8000',
          programs: ['Top Hospital'],
          rankings: [{ procedure: 'Coronary Artery Bypass Graft Surgery (CABG)', rank: 'Nationally Ranked', scope: 'National' }],
          sourceNum: 2 },
        { id: 'h-bidmc', name: 'Beth Israel Deaconess Medical Center-Boston', city: 'Boston', state: 'MA', distance: '2.4 mi', phone: '(617) 667-7000',
          programs: ['Top Hospital'],
          rankings: [{ procedure: 'Coronary Artery Bypass Graft Surgery (CABG)', rank: 'Regionally Ranked', scope: 'Massachusetts' }],
          sourceNum: 3 },
        { id: 'h-mgh', name: 'Massachusetts General Hospital', city: 'Boston', state: 'MA', distance: '1.5 mi', phone: '(617) 726-2000',
          programs: ['Top Hospital'], rankings: [],
          note: 'Castle Connolly Top Hospital for general and cancer surgery. Not on the 2026 Heart & Vascular Surgery list; Top Doctor cardiologists practice here.',
          sourceNum: 4 },
        { id: 'h-bwh', name: 'Brigham and Women\'s Hospital', city: 'Boston', state: 'MA', distance: '2.2 mi', phone: '(617) 732-5500',
          programs: ['Top Hospital'], rankings: [],
          note: 'Castle Connolly Top Hospital for cancer, general and ObGyn surgery. Not on the 2026 Heart & Vascular Surgery list; Top Doctor cardiologists practice here.',
          sourceNum: 5 },
      ],
    },
    {
      id: 'providers', scope: 'doctors', title: 'Top Doctor cardiologists at these hospitals', kind: 'providers',
      count: 5, note: 'One Top Doctor cardiologist shown per hospital',
      items: [
        { ...PROVIDERS['p-crd-04'], featured: true, enhancedProfile: true, sourceNum: 1 },
        { ...PROVIDERS['p-crd-09'], sourceNum: 2 },
        { ...PROVIDERS['p-crd-03'], sourceNum: 3 },
        { ...PROVIDERS['p-crd-01'], sourceNum: 4 },
        { ...PROVIDERS['p-crd-02'], sourceNum: 5 },
      ],
    },
    {
      id: 'topics', scope: 'topics', title: 'How Top Hospitals are ranked', kind: 'articles',
      items: [
        { id: 't-hosp-faq', title: 'Castle Connolly Top Hospitals FAQ', category: 'Methodology',
          url: 'https://www.castleconnolly.com/castle-connolly-top-hospitals-faq', date: '2026', sourceNum: 6 },
      ],
    },
  ],
  sources: [
    { num: 1, name: 'Castle Connolly', title: 'Tufts Medical Center, Top Hospital profile', date: '2026', url: 'https://www.castleconnolly.com/top-hospitals/tufts-medical-center-ntl0112', type: 'directory' },
    { num: 2, name: 'Castle Connolly', title: 'Boston Medical Center, Top Hospital profile', date: '2026', url: 'https://www.castleconnolly.com/top-hospitals/boston-medical-center-bos1000', type: 'directory' },
    { num: 3, name: 'Castle Connolly', title: 'Beth Israel Deaconess Medical Center-Boston, Top Hospital profile', date: '2026', url: 'https://www.castleconnolly.com/top-hospitals/beth-israel-deaconess-medical-center-boston-ntl0626', type: 'directory' },
    { num: 4, name: 'Castle Connolly', title: 'Massachusetts General Hospital, Top Hospital profile', date: '2026', url: 'https://www.castleconnolly.com/top-hospitals/massachusetts-general-hospital-bos1024', type: 'directory' },
    { num: 5, name: 'Castle Connolly', title: 'Brigham and Women\'s Hospital, Top Hospital profile', date: '2026', url: 'https://www.castleconnolly.com/top-hospitals/brigham-and-womens-hospital-bos1004', type: 'directory' },
    { num: 6, name: 'Castle Connolly', title: 'Castle Connolly Top Hospitals FAQ', date: '2026', url: 'https://www.castleconnolly.com/castle-connolly-top-hospitals-faq', type: 'directory' },
  ],
  followups: [
    { q: 'Which Top Doctor cardiologists practice at these hospitals?', to: 'CARDIO_AETNA' },
    { q: 'How are Castle Connolly Top Hospitals ranked?', to: 'WHAT_IS_TOP_DOCTOR' },
    { q: 'Compare a community hospital cardiologist with one at Mass General', to: 'COMPARE_HOSPITAL' },
  ],
};

/* ---------- Follow-up templates (lightweight) ---------- */

const CARDIO_TELEHEALTH = {
  key: 'CARDIO_TELEHEALTH',
  query: 'Which of these cardiologists offer telehealth?',
  chatLabel: 'Cardiologists · telehealth',
  match: ['telehealth', 'video visit', 'virtual'],
  defaultScope: 'doctors',
  entry: 'natural',
  signedIn: false,
  summary: [
    { text: 'Of the Top Doctor cardiologists near Boston, ' },
    { text: '4 offer telehealth visits', cite: [1] },
    { text: ': at Massachusetts General Hospital, Brigham and Women\'s Hospital, Tufts Medical Center, and Boston Medical Center.' },
  ],
  sections: [
    {
      id: 'providers', scope: 'doctors', title: 'Cardiologists offering telehealth', kind: 'providers',
      count: 4, note: 'Filtered to telehealth visits',
      items: [
        { ...PROVIDERS['p-crd-01'], featured: true, enhancedProfile: true, sourceNum: 1 },
        { ...PROVIDERS['p-crd-02'], sourceNum: 1 },
        { ...PROVIDERS['p-crd-04'], sourceNum: 1 },
        { ...PROVIDERS['p-crd-05'], sourceNum: 1 },
      ],
    },
  ],
  sources: [
    { num: 1, name: 'Castle Connolly', title: 'Top Doctors directory search: Cardiovascular Disease, Boston, MA', date: 'Sep 2026', url: 'https://www.castleconnolly.com/specialty/cardiovascular-disease/boston-ma', type: 'directory' },
  ],
  followups: [
    { q: 'Top Doctor cardiologists in Boston, MA who take Aetna', to: 'CARDIO_AETNA' },
    { q: 'Which Top Doctor cardiologists near me take my plan and can see me this month?', to: 'CARDIO_MY_PLAN' },
  ],
};

const CARDIO_EVENING = {
  key: 'CARDIO_EVENING',
  query: 'Which of these cardiologists have evening appointments?',
  chatLabel: 'Cardiologists · evening hours',
  match: ['evening appointment', 'evening hours', 'after work'],
  defaultScope: 'doctors',
  entry: 'natural',
  signedIn: true,
  summary: [
    { text: 'Evening hours matter to visitors who cannot leave work for a daytime visit. ' },
    { text: '3 of the Top Doctor cardiologists near Boston offer evening hours', cite: [1] },
    { text: ': at Brigham and Women\'s Hospital, Boston Medical Center, and Massachusetts General Hospital.' },
  ],
  sections: [
    {
      id: 'providers', scope: 'doctors', title: 'Cardiologists with evening hours', kind: 'providers',
      count: 3, note: 'Filtered to evening appointment hours',
      items: [
        { ...PROVIDERS['p-crd-02'], featured: true, enhancedProfile: true, sourceNum: 1 },
        { ...PROVIDERS['p-crd-05'], sourceNum: 1 },
        { ...PROVIDERS['p-crd-08'], sourceNum: 1 },
      ],
    },
  ],
  sources: [
    { num: 1, name: 'Castle Connolly', title: 'Top Doctors directory search: Cardiovascular Disease, Boston, MA', date: 'Sep 2026', url: 'https://www.castleconnolly.com/specialty/cardiovascular-disease/boston-ma', type: 'directory' },
  ],
  followups: [
    { q: 'Which Top Doctor cardiologists near me take my plan and can see me this month?', to: 'CARDIO_MY_PLAN' },
    { q: 'How does booking online work?', to: 'BOOK_ONLINE' },
  ],
};

const PEDIATRICIAN_FIRST_VISIT = {
  key: 'PEDIATRICIAN_FIRST_VISIT',
  query: 'What should I bring to a first pediatrician visit?',
  chatLabel: 'Pediatrician · first visit',
  match: ['first visit', 'what to bring', 'first appointment'],
  defaultScope: 'topics',
  entry: 'natural',
  signedIn: false,
  summary: [
    { text: 'For a first pediatrician visit, ' },
    { text: 'bring your child\'s insurance card, any prior growth and immunization records, and a list of questions', cite: [1] },
    { text: '. ' },
    { text: 'The American Academy of Pediatrics recommends confirming the pediatrician is a board-certified Fellow (FAAP) and asking about after-hours coverage', cite: [1] },
    { text: '.' },
  ],
  sections: [
    {
      id: 'prose-1', scope: 'topics', title: 'Preparing for the visit', kind: 'prose',
      paragraphs: ['Bring your child\'s insurance card, any prior growth and immunization records, and a list of questions for the doctor[1].'],
      bullets: [
        { label: 'Insurance card', desc: 'So the office can confirm your plan and whether the pediatrician is in network[1].' },
        { label: 'Immunization and growth records', desc: 'From any previous pediatrician or hospital, if this is a new practice[1].' },
        { label: 'Questions for the doctor', desc: 'About office hours, after-hours coverage, and how the practice handles phone calls[1].' },
      ],
    },
  ],
  sources: [
    { num: 1, name: 'HealthyChildren.org (AAP)', title: 'How to Choose a Pediatrician', date: '2026', url: 'https://www.healthychildren.org/English/family-life/health-management/Pages/How-To-Choose-A-Pediatrician.aspx', type: 'external' },
  ],
  followups: [
    { q: 'Best pediatrician within 10 miles of me who takes Blue Cross and sees new patients', to: 'PEDIATRICIAN_BCBS' },
    { q: 'How are Castle Connolly Top Doctors selected?', to: 'WHAT_IS_TOP_DOCTOR' },
  ],
};

const DENTIST_FIRST_VISIT = {
  key: 'DENTIST_FIRST_VISIT',
  query: 'What happens at a child’s first dental visit?',
  chatLabel: 'Pediatric dentist · first visit',
  match: ['first dental visit', 'first visit', 'age 1', 'tooth'],
  defaultScope: 'topics',
  entry: 'natural',
  signedIn: true,
  profileUse: ['family'],
  summary: [
    { text: 'The American Dental Association recommends ' },
    { text: 'a child\'s first dental visit by age 1, or within six months of the first tooth erupting', cite: [1] },
    { text: '. For a 7-year-old that first visit is years past; checkups at this age mainly confirm ' },
    { text: 'that her teeth and jaw are developing normally and catch any early cavities', cite: [1] },
    { text: '.' },
  ],
  sections: [
    {
      id: 'prose-1', scope: 'topics', title: 'What to bring and expect', kind: 'prose',
      paragraphs: ['A pediatric dentist checks that teeth and jaw growth are on track and looks for early signs of decay[1].'],
      bullets: [
        { label: 'Dental insurance card', desc: 'So the office can confirm coverage before the visit[1].' },
        { label: 'Medication and allergy list', desc: 'Especially anything new since the last checkup[1].' },
        { label: 'Notes on habits', desc: 'Thumb-sucking, teeth grinding, or any tooth pain the child has mentioned[1].' },
      ],
    },
  ],
  sources: [
    { num: 1, name: 'MouthHealthy (ADA)', title: 'First Dental Visit for Baby', date: '2026', url: 'https://www.mouthhealthy.org/life-stages/babies-and-kids/first-dental-visit-for-baby', type: 'external' },
  ],
  followups: [
    { q: 'Top dentist for my 7-year-old who takes Delta Dental', to: 'DENTIST_MAYA' },
    { q: 'How does booking online work?', to: 'BOOK_ONLINE' },
  ],
};

const WHAT_IS_TOP_DOCTOR = {
  key: 'WHAT_IS_TOP_DOCTOR',
  query: 'How are Castle Connolly Top Doctors selected?',
  chatLabel: 'Methodology · Top Doctors & Hospitals',
  match: ['how are top doctors selected', 'top doctor mean', 'methodology', 'selected'],
  defaultScope: 'topics',
  entry: 'natural',
  signedIn: false,
  summary: [
    { text: 'Castle Connolly Top Doctors are ' },
    { text: 'peer-nominated and vetted by Castle Connolly\'s research team', cite: [1] },
    { text: ', ' },
    { text: 'more than 72,000 physicians recognized in 2026 out of over 1.1 million U.S. doctors, about the top 7%', cite: [1] },
    { text: '. Top Dentists follow the same process for ' },
    { text: 'the top 10% of U.S. dentists, more than 22,000 recognized in 2026', cite: [2] },
    { text: '. ' },
    { text: 'No doctor, dentist, or hospital can pay for inclusion or a higher rank', cite: [1, 3] },
    { text: '. Castle Connolly Top Hospitals separately recognizes ' },
    { text: 'hospitals for specific procedures using claims-based outcomes data, with 38 hospitals nationwide reaching the Gold Standard tier for overall excellence, the top 1%', cite: [3] },
    { text: '.' },
  ],
  sections: [
    {
      id: 'prose-1', scope: 'topics', title: 'How the recognitions work', kind: 'prose',
      paragraphs: [
        'Every year, Castle Connolly surveys tens of thousands of practicing clinicians by nomination; a research team then screens each nominee against professional qualifications, education, hospital appointments, and disciplinary history[1].',
      ],
      bullets: [
        { label: 'Top Doctors', desc: 'Peer nominated, top 7% of U.S. physicians, more than 72,000 recognized in 2026[1].' },
        { label: 'Top Dentists', desc: 'Same process, top 10% of U.S. dentists, more than 22,000 recognized in 2026[2].' },
        { label: 'Top Hospitals', desc: 'Ranked by procedure using claims-based outcomes data plus Top Doctor concentration; 38 hospitals nationwide hold the Gold Standard tier for overall excellence[3].' },
      ],
      callout: { title: 'Not paid placement', body: 'No provider or hospital can pay to be included or to rank higher[1][3]. An "Enhanced Profile" only adds visibility to an already-recognized listing.' },
    },
  ],
  sources: [
    { num: 1, name: 'Castle Connolly', title: 'Castle Connolly Research & Selection Process', date: '2026', url: 'https://www.castleconnolly.com/about-us/how-castle-connolly-selects-top-doctors', type: 'directory' },
    { num: 2, name: 'Castle Connolly', title: 'Castle Connolly Top Dentists', date: '2026', url: 'https://www.castleconnolly.com/top-dentists', type: 'directory' },
    { num: 3, name: 'Castle Connolly', title: 'Castle Connolly Top Hospitals FAQ', date: '2026', url: 'https://www.castleconnolly.com/castle-connolly-top-hospitals-faq', type: 'directory' },
  ],
  followups: [
    { q: 'Top Doctor cardiologists in Boston, MA who take Aetna', to: 'CARDIO_AETNA' },
    { q: 'Which Boston hospitals are Castle Connolly Top Hospitals for heart care?', to: 'HOSPITALS_CARDIAC' },
  ],
};

const BOOK_ONLINE = {
  key: 'BOOK_ONLINE',
  query: 'How does booking online work?',
  chatLabel: 'Booking · Zocdoc',
  match: ['book online', 'booking', 'zocdoc', 'schedule online'],
  defaultScope: 'topics',
  entry: 'natural',
  signedIn: false,
  summary: [
    { text: 'Castle Connolly partners with ' },
    { text: 'Zocdoc so patients can see real-time availability and book appointments directly with participating Castle Connolly Top Doctors', cite: [1] },
    { text: '. Doctors marked ' },
    { text: '"Book online" on their profile', cite: [1] },
    { text: ' accept scheduling this way; others require calling the office.' },
  ],
  sections: [
    {
      id: 'prose-1', scope: 'topics', title: 'How it works', kind: 'prose',
      paragraphs: [
        'Select doctor profiles on castleconnolly.com integrate Zocdoc\'s booking tool, showing real-time openings and letting patients book directly[1].',
      ],
      callout: { title: 'Book online vs. view profile', body: 'A doctor without online booking still has a full profile; call the office directly to schedule.' },
    },
  ],
  sources: [
    { num: 1, name: 'PR Newswire', title: 'Castle Connolly Top Doctors and Zocdoc Announce Partnership', date: '2026', url: 'https://www.prnewswire.com/news-releases/castle-connolly-top-doctors-and-zocdoc-announce-partnership-that-will-enable-people-to-find-and-book-appointments-with-castle-connolly-top-doctors-instantly-301774619.html', type: 'booking' },
  ],
  followups: [
    { q: 'Which Top Doctor cardiologists near me take my plan and can see me this month?', to: 'CARDIO_MY_PLAN' },
    { q: 'Top dentist for my 7-year-old who takes Delta Dental', to: 'DENTIST_MAYA' },
  ],
};

window.EHData = {
  CARDIO_AETNA,
  PEDIATRICIAN_BCBS,
  CARDIO_MY_PLAN,
  COMPARE_HOSPITAL,
  DENTIST_MAYA,
  HOSPITALS_CARDIAC,
  CARDIO_TELEHEALTH,
  CARDIO_EVENING,
  PEDIATRICIAN_FIRST_VISIT,
  DENTIST_FIRST_VISIT,
  WHAT_IS_TOP_DOCTOR,
  BOOK_ONLINE,
  PROFILE,
  PROVIDERS,
};
