/* Mock data — a believable cohort: a third-year IR tutorial group's
   essays on the politics of informal global governance. The data carries
   enough verdict variety to demo every UI state. */

/* ── verdict states ─────────────────────────────────────────────── */
const VERDICTS = {
  verified_full:      { label: "verified · full",     tone: "ok",      short: "VERIFIED",   pillLabel: "verified_full" },
  verified_abstract:  { label: "verified · abstract", tone: "partial", short: "ABSTRACT",   pillLabel: "verified_abstract" },
  training_fallback:  { label: "unverified",          tone: "warn",    short: "FALLBACK",   pillLabel: "training_fallback" },
  source_mismatch:    { label: "source mismatch",     tone: "miss",    short: "MISMATCH",   pillLabel: "source_mismatch" },
  not_resolved:       { label: "not resolved",        tone: "miss",    short: "UNRESOLVED", pillLabel: "not_resolved" },
  attribution_concern:{ label: "attribution concern", tone: "partial", short: "PAGE MISSING", pillLabel: "attribution_concern" },
  source_unavailable: { label: "source unavailable",  tone: "warn",    short: "NO SOURCE",  pillLabel: "source_unavailable" },
  auth_required:      { label: "auth required",       tone: "warn",    short: "AUTH",       pillLabel: "auth_required" },
  page_absent:        { label: "page missing",        tone: "warn",    short: "PAGE",       pillLabel: "page_absent" },
  unsupported:        { label: "unsupported",         tone: "miss",    short: "UNSUPPORTED", pillLabel: "unsupported" },
};

/* ── engagement depths ──────────────────────────────────────────── */
const DEPTHS = {
  substantive:   { label: "substantive",   tone: "good" },
  moderate:      { label: "moderate",      tone: "ok" },
  superficial:   { label: "superficial",   tone: "warn" },
  inaccurate:    { label: "inaccurate",    tone: "miss" },
  padding:       { label: "padding",       tone: "warn" },
};

/* ── shared source library ──────────────────────────────────────── */
const SOURCES = {
  wouters18: {
    id: "wouters18",
    short: "Wouters 2018",
    author: "Wouters, J.",
    year: 2018,
    title: "Informal international lawmaking: framing the concept",
    venue: "In J. Pauwelyn et al. (Eds.), Informal International Lawmaking (pp. 38–57). Oxford University Press.",
    via: "CORE · open-access PDF",
    pages: 19,
    cited_by: 4,
  },
  abbott04: {
    id: "abbott04",
    short: "Abbott & Snidal 2004",
    author: "Abbott, K. W., & Snidal, D.",
    year: 2004,
    title: "Hard and soft law in international governance",
    venue: "International Organization, 54(3), 421–456.",
    via: "JSTOR · publisher PDF",
    pages: 36,
    cited_by: 3,
  },
  slaughter04: {
    id: "slaughter04",
    short: "Slaughter 2004",
    author: "Slaughter, A.-M.",
    year: 2004,
    title: "A New World Order",
    venue: "Princeton University Press.",
    via: "Internet Archive · scanned book",
    pages: 360,
    cited_by: 5,
  },
  raustiala02: {
    id: "raustiala02",
    short: "Raustiala 2002",
    author: "Raustiala, K.",
    year: 2002,
    title: "The architecture of international cooperation: transgovernmental networks and the future of international law",
    venue: "Virginia Journal of International Law, 43, 1.",
    via: "SSRN",
    pages: 92,
    cited_by: 2,
  },
  marx48: {
    id: "marx48",
    short: "Marx & Engels 1848",
    author: "Marx, K., & Engels, F.",
    year: 1848,
    title: "Manifesto of the Communist Party",
    venue: "Progress Publishers (1969 reprint).",
    via: "Marxists.org",
    pages: 48,
    cited_by: 2,
  },
  scholte05: {
    id: "scholte05",
    short: "Scholte 2005",
    author: "Scholte, J. A.",
    year: 2005,
    title: "Globalization: A Critical Introduction (2nd ed.)",
    venue: "Palgrave Macmillan.",
    via: "—",
    pages: 528,
    cited_by: 1,
    unresolved: true,
  },
  cohen12: {
    id: "cohen12",
    short: "Cohen 2012",
    author: "Cohen, J. L.",
    year: 2012,
    title: "Globalization and Sovereignty",
    venue: "Cambridge University Press.",
    via: "Cambridge Core · partial preview",
    pages: 480,
    cited_by: 2,
  },
  keohane84: {
    id: "keohane84",
    short: "Keohane 1984",
    author: "Keohane, R. O.",
    year: 1984,
    title: "After Hegemony: Cooperation and Discord in the World Political Economy",
    venue: "Princeton University Press.",
    via: "Library scan · 1989 reprint",
    pages: 290,
    cited_by: 3,
  },
};

