From f04f71912b30eca6418825e93de3c25a4f43ace0 Mon Sep 17 00:00:00 2001 From: vahid-ahmadi Date: Wed, 18 Nov 2026 10:44:54 +0000 Subject: [PATCH 1/2] Allow the PolicyEngine slides site to embed the macro site Replace X-Frame-Options SAMEORIGIN with a CSP frame-ancestors list: 'self', policyengine.org, www.policyengine.org (which serves /slides), policyengine-slides.vercel.app and http://localhost:3000 (local presenting). Browsers that support frame-ancestors ignore X-Frame-Options, so keeping it would only block the embed in older browsers. Co-Authored-By: Claude Opus 5.5 --- vercel.json | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/vercel.json b/vercel.json index 685ceac3..dcebfb34 100644 --- a/vercel.json +++ b/vercel.json @@ -92,11 +92,10 @@ { "key": "Strict-Transport-Security", "value": "max-age=63072000; includeSubDomains" }, { "key": "X-Content-Type-Options", "value": "nosniff" }, { "key": "Referrer-Policy", "value": "strict-origin-when-cross-origin" }, - { "key": "X-Frame-Options", "value": "SAMEORIGIN" }, { "key": "Permissions-Policy", "value": "geolocation=(), microphone=(), camera=()" }, { "key": "Content-Security-Policy", - "value": "default-src 'self'; script-src 'self' 'unsafe-inline'; style-src 'self' 'unsafe-inline'; img-src 'self' data:; font-src 'self'; object-src 'self'; frame-ancestors 'self'; base-uri 'self'; form-action 'self'; connect-src 'self'; upgrade-insecure-requests" + "value": "default-src 'self'; script-src 'self' 'unsafe-inline'; style-src 'self' 'unsafe-inline'; img-src 'self' data:; font-src 'self'; object-src 'self'; frame-ancestors 'self' https://policyengine.org https://www.policyengine.org https://policyengine-slides.vercel.app http://localhost:3000; base-uri 'self'; form-action 'self'; connect-src 'self'; upgrade-insecure-requests" } ] }, From debd315193319b802466ceb2da612ec9adb225c5 Mon Sep 17 00:00:00 2001 From: vahid-ahmadi Date: Wed, 18 Nov 2026 10:47:12 +0000 Subject: [PATCH 2/2] Remove the step strip from the methodology pages The numbered strip of linked steps above each methodology walkthrough repeated the step headings that follow it. Removed from all seven methodology pages, with its now-unused .meth-map CSS. Co-Authored-By: Claude Opus 5.5 --- define/methodology/index.html | 11 ----------- frb-us/methodology/index.html | 10 ---------- obr/methodology/index.html | 11 ----------- olg/methodology/index.html | 13 ------------- pe/methodology/index.html | 8 -------- style.css | 32 -------------------------------- svar/methodology/index.html | 10 ---------- us-hank/methodology/index.html | 10 ---------- 8 files changed, 105 deletions(-) diff --git a/define/methodology/index.html b/define/methodology/index.html index 0c0277ae..50fbd2b9 100644 --- a/define/methodology/index.html +++ b/define/methodology/index.html @@ -73,17 +73,6 @@

Closed accounting, demand-led economy, pinned adapter

Six steps, from the accounting discipline to the running system.

-
-
How the model works, in one picture: the 6 steps below, in order. Notation is at the end.
-
    -
  1. 1What stock-flow consistency means
  2. -
  3. 2Sectors and balance sheets
  4. -
  5. 3The housing and power blocks
  6. -
  7. 4Demand-led closure and multipliers
  8. -
  9. 5Scenarios as policy switches
  10. -
  11. 6The adapter and the clean-room path
  12. -
-
diff --git a/frb-us/methodology/index.html b/frb-us/methodology/index.html index 0249dad0..58329377 100644 --- a/frb-us/methodology/index.html +++ b/frb-us/methodology/index.html @@ -73,16 +73,6 @@

Parse, add-factor, solve by Newton

From the Board's published artefacts to an impulse response. Full derivations are in the working paper.

-
-
The 5 steps, in order. Notation is at the end.
-
    -
  1. 1Parse the Board's model file
  2. -
  3. 2Load LONGBASE, then add-factor
  4. -
  5. 3Solve by damped Newton
  6. -
  7. 4Policy rules
  8. -
  9. 5Shock and compare
  10. -
-
diff --git a/obr/methodology/index.html b/obr/methodology/index.html index e3a4c672..5731f51b 100644 --- a/obr/methodology/index.html +++ b/obr/methodology/index.html @@ -72,17 +72,6 @@

OBR emulator

Transpile, solve, swap the closure

-
-
The 6 steps, in order. Notation is at the end.
-
    -
  1. 1Transpile the published listing
  2. -
  3. 2Initialise from official data
  4. -
  5. 3Solve by Gauss–Seidel iteration
  6. -
  7. 4Anchor to the published EFO
  8. -
  9. 5Swap the closure, shock, compare
  10. -
  11. 6Score a costed reform through the bridge
  12. -
-
diff --git a/olg/methodology/index.html b/olg/methodology/index.html index 917459d3..dea491c4 100644 --- a/olg/methodology/index.html +++ b/olg/methodology/index.html @@ -87,19 +87,6 @@

Core elements of OG-UK

-
-
How the model works, in one picture: the 8 steps below, in order. Notation is at the end.
-
    -
  1. 1The overlapping-generations idea
  2. -
  3. 2Household decisions
  4. -
  5. 3Firms and production
  6. -
  7. 4Government
  8. -
  9. 5Market clearing and equilibrium
  10. -
  11. 6How the model is solved
  12. -
  13. 7Calibrating for the United Kingdom
  14. -
  15. 8What this enables
  16. -
