// Article / section data — window globals so every babel script sees them.

window.QUIZ_DATA = [
  {
    n: "01",
    q: "Was Iran ever an ally of Israel?",
    lede: "Yes, remarkably so.",
    ans: "Before 1979 Iran and Israel had diplomatic relations, direct flights, trade, and quiet cooperation in energy, agriculture and defence."
  },
  {
    n: "02",
    q: "Did a US President visit Tehran?",
    lede: "Yes — for New Year's Eve.",
    ans: "Jimmy Carter toasted the Shah's \u201cgreat leadership\u201d and called Iran an \u201cisland of stability\u201d just fourteen months before the Revolution."
  },
  {
    n: "03",
    q: "Was Iran more open to the world in the 1970s than today?",
    lede: "Dramatically so.",
    ans: "Tehran had tree-lined boulevards, a thriving café culture, five-star hotels and a cosmopolitan, educated middle class."
  }
];

window.REGIONS = [
  { id:'alborz',    name:'Alborz Mountains',  color:'#4a7fb5', op:0.55, desc:'Northern range forming a barrier along the Caspian coast.' },
  { id:'zagros',    name:'Zagros Mountains',  color:'#7a5c8a', op:0.52, desc:'Western chain dividing Iran from Iraq; rich in oil deposits.' },
  { id:'kavir',     name:'Dasht-e Kavir',     color:'#c8965a', op:0.50, desc:'Central salt desert, largely uninhabitable.' },
  { id:'lut',       name:'Dasht-e Lut',       color:'#d4a040', op:0.48, desc:'Eastern desert, one of the hottest places on Earth.' },
  { id:'khuzestan', name:'Khuzestan',         color:'#3a8a60', op:0.55, desc:'South-west oil province — strategic and ethnically diverse.' },
  { id:'gulf',      name:'Persian Gulf',      color:'#2a6090', op:0.50, desc:'Critical shipping corridor and energy transit route.' },
  { id:'hormuz',    name:'Strait of Hormuz',  color:'#2F3742', op:1,    desc:'Strategic strait controlling access to the Gulf.' }
];

window.ERAS = [
  { yr:1920, name:'Early modernisation', range:'1920 – 1940',  status:['West: emerging ties'],             evt:"Reza Shah begins unification and westernisation of Persia.",             mood:0.50, para:null },
  { yr:1953, name:'The Coup',             range:'1953',         status:['US: intervention'],                evt:"Western-backed coup restores the Shah's authority after Mosaddegh.",     mood:0.35, para:3, key:true },
  { yr:1965, name:'The Golden Age',       range:'1965 – 1977',  status:['US: close ally','Israel: partner'],evt:"Oil revenues fund rapid development and cosmopolitan modernisation.",    mood:0.85, para:4 },
  { yr:1977, name:'False stability',      range:'1977',         status:['US: close ally'],                  evt:"Carter's New Year visit; the 'island of stability' assessment.",          mood:0.70, para:5, key:true },
  { yr:1979, name:'Revolution',           range:'1979 – 1989',  status:['US: adversary','Israel: hostile'], evt:"Islamic Revolution sweeps away monarchy and Western ties.",               mood:0.15, para:6, key:true },
  { yr:2026, name:'Present day',          range:'2026',         status:['US: sanctions','Israel: conflict'],evt:"Reform attempts crushed; the cycle continues.",                           mood:0.22, para:7 }
];