/* ── essays in the cohort ───────────────────────────────────────── */
/* citations: { id, source, page, claim, verdict, depth, evidence,
                anchor: para idx, span: [start, end] (approx) } */

const ESSAY_AUSTIN = {
  id: "austin",
  author: "Austin Reeve",
  email: "a.reeve@student.edu.au",
  title: "Power Below the Treaty: Informal Governance and the Erosion of Public Authority",
  course: "POLS3041 · Global Politics",
  cohort: "Tutorial 04",
  submitted: "2026-05-08 14:02",
  word_count: 3120,
  style: "Chicago (author-date)",
  discipline: "Politics · International Relations",
  rating: null,
  body: [
    { kind: "h", text: "Introduction" },
    { kind: "p", text: "The post-war architecture of international governance was built on the assumption that authority flows downward from formal treaty obligations to states, and from states to the bureaucracies and publics they govern. This essay argues that this assumption no longer holds. Power flows where institutions cannot reach <CITE id=\"c1\"/>, with state authority increasingly outsourced to market-adjacent actors in global governance and to clusters of regulators who never see a treaty floor." },
    { kind: "p", text: "What follows is an examination of three mechanisms — soft law, transgovernmental networks, and the privatisation of standards — by which the formal apparatus is bypassed. The argument is not that the state has retreated, but that the surface on which it acts has reshaped itself underneath. Slaughter calls this a \"world of disaggregated sovereignty\" <CITE id=\"c2\"/>, and the metaphor is apt: states have not died, they have moulted." },
    { kind: "h", text: "Soft law and the displacement of obligation" },
    { kind: "p", text: "Abbott and Snidal's distinction between hard and soft law was once read as a relatively benign typology of bindingness <CITE id=\"c3\"/>. In its later use, however, the category of \"soft law\" has come to function less as an analytical device than as a normative escape hatch. Where treaty bargaining fails — as it has, repeatedly, in climate and tax cooperation — the soft-law instrument allows a class of officials to record consensus without recording obligation. The MOU, the framework, the principles document: all of these are, in the language of Abbott and Snidal, \"hard\" in their behavioural effects but \"soft\" in their accountability to publics <CITE id=\"c4\"/>." },
    { kind: "p", text: "The political consequence is not subtle. Smith argues that capitalism emerged from enclosure <CITE id=\"c5\"/>, and a similar enclosure is now underway in international cooperation: the commons of treaty bargaining is fenced off, and what once required public ratification now requires only the assent of the technocratic networks doing the cooperation. Citation of the famous Marxist line that \"all that is solid melts into air\" <CITE id=\"c6\"/> is overused in this context, but it captures the disorientation of watching state authority sublimate." },
    { kind: "h", text: "Transgovernmental networks" },
    { kind: "p", text: "Raustiala's account of transgovernmental regulatory networks <CITE id=\"c7\"/> is the most precise framing of the second mechanism. Regulators talk to other regulators; standards converge; the resulting harmonisation is, in formal terms, not law at all. This is not, as some critics have alleged, a sinister conspiracy. It is the predictable outcome of giving technical agencies a transnational remit without the budget for a treaty conference." },
    { kind: "p", text: "But it does, materially, displace public authority. Scholte's broader argument about globalisation as a redistribution of \"polity\" rather than a hollowing-out is relevant here <CITE id=\"c8\"/> — and would be more relevant if the reader could find his 2005 chapter at a library that still circulates the volume." },
    { kind: "h", text: "Private standards" },
    { kind: "p", text: "The third mechanism — private standard-setting — operates downstream of both soft law and transgovernmental networks. Cohen's account of sovereignty as constituted rather than residual <CITE id=\"c9\"/> illuminates why private standards bind: the firms governed by them have agreed, by their participation in global markets, to be governed by them." },
    { kind: "h", text: "Conclusion" },
    { kind: "p", text: "Keohane's classic claim that international cooperation persists \"after hegemony\" because institutions reduce transaction costs <CITE id=\"c10\"/> remains correct in form, but the institutions doing the reducing are no longer the ones the public can see. The hard-law floor has not collapsed; it has simply been retreated to, while the room above it fills with new furniture nobody voted for." },
  ],
  citations: [
    { id: "c1", source: "wouters18", page: 42, label: "(Wouters 2018, 42)",
      verdict: "inaccurate", depth: "inaccurate",
      claim: "Power flows where institutions cannot reach.",
      evidence: "The cited page discusses procedural informality within WTO treaty secretariats. The essay's claim about state authority being outsourced is broader than what the source asserts.",
      source_quote: "procedural informality within treaty secretariats does not, by itself, signal displacement of state authority.",
      pillState: "verified_full"
    },
    { id: "c2", source: "slaughter04", page: 31, label: "(Slaughter 2004, 31)",
      verdict: "substantive", depth: "substantive",
      claim: "states have not died, they have moulted — \"a world of disaggregated sovereignty\".",
      evidence: "Direct paraphrase, page 31. Slaughter's framing is reproduced faithfully and the metaphor of disaggregation matches her central thesis.",
      source_quote: "what we have is a world of disaggregated sovereignty — the state has not so much receded as decomposed into its parts.",
      pillState: "verified_full"
    },
    { id: "c3", source: "abbott04", page: 422, label: "(Abbott and Snidal 2004, 422)",
      verdict: "substantive", depth: "substantive",
      claim: "Abbott and Snidal distinguished hard from soft law as a typology of bindingness.",
      evidence: "Page 422 introduces the legalisation framework along three dimensions — obligation, precision, delegation — and the essay's framing as a typology of bindingness is reasonable shorthand.",
      source_quote: "we define legalization as a particular form of institutionalization characterized by three dimensions: obligation, precision, and delegation.",
      pillState: "verified_full"
    },
    { id: "c4", source: "abbott04", page: 445, label: "(Abbott and Snidal 2004, 445)",
      verdict: "moderate", depth: "moderate",
      claim: "soft-law instruments are \"hard\" in behavioural effects but \"soft\" in accountability.",
      evidence: "The source discusses behavioural effects of soft law but does not deploy the accountability framing the essay attributes to it. The contrast is the essay's own.",
      source_quote: "soft law's appeal lies less in its bindingness than in its lower contracting costs.",
      pillState: "verified_full"
    },
    { id: "c5", source: null, page: null, label: "Smith argues that capitalism emerged from enclosure",
      verdict: "inaccurate", depth: "inaccurate",
      claim: "Smith argues that capitalism emerged from enclosure.",
      evidence: "No reference for \"Smith\" appears in the bibliography. The likely intended source (Adam Smith, Wealth of Nations) does not make this argument; the enclosure thesis is canonically associated with Polanyi and Marx.",
      pillState: "not_resolved"
    },
    { id: "c6", source: "marx48", page: null, label: "(Marx and Engels 1848)",
      verdict: "moderate", depth: "moderate",
      claim: "Direct quotation: \"all that is solid melts into air\".",
      evidence: "Chicago author-date requires a page number for direct quotations. The source is correct (Manifesto, Pt. I) but the page reference is absent.",
      source_quote: "All that is solid melts into air, all that is holy is profaned…",
      pillState: "attribution_concern"
    },
    { id: "c7", source: "raustiala02", page: 12, label: "(Raustiala 2002, 12)",
      verdict: "substantive", depth: "substantive",
      claim: "Raustiala's account of transgovernmental regulatory networks is the most precise framing.",
      evidence: "Page 12 introduces TRNs as the central analytic frame of the paper. The essay's characterisation is accurate.",
      source_quote: "The transgovernmental network represents a third mode of international cooperation, alongside the formal treaty and the international organisation.",
      pillState: "verified_full"
    },
    { id: "c8", source: "scholte05", page: null, label: "(Scholte 2005)",
      verdict: "padding", depth: "padding",
      claim: "Scholte's broader argument about globalisation as redistribution of polity.",
      evidence: "Source text could not be retrieved through any of the seven retrieval strategies. Argus's general-knowledge fallback indicates Scholte's broader argument exists but the cited chapter cannot be verified.",
      pillState: "training_fallback"
    },
    { id: "c9", source: "cohen12", page: 87, label: "(Cohen 2012, 87)",
      verdict: "moderate", depth: "moderate",
      claim: "Cohen's account of sovereignty as constituted rather than residual.",
      evidence: "Only the abstract and table of contents were retrievable. The framing is consistent with the abstract but the specific page-87 claim cannot be checked.",
      source_quote: "(abstract) Sovereignty is here treated not as a remainder of state capacity but as a normative construct constituted by the international order.",
      pillState: "verified_abstract"
    },
    { id: "c10", source: "keohane84", page: 245, label: "(Keohane 1984, 245)",
      verdict: "inaccurate", depth: "inaccurate",
      claim: "Keohane's classic claim that cooperation persists after hegemony because institutions reduce transaction costs.",
      evidence: "The retrieved PDF's first page identifies the work as a different Keohane volume (Power and Governance in a Partially Globalized World, 2002). The chapter list does not match After Hegemony. Page 245 of the retrieved file discusses an unrelated topic.",
      source_quote: null,
      pillState: "source_mismatch"
    },
  ],
};