-
diff --git a/pe/methodology/index.html b/pe/methodology/index.html index 87532e6f..616b3e60 100644 --- a/pe/methodology/index.html +++ b/pe/methodology/index.html @@ -72,14 +72,6 @@

How it works

Statute as code, a reform as a parameter change, and survey microdata for population runs.

-
-
The 3 steps, in order.
-
    -
  1. 1Statute as a dependency graph
  2. -
  3. 2Reforms and reproducibility
  4. -
  5. 3Survey microdata, enhanced
  6. -
-
diff --git a/style.css b/style.css index b2f53608..30efbc5b 100644 --- a/style.css +++ b/style.css @@ -5632,38 +5632,6 @@ a .model-id, a:hover .model-id { text-decoration: none; display: inline-block; } .meth-pair .meth-display { padding: 10px 16px; overflow-x: auto; overflow-y: hidden; } .meth-pair .meth-display mjx-container[display="true"] { text-align: left !important; margin: 0 !important; } .meth-pair .meth-step > .step-diagram { margin: var(--s-3) 0 var(--s-4); } -/* step map: one row of linked steps (two rows of four for eight) */ -.meth-map { margin: var(--s-4) 0 var(--s-6); } -.meth-map-cap { margin: 0 0 var(--s-3); color: var(--text-muted); font-size: var(--fs-body-sm); } -.meth-map-list { list-style: none; margin: 0; padding: 0; display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); column-gap: 26px; row-gap: 12px; } -.meth-map-list:has(> li:nth-child(7)) { grid-auto-flow: row; grid-template-columns: repeat(4, minmax(0, 1fr)); } -.meth-map-list li { position: relative; min-width: 0; } -.meth-map-list a { - display: flex; flex-direction: column; gap: 8px; height: 100%; box-sizing: border-box; - padding: 12px 14px; border: 1px solid var(--hairline-strong); border-radius: 10px; - background: var(--surface-card); color: var(--text-strong); text-decoration: none; - font-size: var(--fs-body-sm); font-weight: 600; line-height: 1.35; -} -.meth-map-list a:hover { border-color: var(--brand); background: var(--surface-tint); } -.meth-map-num { display: inline-grid; place-items: center; width: 24px; height: 24px; border-radius: 6px; background: var(--surface-tint); color: var(--tab-teal); font-size: var(--fs-small); font-weight: 600; } -.meth-map-list li:not(:last-child)::after { - content: ""; position: absolute; top: 50%; right: -20px; width: 14px; height: 2px; background: var(--primary); - clip-path: none; -} -.meth-map-list li:not(:last-child)::before { - content: ""; position: absolute; top: calc(50% - 4px); right: -21px; border: 5px solid transparent; border-left: 6px solid var(--primary); border-right: 0; -} -.meth-map-list:has(> li:nth-child(7)) li:nth-child(4)::after, -.meth-map-list:has(> li:nth-child(7)) li:nth-child(4)::before { display: none; } -@media (max-width: 900px) { - /* reflow: one column, arrows point down */ - .meth-map-list, .meth-map-list:has(> li:nth-child(7)) { grid-auto-flow: row; grid-template-columns: minmax(0, 1fr); row-gap: 18px; } - .meth-map-list a { flex-direction: row; align-items: center; padding: 9px 12px; } - .meth-map-list li:not(:last-child)::after { top: auto; bottom: -14px; right: auto; left: 23px; width: 2px; height: 8px; } - .meth-map-list li:not(:last-child)::before { top: auto; bottom: -18px; right: auto; left: 19px; border: 5px solid transparent; border-top: 6px solid var(--primary); border-bottom: 0; } - .meth-map-list:has(> li:nth-child(7)) li:nth-child(4)::after, - .meth-map-list:has(> li:nth-child(7)) li:nth-child(4)::before { display: block; } -} /* notation table: symbol, meaning, step it first appears in */ .meth-notation { margin: var(--s-5) 0 0; padding-top: var(--s-5); border-top: 1px solid var(--hairline); } .meth-notation h3 { margin: 0 0 var(--s-3); } diff --git a/svar/methodology/index.html b/svar/methodology/index.html index fd02ca56..9ef86adf 100644 --- a/svar/methodology/index.html +++ b/svar/methodology/index.html @@ -77,16 +77,6 @@

Eight variables, six named shocks

-
-
The 5 steps, in order. Notation is at the end.
-
    -
  1. 1The data: eight quarterly variables
  2. -
  3. 2Bayesian estimation
  4. -
  5. 3Identification: naming the shocks
  6. -
  7. 4Sampling: draws and acceptance
  8. -
  9. 5The svar-unemployment satellite
  10. -
-
diff --git a/us-hank/methodology/index.html b/us-hank/methodology/index.html index 97efe9d2..eeeeaab0 100644 --- a/us-hank/methodology/index.html +++ b/us-hank/methodology/index.html @@ -74,16 +74,6 @@

Steady state, Jacobian, then instant IRFs

From the household structure to the first-order distributional block, built on the paper authors' sequence-jacobian toolkit.

-
-
The 5 steps, in order. Notation is at the end.
-
    -
  1. 1Heterogeneous agents, two assets
  2. -
  3. 2Calibrate and solve the steady state
  4. -
  5. 3Differentiate: the sequence-space Jacobian
  6. -
  7. 4Shock: three instruments, endogenous labour tax
  8. -
  9. 5Distribute — within first-order limits
  10. -
-