window.PARAS = [
  "For much of the twentieth century, Iran was a country that looked outward. Tehran was a city of tree-lined boulevards, modernist architecture and thriving café culture. International visitors arrived in growing numbers through the 1950s and 1960s, drawn by plans for economic reform and modernisation, as well as the ruins of Persepolis and a taste of Persian culture. For a time, Iran even had good relations with Israel, with flights and trade between the two countries and cooperation in energy, agriculture and defence.",
  "Iran's geography is key to understanding its history — and how it engages with the rest of the world. The country is ringed by the Zagros and Alborz mountain ranges, flanked by vast deserts and bordered by marshlands in the south. This terrain has made Persia almost impossible to conquer but also kept its many ethnic groups — Persians, Azeris, Kurds, Baluchis, Arabs — separate from one another. As Tim Marshall observes in \u2018The Power of Geography\u2019, Iran's rulers have always gravitated toward centralised and often repressive government to hold these diverse groups together — \u201ca pattern as true of the ayatollahs as their predecessors.\u201d",
  "But Iran's twentieth-century modernisation was real. Reza Shah Pahlavi, who came to power in the 1920s, set about unifying and transforming the country along secular, Western-oriented lines. He built railways and roads across formidable terrain, established Tehran University and reformed the legal system. Women were encouraged to remove the veil. He aimed to reinvent Persia's ancient civilisation as a modern nation state.",
  "His son, Mohammad Reza Shah, continued this trajectory after the Second World War — albeit with growing contradictions. The brief experiment in democratic governance under Prime Minister Mosaddegh, who nationalised the Anglo-Iranian Oil Company, ended with a Western-backed coup in 1953 that restored the Shah's authority. Western influence was secured, but at a cost to Iranian self-determination that would reverberate for decades.",
  "Yet through the 1960s and the early 1970s, Iran experienced what many recall as a golden age. Oil revenues funded rapid development. Five-star hotels opened up, there was a vibrant arts scene and a cosmopolitan nightlife. The country's middle class was growing, educated and increasingly confident.",
  "The Shah was viewed as a key US ally by President Jimmy Carter, who spent New Year's Eve of 1977 with his wife in Tehran. At a banquet organised for the President, Carter toasted the \u201cgreat leadership of the Shah\u201d and his role in making Iran an \u201cisland of stability in one of the more troubled areas of the world,\u201d recounts Daniel Yergin in \u2018The Prize\u2019.",
  "Beneath the surface, tensions were building. Despite winning Carter's approval with his talk of human rights, the Shah's secret police, SAVAK, suppressed dissent with severity. Economic modernisation — and often wasteful spending of oil revenues — benefited the urban elite but left rural communities behind. The clergy, marginalised by decades of secularisation, nursed deep grievances. The 1979 revolution swept away not just the monarchy but much of the outward-facing culture that had defined the preceding half-century.",
  "While the Iran of the 1960s would have been unrecognisable to older generations, the Iran of the 1980s was equally unrecognisable to those who had known the country just a decade before. Since the revolution there have been attempts at reform and modernisation — but reformist leaders have been undermined, imprisoned or assassinated. Popular protest has been crushed, as we saw again in January 2026. But for those who take a long view, Iran's story before 1979 is worth holding in mind: the cycle may turn once again."
];

window.IMPLICATIONS = [
  { era:'1953',        evt:'Mosaddegh coup',              tag:'FX & sanctions risk',        text:"Foreign intervention in sovereign monetary policy creates lasting institutional distrust. Modern sanctions regimes echo this dynamic — when evaluating emerging-market exposure, assess not just current policy but historical grievances that may resurface." },
  { era:'1960s–70s',   evt:'Oil golden age',               tag:'Emerging-market risk',       text:"Commodity-driven growth can mask structural vulnerabilities. Iran's apparent stability was built on oil revenues and external support, not diversified institutions. Look beyond headline GDP growth to governance quality and economic breadth." },
  { era:'1977',        evt:"Carter's stability read",     tag:'Political risk',             text:"Elite consensus and surface indicators can miss deeper currents. The \u2018island of stability\u2019 line came fourteen months before revolution. Diversify information sources beyond official channels and Western-aligned institutions." },
  { era:'1979',        evt:'Revolution & realignment',    tag:'Energy & trade disruption', text:"Regime change in resource-rich nations creates immediate supply shocks and long-duration geopolitical shifts. Portfolio construction should account for tail-risk scenarios in regions with suppressed popular movements." },
  { era:'Geography',   evt:'Mountains & deserts',          tag:'Scenario planning',          text:"Geography constrains political possibility. Iran's ethnic fragmentation and natural barriers make both invasion and internal cohesion difficult. Country-risk work should consider not just current regime but the physical geography that shapes governance." },
  { era:'Long view',   evt:'Cycle argument',               tag:'Long-duration positioning', text:"Political cycles in major nations can span decades. Iran shifted from Western ally to adversary in two years, but the underlying pattern of opening and closing stretches across a century. Position for reversion — on generational timescales." }
];