const COHORT = {
  id: "pols3041-t04",
  name: "POLS3041 · Tutorial 04",
  submitted: "2026-05-08",
  marker: "Dr Jenkins",
  essays: [
    { id: "austin",  author: "Austin Reeve",      title: "Power Below the Treaty",                             refs: 10, concerns: 4, unverified: 3, status: "ready" },
    { id: "mira",    author: "Mira Achebe",       title: "The Architecture of Disaggregated Sovereignty",      refs: 14, concerns: 2, unverified: 1, status: "ready" },
    { id: "jin",     author: "Jin Park",          title: "From Hard Law to Hard Networks",                     refs: 11, concerns: 5, unverified: 2, status: "ready" },
    { id: "celia",   author: "Celia Voss",        title: "Soft Law as Political Anaesthesia",                  refs: 9,  concerns: 1, unverified: 0, status: "ready" },
    { id: "harold",  author: "Harold Tan",        title: "Standards Without Statutes",                         refs: 12, concerns: 3, unverified: 2, status: "ready" },
    { id: "naomi",   author: "Naomi Bright",      title: "Treaty, Network, Standard: Three Modes of Order",    refs: 16, concerns: 2, unverified: 1, status: "ready" },
    { id: "elena",   author: "Elena Cortez",      title: "Polity at the Edges",                                refs: 8,  concerns: 4, unverified: 3, status: "ready" },
    { id: "samir",   author: "Samir Ali",         title: "Privatising the Rule of Law",                        refs: 13, concerns: 2, unverified: 1, status: "ready" },
    { id: "noor",    author: "Noor Hassan",       title: "Globalisation's Constitutional Moment",              refs: 11, concerns: 3, unverified: 2, status: "running" },
    { id: "rae",     author: "Rae Lindqvist",     title: "Who Speaks for the Cooperative State?",              refs: 10, concerns: 1, unverified: 0, status: "ready" },
  ],
  /* sources × essays — verdict tone code: ok / partial / warn / miss / null */
  matrix: {
    sources: ["abbott04", "slaughter04", "wouters18", "raustiala02", "keohane84", "cohen12", "scholte05", "marx48"],
    rows: [
      { essay: "austin",  cells: { abbott04: "ok",      slaughter04: "ok",      wouters18: "miss",    raustiala02: "ok",      keohane84: "miss",    cohen12: "partial",  scholte05: "warn",  marx48: "partial" } },
      { essay: "mira",    cells: { abbott04: "ok",      slaughter04: "ok",      wouters18: "ok",      raustiala02: "ok",      keohane84: "ok",      cohen12: "ok",        scholte05: null,    marx48: null } },
      { essay: "jin",     cells: { abbott04: "ok",      slaughter04: "miss",    wouters18: "ok",      raustiala02: "ok",      keohane84: "miss",    cohen12: "ok",        scholte05: "warn",  marx48: "miss" } },
      { essay: "celia",   cells: { abbott04: "ok",      slaughter04: null,      wouters18: "partial", raustiala02: "ok",      keohane84: "ok",      cohen12: null,        scholte05: null,    marx48: null } },
      { essay: "harold",  cells: { abbott04: "partial", slaughter04: "ok",      wouters18: "miss",    raustiala02: "ok",      keohane84: "ok",      cohen12: "warn",      scholte05: null,    marx48: null } },
      { essay: "naomi",   cells: { abbott04: "ok",      slaughter04: "ok",      wouters18: "ok",      raustiala02: "ok",      keohane84: "ok",      cohen12: "partial",   scholte05: null,    marx48: "ok" } },
      { essay: "elena",   cells: { abbott04: "miss",    slaughter04: "ok",      wouters18: "warn",    raustiala02: "ok",      keohane84: null,      cohen12: "miss",      scholte05: "warn",  marx48: null } },
      { essay: "samir",   cells: { abbott04: "ok",      slaughter04: "ok",      wouters18: "ok",      raustiala02: "partial", keohane84: "ok",      cohen12: "miss",      scholte05: null,    marx48: null } },
      { essay: "noor",    cells: { abbott04: "ok",      slaughter04: "ok",      wouters18: "warn",    raustiala02: "ok",      keohane84: "ok",      cohen12: "warn",      scholte05: "miss",  marx48: null } },
      { essay: "rae",     cells: { abbott04: "ok",      slaughter04: "ok",      wouters18: "ok",      raustiala02: "ok",      keohane84: null,      cohen12: "ok",        scholte05: null,    marx48: null } },
    ],
  },
};

/* ── recent / dashboard ─────────────────────────────────────────── */
const RECENT = [
  { id: "austin",  title: "Power Below the Treaty",                  author: "Austin Reeve",   refs: 10, concerns: 4, unverified: 3, when: "2 min ago",   cohort: "POLS3041 T04" },
  { id: "mira",    title: "The Architecture of Disaggregated…",      author: "Mira Achebe",    refs: 14, concerns: 2, unverified: 1, when: "8 min ago",   cohort: "POLS3041 T04" },
  { id: "jin",     title: "From Hard Law to Hard Networks",          author: "Jin Park",       refs: 11, concerns: 5, unverified: 2, when: "11 min ago",  cohort: "POLS3041 T04" },
  { id: "celia",   title: "Soft Law as Political Anaesthesia",       author: "Celia Voss",     refs: 9,  concerns: 1, unverified: 0, when: "14 min ago",  cohort: "POLS3041 T04" },
  { id: "harold",  title: "Standards Without Statutes",              author: "Harold Tan",     refs: 12, concerns: 3, unverified: 2, when: "yesterday",   cohort: "POLS3041 T04" },
  { id: "naomi",   title: "Treaty, Network, Standard",                author: "Naomi Bright",   refs: 16, concerns: 2, unverified: 1, when: "yesterday",   cohort: "POLS3041 T04" },
];

const QUEUE = [
  { id: "q1", who: "Noor Hassan",  title: "Globalisation's Constitutional Moment", state: "stage_3_verify",  progress: 0.62 },
  { id: "q2", who: "Erin Patel",   title: "Network Authority and the Public",       state: "stage_2_retrieve", progress: 0.18 },
  { id: "q3", who: "Theo Reyes",   title: "After the Hard Law Frontier",            state: "queued",           progress: 0   },
];

/* what's pinned in the sidebar tree for the Workspace view */
const NAV_TREE = {
  inbox: [
    { id: "noor",  label: "Globalisation's Constitutional Moment", state: "running" },
    { id: "erin",  label: "Network Authority and the Public",       state: "queued" },
  ],
  pinned: [
    { id: "austin", label: "Power Below the Treaty", concerns: 4 },
    { id: "jin",    label: "From Hard Law to Hard Networks", concerns: 5 },
  ],
  cohorts: [
    { id: "pols3041-t04", label: "POLS3041 · Tutorial 04", count: 10 },
    { id: "pols3041-t05", label: "POLS3041 · Tutorial 05", count: 9 },
    { id: "law5210",      label: "LAW5210 · International Law", count: 14 },
  ],
};

/* ── page excerpts ───────────────────────────────────────────────
   Mock "what's on the cited page" — surrounding paragraphs so the
   source pane can show the academic *the actual reading context*
   around the cited line. The cited line itself is marked by `HL`
   wrappers so the source pane can highlight it. */

const PAGE_EXCERPTS = {
  c1: { /* Wouters 2018, p. 42 */
    chapter: "Chapter 2 · Framing the concept",
    page: 42,
    of: 19,
    paragraphs: [
      "The terminology of \"informal lawmaking\" risks treating as marginal a phenomenon that, as the preceding section has shown, is structural. International cooperation has always carried an informal underside — diplomatic notes, executive understandings, the gentleman's agreement — but the past two decades have seen the underside thicken into a load-bearing structure of its own.",
      "What follows is a definitional exercise, not a normative one. The aim is to delimit what counts as informal international lawmaking (IIL) precisely enough that empirical claims about it can be evaluated. Three dimensions of informality must be distinguished: output informality (the resulting instrument is not a treaty), process informality (the procedure follows no codified rule), and actor informality (the participants are not states-as-such).",
      "It is worth pausing, here, on a temptation. <HL>Procedural informality within treaty secretariats does not, by itself, signal displacement of state authority.</HL> States routinely delegate procedural choice to standing bodies; the choice to adopt a non-binding resolution rather than to convene a renegotiation conference is a procedural one, but the substantive authority remains the state's. A typology that conflated the two would over-count.",
      "The harder cases lie elsewhere. Where a body composed of non-state actors produces output that practically binds states — through market discipline, peer comparison, or the threat of secondary sanction — the boundary between procedural and substantive informality collapses. This is the territory of standard-setting bodies, transgovernmental networks, and the soft-law instruments of the OECD's Base Erosion and Profit Shifting framework.",
    ],
  },
  c2: { /* Slaughter 2004, p. 31 */
    chapter: "Chapter 1 · The disaggregated state",
    page: 31,
    of: 360,
    paragraphs: [
      "The classic state of international relations theory — the billiard ball, the unitary actor, the territorially bounded sovereign — was always a simplification. But the simplification was useful: it abstracted away domestic complexity in order to make claims about systemic behaviour. The cost of the abstraction is now visible everywhere.",
      "Look closely at any modern cooperation problem — financial regulation, public health, climate, anti-corruption — and the unitary state has dissolved into its working parts. Central bankers talk to other central bankers. Securities regulators meet quarterly without their finance ministers. Health officials run joint surveillance with their counterparts abroad. The cooperation is real; the formal apparatus through which IR theory expected it to travel is no longer the relevant one.",
      "<HL>What we have is a world of disaggregated sovereignty — the state has not so much receded as decomposed into its parts.</HL> Each of those parts carries some of the authority of the whole, and exercises it in concert with its functional analogue elsewhere. The result is not a global government. It is something stranger: a world in which the routine work of governing has been horizontally networked, while the symbolic representation of the state remains vertically intact.",
      "This book argues that the disaggregated state is, in three important respects, the future of international order. First, it scales: more issues, more participants, more decisions. Second, it adapts: networks reorganise faster than treaty regimes. Third, it accommodates legitimacy in a way the older order does not — by routing decisions through the very domestic agencies that publics already recognise.",
    ],
  },
  c3: { /* Abbott & Snidal 2004, p. 422 */
    chapter: "Hard and soft law in international governance",
    page: 422,
    of: 36,
    paragraphs: [
      "Why do states sometimes commit themselves through formal legal instruments and sometimes through softer alternatives? The answer, we argue, lies in the differential costs of contracting along several dimensions, not in a binary opposition between law and not-law.",
      "<HL>We define legalization as a particular form of institutionalization characterized by three dimensions: obligation, precision, and delegation.</HL> Obligation: the degree to which states are bound. Precision: the specificity of the rule. Delegation: the extent to which a third party is given authority to interpret, apply, and enforce.",
      "Soft law lies along these dimensions, not outside them. A non-binding ministerial declaration that nonetheless specifies precise targets has high precision and low obligation. A treaty that commits states to \"endeavour\" toward an ill-defined goal has high obligation and low precision. These are different bargains, with different consequences.",
      "The political economy of soft law is, accordingly, not that it is easier than hard law — though it often is — but that it offers a different combination of properties. Where states want movement on substance without locking in interpretation, softness can be the rational design.",
    ],
  },
  c4: { /* Abbott & Snidal 2004, p. 445 */
    chapter: "Hard and soft law in international governance",
    page: 445,
    of: 36,
    paragraphs: [
      "The case studies in this volume each address, in their own context, the question of why soft law was preferred to a harder alternative. The answers cluster.",
      "<HL>Soft law's appeal lies less in its bindingness than in its lower contracting costs.</HL> Where the relevant issue is technically complex, politically sensitive, or jurisdictionally crowded, the marginal cost of converting consensus into a treaty obligation rises sharply — sometimes to the point of preventing agreement altogether.",
      "Two qualifications are due. First, soft law is not weak law. Compliance with the Basle Concordat, the FATF recommendations, and the OECD guidelines for multinational enterprises has, in practice, exceeded compliance with several formally binding regimes. Second, the political consequence of soft law depends crucially on the institutional setting in which it sits.",
      "The accountability question is real but more specific than the literature has framed it. Soft instruments do not, by themselves, dilute accountability; the institutional architecture around them does.",
    ],
  },
  c6: { /* Marx & Engels 1848 — generic intro */
    chapter: "Part I · Bourgeois and Proletarians",
    page: 16,
    of: 48,
    paragraphs: [
      "The bourgeoisie cannot exist without constantly revolutionising the instruments of production, and thereby the relations of production, and with them the whole relations of society. Conservation of the old modes of production in unaltered form was, on the contrary, the first condition of existence for all earlier industrial classes.",
      "Constant revolutionising of production, uninterrupted disturbance of all social conditions, everlasting uncertainty and agitation distinguish the bourgeois epoch from all earlier ones.",
      "<HL>All that is solid melts into air, all that is holy is profaned, and man is at last compelled to face with sober senses his real conditions of life, and his relations with his kind.</HL>",
      "The need of a constantly expanding market for its products chases the bourgeoisie over the whole surface of the globe. It must nestle everywhere, settle everywhere, establish connexions everywhere.",
    ],
  },
  c7: { /* Raustiala 2002, p. 12 */
    chapter: "The architecture of international cooperation",
    page: 12,
    of: 92,
    paragraphs: [
      "The treaty has long enjoyed analytical priority in the study of international law. Where the treaty is silent, scholars have tended to assume cooperation is absent. This paper argues, against that assumption, that an entire third mode of international cooperation has grown up alongside the treaty and the international organisation — and is, in many domains, the dominant mode.",
      "<HL>The transgovernmental network represents a third mode of international cooperation, alongside the formal treaty and the international organisation.</HL> Its participants are not states-as-such but regulatory officials with substantive expertise — securities regulators, central bankers, antitrust enforcers, food-safety authorities, financial-intelligence units.",
      "What distinguishes these networks from older forms of inter-bureaucratic contact is their density, their substantive remit, and the depth of their outputs. The Basle Committee on Banking Supervision produces capital-adequacy standards that effectively bind every internationally active bank. IOSCO's enforcement memoranda set the practical floor for cross-border securities investigations.",
      "None of this output takes the form of treaty law. None of it passes through legislative ratification. But the cooperation it produces is unmistakable, and the demands it places on domestic regulators are substantial.",
    ],
  },
  c9: { /* Cohen 2012 — abstract only */
    chapter: "Introduction (abstract only — full text unretrievable)",
    page: 0,
    of: 480,
    paragraphs: [
      "ABSTRACT — This book offers a normative account of sovereignty under conditions of dense international cooperation. Against accounts that treat sovereignty as a remainder — what is left to the state after international institutions have done their work — Cohen argues that sovereignty is itself a normative construct, constituted by the international order rather than residual to it.",
      "<HL>Sovereignty is here treated not as a remainder of state capacity but as a normative construct constituted by the international order.</HL>",
      "The argument proceeds in four parts. Part I sets out the constitutive view of sovereignty and contrasts it with the residual view dominant in IR scholarship. Part II applies the constitutive view to questions of human-rights conditionality, humanitarian intervention, and the responsibility to protect. Part III turns to economic governance and the WTO. Part IV develops the implications for a pluralist global constitutionalism.",
      "(The remainder of the chapter is not available in the Cambridge Core preview. The retrieved abstract is reproduced above.)",
    ],
  },
};

/* ────────────────────────────────────────────────────────────────
   MY_ESSAYS — left-pane queue for the workspace.
   Pass 3 redesign: replaces the icon Rail+Nav with a richer queue
   of essays organised by status (Drafts / Needs follow-up / Active
   / Archive). Each card shows title, student, citation count, and
   small status dots for at-a-glance verification state.
   ──────────────────────────────────────────────────────────────── */
const MY_ESSAYS = {
  drafts: [
    { id: "d1", title: "Untitled essay", student: "Riley Chen", date: "Today 14:02", status: "draft" },
    { id: "d2", title: "Untitled essay", student: "Devon Park", date: "Yesterday", status: "draft" },
    { id: "d3", title: "Untitled essay", student: "Aiden Wu",   date: "Yesterday", status: "draft" },
  ],
  needs_follow_up: [
    { id: "nf1", title: "Liberal international order",       student: "Zarakol (2019)", citations: 18,
      dots: ["miss","warn","ok"], date: "2 days ago", verdict: "inaccurate" },
    { id: "nf2", title: "Hypocrisy charge",                  student: "Lawson (2023)",  citations: 14,
      dots: ["warn","ok","ok"],   date: "3 days ago", verdict: "moderate" },
    { id: "nf3", title: "Intelligence & informal networks", student: "Andrew (1998)",  citations: 9,
      dots: ["ok","warn","ok"],   date: "4 days ago", verdict: "substantive" },
  ],
  active: [
    { id: "austin", title: "The Return of the Liberal World Order?",        student: "Riley Chen",    citations: 16,
      dots: ["ok","ok","warn"],   date: "Today",     verdict: "substantive" },
    { id: "a2",     title: "Is the Liberal Order in Decline?",              student: "Devon Park",    citations: 16,
      dots: ["ok","warn","miss"], date: "Today",     verdict: "moderate" },
    { id: "a3",     title: "Rethinking Sovereignty as Adjustment",          student: "Maya Linwood",  citations: 11,
      dots: ["ok","ok","ok"],     date: "Yesterday", verdict: "substantive" },
    { id: "a4",     title: "The Evolution of International Norms",          student: "Jordan Khoury", citations: 21,
      dots: ["warn","warn","ok"], date: "Yesterday", verdict: "moderate" },
    { id: "a5",     title: "Postcolonial Critiques of the International Order", student: "Aiden Wu",  citations: 13,
      dots: ["ok","miss","ok"],   date: "2 days ago", verdict: "inaccurate" },
  ],
  archive: [
    { id: "ar1", title: "Sovereignty and the World Trade Organisation", student: "Sam Whitlock", citations: 19,
      dots: ["ok","ok","ok"],   date: "Last week", verdict: "substantive" },
    { id: "ar2", title: "The Limits of International Law in Practice",  student: "Imani Ali",    citations: 17,
      dots: ["ok","warn","ok"], date: "Last week", verdict: "moderate" },
  ],
};

const ME_PROFILE = {
  name: "Steve Vaughan",
  role: "Senior Marker",
  initials: "SV",
};

Object.assign(window, { VERDICTS, DEPTHS, SOURCES, ESSAY_AUSTIN, COHORT, RECENT, QUEUE, NAV_TREE, PAGE_EXCERPTS, MY_ESSAYS, ME_PROFILE });
