diff --git a/.codespell-ignore.txt b/.codespell-ignore.txt
index 7415d0c78e6..1d97dcedd1f 100644
--- a/.codespell-ignore.txt
+++ b/.codespell-ignore.txt
@@ -9,6 +9,12 @@ OSF
# Research/Academic terms
aer
+EHR
+FPR
+loafing
+ORE
+SEMs
+STARD
metascience
preregistration
preregistrations
@@ -42,6 +48,7 @@ Udo
Yau
Mathes
Smal
+Asai
# Technical or code related terms
aCount
@@ -52,6 +59,7 @@ hugo
netlify
VSCode
yaml
+tabEl
# Common acceptable variations
behaviour
@@ -69,8 +77,11 @@ organise
organised
practise
recognise
+re-usable
re-use
re-used
+re-uses
+re-using
theses
visualisation
@@ -98,3 +109,11 @@ ons
sie
tru
ublication
+doubleclick
+pre-selected
+
+# German glossary label
+Referenz
+
+# Key of the Social Justice area
+jus
diff --git a/.codespellrc b/.codespellrc
index 324ecf2ae0c..dd420707c59 100644
--- a/.codespellrc
+++ b/.codespellrc
@@ -1,6 +1,6 @@
[codespell]
-# Skip these files and directories
-skip = .git,*.png,*.jpg,*.jpeg,*.gif,*.svg,*.ico,*.woff,*.woff2,*.ttf,*.eot,*.min.js,*.min.css,themes,node_modules,public,resources,static/admin,static/newsletters,*.lock,package-lock.json,.hugo_build.lock,go.sum,*.json,*.css,*.scss,*.toml,content/glossary/german,content/glossary/portuguese,content/glossary/arabic,content/glossary/spanish,content/glossary/french,content/glossary/turkish,data,*.pdf,content/glossary/english/open_material.md
+# Skip these files and directories. The two layouts hold short interface texts in several languages
+skip = .git,assets/three,assets/three/*,*.png,*.jpg,*.jpeg,*.gif,*.svg,*.ico,*.woff,*.woff2,*.ttf,*.eot,*.min.js,*.bundle.js,*.min.css,themes,static/partials/network-graph.html,layouts/partials/citations/authors.html,layouts/partials/glossary_feedback_form.html,node_modules,public,resources,static/admin,static/newsletters,*.lock,package-lock.json,.hugo_build.lock,go.sum,*.json,*.css,*.scss,*.toml,content/glossary/german,content/glossary/portuguese,content/glossary/arabic,content/glossary/spanish,content/glossary/french,content/glossary/turkish,data,*.pdf,content/glossary/english/open_material.md
# Ignore these words (project-specific terms and proper nouns)
ignore-words = .codespell-ignore.txt
@@ -11,5 +11,5 @@ check-filenames =
# Check hidden files
check-hidden =
-# Exclude certain patterns in files
-ignore-regex = (https?://|www\.|[A-Za-z0-9._%+-]+@[A-Za-z0-9.-]+\.[A-Z|a-z]{2,}|)
+# Exclude certain patterns in files: DOIs, and the \n and \t written out in quoted strings, which hide the start of a word
+ignore-regex = (10\.[0-9]{4,9}/[^\s"')>]+|\\[nt]|https?://|www\.|[A-Za-z0-9._%+-]+@[A-Za-z0-9.-]+\.[A-Z|a-z]{2,}|)
diff --git a/.github/workflows/README.md b/.github/workflows/README.md
index 1c0c47e5ce6..cb14fa8ab52 100644
--- a/.github/workflows/README.md
+++ b/.github/workflows/README.md
@@ -20,7 +20,7 @@ This document describes the GitHub Actions workflows used in the FORRT website r
## Deployment Workflows
-### [deploy.yaml](workflows/deploy.yaml)
+### [deploy.yaml](deploy.yaml)
**Production deployment to forrt.org**
| Trigger | Target | Schedule |
@@ -33,7 +33,7 @@ Builds the Hugo site and deploys to GitHub Pages (`gh-pages` branch).
It uses the newest `data-artifact` and `announcements-artifact` from runs on `main` only. Runs of `data-processing.yml` or `create_announcements.yml` dispatched from another branch, for example to test a pipeline change, upload `*-preview` artifacts (#1030) that production never uses (#960). Staging can opt in to a branch's data artifact only; it never uses branch announcement artifacts. To stage branch data, run `data-processing.yml` on the branch, then dispatch `staging-aggregate.yaml` with `data_branch` set to that branch (combine with `single_pr` to stage only the PR that changes the pipeline). Production never uses it. If a branch other than `main` is named and has no data artifact, staging stops with an error rather than substituting `main`'s data (`data_branch: main` behaves like leaving it empty). For default staging runs and production, a missing data artifact makes the fallback dispatch `data-processing.yml` on `main`; a missing announcements artifact is not regenerated by these workflows.
-### [staging-aggregate.yaml](workflows/staging-aggregate.yaml)
+### [staging-aggregate.yaml](staging-aggregate.yaml)
**Staging deployment for pull requests**
| Trigger | Target | Schedule |
@@ -51,7 +51,7 @@ Features:
## Data Workflows
-### [data-processing.yml](workflows/data-processing.yml)
+### [data-processing.yml](data-processing.yml)
**Fetches and processes external data sources**
| Trigger | Schedule |
@@ -63,6 +63,9 @@ Processes:
- Curated resources
- Google Analytics data
- Contributor analysis (monthly)
+- Open Research Games Portal: `scripts/build_games_portal.py` reads the published games sheet and writes `data/open_research_games.json` for `/open-research-games-portal/`
+- Community Map: `scripts/build_community_map.py` resolves contributor ORCIDs (from `contributors_cache.csv`, the Lead Tenzing sheet, the Steering Committee sheet, and `content/authors/`) via the ORCID Public API, OpenAlex, and ROR, caching lookups in `scripts/forrt_contribs/community_map_cache.json` (restored from `build-resources`) and writing `data/community_map.json` for `/community-map/`
+- Nowhere Lab map: `scripts/build_nowherelab_map.py` reads the Nowhere Lab members-by-country Google Sheet and writes `static/data/nowherelab_members.json` for `/nowherelab/` (keeps the committed file if the sheet is unreachable)
- Newsletter archive: new EmailOctopus issues are copied, with their images, to `static/newsletters/` and listed in `data/newsletters.json` (needs the `EMAILOCTOPUS_API_KEY` secret; earlier copies are restored from `build-resources`)
**Failure Reporting:**
@@ -78,7 +81,16 @@ Triggers `deploy.yaml` after successful processing via `repository_dispatch`.
## Quality Checks
-### [spell-check.yaml](workflows/spell-check.yaml)
+### [link-check.yaml](link-check.yaml)
+**Weekly link check, and a check that the site's forms match Google**
+
+| Trigger | Runs on |
+|---------|---------|
+| Mondays at 01:30 UTC, manual dispatch | `main` |
+
+Besides checking links, it compares `assets/gforms/` with the live Google Forms. If a form has changed, it opens an issue assigned to the site maintainer. Fix it promptly by running `python3 scripts/build_google_forms.py` and committing the result, because Google may discard responses sent from the site until then. If the script stops with an error, the site cannot reproduce the change: undo it in Google or update `layouts/partials/google_form.html`. The issue closes itself once the definitions match again.
+
+### [spell-check.yaml](spell-check.yaml)
**Spelling validation using codespell**
| Trigger | Runs on |
@@ -87,25 +99,29 @@ Triggers `deploy.yaml` after successful processing via `repository_dispatch`.
-### [cluster-tests.yaml](cluster-tests.yaml)
-**Clusters parser regression tests and stated sub-cluster counts**
+### [script-tests.yaml](script-tests.yaml)
+**Unit tests for the scripts**
| Trigger | Runs on |
|---------|---------|
-| Pull requests changing the clusters data, parser or tests | PR branches |
+| Pull requests | PR branches |
+
+Runs every test in `scripts/tests/` (including the SEO checks and the clusters parser and sub-cluster counts) and `scripts/test_parse_disciplines_gdoc.py`.
-### [check_images.yaml](workflows/check_images.yaml)
-**Image validation in PRs**
+### [check_content_rules.yaml](check_content_rules.yaml)
+**Content policy checks in PRs**
| Trigger | Runs on |
|---------|---------|
| Pull requests | PR branches |
-Validates image files and references.
+Runs `scripts/check_content_rules.py` in a single runner to flag (via PR comment / summary):
+- PNG/JPG/JPEG image files and local references in added/modified files
+- Newly added direct publisher URLs with embedded DOIs under hand-maintained `content/`, with `https://doi.org/...` replacements
## Repository Maintenance
-### [cleanup-branches.yml](workflows/cleanup-branches.yml)
+### [cleanup-branches.yml](cleanup-branches.yml)
**Automated branch cleanup**
| Trigger | Schedule |
diff --git a/.github/workflows/check_images.yaml b/.github/workflows/check_content_rules.yaml
similarity index 66%
rename from .github/workflows/check_images.yaml
rename to .github/workflows/check_content_rules.yaml
index bf54286d91b..2bb6c3e8a9f 100644
--- a/.github/workflows/check_images.yaml
+++ b/.github/workflows/check_content_rules.yaml
@@ -1,11 +1,12 @@
-name: Check Images in PR
+name: Check Content Rules
# =======================
-# Image Validation Workflow
+# PR Content Rules Check
# =======================
-# Purpose: Validates image files and references in pull requests
+# Purpose: Validates PR content policies in one lightweight runner (advisory warnings):
+# 1. WebP image policy (flags PNG/JPG/JPEG files and local references)
+# 2. Canonical DOI links (flags newly added publisher URLs with embedded DOIs)
# Triggers: PR opened, synchronized, or reopened
-# Checks: Image format, size, accessibility, and broken references
on:
pull_request:
@@ -17,31 +18,27 @@ permissions:
pull-requests: write
jobs:
- check-images:
+ check-content-rules:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v6
+ with:
+ fetch-depth: 0
+ persist-credentials: false # The next step runs the PR's own script.
- name: Set up Python
uses: actions/setup-python@v6
with:
python-version: '3.x'
- - name: Install dependencies
- run: |
- python -m pip install --upgrade pip
- pip install PyGithub
-
- - name: Run Image Check Script
- id: image_check
- env:
- GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- GITHUB_REPOSITORY: ${{ github.repository }}
- GITHUB_REF: ${{ github.ref }}
+ - name: Run content rules check
+ id: content_rules
run: |
- python scripts/webp_conversion/check_images_in_pr.py
+ python3 scripts/check_content_rules.py \
+ --base "${{ github.event.pull_request.base.sha }}" \
+ --head HEAD
# Same-repo PRs: the token can write, so post/update the result as a PR comment.
- name: Find Comment
@@ -51,7 +48,7 @@ jobs:
with:
issue-number: ${{ github.event.pull_request.number }}
comment-author: 'github-actions[bot]'
- body-includes: mage files/references
+ body-includes: ''
- name: Create or update comment
if: github.event.pull_request.head.repo.full_name == github.repository
@@ -59,18 +56,18 @@ jobs:
with:
comment-id: ${{ steps.fc.outputs.comment-id }}
issue-number: ${{ github.event.pull_request.number }}
- body: ${{ steps.image_check.outputs.comment }}
+ body: ${{ steps.content_rules.outputs.comment }}
edit-mode: replace
# Fork PRs: the GITHUB_TOKEN is read-only, so a PR comment would 403.
# Surface the same result as a job-summary report in the workflow run instead.
- - name: Image check report (fork PR)
+ - name: Content rules report (fork PR)
if: github.event.pull_request.head.repo.full_name != github.repository
env:
- REPORT: ${{ steps.image_check.outputs.comment }}
+ REPORT: ${{ steps.content_rules.outputs.comment }}
run: |
{
- echo "## 🖼️ Image check report"
+ echo "## Content rules report"
echo ""
echo "> This PR is from a fork, so the workflow cannot post a PR comment"
echo "> (fork runs receive a read-only token). The result is shown below."
diff --git a/.github/workflows/cluster-tests.yaml b/.github/workflows/cluster-tests.yaml
deleted file mode 100644
index 0df4cd336d3..00000000000
--- a/.github/workflows/cluster-tests.yaml
+++ /dev/null
@@ -1,30 +0,0 @@
-name: Cluster Tests
-
-# =======================
-# Clusters data checks
-# =======================
-# Purpose: Runs the parser regression tests and checks the stated sub-cluster counts
-# Triggers: PRs that change the clusters data, its parser or these tests
-
-on:
- pull_request:
- paths:
- - 'data/clusters_v4.json'
- - 'scripts/parse_clusters_to_sheet.py'
- - 'scripts/tests/test_clusters_data.py'
- - 'scripts/tests/test_parse_clusters.py'
- - '.github/workflows/cluster-tests.yaml'
-
-permissions:
- contents: read
-
-jobs:
- cluster-tests:
- runs-on: ubuntu-latest
-
- steps:
- - name: Checkout repository
- uses: actions/checkout@v6
-
- - name: Run cluster tests
- run: python3 -m unittest discover -s scripts/tests -p 'test_*clusters*.py'
diff --git a/.github/workflows/data-processing.yml b/.github/workflows/data-processing.yml
index 4f7e7d4939a..e8a6ba7141f 100644
--- a/.github/workflows/data-processing.yml
+++ b/.github/workflows/data-processing.yml
@@ -20,6 +20,7 @@ name: Data Processing
# 6. Google Scholar citations (Python)
# 7. Contributor analysis (R) - monthly
# 8. Newsletter archive from EmailOctopus (Python)
+# 9. Community map locations from ORCID & OpenAlex (Python)
#
# Outputs:
# - On main, `data-artifact`, which deploy.yaml unpacks before Hugo builds
@@ -233,6 +234,22 @@ jobs:
env:
GSHEET_CREDENTIALS: ${{ secrets.GSHEET_CREDENTIALS }}
+ #========================================
+ # Build Community Map data from contributor ORCIDs (ORCID Public API, OpenAlex, ROR)
+ # Restores the previous 90-day lookup cache from build-resources so daily runs only query
+ # new or stale ORCIDs and keep previous data if external APIs are temporarily unavailable.
+ #========================================
+ - name: Restore previous community map cache
+ continue-on-error: true
+ run: |
+ git fetch origin +refs/heads/build-resources:refs/remotes/origin/build-resources || true
+ git archive origin/build-resources scripts/forrt_contribs/community_map_cache.json | tar -x || true
+ git archive origin/build-resources data/community_map.json | tar -x || true
+
+ - name: Build Community Map data
+ id: community-map
+ run: python3 scripts/build_community_map.py
+
#========================================
# Build featured resources data from recommendations + publications
#========================================
@@ -250,6 +267,47 @@ jobs:
continue-on-error: true
run: python3 scripts/build_get_involved.py
+ #========================================
+ # Build the Open Research Games Portal list from the published games sheet
+ # Leaves the committed data/open_research_games.json as it is if the sheet is unreadable
+ #========================================
+ - name: Build Open Research Games Portal data
+ id: games-portal
+ continue-on-error: true
+ run: python3 scripts/build_games_portal.py
+
+ #========================================
+ # Build the Nowhere Lab member map data from its Google Sheet
+ # Restores the previous static/data/nowherelab_members.json from build-resources first
+ # so a sheet outage keeps the last published counts instead of rolling back to the seed.
+ #========================================
+ - name: Restore previous Nowhere Lab map data
+ continue-on-error: true
+ run: |
+ git fetch origin +refs/heads/build-resources:refs/remotes/origin/build-resources || true
+ git archive origin/build-resources static/data/nowherelab_members.json | tar -x || true
+
+ - name: Build Nowhere Lab map data
+ id: nowherelab-map
+ continue-on-error: true
+ run: python3 scripts/build_nowherelab_map.py
+
+ #========================================
+ # Build the Lesson Plans activity cards from the protected reviewed tab
+ # Restores the previous build-resources copy first so sheet outages do not
+ # fall back to an older committed copy.
+ #========================================
+ - name: Restore previous lesson activities data
+ continue-on-error: true
+ run: |
+ git fetch origin +refs/heads/build-resources:refs/remotes/origin/build-resources || true
+ git archive origin/build-resources data/lesson_activities.json | tar -x || true
+
+ - name: Build Lesson Activities data
+ id: lesson-activities
+ continue-on-error: true
+ run: python3 scripts/build_lesson_activities.py
+
#========================================
# Archive newsletter issues sent through EmailOctopus
# Restores the earlier archive from build-resources first, so issues and
@@ -352,6 +410,20 @@ jobs:
cd bibtex_to_apa
node bibtex_to_apa.js -o '../content/glossary/apa_lookup.json'
+ #========================================
+ # Enrich cited DOIs with Open Access status and repository links (OpenAlex / Unpaywall)
+ # Restores the previous cache from build-resources so the 90-day cache persists across runs.
+ #========================================
+ - name: Restore previous citation OA cache
+ continue-on-error: true
+ run: |
+ git fetch origin +refs/heads/build-resources:refs/remotes/origin/build-resources || true
+ git archive origin/build-resources data/citation_oa.json | tar -x || true
+
+ - name: Enrich citation open-access metadata
+ continue-on-error: true # Continue even if external OA APIs are unavailable
+ run: python3 scripts/enrich_citation_oa.py
+
#========================================
# Process and generate glossary files
#========================================
@@ -557,6 +629,7 @@ jobs:
!data/partners.json
!data/publications.yaml
static/data/
+ !static/data/open_research_games.json
static/partials/
static/newsletters/
content/contributor-analysis/
@@ -580,16 +653,26 @@ jobs:
cp -r content/curated_resources /tmp/generated-resources/
cp content/contributors/tenzing.md /tmp/generated-resources/ || true
cp scripts/forrt_contribs/contributors_cache.csv /tmp/generated-resources/ || true
+ cp scripts/forrt_contribs/community_map_cache.json /tmp/generated-resources/community_map_cache.json || true
+ cp data/community_map.json /tmp/generated-resources/community_map.json || true
cp data/ga_data.json /tmp/generated-resources/ga_data.json || true
cp data/featured_resources.json /tmp/generated-resources/featured_resources.json || true
cp data/pub_cards.json /tmp/generated-resources/pub_cards.json || true
+ cp data/scholar_citations.json /tmp/generated-resources/scholar_citations.json || true
cp data/get_involved_projects.json /tmp/generated-resources/get_involved_projects.json || true
+ cp data/open_research_games.json /tmp/generated-resources/open_research_games.json || true
+ cp data/lesson_activities.json /tmp/generated-resources/lesson_activities.json || true
+ cp data/citation_oa.json /tmp/generated-resources/citation_oa.json || true
- # Copy FReD citation if it exists
+ # Copy FReD citation and Nowhere Lab map data if they exist
if [ -f static/data/fred_citation.txt ]; then
mkdir -p /tmp/generated-resources/static/data
cp static/data/fred_citation.txt /tmp/generated-resources/static/data/fred_citation.txt
fi
+ if [ -f static/data/nowherelab_members.json ]; then
+ mkdir -p /tmp/generated-resources/static/data
+ cp static/data/nowherelab_members.json /tmp/generated-resources/static/data/nowherelab_members.json
+ fi
# Copy additional generated files
mkdir -p /tmp/generated-resources/contributor-analysis
@@ -652,6 +735,14 @@ jobs:
if [ -f /tmp/generated-resources/static/data/fred_citation.txt ]; then
cp /tmp/generated-resources/static/data/fred_citation.txt static/data/fred_citation.txt
fi
+ if [ -f /tmp/generated-resources/static/data/nowherelab_members.json ]; then
+ cp /tmp/generated-resources/static/data/nowherelab_members.json static/data/nowherelab_members.json
+ fi
+ # Remove retired stale static games JSON (#1151); the portal now builds from data/open_research_games.json.
+ git rm -f --ignore-unmatch static/data/open_research_games.json || {
+ rm -f static/data/open_research_games.json
+ git add -A -- static/data/open_research_games.json
+ }
if [ -f /tmp/generated-resources/summaries.json ]; then
cp /tmp/generated-resources/summaries.json data/summaries.json
fi
@@ -669,13 +760,32 @@ jobs:
if [ -f /tmp/generated-resources/pub_cards.json ]; then
cp /tmp/generated-resources/pub_cards.json data/pub_cards.json
fi
+ if [ -f /tmp/generated-resources/scholar_citations.json ]; then
+ cp /tmp/generated-resources/scholar_citations.json data/scholar_citations.json
+ fi
if [ -f /tmp/generated-resources/get_involved_projects.json ]; then
cp /tmp/generated-resources/get_involved_projects.json data/get_involved_projects.json
fi
+ if [ -f /tmp/generated-resources/open_research_games.json ]; then
+ cp /tmp/generated-resources/open_research_games.json data/open_research_games.json
+ fi
+ if [ -f /tmp/generated-resources/lesson_activities.json ]; then
+ cp /tmp/generated-resources/lesson_activities.json data/lesson_activities.json
+ fi
+ if [ -f /tmp/generated-resources/citation_oa.json ]; then
+ cp /tmp/generated-resources/citation_oa.json data/citation_oa.json
+ fi
+ if [ -f /tmp/generated-resources/community_map.json ]; then
+ cp /tmp/generated-resources/community_map.json data/community_map.json
+ fi
if [ -f /tmp/generated-resources/contributors_cache.csv ]; then
mkdir -p scripts/forrt_contribs
cp /tmp/generated-resources/contributors_cache.csv scripts/forrt_contribs/
fi
+ if [ -f /tmp/generated-resources/community_map_cache.json ]; then
+ mkdir -p scripts/forrt_contribs
+ cp /tmp/generated-resources/community_map_cache.json scripts/forrt_contribs/
+ fi
# Copy contributor analysis and citation chart
cp -r /tmp/generated-resources/contributor-analysis/* content/contributor-analysis/ || true
@@ -703,11 +813,18 @@ jobs:
git add content/curated_resources/ 2>/dev/null || true
git add content/contributors/tenzing.md 2>/dev/null || true
git add scripts/forrt_contribs/contributors_cache.csv 2>/dev/null || true
+ git add scripts/forrt_contribs/community_map_cache.json 2>/dev/null || true
+ git add data/community_map.json 2>/dev/null || true
git add data/ga_data.json 2>/dev/null || true
git add data/featured_resources.json 2>/dev/null || true
git add data/pub_cards.json 2>/dev/null || true
+ git add data/scholar_citations.json 2>/dev/null || true
git add data/get_involved_projects.json 2>/dev/null || true
+ git add data/open_research_games.json 2>/dev/null || true
+ git add data/lesson_activities.json 2>/dev/null || true
+ git add data/citation_oa.json 2>/dev/null || true
git add static/data/fred_citation.txt 2>/dev/null || true
+ git add static/data/nowherelab_members.json 2>/dev/null || true
git add data/summaries.json 2>/dev/null || true
git add data/newsletters.json static/newsletters/ 2>/dev/null || true
git add content/contributor-analysis/ 2>/dev/null || true
@@ -863,6 +980,27 @@ jobs:
python3 scripts/create_workflow_failure_issue.py "Get Involved Data Build" "The Get Involved projects list build step failed. Check that the published Google Sheet (FORRT — Get Involved Projects) is still shared with anyone-with-link." "$WORKFLOW_RUN_URL" || echo "Failed to create issue for Get Involved"
fi
+ # Open Research Games Portal data
+ if [ "${{ steps.games-portal.outcome }}" == "failure" ]; then
+ echo "❌ Games Portal data build failed"
+ FAILURES_FOUND=true
+ python3 scripts/create_workflow_failure_issue.py "Games Portal Data Build" "The Open Research Games Portal data build (scripts/build_games_portal.py) failed. Check that the games sheet is still published to the web as CSV and keeps its column names." "$WORKFLOW_RUN_URL" || echo "Failed to create issue for Games Portal"
+ fi
+
+ # Nowhere Lab map data
+ if [ "${{ steps.nowherelab-map.outcome }}" == "failure" ]; then
+ echo "❌ Nowhere Lab map data build failed"
+ FAILURES_FOUND=true
+ python3 scripts/create_workflow_failure_issue.py "Nowhere Lab Map Data Build" "The Nowhere Lab map data build (scripts/build_nowherelab_map.py) failed. Check that the Nowhere Lab members Google Sheet is still shared with anyone-with-link and has country, integer count, latitude and longitude columns." "$WORKFLOW_RUN_URL" || echo "Failed to create issue for Nowhere Lab Map"
+ fi
+
+ # Lesson Plans activity cards data
+ if [ "${{ steps.lesson-activities.outcome }}" == "failure" ]; then
+ echo "❌ Lesson Activities data build failed"
+ FAILURES_FOUND=true
+ python3 scripts/create_workflow_failure_issue.py "Lesson Activities Data Build" "The Lesson Plans activity cards data build (scripts/build_lesson_activities.py) failed. Check that the Reviewed activities tab of the Table of Activities sheet is still readable as CSV and keeps its column names." "$WORKFLOW_RUN_URL" || echo "Failed to create issue for Lesson Activities"
+ fi
+
# Google Scholar
if [ "${{ steps.google-scholar.outcome }}" == "failure" ]; then
echo "❌ Google Scholar script failed"
diff --git a/.github/workflows/deploy.yaml b/.github/workflows/deploy.yaml
index 60f85263b7a..050dbae294a 100644
--- a/.github/workflows/deploy.yaml
+++ b/.github/workflows/deploy.yaml
@@ -209,6 +209,8 @@ jobs:
# =======================
- name: Build site
run: |
+ # Drop retired static/data/open_research_games.json if an older data-artifact unpacked it (#1151).
+ rm -f static/data/open_research_games.json
hugo --gc --minify --cleanDestinationDir --destination public
env:
HUGO_ENV: production
diff --git a/.github/workflows/link-check.yaml b/.github/workflows/link-check.yaml
index 92f1e9386bd..2b47da75d64 100644
--- a/.github/workflows/link-check.yaml
+++ b/.github/workflows/link-check.yaml
@@ -3,9 +3,11 @@ name: Link Checker
# =======================
# Website Link Validation
# =======================
-# Purpose: Downloads the latest built site and checks all links (internal + external)
+# Purpose: Downloads the latest built site and checks all links (internal + external), and
+# compares the site's copies of Google Forms (assets/gforms/) with the live forms
# Triggers: Weekly on Mondays at 01:30 UTC or manual dispatch
-# Reports: Updates the existing open "link-check"-labeled issue (or creates one if none exists)
+# Reports: Updates the existing open "link-check"-labeled issue (or creates one if none exists).
+# A changed Google Form gets its own issue, which closes once the copies match again
# Config: See .lychee.toml for exclusion patterns and request settings
on:
@@ -56,10 +58,13 @@ jobs:
if: steps.lychee.outputs.exit_code != 0
run: |
python3 << 'PYEOF'
- import json, re, time, urllib.error, urllib.parse, urllib.request
+ import json, re, sys, time, urllib.error, urllib.parse, urllib.request
from concurrent.futures import ThreadPoolExecutor, as_completed
from datetime import datetime, timezone
+ sys.path.insert(0, "scripts")
+ from link_check_helpers import verify_zenodo_urls
+
with open("/tmp/lychee/out.md") as f:
content = f.read()
@@ -80,14 +85,31 @@ jobs:
# Parse errors, tracking which pages each URL appears on
# url -> {"status": str, "pages": [str]}
+ # Statuses commonly returned by WAFs or HEAD-rejecting servers get a
+ # second-pass browser GET + Wayback check rather than being reported
+ # straight away as broken links. 401/404/5xx/ERROR/TIMEOUT stay in
+ # main_errors so broken auth-gated forms (e.g. restricted Google Forms)
+ # are never silently marked recovered.
+ BOT_BLOCK_STATUSES = {"403", "405", "409", "412"}
url_info = {}
- main_errors = {} # non-403
- forbidden_errors = {} # 403
+ main_errors = {} # genuine errors / timeouts / auth failures
+ forbidden_errors = {} # bot-blocked / method-restricted
current_page = ""
+ in_actionable_section = True
for line in error_lines:
- # Track section headers (### Errors in /tmp/site/.../index.html)
- page_match = re.match(r"^### Errors in /tmp/site/[^/]+/(.+)", line)
+ # Only collect bullets from Errors / Timeouts sections so future
+ # lychee sections such as "## Ignored per input" are not parsed
+ # as broken links.
+ if line.startswith("## "):
+ current_page = ""
+ in_actionable_section = line.startswith(("## Errors", "## Timeouts"))
+ continue
+ if not in_actionable_section:
+ continue
+
+ # Track section headers (### Errors in /tmp/site/... or ### Timeouts in /tmp/site/...)
+ page_match = re.match(r"^### (?:Errors|Timeouts) in /tmp/site/[^/]+/(.+)", line)
if page_match:
# Convert file path to URL path
path = page_match.group(1)
@@ -100,20 +122,21 @@ jobs:
continue
status, url = m.group(1), m.group(2)
- target = forbidden_errors if status == "403" else main_errors
+ target = forbidden_errors if status in BOT_BLOCK_STATUSES else main_errors
if url not in target:
target[url] = {"status": status, "pages": []}
if current_page and current_page not in target[url]["pages"]:
target[url]["pages"].append(current_page)
# ------------------------------------------------------------------
- # Second-pass verification of 403s.
+ # Second-pass verification of bot-blocked / method-restricted URLs
+ # (403, 405, 409, 412).
#
# lychee already sends a browser User-Agent (see .lychee.toml), but some
# WAFs additionally gate on Accept/Accept-Language or on the HEAD method.
# Rather than excluding these domains outright — which silently drops a
# large share of the site's outbound links from any checking at all — we
- # re-request each 403 with full browser headers and a GET.
+ # re-request each candidate with full browser headers and a GET.
#
# Whatever still refuses is genuinely unverifiable over HTTP, so we ask the
# Wayback availability API whether a snapshot exists. "Blocked, and never
@@ -136,8 +159,9 @@ jobs:
with urllib.request.urlopen(req, timeout=30) as r:
return url, r.status < 400
except urllib.error.HTTPError as e:
- # 401/429 mean "authenticate" / "slow down", not "gone".
- return url, e.code < 400 or e.code in (401, 429)
+ # 429 means "slow down", not "gone". Keep 401 unverified so
+ # auth-gated failures are never silently reported as recovered.
+ return url, e.code < 400 or e.code == 429
except Exception:
return url, False
@@ -199,15 +223,26 @@ jobs:
return "unknown", None
return "unknown", None
- recovered, blocked_fresh, blocked_stale, blocked_never, blocked_untested = [], [], [], [], []
+ zenodo_recovered, recovered, blocked_fresh, blocked_stale, blocked_never, blocked_untested = [], [], [], [], [], []
if forbidden_errors:
- print(f"Re-checking {len(forbidden_errors)} 403s with full browser headers...")
+ zenodo_recovered, zenodo_broken, remaining_forbidden = verify_zenodo_urls(list(forbidden_errors))
+ for zurl, zstatus in zenodo_broken.items():
+ info = forbidden_errors.pop(zurl)
+ main_errors[zurl] = {"status": zstatus, "pages": info["pages"]}
+ if zenodo_recovered or zenodo_broken:
+ print(
+ f"Zenodo API verification: {len(zenodo_recovered)} live, "
+ f"{len(zenodo_broken)} broken (promoted to Broken links)"
+ )
+
still_blocked = []
- with ThreadPoolExecutor(max_workers=8) as pool:
- for fut in as_completed([pool.submit(recheck, u) for u in forbidden_errors]):
- url, ok = fut.result()
- (recovered if ok else still_blocked).append(url)
- print(f" {len(recovered)} recovered, {len(still_blocked)} still blocked")
+ if remaining_forbidden:
+ print(f"Re-checking {len(remaining_forbidden)} bot-blocked/method-restricted URLs with full browser headers...")
+ with ThreadPoolExecutor(max_workers=8) as pool:
+ for fut in as_completed([pool.submit(recheck, u) for u in remaining_forbidden]):
+ url, ok = fut.result()
+ (recovered if ok else still_blocked).append(url)
+ print(f" {len(recovered)} recovered, {len(still_blocked)} still blocked")
# Wayback lookups run at low concurrency: CDX tolerates a few parallel
# requests but individual queries can take a minute on deep-crawled
@@ -231,8 +266,8 @@ jobs:
output += (
f"\n\n> **Actionable total: {len(main_errors)} broken links.** "
f"The `Errors` figure above is lychee's raw per-occurrence count and is "
- f"dominated by bot-blocking responses; see the 403 section for how those "
- f"were resolved.\n"
+ f"dominated by bot-blocking responses; see the bot-blocked section for "
+ f"how those were resolved.\n"
)
output += "\n## Broken links\n\n"
@@ -242,7 +277,7 @@ jobs:
page_str = f" (in {pages[0]})" if len(pages) == 1 else f" (in {len(pages)} pages)"
output += f"* [{info['status']}] <{url}>{page_str}\n"
else:
- output += "No broken links found (excluding 403s).\n"
+ output += "No broken links found (excluding bot-blocked/method-restricted URLs).\n"
if forbidden_errors:
def with_pages(url):
@@ -250,11 +285,18 @@ jobs:
return f" (in {pages[0]})" if len(pages) == 1 else f" (in {len(pages)} pages)"
output += (
- f"\n## Bot-blocked (403) — {len(forbidden_errors)} URLs, re-verified\n\n"
- f"These refused lychee. Each was re-requested with full browser headers, and "
- f"whatever still refused was dated against its most recent successful Wayback "
- f"capture — the question being *when was this last known to work*, not whether "
- f"it ever existed.\n\n"
+ f"\n## Bot-blocked / method-restricted (403/405/409/412) — {len(forbidden_errors)} URLs, re-verified\n\n"
+ f"These refused lychee. Zenodo records/files/communities were verified via Zenodo's "
+ f"public REST API (missing records or files are promoted to **Broken links** above); "
+ f"remaining URLs were re-requested with full browser headers, and whatever still "
+ f"refused was dated against its most recent successful Wayback capture — the question "
+ f"being *when was this last known to work*, not whether it ever existed.\n\n"
+ )
+ if zenodo_recovered:
+ output += (
+ f"* ✅ **{len(zenodo_recovered)}** verified via the Zenodo REST API — not broken.\n"
+ )
+ output += (
f"* ✅ **{len(recovered)}** responded normally to a browser request — not broken.\n"
f"* 🗄️ **{len(blocked_fresh)}** blocked, but archived within the last "
f"{STALE_AFTER_DAYS} days — alive recently.\n"
@@ -295,6 +337,15 @@ jobs:
output += f"* <{url}>" + (f" — last archived `{when}`\n" if when else "\n")
output += "\n\n"
+ if zenodo_recovered:
+ output += (
+ f"\n\n✅ Verified via Zenodo REST API "
+ f"({len(zenodo_recovered)} URLs — not broken)\n\n"
+ )
+ for url in sorted(zenodo_recovered):
+ output += f"* <{url}>\n"
+ output += "\n\n"
+
if recovered:
output += (
f"\n\n✅ Recovered on re-check "
@@ -354,6 +405,10 @@ jobs:
rel_parts = page_file.relative_to(SITE_ROOT).parts[1:]
page = "/" + "/".join(rel_parts)
page = re.sub(r"/index\.html$", "/", page)
+ # Match .lychee.toml's exclude_path: archived newsletter issues are
+ # historical copies of sent emails and are not maintained.
+ if re.match(r"^/newsletters/\d{4}-\d{2}/", page):
+ continue
for m in DOI_RE.finditer(text):
# Entities survive into the captured group (SICI DOIs are written
# <...> in HTML); decode them so the DOI matches what was minted.
@@ -484,6 +539,7 @@ jobs:
set -euo pipefail
TITLE="Link Checker Report"
BODY_FILE=/tmp/lychee/out.md
+ python3 -c 'import sys; sys.path.insert(0, "scripts"); from link_check_helpers import format_limitations_section; open("/tmp/lychee/out.md", "a", encoding="utf-8").write(format_limitations_section(".lychee.toml"))'
EXISTING=$(gh issue list --label link-check --state open --limit 1 --json number --jq '.[0].number // empty')
if [ -n "$EXISTING" ]; then
echo "Updating existing issue #$EXISTING"
@@ -494,3 +550,51 @@ jobs:
gh issue create --title "$TITLE" --body-file "$BODY_FILE" --label link-check
fi
+ google-forms:
+ name: Check Google Forms
+ runs-on: ubuntu-latest
+ env:
+ GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
+ GH_REPO: ${{ github.repository }}
+ ISSUE_TITLE: A Google Form on forrt.org has changed
+ steps:
+ - name: Checkout repository
+ uses: actions/checkout@v6
+
+ - name: Compare the site's forms with the live Google Forms
+ id: compare
+ run: |
+ set +e
+ python3 scripts/build_google_forms.py --check 2>&1 | tee /tmp/google-forms.txt
+ echo "code=${PIPESTATUS[0]}" >> "$GITHUB_OUTPUT"
+
+ - name: Create or update the issue
+ if: steps.compare.outputs.code == '1'
+ run: |
+ {
+ echo "A Google Form shown on forrt.org no longer matches the copy the site uses. Until this is fixed, Google may discard responses sent from the site, and visitors are not told."
+ echo
+ echo '```'
+ cat /tmp/google-forms.txt
+ echo '```'
+ echo
+ echo "**To fix:** run \`python3 scripts/build_google_forms.py\` and commit the result. If it stops with an error, the site cannot reproduce the change: undo it in Google or update \`layouts/partials/google_form.html\`."
+ } > /tmp/google-forms-issue.md
+ EXISTING=$(gh issue list --state open --search "\"$ISSUE_TITLE\" in:title" --json number --jq '.[0].number // empty')
+ if [ -n "$EXISTING" ]; then
+ gh issue edit "$EXISTING" --body-file /tmp/google-forms-issue.md
+ else
+ gh issue create --title "$ISSUE_TITLE" --body-file /tmp/google-forms-issue.md --assignee LukasWallrich
+ fi
+
+ - name: Close the issue once the forms match
+ if: steps.compare.outputs.code == '0'
+ run: |
+ EXISTING=$(gh issue list --state open --search "\"$ISSUE_TITLE\" in:title" --json number --jq '.[0].number // empty')
+ if [ -n "$EXISTING" ]; then
+ gh issue close "$EXISTING" --comment "The site's copy matches the live forms again."
+ fi
+
+ - name: Fail the run if the comparison could not finish
+ if: steps.compare.outputs.code != '0' && steps.compare.outputs.code != '1'
+ run: exit 1
diff --git a/.github/workflows/script-tests.yaml b/.github/workflows/script-tests.yaml
new file mode 100644
index 00000000000..e1a354c988c
--- /dev/null
+++ b/.github/workflows/script-tests.yaml
@@ -0,0 +1,38 @@
+name: Script Tests
+
+# =======================
+# Script unit tests
+# =======================
+# Purpose: Runs every unit test in scripts/tests/ (SEO checks, data and staging
+# scripts, clusters parser and stated sub-cluster counts) and the
+# disciplines parser test. The tests take a few seconds.
+# Triggers: Every pull request, since tests also read data, content and workflows
+
+on:
+ pull_request:
+
+permissions:
+ contents: read
+
+jobs:
+ script-tests:
+ runs-on: ubuntu-latest
+
+ steps:
+ - name: Checkout repository
+ uses: actions/checkout@v6
+
+ - name: Set up Python
+ uses: actions/setup-python@v6
+ with:
+ python-version: "3.11"
+
+ # pandas: resource.py; python-docx: the disciplines parser; beautifulsoup4: summaries.py.
+ - name: Install test dependencies
+ run: python3 -m pip install pandas python-docx beautifulsoup4
+
+ - name: Run tests in scripts/tests
+ run: python3 -m unittest discover -s scripts/tests
+
+ - name: Run the disciplines parser test
+ run: python3 -m unittest discover -s scripts -p 'test_parse_disciplines_gdoc.py'
diff --git a/.lychee.toml b/.lychee.toml
index 669e555f969..bf1d977decd 100644
--- a/.lychee.toml
+++ b/.lychee.toml
@@ -18,9 +18,18 @@ exclude = [
"127\\.0\\.0\\.1",
# Social media sites that block automated requests
+ "://(?:[^/?#]*\\.)?facebook\\.com(?:[/?#]|$)",
"linkedin\\.com",
"twitter\\.com",
- "x\\.com",
+ "://(?:[^/?#]*\\.)?x\\.com(?:[/?#]|$)",
+
+ # Slack workspace & invite links — always return 403 to unauthenticated
+ # automated HTTP requests (verified separately; cannot be checked in CI)
+ "://forrt\\.slack\\.com(?:/|$)",
+ "://join\\.slack\\.com(?:/|$)",
+
+ # Newsletter signup form action (POST-only endpoint; HEAD/GET always returns 405)
+ "^https://eocampaign1\\.com/form/",
# Web Archive — often slow or flaky
"web\\.archive\\.org",
@@ -52,8 +61,9 @@ exclude_path = ["newsletters/[0-9]{4}-[0-9]{2}/"]
user_agent = "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/120.0.0.0 Safari/537.36"
# Accept 2xx/3xx and 429 (rate limiting)
-# Note: 403 is NOT accepted — those are re-verified and categorised by the
-# workflow's post-processing step, since many publishers block bots.
+# Note: 403/405/409/412 are NOT accepted — those are re-verified with full
+# browser GET headers and categorised by the workflow's post-processing step,
+# since many publishers and WAFs block bots or reject HEAD probes.
accept = ["100..=399", "429"]
# Timeout per request in seconds
diff --git a/AGENTS.md b/AGENTS.md
index cad22cd3edc..c5966a3981f 100644
--- a/AGENTS.md
+++ b/AGENTS.md
@@ -10,15 +10,16 @@ Much of the site is generated from Google Sheets and Docs, and the generated fil
## Site conventions
-- Styles: edit `assets/scss/` (`main.scss`, `custom.scss`, `academic/*.scss`). The site compiles these, and they override the theme's same-named SCSS files.
-- Images are WebP. The PR image check flags PNG and JPG files and references.
+- Styles: edit `assets/css/`; `layouts/partials/assets.html` bundles them. No page loads the old theme's SCSS (`assets/scss/`).
+- Design principles for pages and components are in `DESIGN.md`; follow them when changing layouts or styles.
+- Images shown on pages are WebP. Share images are PNG or JPEG, because X and LinkedIn show no preview for WebP: the build converts a WebP share image, and the site's default one is a PNG. The PR image check flags other PNG and JPG files and references, outside generated files; exceptions go in `scripts/webp_conversion/image_ignore_list.txt`.
- Staging: staging.forrt.org shows all open, conflict-free, non-draft PRs merged together. To stage a single PR, dispatch `staging-aggregate.yaml` with `single_pr`.
## Checks
Run both against a build (`hugo -d `), as `deploy.yaml` does:
-- `python3 scripts/check_seo_html.py `. Add a regression check here when you fix a template.
+- `python3 scripts/check_seo_html.py `. When you fix a template, add a regression check as a new module in `scripts/seo_checks/` (a docstring and `check(site)`), with tests in `scripts/tests/test_seo_.py`; the runner finds it, so no shared file changes.
- `python3 scripts/check_sitemap_lastmod.py /sitemap.xml [--compare-source]` (needs full Git history).
-Unit tests: `python3 -m unittest discover -s scripts/tests`. `scripts/test_parse_disciplines_gdoc.py` sits outside that folder and no CI job runs it: `python3 -m unittest discover -s scripts -p 'test_parse_disciplines_gdoc.py'`.
+Unit tests: `python3 -m unittest discover -s scripts/tests` and `python3 -m unittest discover -s scripts -p 'test_parse_disciplines_gdoc.py'`; `script-tests.yaml` runs both on every PR.
diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md
index fc615cdad71..8d31b6d904b 100644
--- a/CONTRIBUTING.md
+++ b/CONTRIBUTING.md
@@ -16,10 +16,12 @@ Please follow the [FORRT Code of Conduct](https://forrt.org/coc/) in issues, rev
- [Questions, Ideas & Suggestions](#questions-ideas--suggestions)
- [Edit content in your browser](#edit-content-in-your-browser)
+ - [Linking glossary terms](#linking-glossary-terms)
- [Local Development Setup](#local-development-setup)
- [Standard Setup](#standard-setup-git--hugo)
- [RStudio Setup](#rstudio-setup)
- [Contribution Workflow](#contribution-workflow)
+ - [Citing references](#citing-references)
- [Contributing with AI tools](#contributing-with-ai-tools)
- [Content, Licensing & Fact-Checking](#content-licensing--fact-checking)
- [Deployment & Staging](#deployment--staging)
@@ -47,6 +49,12 @@ You do not need to install Git or Hugo to fix text or a broken link. Find the re
Preserve the YAML/TOML front matter at the top of the file and existing Hugo shortcodes. Describe the affected page and link to it in your PR. Generated paths include `content/curated_resources/` (except `_index.md`), `content/glossary/`, `content/contributors/tenzing.md`, `content/contributor-analysis/`, `content/publications/citation_chart.webp`, announcement bundles in `content/post/`, `static/data/fred_citation.txt`, and generated files in `data/`. The manually maintained `data/publications.yaml` is editable; follow the [publication instructions](content/publications/README). Generated content is refreshed during deployment. Use the source submission form/sheet linked from the public page or open an issue rather than editing the generated output. Local previews use committed copies and can differ from production. For layout or code changes, use the local setup below.
+To set a short note beside the text, put `{{% callout title="A title" %}}Your note{{% /callout %}}` just before the paragraph it goes with. On articles and most other text pages it sits in the right-hand column on wide screens, and in the text on phones and on pages set to full width. `title` is optional, and `tone="example"` or `tone="warning"` changes its colour. Keep it short: a long note runs on past the text it goes with.
+
+### Linking glossary terms
+
+On hand-written pages, use `{{< term "Preregistration" >}}` to link an English glossary term. To match an existing inflection, use `{{< term "Preregistration" "preregistered" >}}`. Preserve the author's exact wording and spelling; add markup only, and skip an occurrence if it cannot be marked without changing the text. Titles are matched without regard to case. Mark only the first occurrence of each term on a page, and keep existing resource links intact. Hover, keyboard focus, or a first touch tap shows a short definition; the popover links to the full entry. A repeat tap on the open trigger, mouse clicks, and Enter follow the term link, which also works without JavaScript. Unknown terms render as plain text and produce a Hugo build warning; check the [English glossary](https://forrt.org/glossary/english/) for the exact title. Do not add these shortcodes to generated content.
+
## Local Development Setup
Choose the setup method that suits your workflow.
@@ -120,6 +128,8 @@ For browser edits, GitHub handles branch creation and opening the PR; see [stagi
All proposed changes must be made on a feature branch and submitted via a Pull Request to `main`. We do not use a separate development branch.
+If your change affects how pages look or behave, follow the design principles in [`DESIGN.md`](DESIGN.md).
+
1. **Fork and clone** — fork the repository to your account and clone it locally (if you haven't already).
2. **Create a feature branch** from an up-to-date `main` (commit or stash any local work first):
@@ -145,6 +155,23 @@ All proposed changes must be made on a feature branch and submitted via a Pull R
For more on Git, see the [official documentation](https://docs.github.com/en/get-started/using-git/about-git).
+### Citing references
+
+Hand-written pages can cite works in [`content/glossary/apa_lookup.json`](content/glossary/apa_lookup.json), the shared bibliography generated from the Glossary BibTeX Google Doc. Use its exact keys:
+
+```text
+{{< cite "Nosek2018" "Simmons2011" >}}
+{{< cite key="Nosek2018" narrative="true" >}}
+(e.g. Smith, 2019; {{< cite key="Nosek2018" bare="true" >}})
+{{< cite key="HenrichHeineNorenzayan2010" bare="true" text="Henrich, Heine, & Norenzayan, 2010" >}}
+```
+
+These render as “(Nosek et al., 2018; Simmons et al., 2011)”, “Nosek et al. (2018)”, “(e.g. Smith, 2019; Nosek et al., 2018)” and “Henrich, Heine, & Norenzayan, 2010”. Use `bare` inside brackets you write yourself (for example alongside a work that isn't in the bibliography), and `text` when preserving an author's exact punctuation or author list so the wording stays as written. Every page that cites from the shared bibliography must include either `{{< references >}}` or `{{< local-references >}}…{{< /local-references >}}` once, after its last citation, to render the alphabetical reference list. Use `{{< references >}}` when all cited works are in `apa_lookup.json`; use `{{< local-references >}}…{{< /local-references >}}` instead when the page also has manual APA references not in `apa_lookup.json` (with `heading="none"` if the page already has its own References heading; separate entries with blank lines, or keep each bulleted entry on one line): it merges any shared `{{< cite >}}` entries alphabetically, formats long author lists with a toggle, and lets `citations.js` link unambiguous in-text citations to popovers on that page. The built-HTML check fails citation links without matching reference entries. Clicking a citation opens its full APA reference with source and copy actions; without JavaScript it jumps to the reference list. Unknown keys produce a build warning and appear in square brackets.
+
+To ask readers to cite a work, show it as a card with a copy button: `{{< citation-card key="Asai2026OpenScholar" />}}` takes the reference from the bibliography, and `{{< citation-card >}}…{{< /citation-card >}}` takes one written out. In reference lists, a reference with more than five authors — and in suggested citation cards or “cite us” blocks, more than ten — shows the first three and “et al.”, with an inline control to show the rest. Copying always gives the full reference.
+
+Do not edit the generated bibliography or glossary terms. Request additions to the Glossary BibTeX Doc through an issue; the bibliography generator supplies the APA text. Glossary definitions automatically link citations only when their first author and year identify exactly one of the term’s listed references and their author lists agree. Other citations stay plain text. Citations already linked to a source are left alone.
+
### Contributing with AI tools
Contributions co-authored with AI agents are welcome, but only if you have **fully reviewed both the code and the content** yourself and can stand behind them.
diff --git a/DESIGN.md b/DESIGN.md
new file mode 100644
index 00000000000..7b6647cd944
--- /dev/null
+++ b/DESIGN.md
@@ -0,0 +1,130 @@
+# Designing pages for forrt.org
+
+How pages on forrt.org should look and behave, for anyone changing a template, a style or the layout of a page, on any part of the site. The site uses the Doors design, which came out of community feedback on the earlier site and a design brief; this guide holds what still applies from both, together with the principles learnt from applying Doors across the site's templates.
+
+Styles live in `assets/css/`, with colours and type defined once in `tokens.css`. Shared page parts are in `layouts/partials/` and `layouts/shortcodes/`.
+
+## 1. Character
+
+- FORRT is an organisation with several facets, run by a community. Pages should feel lively and communal: not sleek or corporate, not a newspaper, blog or severe institution, and not dark, menacing or heavy.
+- The site has one idea of its own, the castle and its doors, which runs across pages without becoming tiresome. It must not depend on content that has to be refilled constantly.
+- Avoid the generic template look: no ivory-serif-and-rust formula, no tracked capitals as labels above headings, no hairline-ruled columns as the main organising device, no grids of identical, empty cards. Directory cards with their own picture or logo and an action (§4) are not that. Short schedule labels, such as MORNING and AFTERNOON in a programme, are the exception: tracked capitals help there.
+- Pictures, colour and cards make pages inviting and easier to skim. Keep them where they help, and show pictures large enough to see (an announcement's picture, a team's photo). Do not strip them out to make pages plainer or more uniform; the rules below are about clarity, not about removing character.
+- Real content only: no invented statistics, quotes or examples.
+
+## 2. Lead with what visitors came for
+
+- The page's main tool, list or action appears in the first screen at 390 px and at 1440 px. Background, history and acknowledgements come after it.
+- Move information down, or put it behind a disclosure with a plain label ("About the glossary project, and how to cite it"). Do not delete it to make the page shorter.
+- "How to cite" is a visible section of its own wherever a page asks to be cited.
+- Keep images that explain something, such as the Replication Hub diagram, even when the page would look more uniform without them. When such a diagram shows the parts of a section, such as the clusters diagram, make it the way in to those parts: each part links to its page, with readable labels and a keyboard route.
+- Colour and size, not only position, make the order of importance clear, on phones too.
+
+## 3. One clear next step
+
+- Each screen leads with its main action, or with up to three equal ones that share one style. Any further action is quieter: smaller, outlined or a plain link.
+- Action labels say what the visitor will do ("Teach with open materials", "Explore replications"), not what FORRT has.
+- Prefer routes into FORRT's own pages. Mark a link with the external-link icon where leaving forrt.org would surprise visitors, such as in menus and in lists of FORRT pages. Links that clearly lead elsewhere, such as a button to a resource's own website, need no icon.
+- Every kind of submission starts at `/submit/`, which sends people on to the right form. Do not call submitting "contributing": contributors join the work and are listed as such.
+
+## 4. Calm, specific pages
+
+Every repeated device has to earn its place. In practice:
+
+- Pills and chips are for controls: filters, toggles, language switches. A list of links is a plain list, unless each link brings a preview of where it leads: related glossary terms, which show the start of each definition, are cards like the glossary's own. One exception: an item may carry one quiet tag for a category that visitors filter by on the same page, such as a resource's purpose.
+- Search and filters belong on long lists (the glossary, the resources directory, Reversals). A list of fewer than about twenty items needs neither, and a longer one may do without when another clear route through it exists, such as a contents list.
+- Tags: a tag links to the tags page only when at least five pages and at most a quarter of the tagged pages share it (`layouts/partials/functions/tag_counts.html`). Rarer tags are plain keywords; tags on more pages are not shown, because they no longer tell pages apart.
+- In directories of cards (§4, About pages), show descriptions in full. Cut one only when it runs past six lines: show four lines and a "more" button. Dense term lists such as the glossary keep their short previews, and break into chapters under large letters on the area's pale ground, so a long run of cards has landmarks. Never hide just a line or two behind "more". Without JavaScript the full text shows.
+- Cards for actions are the brick cards of `action_cards`. Lists of tools are rows: a linked title and a sentence, not boxes. Lists of things a visitor opens and reads, such as posts and articles, are cards with their picture (the news list, Educators' Corner); an education article without a picture of its own gets a plain door on education's colour (§6), which repeats nothing the card already says. Newsletter issues have no pictures of their own, so the archive shows them as month bricks, one brick colour to a year. A collection of materials that belongs to one area, such as the lesson plans, may be pale cards in that area's colour, as many to a row as fit, each a linked title, with a note on what the link opens only where the cards differ.
+- Not everything is a card. Cards are for things a visitor picks between or acts on: articles, teams, partners, resources, materials, publications. Running content, such as plans, lists of points and explanations, stays as text, even on an area's pale colour, and so do long uniform lists unless the box carries information: Reversals' effects and Contributors are rows with a hairline between them, so a long entry makes a taller row and leaves no gap beside it.
+- A list of more than about thirty items has something to skim by: filters with counts, groups under headings, or, for names and terms people look up by their first letter, letters to jump by. Titles of resources or articles are not looked up that way, so they get filters and search, not letters. One unbroken run of hundreds of links is a wall, however tidy. A colour that carries meaning (an outcome, an area) or a summary at the top (Reversals' board of outcomes) also helps a long list to be skimmed. Hairline rules alone are not enough (§1).
+- Directories of organisations, teams and projects (Partnerships, Teams, Get involved) are pale cards or pictured entries, two or more to a row on a wide screen, so they are easy to skim. Each ends in a button for its action, such as "Visit website" or "Join the team's Slack channel".
+- Framed boxes (cards, panels, toolbars) keep space inside them and between them; text never runs up against a box's edge.
+
+## 5. Links look like links
+
+- A link is visible as a link without hovering: in running text by its underline, elsewhere by the link colour and its place, such as a list, a title or a row of links. A row or card that is clickable as a whole still marks its title as the link.
+- Links in running text are underlined at rest: a 1 px line in 70% of the link's colour, set 0.2 em below the text. On hover and keyboard focus the line turns solid and 2 px thick. This covers paragraphs and lists in an article, introductions and notes, breadcrumbs, and links inside a sentence in the footer. The values are the `--u-` tokens in `tokens.css`. Citations and glossary terms keep their dotted underline.
+- These links outside running text have no underline at rest and take the solid 2 px underline on hover and keyboard focus. Most show the link colour or their area's colour; a few stand on a tinted tile or panel that marks them instead, such as Reversals' contents list and the jump tiles on Stories. They are: contents lists, the glossary's term list and the clusters' side list; titles of publications, announcement cards, glossary term cards, previous/next cards and clusters, and names on the community wall; publication action links (`Free copy`, `Project`, `Get PDF`); rows of jump links; text toggles such as "Show Abstract" and "more"; the home page's door columns, noticeboard and "Take part" list; and the footer's rows of links.
+- In a contents or side list, the page or section being read is marked in bold, dark text, never by an underline, even on hover.
+- Framed buttons, pills, chips, bricks and boxed disclosures are never underlined at rest. A title inside a card may underline on hover or focus.
+- Keyboard focus also shows a 3 px outline around the link or its card: dark ink, or white on a dark panel.
+- Things that are not links never look like buttons or chips. An unlinked related term is plain text.
+- Buttons in a row have a gap between them, on every screen size.
+
+## 6. Colour carries meaning
+
+- FORRT works in four areas of equal standing: Education & Pedagogy, Meta-Science & Research, Social Justice & DEIA, and Community & Sustainability. Each has its colour: education `--edu` (green), research `--res` (dark blue), social justice `--jus` (purple), community `--com` (brown). Pages and cards that belong to an area use its colour and its pale background (`--edu-bg` and so on), and so do the articles of an area's sections: Educators' Corner and Pedagogies are education's. Area colours appear only for their areas.
+- The 11 FORRT clusters are not areas. Each keeps a colour of its own, and together they span the spectrum (`layouts/partials/clusters/colors.html`), so the clusters can be told apart. Strong cluster colours are for small marks, such as the square beside a resource's cluster, and for the door-shaped mark that holds a cluster's icon in white: large in a cluster page's head, small on a resource's "About this resource" card. Backgrounds in a cluster's colour stay pale. A cluster's own page, and a resource's card, take the colour and icon of the cluster from the clusters diagram.
+- Replication outcomes (Reversals) have a scale of their own, from green for replicated to wine for reversed, with grey for no status (`--out-*` in `tokens.css`). An effect's chip, its outcome's tile on the board and that outcome's part of each discipline's bar share the colour; the rows themselves stay on the page's ground.
+- Rows of action bricks run through four brick colours of their own (`--brick1` to `--brick4`: wine, olive, slate and ochre), chosen to stay clear of the area colours. They add variety and carry no meaning, so a page with no colour of its own, such as Tags, Disciplines or the resources directory, may use them for its lead entry points (outside an article, through the `brick-row` class). Where each brick stands for something that has a colour of its own, such as the Replication Hub's stages, it takes that colour instead. Do not use shades of one colour for variety: they read as more and less important.
+- `--hot` (orange) is for highlights, `--urgent` (red) only for urgency. White is a clean ground.
+- Colour is fresh but not loud: no large areas of saturated colour, no intense full-bleed colour, no dark band across the page, no grey-and-beige, and no beige highlights.
+
+## 7. Type and reading
+
+- Newsreader for headings, Source Sans 3 for text. Arabic pages use Noto Naskh Arabic for headings and Noto Sans Arabic for text, self-hosted and loaded only where Arabic text appears. Newsreader has no Cyrillic, so Bulgarian pages set headings as well as text in Source Sans 3, whose Cyrillic face loads only where Cyrillic text appears; a Latin name in a Bulgarian line then stays in the same face. Chinese uses the reader's system fonts. Body text is 18 px, and 17 px on phones (760 px and below) and in the summaries of list entries; Arabic text is set larger, at 21 px and 20 px on phones. Nothing is smaller than 15 px, except small print, which may be 14 px: footnotes, credits, legal lines, counts ("Showing 12 of 436") and metadata such as dates.
+- No italics anywhere outside references, including menus, captions, labels and quotes. A publication's venue is part of its reference, so a journal name on a publication card is italic. Emphasis is semi-bold.
+- Headings, buttons and labels are in sentence case.
+- Paragraphs keep to a measure of about 640 px (`--measure` in `article.css`), so reading lines average about 75 characters, and no rendered line reaches 100. The reading column is for prose; tables, tools, programmes and directories may use the full width.
+- On a wide page, prose never stands alone in the narrow column with an empty band beside it. When a full-width list follows, the list starts beside the prose or flows around it (Teams). Otherwise something useful sits beside the prose, such as a contents card, an image, the article's authors with their photos, the ways to take part (Nowhere Lab), or the search of a list long enough to need one (Community, §4). A date alone is not enough: on news, Educators' Corner and Pedagogies articles the card also names the authors (`reading_card.html`). Nothing beside or around the prose says the same thing twice: the card names the authors so the byline beside it does not, and the section is linked by the breadcrumb and the heading of the cards at the end, not again in the card. The measure is for the length of lines, not a reason to leave half the screen empty.
+- Nor does prose stand alone in the middle of the screen on the reading layout. A page with no contents, dates or contact for its side card gets the other pages of its menu group there instead (`section_nav_card.html`), without those its text already links; phones have the menu for that and leave the card out. Pages outside the menu groups (Submit, Imprint, the authors index, 404), or with fewer than two unlinked peers left to list, stand alone.
+- Use the FORRT logo as supplied. Century Schoolbook is not a web font here.
+- On desktop, an open header menu is a card under its button, with its first column beneath the button's label, staying inside the header row. It has at most three columns; four groups sit two by two so headings align. The overview link that heads it is semi-bold.
+
+## 8. Shared parts to reuse
+
+Before writing a new component, check these:
+
+| Need | Use |
+|---|---|
+| A page with a lead image beside its title | `page_hero.html`, through `hero_image` in front matter (AWoP, Citational Justice, AI in Metascience) |
+| A set of actions as cards | `{{< action_cards >}}` |
+| Search and a count over a long list | `{{< list_filter >}}`, with `noun` for the count ("Showing 12 of 436 effects") |
+| Contents on a phone | `toc_phone.html`: an open, labelled list; a list of more than six sections shows the first five, with a button for the rest |
+| Names with links | `name_list.html` |
+| Keywords on a resource | `resource_keywords.html` |
+| Previous and next | `pager.html`: Previous on the left, Next on the right; at the end of an article, `read_next.html` shows them with related articles as the news list's cards |
+| Information to keep but not lead with | a `details` disclosure with a plain label |
+
+Images in the first screen are not lazy-loaded.
+
+## 9. Phones
+
+- Show the same information as on desktop, in a different order if needed. Hide a part only when it repeats something already on the screen; for example, the home page's secondary actions are hidden at 760 px and below.
+- Tap targets are at least 44 px, including small close buttons. A small visible control can have a larger invisible tap area.
+- A toolbar may stay on screen while a long list scrolls. On a phone only one row of it stays, its search row or a letter index (Contributors), so the list keeps most of the screen. A row that scrolls sideways fades at its edge so that what lies past it is seen to be there.
+- Do not repeat navigation: hide a "Go to" menu where the side contents card already lists the same sections.
+- The phone menu keeps the chosen section visible, opens its submenu directly below it, and has a visible way to close it.
+
+## 10. Words
+
+- Write plain, specific text, and explain a feature in one sentence ("Tags link pages and resources across the site on the same topic."). No marketing phrases, no exclamation marks. Text written for the site itself (templates, labels, buttons, help text) is in British English; content keeps its authors' spelling.
+- In headings, labels and buttons, every word names what is there or what happens. Delete a word, and if nothing is lost, leave it out: "The 11 clusters", not "The 11 clusters as a list". Words about the format or the act of showing ("as a list", "overview of", "below", "click here") go, unless they tell two views of the same thing apart, as for the list that stands in for the contributor network.
+- Shortening text that its authors wrote, such as a tool's description, goes in its own PR for the authors to review.
+- Resource entries, glossary terms, cluster pages and other generated pages get their wording from spreadsheets and documents (see `AGENTS.md`). Change their presentation in the templates, and their wording at the source.
+
+## 11. Motion
+
+- Prefer motion that runs once and ends within five seconds, such as a preview when a diagram scrolls into view. It needs no pause control.
+- Longer or looping animation can be paused with a mouse, a keyboard and on touch. Its control stays hidden at rest and appears on hover, focus or tap; once paused, the animation stays paused.
+- Animation never overlaps or hides text.
+- Reduced-motion settings are respected, and every animated part has a static version that works without WebGL or JavaScript.
+
+## 12. Accessibility and the technical floor
+
+- Text has a contrast of at least 4.5:1, large text at least 3:1.
+- Keyboard focus is always visible; pages have a skip link, landmarks and alt text on images. Escape closes menus, and an opened desktop menu takes the next Tab stop.
+- No page scrolls sideways at 390, 1024 or 1440 px, nor at 390, 760, 1024 and 1440 px with text enlarged to 200%.
+- Images, canvases and text never collide at any width, including the breakpoints either side of 760, 1000, 1240 and 1320 px, with the fonts loaded.
+- No script errors and no broken images.
+
+No check tests this automatically, so look at changed pages at 390 and 1440 px, and run an accessibility checker such as axe on them.
+
+## Proposing a design change
+
+1. Branch from `rebrand-doors` until the launch, then from `main`. Put each change that someone would judge on its own in its own PR.
+2. Open the PR description with what changes for visitors. Then show, for each change, a before-and-after crop of the affected part at 390 px and at 1440 px, with one line above it saying what changed. Full-page screenshots side by side are too hard to compare.
+3. List the choices that a reviewer may want to reverse under **Decisions to review**, including any place where the change departs from this guide, with the reason. When the same departure comes up a second time, change the guide instead.
+4. Run the checks in `AGENTS.md`, look at the changed pages and run an accessibility checker as §12 says, and say which passed.
+5. For a larger review, have people or models rate a handful of representative pages from screenshots at both widths, and also try the live build to find problems that screenshots hide. Treat their suggestions as input: record which you accept and why, and judge them against this guide.
diff --git a/assets/css/analysis.css b/assets/css/analysis.css
new file mode 100644
index 00000000000..242668d0524
--- /dev/null
+++ b/assets/css/analysis.css
@@ -0,0 +1,134 @@
+/* The contributor analysis page: figures, charts and the network drawn by network.js. */
+.analysis-page{padding:24px 0 56px}
+.analysis-head h1{font-size:clamp(36px,4.2vw,58px);line-height:1.06;letter-spacing:-.01em;margin:14px 0 0;text-wrap:balance}
+.analysis-standfirst{font:500 clamp(21px,1.9vw,25px)/1.4 var(--display);margin:18px 0 0;max-width:30em}
+.analysis-note{margin:0;font-size:16px;color:var(--soft);max-width:44em}
+.analysis-page :is(p,li) a{text-decoration:underline;text-underline-offset:3px}
+.analysis-page h2{font-size:clamp(27px,2.6vw,36px);line-height:1.15;margin:0}
+
+.stats{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(10em,100%),1fr));gap:12px;margin:32px 0 14px}
+.stat{display:flex;flex-direction:column-reverse;justify-content:flex-end;gap:6px;background:var(--surface);border-radius:var(--r-large);padding:18px 20px;min-width:0}
+.stat dt{font:400 16px/1.3 var(--text);color:var(--ink)}
+.stat dd{margin:0;font:var(--display-weight) clamp(36px,4vw,52px)/1 var(--display);color:var(--ink)}
+
+.analysis-section{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,2fr);gap:20px 56px;align-items:start;margin-top:56px;padding-top:28px;border-top:1px solid var(--line)}
+.analysis-intro p{margin:12px 0 0;max-width:30em}
+.analysis-chart{min-width:0}
+.analysis-summary{margin-top:24px}
+.analysis-summary p{max-width:42em}
+.analysis-summary img{display:block;width:100%;max-width:760px;height:auto;margin:20px 0}
+
+.bars{list-style:none;margin:0;padding:0}
+/* Wraps by the size of its text: name above, with the bar and number below, when they cannot share a line. */
+.bar{display:flex;flex-wrap:wrap;align-items:center;gap:3px 14px;padding:5px 0;font-size:17px;line-height:1.3}
+.bar-name{flex:0 1 18em;min-width:0;max-width:100%}
+.bar-track{flex:1 1 9em;order:1;display:block;height:12px}
+.bar-value{flex:0 0 3em;order:2;text-align:right;font-weight:600;font-variant-numeric:tabular-nums}
+.bar-fill{display:block;width:var(--share);min-width:2px;height:100%;background:var(--res);border-radius:0 4px 4px 0}
+
+.share-bar{display:flex;gap:2px;height:28px}
+.share-part{flex:0 1 0;min-width:3px;border-radius:4px}
+.share-0{background:#90bbd8}
+.share-1{background:#6aa3c9}
+.share-2{background:#4489b5}
+.share-3{background:#1f709f}
+.share-4{background:#005a87}
+.share-list{list-style:none;margin:14px 0 0;padding:0;display:grid;grid-template-columns:repeat(auto-fit,minmax(min(8em,100%),1fr));gap:12px}
+.share-list li{display:grid;grid-template-columns:14px minmax(0,1fr);gap:0 8px;align-items:baseline;line-height:1.3}
+.share-swatch{width:14px;height:14px;border-radius:4px;align-self:center}
+.share-label{font-size:16px}
+.share-number{grid-column:2;font:var(--display-weight) 28px/1.2 var(--display)}
+.share-people{grid-column:2;font-size:16px;color:var(--soft)}
+
+.analysis-more{margin-top:14px}
+.analysis-more>summary{font-weight:700;color:var(--link);cursor:pointer}
+.analysis-more[open]>summary{margin-bottom:10px}
+
+.analysis-network{margin-top:56px;padding-top:28px;border-top:1px solid var(--line)}
+.network-intro p,.network-intro .analysis-note{margin:12px 0 0;max-width:580px}
+.network-intro .analysis-note{margin-top:8px}
+.network-panel{display:grid;grid-template-columns:min(18em,45%) minmax(0,1fr);height:clamp(520px,calc(100vh - 48px),760px);margin-top:20px;background:var(--surface);border-radius:var(--r-large);overflow:hidden}
+.network-panel[hidden]{display:none}
+.network-controls{display:flex;flex-direction:column;gap:14px;padding:18px;min-height:0;min-width:0;overflow:auto}
+.network-field label{display:block;font-weight:700;margin-bottom:6px;line-height:1.3}
+.network-combo{position:relative}
+.network-input{width:100%;background:#fff;border:1.5px solid var(--soft);border-radius:var(--r-small);padding:10px 12px;font:400 17px/1.3 var(--text);color:var(--ink)}
+.network-input::placeholder{color:var(--soft);opacity:1}
+.network-options{position:fixed;z-index:20;max-height:280px;overflow:auto;margin:0;padding:4px;list-style:none;background:#fff;border:1.5px solid var(--soft);border-radius:var(--r-small);box-shadow:0 8px 24px rgba(38,45,53,.18)}
+.network-options[hidden]{display:none}
+.network-options li{display:flex;justify-content:space-between;gap:10px;padding:7px 9px;border-radius:5px;font-size:16px;line-height:1.3;cursor:pointer}
+.network-options li span:last-child{color:var(--soft);white-space:nowrap}
+.network-options li:hover,.network-options li[aria-selected=true]{background:var(--res-bg)}
+.network-chips{list-style:none;display:flex;flex-wrap:wrap;gap:6px;margin:8px 0 0;padding:0}
+.network-chips[hidden]{display:none}
+.network-chip{display:inline-flex;align-items:baseline;gap:7px;background:var(--res);border:1.5px solid var(--res);border-radius:999px;padding:5px 11px;font:400 15px/1.3 var(--text);color:#fff;text-align:start;cursor:pointer}
+.network-chip:hover{background:var(--ink);border-color:var(--ink)}
+.network-status{margin:0;font-weight:600;font-size:16px;line-height:1.35}
+.network-detail{min-height:0;font-size:16px;line-height:1.4}
+.network-detail[hidden]{display:none}
+.network-detail h3{font:var(--display-weight) 22px/1.2 var(--display);margin:0 0 6px}
+.network-detail h4{font:700 16px/1.3 var(--text);margin:12px 0 4px}
+.network-detail p{margin:0 0 6px}
+.network-detail ul{list-style:none;margin:0;padding:0}
+.network-detail li{padding:1px 0}
+.network-link{background:none;border:0;padding:0;font:400 16px/1.4 var(--text);color:var(--link);text-align:start;text-decoration:underline;text-underline-offset:3px;cursor:pointer}
+.network-link:hover{color:var(--ink)}
+.network-clear{font-weight:700}
+.network-guide h3{font:var(--display-weight) 20px/1.2 var(--display);margin:0 0 8px}
+.network-legend{list-style:none;margin:0;padding:0;font-size:16px;line-height:1.35}
+.network-legend li{display:grid;grid-template-columns:22px minmax(0,1fr);gap:8px;align-items:center;padding:3px 0}
+.legend-person{justify-self:center;width:10px;height:10px;border-radius:50%;background:var(--ink)}
+.legend-project{justify-self:center;width:14px;height:14px;border-radius:3px;background:var(--res)}
+.legend-line{justify-self:center;width:22px;height:0;border-top:1.5px solid var(--soft)}
+.network-hint{margin:10px 0 0;font-size:16px;line-height:1.4}
+.network-stage{position:relative;min-width:0;min-height:0;background:#fff}
+.network-canvas{display:block;width:100%;height:100%;cursor:grab;touch-action:pan-y}
+.network-canvas.dragging{cursor:grabbing}
+.network-canvas:focus-visible{outline:3px solid var(--ink);outline-offset:-3px}
+.network-tools{position:absolute;left:12px;bottom:12px;display:flex;gap:6px}
+.network-tool{min-width:40px;height:40px;padding:0 12px;background:#fff;border:1.5px solid var(--ink);border-radius:999px;font:600 16px/1 var(--text);color:var(--ink);cursor:pointer}
+.network-tool:hover{background:var(--ink);color:#fff}
+.network-tip{position:absolute;z-index:5;max-width:280px;padding:7px 10px;background:var(--ink);border-radius:var(--r-small);color:#fff;font-size:15px;line-height:1.3}
+.network-tip b{display:block;font-weight:700}
+.network-tip[hidden]{display:none}
+.network-list{margin-top:18px}
+.network-projects{list-style:none;margin:0;padding:0;columns:2;column-gap:32px}
+.network-projects>li{break-inside:avoid;padding:3px 0}
+.network-projects summary{cursor:pointer}
+.network-projects p{margin:4px 0 8px;font-size:16px;line-height:1.45}
+.network-count{color:var(--soft);font-size:16px;white-space:nowrap}
+
+.analysis-foot{margin-top:56px;padding-top:28px;border-top:1px solid var(--line)}
+.analysis-foot h2{margin-bottom:12px}
+.analysis-foot p{margin:0 0 10px;max-width:44em}
+
+@media(max-width:1000px){
+ .analysis-section{grid-template-columns:minmax(0,1fr)}
+ .network-projects{columns:1}
+}
+@media(max-width:860px){
+ /* The panel stacks: controls, then the drawing, then what the selection shows. */
+ .network-panel{display:flex;flex-direction:column;gap:14px;height:auto;padding:16px;overflow:visible}
+ .network-controls{display:contents}
+ .network-stage{order:1;height:min(62vh,440px);border-radius:var(--r-small);overflow:hidden}
+ .network-detail,.network-guide{order:2}
+}
+@media(max-width:760px){
+ .analysis-page{padding:18px 0 40px}
+ .stats{gap:10px;margin-top:24px}
+ .stat{padding:14px}
+ .stat dt{font-size:15px}
+ .analysis-section,.analysis-network,.analysis-foot{margin-top:36px;padding-top:22px}
+ .bar{gap:3px 10px;font-size:16px}
+ .bar-name{flex-basis:100%}
+ .bar-track{height:10px}
+ .share-list{grid-template-columns:minmax(0,1fr)}
+ .share-list li{display:flex;flex-wrap:wrap;align-items:baseline;gap:0 10px}
+ .share-label{flex:1 1 9em}
+ .share-number{font-size:20px}
+ .share-people{flex:0 0 auto;min-width:5.5em;text-align:right}
+ .network-stage{height:300px}
+ .network-canvas{cursor:default;touch-action:auto}
+ .network-tools{display:none}
+ .network-hint{display:none}
+}
diff --git a/assets/css/article.css b/assets/css/article.css
new file mode 100644
index 00000000000..81f5eb46df1
--- /dev/null
+++ b/assets/css/article.css
@@ -0,0 +1,1314 @@
+/* Articles and plain content, every rule under .article-layout. Content here is Markdown written
+ for the old theme, so lists, tables and embeds are styled but not rebuilt. */
+/* The reading measure: about 640 px at 18 px, so paragraphs average about 75 characters a line (DESIGN.md §7). In em,
+ so it is resolved at each element's own size. The column is 660 px, so pictures, tables and embeds get a little more. */
+.article-layout{--measure:35.6em;display:grid;grid-template-columns:256px minmax(0,660px);justify-content:center;gap:64px;padding:32px 0 32px;align-items:start}
+.article-layout-single{grid-template-columns:minmax(0,660px)}
+.article-layout-wide{grid-template-columns:minmax(0,1fr)}
+.article-layout .reading{min-width:0}
+.article-layout .crumbs{margin-bottom:18px}
+.article-layout .article-head{margin-bottom:22px}
+.article-layout .article-head:has(.byline:empty){margin-bottom:0}
+.article-layout .article-meta{display:flex;flex-wrap:wrap;gap:8px;margin-bottom:18px;font-size:15px;font-weight:600}
+/* A category here filters nothing, so it is plain text, not a chip (DESIGN.md §5). */
+.article-layout .article-meta span{color:var(--soft)}
+.article-layout .reading h1{font-size:clamp(36px,4.2vw,58px);line-height:1.06;letter-spacing:-.01em;margin:0;text-wrap:balance}
+/* In the narrow column a bigger screen must not mean a taller stack of title lines. */
+.article-layout:not(.article-layout-wide) .reading h1{font-size:clamp(34px,3.2vw,44px);line-height:1.1}
+.article-layout .reading h1.long-title{font-size:clamp(28px,3vw,40px);line-height:1.12}
+/* For long compounds. Not in English, where Safari hyphenates any word at a line end. */
+.article-layout .reading h1:lang(de),.article-layout .reading h1:lang(tr){hyphens:auto}
+.article-layout .standfirst{font:500 clamp(21px,1.9vw,23px)/1.4 var(--display);margin:18px 0 0;max-width:30em;color:var(--ink)}
+/* A wide page (directories, programmes) runs its standfirst further, so a one-sentence line does not break halfway
+ across a page whose content fills the width; its lines stay within the reading limit (DESIGN.md §7). */
+.article-layout-wide .standfirst{max-width:32.5em}
+.article-layout .byline{display:flex;flex-wrap:wrap;gap:4px 18px;margin:16px 0 0;font-size:16px}
+.article-layout .byline a{color:var(--link);text-underline-offset:3px;text-decoration:underline}
+.article-layout .byline-authors>*{display:inline}
+.article-layout .article-image{margin:0 0 28px}
+/* At its own size or the column's width, whichever is smaller, and at most 480 px tall: square logos and portrait
+ covers no longer push the text below the first screen, and small images are not blown up. Phones cap it lower (below). */
+.article-layout .article-image img{display:block;width:auto;max-width:100%;height:auto;max-height:480px;border-radius:var(--r-small)}
+.article-layout figcaption{margin-top:10px;font-size:15px;text-align:center}
+.article-layout .article-image figcaption a{text-decoration-line:underline;text-decoration-color:var(--u-rest-color);text-decoration-thickness:var(--u-thick);text-underline-offset:var(--u-offset)}
+.article-layout .article-image figcaption a:is(:hover,:focus-visible){text-decoration-color:currentColor;text-decoration-thickness:var(--u-thick-hover)}
+.article-layout .article-style{font-size:18px;line-height:1.6;color:var(--ink);text-align:start;overflow-wrap:break-word}
+.article-layout .article-style p,.article-layout .article-style li{font-size:inherit;line-height:inherit}
+/* Wide pages keep the reading width for their prose, and give the rest of the page to tables and charts. */
+.article-layout-wide .article-style p,.article-layout-wide .article-style li{max-width:var(--measure)}
+.article-layout .article-style p{margin:0 0 16px;max-width:var(--measure)}
+/* Under the line-length limit. Plain lists and reference lists keep to the text's
+ measure plus their indent. */
+.article-layout:not(.article-layout-wide) .article-style :is(ul:not([class]),ol:not([class]),.references-list){max-width:calc(var(--measure) + 1.4em)}
+/* Old pages put on its own line between blocks to add space under the previous theme. Between
+ blocks it only opens a gap (up to 1,600px on a page), so drop it. A inside a paragraph, or one that
+ clears floats (Awards), is untouched. */
+.article-layout .article-style>br:not([clear],[style*="clear"]),.article-layout .article-style>.doc-section>br:not([clear],[style*="clear"]){display:none}
+.article-layout .article-style ul,.article-layout .article-style ol{margin:0 0 18px;padding-inline-start:1.4em}
+.article-layout .article-style li{margin-bottom:6px}
+.article-layout .article-style :is(h2,h3,h4){line-height:1.15;margin:34px 0 12px;text-align:start}
+.article-layout .article-style h2{font-size:28px}
+.article-layout .article-style h3{font-size:23px}
+.article-layout .article-style h4{font-size:20px}
+/* Links in running text (DESIGN.md §5): a hairline at rest, a solid line on hover and keyboard focus. Only the a counts
+ towards specificity, so a component's own link rule wins without needing a longer selector. */
+:where(.article-layout .article-style) a:where(:not([class])){color:var(--link);text-decoration-line:underline;text-decoration-color:var(--u-rest-color);text-decoration-thickness:var(--u-thick);text-underline-offset:var(--u-offset);text-decoration-skip-ink:auto}
+:where(.article-layout .article-style) a:where(:not([class])):where(:hover,:focus-visible){text-decoration-color:currentColor;text-decoration-thickness:var(--u-thick-hover)}
+/* Leaflet's own rules (a paler blue at 3.4:1, no underline) would win here; its attribution keeps the text-link style. */
+.article-layout .article-style .leaflet-container a{color:var(--link);text-decoration-line:underline;text-decoration-color:var(--u-rest-color);text-decoration-thickness:var(--u-thick);text-underline-offset:var(--u-offset);text-decoration-skip-ink:auto}
+.article-layout .article-style blockquote{margin:28px 0;padding:18px 22px;background:var(--edu-bg);border:0;border-radius:var(--r-large);color:var(--ink);font-size:18px!important;max-width:600px}
+.article-layout .article-style blockquote p:last-child{margin-bottom:0}
+.article-layout .article-style figure{margin:28px 0}
+.article-layout .article-style img{max-width:100%;height:auto}
+.article-layout .article-style div[style*="display:flex"],.article-layout .article-style div[style*="display: flex"]{flex-wrap:wrap}
+.article-layout .article-style iframe,.article-layout .article-style video{max-width:100%}
+/* A hand-coloured red button in one lesson. Our red keeps its meaning and passes on the page. */
+.article-layout .article-style .btn[style*="color:red"]{color:var(--urgent)!important}
+.article-layout .article-style div.alert,.article-layout .article-style div.alert>div{font-size:inherit;color:var(--ink)}
+.article-layout .article-style div[style*="width"]{max-width:100%}
+.article-layout .article-style table{display:block;max-width:100%;overflow-x:auto;margin:0 0 18px;font-size:16px;line-height:1.45;border-collapse:collapse}
+.article-layout .article-style th,.article-layout .article-style td{padding:6px 10px;border-bottom:1px solid var(--line);text-align:start}
+.article-layout .article-style pre{max-width:100%;overflow-x:auto;font-size:15px}
+.article-layout .article-style code{font-size:max(15px,.9em)}
+main:lang(ar) .article-layout .article-style,main:lang(ar) .article-layout .article-style p,main:lang(ar) .article-layout .article-style li{font-size:21px}
+/* The theme's root size shrinks on phones, so rem and small-text rules from it and from older
+ Markdown come out as low as 10 px. */
+.article-layout .article-style :is(small,.small,[style*="font-size:."],[style*="font-size:0."]),.article-layout .article-style .btn:not([style*="font-size"]),.article-layout .btn-links .btn{font-size:15px!important;line-height:1.35}
+.article-layout .article-foot{margin-top:32px;font-size:16px}
+/* Two or more buttons in one paragraph keep a gap between them when they wrap onto separate lines. */
+.article-layout .article-style p:has(>.btn~.btn){display:flex;flex-wrap:wrap;gap:10px;align-items:center}
+.article-layout .article-style p:has(>.btn~.btn)>.btn{margin:0}
+.article-layout .share-link{margin:0 0 18px}
+.article-layout .copy-link{background:#fff;border:1.5px solid var(--ink);border-radius:999px;padding:8px 12px;font:600 15px/1.3 var(--text);color:var(--ink);cursor:pointer}
+.article-layout .copy-link:hover{background:var(--ink);color:#fff}
+.article-layout .article-tags .badge{background:var(--surface);color:var(--ink);font:600 15px/1.4 var(--text);padding:3px 10px;border-radius:var(--r-small);margin:0 6px 6px 0}
+.article-layout .article-widget h3{font-size:24px;margin:28px 0 10px}
+.article-layout .article-foot .meta-nav{font-size:15px;font-weight:700;letter-spacing:0;text-transform:none;color:var(--soft)}
+.article-layout .article-foot .post-nav-item p,.article-layout .article-foot .article-widget li{font-size:16px;line-height:1.4;margin:0}
+.article-layout .article-foot :is(.card-subtitle,.card-text){font-size:16px;max-width:30em}
+.article-layout .article-widget a{color:var(--link);text-decoration:underline;text-underline-offset:3px}
+/* Related links are 44 px targets (DESIGN.md §9). */
+.article-layout .article-foot .article-widget li>a{display:inline-flex;align-items:center;min-height:44px}
+.article-layout .article-card{position:sticky;top:24px;max-height:calc(100vh - 48px - var(--banner,0px));overflow-y:auto;background:var(--surface);border-radius:var(--r-large);padding:22px;font-size:16px;line-height:1.45}
+.article-layout .article-card h2{font-size:23px;line-height:1.15;margin:0 0 8px}
+.article-layout .article-card dl{margin:0 0 20px}
+.article-layout .article-card dl:last-child{margin-bottom:0}
+.article-layout .article-card dt{font-weight:700;font-size:15px;margin-top:10px}
+.article-layout .article-card dt:first-child{margin-top:0}
+.article-layout .article-card dd{margin:1px 0 0}
+.article-layout .article-toc ul{list-style:none;margin:0;padding:0}
+.article-layout .article-toc ul ul{padding-inline-start:12px}
+.article-layout .article-toc #TableOfContents a{display:block;padding:5px 0;font-size:16px;line-height:1.35;color:var(--link);text-decoration:none}
+.article-layout .article-toc #TableOfContents a:is(:hover,:focus-visible){text-decoration-line:underline;text-decoration-color:currentColor;text-decoration-thickness:var(--u-thick-hover);text-underline-offset:var(--u-offset)}
+/* The section being read (site.js) is marked by weight and dark ink, never by an underline. */
+.article-layout .article-toc #TableOfContents a[aria-current]{color:var(--ink);font-weight:700;text-decoration:none}
+/* On a desktop the side card (contents, date, term list, profile) sits to the left of the text and the
+ pair is centred, so spare width goes to the outer margins. It may come after the text in the page;
+ the grid places it all the same. */
+@media(min-width:1001px){
+ .article-layout:not(.article-layout-wide){grid-template-columns:minmax(0,660px)}
+ .article-layout:not(.article-layout-wide):has(>.article-card){grid-template-columns:256px minmax(0,660px);column-gap:48px}
+ /* When a PDF disclosure is opened, widen the reading column to fill .wrap (up to 976 px beside the card)
+ so embedded PDFs stay readable without making the whole page wide; prose and closed disclosures keep
+ their reading measure. */
+ .article-layout:not(.article-layout-wide,.article-layout-callouts):has(.spoiler[open] .pdf-viewer){grid-template-columns:minmax(0,960px)}
+ .article-layout:not(.article-layout-wide,.article-layout-callouts):has(>.article-card):has(.spoiler[open] .pdf-viewer){grid-template-columns:256px minmax(0,1fr)}
+ .article-layout:not(.article-layout-wide):has(>.article-card)>.reading{grid-column:2;grid-row:1}
+ .article-layout:not(.article-layout-wide)>.article-card{grid-column:1;grid-row:1;box-sizing:border-box;width:256px;padding:18px}
+}
+@media(max-width:1000px){
+ /* Tablets keep the 640 px column, clear of the chat launcher's corner at 768 px. */
+ .article-layout{grid-template-columns:minmax(0,640px);gap:36px}
+ .article-layout-wide{grid-template-columns:minmax(0,1fr)}
+ .article-layout .article-card{position:static;max-height:none}
+}
+@media(max-width:760px){
+ .article-layout{padding:20px 0 24px}
+ .article-layout .article-style{font-size:17px}
+ main:lang(ar) .article-layout .article-style,main:lang(ar) .article-layout .article-style p,main:lang(ar) .article-layout .article-style li{font-size:20px}
+}
+/* Call-outs: in the text up to 1320px. On wider screens they float into a third column on the right,
+ where clear keeps them under each other; the contents card stays on the left and in view. */
+.article-layout .callout{box-sizing:border-box;margin:28px 0;padding:18px 20px;background:var(--res-bg);border-radius:var(--r-large);font-size:17px;line-height:1.5;color:var(--ink)}
+.article-layout .callout-example{background:var(--edu-bg)}
+.article-layout .callout-warning{background:var(--com-bg)}
+.article-layout .article-style .callout p,.article-layout .article-style .callout ul,.article-layout .article-style .callout ol{margin:0 0 10px;max-width:none}
+/* On a full-width page a call-out keeps to the reading width of the text around it. */
+.article-layout-wide .article-style .callout{max-width:38em}
+.article-layout .article-style .callout>:last-child{margin-bottom:0}
+.article-layout .article-style .callout-title{font:500 21px/1.2 var(--display)}
+@media(min-width:1320px){
+ /* Card, text and call-outs fill the 1280 px of .wrap: 256 + 44 + 660 + 44 + 276. */
+ .article-layout.article-layout-callouts{grid-template-columns:minmax(0,660px) 276px;column-gap:44px}
+ .article-layout.article-layout-callouts:has(>.article-card){grid-template-columns:256px minmax(0,660px) 276px;column-gap:44px}
+ .article-layout-callouts .callout{float:right;float:inline-end;clear:right;clear:inline-end;width:276px;margin:4px -320px 18px 0;margin-inline:0 -320px}
+ .article-layout-callouts .doc-section-tinted .callout{margin-inline-end:-344px}
+}
+@media(max-width:1000px){.article-layout .article-card{order:1}}
+/* The side card listing the other pages of the page's menu group (section_nav_card). Phones and tablets have
+ the menu for that, so the card is left out there rather than following the text (DESIGN.md §9). */
+.article-layout .section-nav ul{list-style:none;margin:0;padding:0}
+.article-layout .section-nav li>*{display:block;padding:5px 0;font-size:16px;line-height:1.35}
+.article-layout .section-nav a{color:var(--link);text-decoration:underline;text-underline-offset:3px}
+.article-layout .section-nav a:hover{color:var(--ink)}
+.article-layout .section-nav [aria-current]{color:var(--ink);font-weight:700}
+@media(max-width:1000px){.article-layout .section-nav{display:none}}
+/* Sections that open: the spoiler and expand shortcodes. */
+.article-layout .article-style .spoiler{margin:0 0 var(--box-gap);background:var(--surface);border-radius:var(--r-small)}
+.article-layout .article-style .spoiler>summary{padding:var(--box-pad-y) var(--box-pad);font-weight:600;font-size:18px;line-height:1.35;color:var(--link);cursor:pointer}
+.article-layout .article-style .spoiler>summary:hover{color:var(--ink)}
+.article-layout .article-style .spoiler-body{padding:2px var(--box-pad) var(--box-pad);font-size:18px;line-height:1.55}
+.article-layout .article-style .spoiler-body>:last-child{margin-bottom:0}
+/* Disclosures hold prose, so they stay at reading width unless a PDF is open inside one. */
+.article-layout .article-style .spoiler:not([open]),.article-layout .article-style .spoiler:not(:has(.pdf-viewer)){max-width:660px}
+.article-layout .article-style [style*="justify"]{text-align:start!important}
+/* A lesson's activity takes more room than the text around it, without growing to the full page. */
+.article-layout-wide .article-style>div[style*="padding-bottom"]:has(>.click-to-load,>iframe),.article-layout-wide .article-style :is(.video-poster,.video-frame){max-width:960px}
+.article-layout-wide .article-style>div[style*="padding-bottom"]:has(>iframe){height:auto!important;padding-bottom:0!important;aspect-ratio:3/2}
+/* Tables and text panels fit what they hold, so a wide page does not leave them mostly empty. */
+.article-layout-wide .article-style table{width:fit-content}
+.article-layout-wide .article-style>div[style*="border"]:not([style*="padding-bottom"]){max-width:660px;margin-inline:0!important;padding:14px 18px!important}
+.article-layout .article-style blockquote{max-width:660px}
+.article-layout-wide .article-style>hr{max-width:660px;margin-inline:0}
+/* Buttons in Markdown keep their own colours, against the rule for links in text. */
+/* Glossary pages: the reading layout, with the list of terms in the side card. */
+.glossary-layout .language-switcher{margin:10px 0 14px;font-size:16px}
+.glossary-layout .language-switcher a{color:var(--link);text-decoration:underline;text-underline-offset:3px}
+.glossary-layout .term-definition{padding:0 0 14px;border-bottom:1px solid var(--line)}
+.glossary-layout .article-style .term-line{margin-bottom:8px;font-size:18px;line-height:1.5}
+.glossary-layout .references-list,.glossary-layout .references-list li{font-size:18px!important}
+.glossary-layout .article-style .btn-group{display:flex;flex-wrap:wrap;gap:6px;margin:0 0 18px}
+.glossary-layout .article-style .btn-group .btn{margin:0!important;padding:7px 14px!important;background:#fff;border-radius:999px!important;font-size:16px!important;color:var(--link)}
+.glossary-layout .article-style .btn-group .btn.active{background:var(--ink);border-color:var(--ink);color:#fff}
+.glossary-card{display:flex;flex-direction:column;overflow:hidden!important}
+.glossary-card .form-control{flex:none;margin-bottom:10px}
+.term-list{flex:1;min-height:0;overflow-y:auto;margin-inline:-6px;padding-inline:6px;font-size:16px;line-height:1.3}
+.term-list ul{margin:0;padding:0;list-style:none}
+.term-list a{display:block;padding:5px 0;color:var(--link);text-decoration:none}
+.term-list a:is(:hover,:focus-visible){color:var(--ink);text-decoration-line:underline;text-decoration-color:currentColor;text-decoration-thickness:var(--u-thick-hover);text-underline-offset:var(--u-offset)}
+.term-list a[aria-current]{color:var(--ink);font-weight:700;text-decoration:none}
+@media(max-width:1000px){.term-list{max-height:340px}}
+.resource-open{display:flex;flex-wrap:wrap;align-items:center;gap:6px 14px;margin:0 0 24px}
+.resource-open .btn{padding:10px 22px;font-size:17px}
+.resource-open .btn .fa-external-link-alt{margin-inline-start:4px;font-size:14px}
+.resource-host{font-size:16px;color:var(--soft);overflow-wrap:anywhere}
+/* The language takes its own line under the button, so it does not read as part of the host. */
+.resource-lang{flex-basis:100%}
+/* A resource entry: the entry, then its details card, then Previous and Next. On a desktop the card
+ sits in the left column beside both; the second row takes any extra height of a long card. */
+.article-layout .resource-kind{margin:0 0 12px;max-width:60ch;font-size:16px;font-weight:600;color:var(--soft)}
+.article-layout .byline-more{display:inline}
+.article-layout .byline-more>summary{display:inline-block;margin-inline-start:.3em;color:var(--link);font-weight:600;text-decoration:none;cursor:pointer}
+.article-layout .byline-more>summary:is(:hover,:focus-visible){color:var(--ink);text-decoration-line:underline;text-decoration-color:currentColor;text-decoration-thickness:var(--u-thick-hover);text-underline-offset:var(--u-offset)}
+.article-layout .byline-more>p{margin:6px 0 0}
+.article-layout.article-layout-resource .resource-keywords{margin-top:24px}
+.article-layout-resource .article-card dd a{color:var(--link);text-decoration:underline;text-underline-offset:3px}
+.article-layout-resource>.article-foot{margin-top:0}
+@media(min-width:1001px){
+ .article-layout-resource:not(.article-layout-wide){grid-template-rows:auto 1fr;row-gap:32px}
+ .article-layout-resource:not(.article-layout-wide)>.article-card{grid-row:1/span 2}
+ .article-layout-resource>.article-foot{grid-column:2;grid-row:2}
+}
+@media(max-width:1000px){
+ .article-layout-resource .article-card{order:0}
+ .article-layout-resource .article-card .resource-type{display:none}
+ .article-layout-resource .article-card .resource-type+dd+dt{margin-top:0}
+ .article-layout .byline-more>summary{min-height:44px;display:inline-flex;align-items:center}
+}
+.article-layout .article-tags{margin:0 0 18px}
+.article-layout .resource-keywords{max-width:32em;margin:0 0 18px;font-size:16px;line-height:1.6;color:var(--soft)}
+.article-layout .resource-keywords strong{margin-inline-end:6px;color:var(--ink)}
+.article-layout .resource-keywords a{color:var(--link);text-decoration:underline;text-underline-offset:3px}
+/* Author profiles: the person's details in the side card. */
+.profile-card .profile-photo{display:block;width:135px;height:135px;margin:0 0 12px;object-fit:cover;border-radius:50%}
+.profile-card .avatar-square{border-radius:var(--r-small)}
+.profile-card p{margin:0 0 6px}
+.profile-card .profile-role{font-weight:700}
+.profile-card a{color:var(--link);text-decoration:underline;text-underline-offset:3px}
+.profile-card ul.network-icon a{text-decoration:none}
+.sc-page{padding:32px 0 40px}
+.sc-page h1{font-size:clamp(36px,4.2vw,58px);line-height:1.06;margin:0 0 18px}
+.sc-page .crumbs{margin-bottom:18px}
+.sc-page #sc-container{padding:0;font-family:var(--text);max-width:none}
+/* A team's name heads its own row, so it cannot end one row with its people starting the next. */
+.sc-page .sc-grid .sc-title-card{flex:0 0 100%;grid-column:1/-1;width:100%;aspect-ratio:auto;padding:var(--box-pad-y) var(--box-pad);flex-direction:row;align-items:baseline;justify-content:flex-start;gap:10px}
+.sc-page .sc-title-card :is(.sc-title-label,.sc-title-text){margin:0}
+.sc-page .sc-title-card .sc-title-text{font-size:17px}
+.sc-page .sc-title-card .sc-cbar{display:none}
+/* "Team" before every team's name says nothing the band doesn't, so only screen readers hear it; on a
+ desktop each name has room for two lines, so the photos of neighbouring teams start level. */
+.sc-page .sc-title-card .sc-title-label{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
+@media(min-width:761px){.sc-page :is(.sc-team,.sc-grid)>.sc-title-card{min-height:72px;align-items:center}}
+/* Team bands: the four Strategic Focus Area teams in their own area colour, every other team in slate
+ (DESIGN.md §6: area colours only for areas). steering.js sets data-area from the team's name. */
+.sc-page :is(.sc-card,.sc-title-card){--team-color:var(--soft)!important}
+.sc-page :is(.sc-team,.sc-grid):has(>[data-area=com]) .sc-card,.sc-page .sc-title-card[data-area=com]{--team-color:var(--com)!important}
+.sc-page :is(.sc-team,.sc-grid):has(>[data-area=jus]) .sc-card,.sc-page .sc-title-card[data-area=jus]{--team-color:var(--jus)!important}
+.sc-page :is(.sc-team,.sc-grid):has(>[data-area=res]) .sc-card,.sc-page .sc-title-card[data-area=res]{--team-color:var(--res)!important}
+.sc-page :is(.sc-team,.sc-grid):has(>[data-area=edu]) .sc-card,.sc-page .sc-title-card[data-area=edu]{--team-color:var(--edu)!important}
+/* People send their own photos and some are already black and white, so cards are shown in greyscale
+ to keep the grid even, while profile modals show each photo in its original colour. */
+.sc-page .sc-card-img{filter:grayscale(1)}
+.sc-page .sc-section-header{margin-bottom:24px;padding-bottom:12px;border-bottom:1px solid var(--line)}
+.sc-page .sc-section-title{margin:0 0 6px;font:var(--display-weight) clamp(26px,2.4vw,32px)/1.15 var(--display);color:var(--ink)}
+.sc-page .sc-section-title svg{width:22px;height:22px;color:var(--soft);flex:none}
+.sc-page .sc-section-desc{font-size:17px;line-height:1.5;color:var(--soft);max-width:60ch}
+/* 44 px targets (DESIGN.md §9). */
+.sc-page .sc-nav a{display:inline-flex;align-items:center;min-height:44px;padding:0;text-decoration:none}
+.sc-page .sc-nav a:is(:hover,:focus-visible){text-decoration-line:underline;text-decoration-color:currentColor;text-decoration-thickness:var(--u-thick-hover);text-underline-offset:var(--u-offset)}
+.sc-close-btn,.sc-social-links a{min-width:44px;min-height:44px;display:inline-flex;align-items:center;justify-content:center}
+.sc-team{display:contents}
+/* On a phone the cards and team names share one grid: the box gap between them, and a team's name further
+ from the cards of the team before it than from its own. */
+.sc-page .sc-grid{gap:var(--box-gap)}
+/* steering.js wraps each team in .sc-team, so its name card is then the first child of its own wrapper. */
+@media(max-width:760px){.sc-page .sc-grid>.sc-title-card:not(:first-child),.sc-page .sc-grid .sc-team:not(:first-child)>.sc-title-card{margin-top:var(--box-gap)}}
+@media(min-width:761px){
+ .sc-page .sc-grid{gap:28px 40px}
+ .sc-page .sc-team{display:flex;flex-wrap:wrap;align-content:flex-start;gap:1rem;width:calc(var(--sc-members)*190px + (var(--sc-members) - 1)*1rem);max-width:100%}
+ .sc-page .sc-grid .sc-card{width:190px}
+ .sc-page .sc-grid .sc-title-card{flex-wrap:wrap}
+}
+.article-layout .post-nav-scope{font-size:16px;line-height:1.4;margin:0 0 12px}
+.article-layout .post-nav-scope a{text-decoration:underline}
+.article-layout .post-nav{display:flex;flex-wrap:wrap;justify-content:space-between;gap:12px 24px;margin:0 0 18px}
+.article-layout .post-nav-item{max-width:calc(50% - 12px);min-width:0}
+.article-layout .post-nav-item:only-child{max-width:none}
+.article-layout .post-nav-item:last-child:not(:first-child){text-align:end}
+.article-logo{float:inline-end;width:96px;height:96px;margin:0 0 12px 18px;border-radius:var(--r-small)}
+/* FORWARD UNESCO Sustainable Development Goals card (shortcodes/forward_unesco_sdgs_card.html), shared by
+ /awards/ and Educators' Corner 023. */
+.forward-card-container{width:100%;padding:12px 0 0;box-sizing:border-box}
+.forward-sdg-card{border:1px solid var(--line);border-radius:var(--r-large);padding:20px 22px;background:var(--page);margin:0;max-width:900px;text-align:center;font-family:var(--text)}
+.article-layout .article-style .forward-header .forward-sdg-title{margin:0 0 4px;max-width:none;color:var(--ink);font:500 22px/1.2 var(--display)}
+.article-layout .article-style .forward-header .forward-sdg-sub{margin:0 0 16px;max-width:none;color:var(--soft);font-size:16px;line-height:1.4}
+.sdg-icons-wrapper{display:flex;justify-content:center;align-items:center;flex-wrap:wrap;gap:14px}
+.sdg-icons-wrapper a{position:relative;display:inline-block;text-decoration:none;border-radius:var(--r-small)}
+.sdg-icons-wrapper .sdg-ext{position:absolute;right:4px;bottom:4px;display:grid;place-items:center;width:20px;height:20px;border-radius:4px;background:rgba(255,255,255,.92);color:var(--ink);font-size:10px;line-height:1;box-shadow:0 1px 2px rgba(0,0,0,.18);pointer-events:none}
+.article-layout .article-style .sdg-icons-wrapper img{display:block;width:78px;height:78px;border-radius:var(--r-small);background:#fff;margin:0}
+@media(prefers-reduced-motion:no-preference){
+ .sdg-icons-wrapper a{transition:transform .16s ease}
+ .sdg-icons-wrapper a:is(:hover,:focus-visible){transform:translateY(-3px)}
+}
+@media(max-width:640px){
+ .forward-sdg-card{padding:16px}
+ .sdg-icons-wrapper{gap:10px}
+ .article-layout .article-style .sdg-icons-wrapper img{width:64px;height:64px}
+}
+@media print{
+ .site-head,.site-foot,.article-foot,.skip,.cc-window,.article-toc,.article-card h2{display:none!important}
+ body{background:#fff;color:#000;font-size:12pt}
+ .wrap{width:100%}
+ .article-layout{display:block;padding:0}
+ .article-layout .article-card{position:static;max-height:none;background:none;padding:0}
+ /* A printed page keeps its citation's heading (front matter cite_as). */
+ .article-layout .article-card .card-cite h2{display:block!important}
+ .article-layout .article-style,.article-layout .article-style :is(p,li){font-size:12pt}
+ a{color:#000}
+}
+/* A video before it plays, the player after, and a section of a long summaries page. */
+.video-poster{position:relative;display:block;margin:0 0 18px;aspect-ratio:16/9;overflow:hidden;background:var(--surface);border-radius:var(--r-small)}
+.article-layout .article-style .video-poster img{display:block;width:100%;height:100%;object-fit:cover}
+.video-play{position:absolute;inset:50% auto auto 50%;display:flex;align-items:center;justify-content:center;width:64px;height:64px;margin:-32px 0 0 -32px;background:var(--ink);border-radius:50%;color:#fff;font-size:24px}
+.video-poster:hover .video-play,.video-poster:focus-visible .video-play{background:var(--hot);color:var(--ink)}
+.video-frame{display:block;width:100%;aspect-ratio:16/9;margin:0 0 18px;border:0;border-radius:var(--r-small)}
+.video-poster:has(+ .video-note){margin-bottom:6px}
+.video-note,.article-layout .article-style .video-note{margin:0 0 18px;color:var(--soft);font-size:16px;line-height:1.4}
+.video-note a{text-decoration-line:underline;text-decoration-color:var(--u-rest-color);text-decoration-thickness:var(--u-thick);text-underline-offset:var(--u-offset);text-decoration-skip-ink:auto}
+.video-note a:is(:hover,:focus-visible){text-decoration-color:currentColor;text-decoration-thickness:var(--u-thick-hover)}
+.article-layout .article-style .summary-entry{margin:0;border-bottom:1px solid var(--line)}
+.article-layout .article-style .summary-entry>summary{padding:12px 0;cursor:pointer}
+.article-layout .article-style .summary-entry>summary h3{display:inline;margin:0;font-size:22px;line-height:1.25}
+.article-layout .article-foot .article-widget li{margin-bottom:8px}
+.doi-link,.cite-us-text a{text-decoration:underline;text-underline-offset:3px}
+.toc-phone{display:none}
+@media(max-width:1000px){
+ .toc-phone{display:block;margin:0 0 20px;padding:var(--box-pad);background:var(--surface);border-radius:var(--r-small)}
+ .toc-phone .article-toc{max-inline-size:28em}
+ /* Sentence case in the heading face, as the side card's "On this page" on a desktop (DESIGN.md §1: no tracked capitals). */
+ .toc-phone-label{margin:0 0 6px;font:500 20px/1.2 var(--display);color:var(--ink)}
+ .toc-phone.is-short .toc-extra{display:none}
+ .toc-phone-more{margin:6px 0 0;padding:4px 0;border:0;background:none;font:600 16px/1.35 var(--text);color:var(--link);text-decoration:none;cursor:pointer}
+ .toc-phone a{display:block;padding:5px 0;font-size:16px;line-height:1.35;color:var(--link);text-decoration:none}
+ :is(.toc-phone-more,.toc-phone a):is(:hover,:focus-visible){text-decoration-line:underline;text-decoration-color:currentColor;text-decoration-thickness:var(--u-thick-hover);text-underline-offset:var(--u-offset)}
+ /* Each contents link and the copy button are 44 px targets on phones and tablets (DESIGN.md §9). */
+ .toc-phone a{display:flex;align-items:center;min-height:44px;box-sizing:border-box}
+ .article-layout .copy-link{min-height:44px}
+ .toc-phone-more{min-height:44px}
+ /* On phones and tablets the side card never repeats the contents: either the phone list above the text has
+ them, or the page left them out on purpose (summaries, phone_toc: false). */
+ .article-layout .article-card :is(h2:has(+ .article-toc),.article-toc){display:none}
+ .article-layout:has(.toc-phone) .article-card:not(:has(dl,.card-cite)){display:none}
+ .article-layout .article-card-repeats{display:none}
+ .glossary-index .reading{display:contents}
+ .glossary-index .article-head{order:-2;margin-bottom:0}
+ .glossary-index .term-list{max-height:220px}
+ .glossary-index .glossary-card{order:1}
+ .glossary-index .article-foot{order:2}
+}
+.summary-tools{margin:0 0 14px;padding:14px 18px;background:var(--surface);border-radius:var(--r-large)}
+.summary-tools label{display:block;margin:0;font-size:16px;font-weight:700}
+.summary-tools input{display:block;width:100%;min-height:44px;margin-top:6px;padding:8px 14px;background:#fff;border:1.5px solid var(--soft);border-radius:999px;font:400 16px/1.3 var(--text)}
+.article-layout .article-style .summary-count{margin:8px 0 0;font-size:16px}
+.summary-more{margin-top:14px;min-height:44px}
+.summary-more[hidden]{display:none}
+/* The list of entries is its own contents, so a second list beside it only repeats the titles. */
+.article-layout:has(.summary-entry) .article-card :is(h2,.article-toc){display:none}
+.dei-mark{margin-inline-start:.3em;padding:0 6px;background:var(--jus-bg);border-radius:var(--r-small);font:600 15px/1.3 var(--text);color:var(--ink);vertical-align:.1em}
+/* Inside an entry, its headings sit below the entry's own 22 px title (DESIGN.md §2). */
+.article-layout .article-style .summary-entry h4{font-size:19px}
+/* In the DEI collection every entry is DEI, so the mark tells nothing apart. */
+.article-layout:has(.summaries-dei) .dei-mark{display:none}
+@media print{.toc-phone{display:none!important}}
+.glossary-feedback-header>*{min-width:0;overflow-wrap:anywhere}
+.glossary-feedback-header>:lang(de),.glossary-feedback-header>:lang(tr){hyphens:auto}
+
+/* Catalogues (Syllabus): groups of links flow in columns across a wide page. */
+.article-style .catalogue{columns:3 300px;column-gap:48px;margin-top:28px}
+.article-style .catalogue-group{break-inside:avoid-column;margin-bottom:28px}
+.article-style .catalogue-group h3{margin:0 0 10px;font-size:23px;line-height:1.2}
+.article-style .catalogue-group ul{margin:0;padding-inline-start:1.1em}
+.article-style .catalogue-group li{margin-bottom:8px;font-size:17px;line-height:1.4}
+/* A long group may run on into the next column rather than leave a gap. */
+.article-style .catalogue-group:has(li:nth-child(15)){break-inside:auto}
+.article-style .catalogue-group:has(li:nth-child(15)) h3{break-after:avoid-column}
+
+/* Neurodiversity Lesson Bank: index cards, workshop layout, and Social Justice (--jus) lesson pages.
+ On phones and tablets the lessons follow the intro straight away (DESIGN.md §2) and the Team Neurodiversity
+ panel moves below them; on desktop the panel stands beside the intro above the grid. */
+.article-layout .article-style .lessonbank-flow{display:flex;flex-direction:column;gap:0;max-width:none}
+.article-layout .article-style .lessonbank-intro{order:0}
+.article-layout .article-style .lessonbank-lessons{order:1}
+.article-layout .article-style .lessonbank-aside{order:2;max-width:none;margin:0 0 28px;padding:24px 22px 20px;background:var(--jus-bg);box-shadow:inset 0 5px 0 var(--jus);border-radius:var(--r-large)}
+.article-layout .article-style .lessonbank-intro p{margin:0 0 14px}
+.article-layout .article-style .lessonbank-intro p:last-child{margin-bottom:0}
+.article-layout .article-style .lessonbank-aside h2{margin:0 0 8px;font-size:22px;line-height:1.2}
+.article-layout .article-style .lessonbank-aside p{margin:0 0 12px;font-size:17px;line-height:1.5;max-width:none}
+.article-layout .article-style .lessonbank-aside-links{display:flex;flex-direction:column;gap:6px;margin:0;padding:0;list-style:none}
+.article-layout .article-style .lessonbank-aside-links li{margin:0;max-width:none;font-size:16px}
+.article-layout .article-style .lessonbank-aside-links a{color:var(--jus);font-weight:600;text-decoration:underline;text-underline-offset:3px}
+.article-layout .article-style .lessonbank-aside-links a:hover{color:var(--ink)}
+@media(min-width:1001px){
+ .article-layout .article-style .lessonbank-flow{display:grid;grid-template-columns:minmax(0,580px) minmax(0,420px) minmax(0,1fr);grid-template-areas:"intro aside ." "lessons lessons lessons";column-gap:56px;align-items:start}
+ .article-layout .article-style .lessonbank-intro{grid-area:intro}
+ .article-layout .article-style .lessonbank-aside{grid-area:aside;margin:0}
+ .article-layout .article-style .lessonbank-lessons{grid-area:lessons}
+}
+.article-layout .article-style .lesson-grid-note{margin:0 0 18px;font-size:16px;color:var(--soft)}
+.article-layout .article-style .lesson-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(min(100%,320px),1fr));gap:18px;margin:20px 0 40px;padding:0;list-style:none;max-width:none}
+.article-layout .article-style .lesson-grid>.lesson-card{display:flex;flex-direction:column;max-width:none;margin:0;padding:20px 22px;background:var(--surface);border-radius:var(--r-large)}
+.article-layout .article-style .lesson-grid>.lesson-card-online{background:var(--jus-bg);box-shadow:inset 0 5px 0 var(--jus);padding-top:24px}
+.article-layout .article-style .lesson-card .lesson-num{margin:0 0 6px;font-size:15px;font-weight:700;color:var(--soft);max-width:none}
+.article-layout .article-style .lesson-card-online .lesson-num{color:var(--jus)}
+.article-layout .article-style .lesson-card h3{margin:0 0 8px;font-size:22px;line-height:1.2}
+.article-layout .article-style .lesson-card-online h3 a{color:var(--jus);text-decoration-color:color-mix(in srgb,var(--jus) var(--u-mix),transparent)}
+.article-layout .article-style .lesson-card-online h3 a:is(:hover,:focus-visible){color:var(--ink);text-decoration-thickness:var(--u-thick-hover);text-decoration-color:currentColor}
+.article-layout .article-style .lesson-card .lesson-summary{margin:0 0 14px;font-size:16px;line-height:1.45;color:var(--ink);max-width:none}
+.article-layout .article-style .lesson-card .lesson-materials{margin:auto 0 0;padding:12px 0 0;border-top:1px solid color-mix(in srgb,var(--ink) 14%,transparent);list-style:none;display:flex;flex-wrap:wrap;gap:6px 14px}
+.article-layout .article-style .lesson-card .lesson-materials li{margin:0;font-size:15px;max-width:none}
+.article-layout .article-style .lesson-card .lesson-materials a{color:var(--link);text-decoration:underline;text-underline-offset:3px}
+.article-layout .article-style .lesson-card-online .lesson-materials a{color:var(--jus)}
+.article-layout .article-style .lesson-card-online .lesson-materials a:hover{color:var(--ink)}
+.article-style .lesson-card .lesson-note{margin:auto 0 0;padding-top:12px;border-top:1px solid color-mix(in srgb,var(--ink) 14%,transparent);font-size:15px;color:var(--soft);max-width:none}
+.article-layout .article-style .lessonbank-workshop{display:flex;flex-direction:column;gap:20px;margin:16px 0 0;max-width:none}
+.article-layout .article-style .lessonbank-workshop-media{min-width:0}
+.article-layout .article-style .lessonbank-workshop-links{display:flex;flex-wrap:wrap;gap:10px 18px;margin:16px 0 0;padding:0;list-style:none}
+.article-layout .article-style .lessonbank-workshop-links li{margin:0}
+@media(min-width:1001px){
+ .article-layout .article-style .lessonbank-workshop{display:grid;grid-template-columns:minmax(0,520px) minmax(0,560px);justify-content:start;column-gap:48px;align-items:start}
+}
+@media(max-width:1000px){
+ .article-layout .article-style .lesson-card .lesson-materials a,.article-layout .article-style .lessonbank-aside-links a{display:inline-flex;align-items:center;min-height:44px}
+ .article-layout .article-style .lesson-card .lesson-materials{gap:0 16px;padding-top:6px}
+}
+.article-layout :is(.lesson-materials,.lesson-card-feedback,.lesson-quick-bar) .fa-external-link-alt{margin-inline-start:4px;font-size:.78em}
+
+/* Individual lesson pages: Social Justice (--jus) side card, mobile bar, structured activity blocks and pager. */
+.article-layout .lesson-kicker{margin:0 0 8px;font-size:16px;font-weight:700;color:var(--jus)}
+.article-layout .article-card-jus{background:var(--jus-bg);box-shadow:inset 0 6px 0 var(--jus);padding-top:26px}
+.article-layout .article-card-jus .article-toc #TableOfContents a{color:var(--jus)}
+.article-layout .article-card-jus .article-toc #TableOfContents a:hover{color:var(--ink)}
+.article-type-neurodiversity-lessonbank .toc-phone{background:var(--jus-bg)}
+.article-type-neurodiversity-lessonbank .toc-phone a{color:var(--jus)}
+.article-layout .lesson-card-meta{margin:0 0 18px;padding:0 0 14px;border-bottom:1px solid color-mix(in srgb,var(--jus) 22%,transparent)}
+.article-layout .lesson-card-links{margin:0;padding:0;list-style:none}
+.article-layout .lesson-card-links li{margin:0 0 6px;font-size:15px}
+.article-layout .lesson-card-links a,.article-layout .lesson-card-feedback a,.article-layout .lesson-card-nav a{color:var(--jus);font-weight:600;text-decoration:underline;text-underline-offset:3px}
+.article-layout .lesson-card-links a:hover,.article-layout .lesson-card-feedback a:hover,.article-layout .lesson-card-nav a:hover{color:var(--ink)}
+.article-layout .lesson-card-feedback{margin:10px 0 0;font-size:15px}
+.article-layout .lesson-card-nav{display:flex;flex-direction:column;gap:6px;margin:18px 0 0;padding:14px 0 0;border-top:1px solid color-mix(in srgb,var(--jus) 22%,transparent);font-size:15px}
+.article-layout .lesson-quick-bar{display:none}
+@media(max-width:1000px){
+ .article-layout .article-card-jus{display:none}
+ .article-layout .lesson-quick-bar{display:flex;flex-wrap:wrap;gap:6px 14px;margin:14px 0 0;padding:10px 14px;background:var(--jus-bg);border-radius:var(--r-small)}
+ .article-layout .lesson-quick-link{display:inline-flex;align-items:center;min-height:44px;font-size:15px;font-weight:600;color:var(--jus);text-decoration:underline;text-underline-offset:3px}
+ .article-layout .lesson-quick-link:hover{color:var(--ink)}
+}
+.article-type-neurodiversity-lessonbank .article-style blockquote{background:var(--jus-bg)}
+.article-layout .article-style .lesson-objectives{margin:0 0 28px;padding:18px 22px;background:var(--jus-bg);border-inline-start:4px solid var(--jus);border-radius:var(--r-small)}
+.article-layout .article-style .lesson-objectives h2{margin:0 0 10px;font-size:22px;line-height:1.2}
+.article-layout .article-style .lesson-objectives ul{margin:0;padding-inline-start:1.3em}
+.article-layout .article-style .lesson-objectives li:last-child{margin-bottom:0}
+.article-layout .article-style .lesson-media-pair{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,240px),1fr));gap:16px;margin:24px 0}
+.article-layout .article-style .lesson-media-pair img{display:block;width:100%;height:auto;aspect-ratio:3/2;object-fit:contain;padding:8px;box-sizing:border-box;background:#fff;border:1px solid var(--line);border-radius:var(--r-small)}
+.article-layout .article-style .lesson-figure{margin:24px 0;max-width:580px}
+.article-layout .article-style .lesson-figure-sm{max-width:420px}
+.article-layout .article-style .lesson-figure img{display:block;width:100%;height:auto;border-radius:var(--r-small)}
+.article-layout .article-style .lesson-figure figcaption{margin-top:8px;font-size:15px;line-height:1.4;color:var(--soft);text-align:start}
+.article-layout .article-style .lesson-note-box{margin:24px 0;padding:16px 20px;background:var(--jus-bg);border-inline-start:4px solid var(--jus);border-radius:var(--r-small);max-width:calc(var(--measure) + 2.6em)}
+.article-layout .article-style .lesson-note-box p:last-child{margin-bottom:0}
+.article-layout .article-style .lesson-prompt-box{margin:20px 0;padding:16px 20px;background:var(--surface);border-inline-start:4px solid var(--soft);border-radius:var(--r-small);max-width:calc(var(--measure) + 2.6em)}
+.article-layout .article-style .lesson-prompt-box p:last-child,.article-layout .article-style .lesson-prompt-box ul:last-child{margin-bottom:0}
+.article-layout .article-style .lesson-excerpt{margin:20px 0;padding:18px 22px;background:var(--surface);border-radius:var(--r-large);max-width:calc(var(--measure) + 2.6em)}
+.article-layout .article-style .lesson-excerpt p:last-child{margin-bottom:0}
+.article-layout .article-style .lesson-annotated-excerpt{margin:20px 0 28px;padding:22px 24px;background:var(--surface);border-inline-start:4px solid var(--jus);border-radius:var(--r-large);max-width:calc(var(--measure) + 2.6em)}
+.article-layout .article-style .lesson-excerpt-head{margin:0 0 16px;padding:0 0 12px;border-bottom:1px solid var(--line)}
+.article-layout .article-style .lesson-excerpt-title{margin:0 0 4px;font:500 21px/1.25 var(--display);color:var(--ink)}
+.article-layout .article-style .lesson-excerpt-byline{margin:0;font-size:15px;color:var(--soft)}
+.article-layout .article-style .lesson-passage{margin:0 0 18px;padding:0 0 16px;border-bottom:1px solid color-mix(in srgb,var(--ink) 12%,transparent)}
+.article-layout .article-style .lesson-passage:last-of-type{margin-bottom:14px;padding-bottom:14px}
+.article-layout .article-style .lesson-passage p{margin:0 0 10px}
+.article-layout .article-style .lesson-passage .lesson-ellipsis{margin:0 0 10px;font-weight:600;color:var(--soft)}
+.article-layout .article-style .lesson-hint{margin:8px 0 0;background:var(--jus-bg);border-radius:var(--r-small)}
+.article-layout .article-style .lesson-hint>summary{display:flex;align-items:center;min-height:44px;padding:6px 14px;font-size:16px;font-weight:600;color:var(--jus);cursor:pointer;list-style:none}
+.article-layout .article-style .lesson-hint>summary::-webkit-details-marker{display:none}
+.article-layout .article-style .lesson-hint>summary::before{content:"▸";display:inline-block;flex:none;margin-inline-end:8px;transition:transform .15s}
+.article-layout .article-style .lesson-hint[open]>summary::before{transform:rotate(90deg)}
+.article-layout .article-style .lesson-hint>summary:hover{color:var(--ink)}
+.article-layout .article-style .lesson-hint-body{padding:0 14px 14px;font-size:16px;line-height:1.5;color:var(--ink)}
+.article-layout .article-style .lesson-hint-body p:last-child{margin-bottom:0}
+.article-layout .article-style .lesson-quiz{margin:16px 0 24px;max-width:calc(var(--measure) + 2.6em)}
+.article-layout .article-style .lesson-quiz .spoiler{margin:0 0 10px;background:var(--jus-bg);border-radius:var(--r-small)}
+.article-layout .article-style .lesson-quiz .spoiler>summary{display:flex;align-items:baseline;min-height:44px;padding:10px 16px;font-size:17px;color:var(--ink);list-style:none}
+.article-layout .article-style .lesson-quiz .spoiler>summary::-webkit-details-marker{display:none}
+.article-layout .article-style .lesson-quiz .spoiler>summary::before{content:"▸";display:inline-block;flex:none;margin-inline-end:10px;color:var(--jus);transition:transform .15s}
+.article-layout .article-style .lesson-quiz .spoiler[open]>summary::before{transform:rotate(90deg)}
+.article-layout .article-style .lesson-quiz .spoiler>summary:hover{color:var(--jus)}
+.article-layout .article-style .lesson-quiz .spoiler-body{padding:0 16px 14px;font-size:16px;line-height:1.5}
+.article-layout .article-style .lesson-attribution{margin:12px 0 0;font-size:15px;line-height:1.45;color:var(--soft);max-width:34em}
+.article-layout .article-style .lesson-attribution a{color:var(--link);text-decoration-line:underline;text-decoration-color:var(--u-rest-color);text-decoration-thickness:var(--u-thick);text-underline-offset:var(--u-offset);text-decoration-skip-ink:auto}
+.article-layout .article-style .lesson-attribution a:is(:hover,:focus-visible){text-decoration-color:currentColor;text-decoration-thickness:var(--u-thick-hover)}
+.article-layout .article-style .lesson-attribution .fa-external-link-alt{margin-inline-start:3px;font-size:.78em}
+.article-layout .article-style .lesson-action-row{display:flex;flex-wrap:wrap;align-items:center;gap:10px 14px;margin:16px 0 22px;max-width:none}
+.article-layout .article-style .lesson-action-row .btn{min-height:44px;display:inline-flex;align-items:center;text-decoration:none}
+.article-layout .article-style .lesson-action-host{font-size:15px;color:var(--soft)}
+.article-layout .article-style .lesson-embed{position:relative;margin:20px 0 24px;border-radius:var(--r-small);overflow:hidden}
+.article-layout .article-style .lesson-embed:has(>iframe){aspect-ratio:4/3}
+.article-layout .article-style .lesson-embed-video:has(>iframe){aspect-ratio:16/9}
+.article-layout .article-style .lesson-embed-tall:has(>iframe){aspect-ratio:4/5;min-height:460px}
+.article-layout .article-style .lesson-options{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,240px),1fr));gap:16px;margin:20px 0}
+.article-layout .article-style .lesson-option-card{padding:18px 20px;background:var(--jus-bg);border-radius:var(--r-large)}
+.article-layout .article-style .lesson-option-card h3{margin:0 0 8px;font-size:19px;line-height:1.25;color:var(--ink)}
+.article-layout .article-style .lesson-option-card p{margin:0;font-size:16px;line-height:1.5;max-width:none}
+.article-layout .article-style .lesson-option-card ul{margin:10px 0 0;padding-inline-start:1.2em;font-size:16px;line-height:1.45}
+.article-layout .article-style .lesson-option-card li{margin-bottom:4px;max-width:none}
+.article-layout .article-style .lesson-option-card li:last-child{margin-bottom:0}
+.article-layout .article-style .lesson-quotes{counter-reset:lesson-quote;margin:18px 0 24px;padding:0;list-style:none;display:flex;flex-direction:column;gap:14px;max-width:calc(var(--measure) + 1.6em)}
+.article-layout .article-style .lesson-quotes li{counter-increment:lesson-quote;margin:0;padding:16px 20px;background:var(--jus-bg);border-inline-start:4px solid var(--jus);border-radius:var(--r-small)}
+.article-layout .article-style .lesson-quotes li::before{content:counter(lesson-quote) ". ";font-weight:700;color:var(--jus)}
+.article-layout .article-style .lesson-cases{margin:18px 0 24px;padding-inline-start:1.4em;max-width:calc(var(--measure) + 1.4em)}
+.article-layout .article-style .lesson-cases li{margin:0;padding:12px 0;border-bottom:1px solid var(--line)}
+.article-layout .article-style .lesson-cases li:last-child{border-bottom:0}
+.article-layout .article-style .lesson-reading{margin:32px 0 0;padding:20px 22px;background:var(--surface);border-radius:var(--r-large);max-width:calc(var(--measure) + 2.6em)}
+.article-layout .article-style .lesson-reading h2{margin:0 0 6px;font-size:24px}
+.article-layout .article-style .lesson-reading p,.article-layout .article-style .lesson-reading li{font-size:16px;line-height:1.5;overflow-wrap:anywhere}
+.article-layout .article-style .lesson-reading p:last-child,.article-layout .article-style .lesson-reading ul:last-child{margin-bottom:0}
+.article-layout .post-nav-lesson{margin-top:12px;padding-top:16px;border-top:1px solid var(--line)}
+
+/* A tool page's direct actions, under its title (page_actions). */
+.article-layout .page-actions{display:flex;flex-wrap:wrap;gap:10px;margin:0 0 28px}
+.article-layout .page-actions .btn{padding:10px 22px;font-size:17px}
+/* On phones a tall cover image pushed the page's contents a screen down, so it is held to part of the screen. */
+@media(max-width:760px){.article-layout .article-image img{width:auto;max-width:100%;max-height:280px;margin-inline:auto}}
+/* Old pages put a rule under each heading (### Title, then ---) and at the very end. The heading already
+ separates the section, and the rule pushed it away from its text, so neither rule is drawn. */
+.article-style :is(h2,h3,h4)+hr,.article-style>hr:last-child{display:none}
+.article-layout .post-nav-next{margin-inline-start:auto;text-align:end}
+.post-nav .meta-nav>span{display:inline-block;white-space:pre}
+/* Previous and Next card titles follow the hybrid card-title rule (DESIGN.md §5). */
+.post-nav-item a{text-decoration:none}
+.post-nav-item a p{text-decoration:none}
+.post-nav-item a:is(:hover,:focus-visible) p{color:var(--ink);text-decoration-line:underline;text-decoration-color:currentColor;text-decoration-thickness:var(--u-thick-hover);text-underline-offset:var(--u-offset)}
+[dir=rtl] .post-nav .meta-nav>span{transform:scaleX(-1)}
+/* Author profiles on a narrow screen: portrait, role and links under the name, in place of the side card. */
+.profile-head{display:none}
+@media(max-width:1000px){
+ .article-layout .profile-card{display:none}
+ .profile-head{display:flex;align-items:center;gap:14px;margin-top:14px}
+ .profile-head .profile-photo{width:72px;height:72px;border-radius:50%;object-fit:cover;flex:none}
+ .profile-head .avatar-square{border-radius:var(--r-small)}
+ .profile-head p{margin:0 0 4px;font-weight:700}
+}
+/* One primary button: old pages give theirs inline sizes, corners and full widths; all take the "Open this resource" pill. */
+.article-layout .article-style .btn-primary,.article-layout .article-style .btn-lg{padding:10px 22px!important;border-radius:999px!important;font-size:17px!important;line-height:1.3!important}
+.article-layout .article-style .btn-block{display:inline-block;width:auto}
+@media(max-width:1000px){.profile-head .profile-org{font-weight:400}.profile-head ul.network-icon{margin:4px 0 0}.profile-head ul.network-icon a{text-decoration:none}}
+.article-layout .article-style .btn.btn-primary,.article-layout .article-style .btn.btn-lg{padding:10px 22px!important;font-size:17px!important}
+.byline-date{display:none}
+@media(max-width:1000px){.article-layout .byline-date{display:inline}}
+/* A search over a long list on the page (shortcodes/list_filter.html). */
+.article-layout :is(.article-style .list-filter,.list-filter-posts){max-width:520px;margin:8px 0 22px;padding:16px 18px;background:var(--surface);border-radius:var(--r-large)}
+.article-layout :is(.article-style .list-filter,.list-filter-posts) label{display:block;margin:0 0 8px;font:600 17px/1.3 var(--text)}
+.article-layout :is(.article-style .list-filter,.list-filter-posts) input{width:100%;box-sizing:border-box;padding:10px 16px;border:1.5px solid var(--ink);border-radius:999px;background:#fff;font:400 17px/1.3 var(--text);color:var(--ink)}
+.article-layout :is(.article-style,.list-filter-posts) .list-filter-count{margin:8px 0 0;font-size:16px;color:var(--soft)}
+.article-layout .article-style [hidden]{display:none!important}
+/* A licence note is a quiet line with its badge, as the site's other notes, not a bordered, centred box. */
+.article-layout .article-style .license-note{margin:28px 0 0!important;padding:14px 18px!important;border:0!important;border-radius:var(--r-large)!important;background:var(--surface)!important;text-align:start!important}
+.article-layout .article-style .license-note .license-content{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:10px 18px}
+.article-layout .article-style .license-note p{margin:0!important;font-size:16px!important;text-align:start!important}
+/* AWoP: the supplemental materials read as a list: each title with its OSF link beside it, then what it is. */
+.article-layout .article-style .awop-material{display:grid;grid-template-columns:minmax(0,1fr) auto;column-gap:16px;margin:0;padding:14px 0 4px;border-bottom:1px solid var(--line)}
+.article-layout .article-style p+.awop-material{border-top:1px solid var(--line);margin-top:12px}
+.article-layout .article-style .awop-material>*{grid-column:1/-1}
+.article-layout .article-style .awop-material>p:first-child{grid-column:1;grid-row:1}
+.article-layout .article-style .awop-material>p:nth-child(3){grid-column:2;grid-row:1;white-space:nowrap}
+.article-layout .article-style .awop-material p{margin:0 0 8px}
+.article-layout .article-style .awop-material .spoiler{margin:0 0 10px;background:none}
+.article-layout .article-style .awop-material .spoiler>summary{padding:4px 0;font-size:16px}
+
+/* Starting points (the action_cards shortcode and the Replication Hub's Start here): solid bricks with studs,
+ laid edge to edge like a short wall. The bricks are for a handful of actions; long lists are rows (hub.css). The welcome page numbers its bricks as steps (welcome.css).
+ A row runs through the four brick colours (--brick1 to --brick4 in tokens.css), which stay clear of the
+ area colours and carry no meaning. The Replication Hub's bricks take their stages' colours instead (hub.css).
+ Outside an article, a container with the class brick-row takes the same bricks (the resources directory, Tags). */
+.action-cards li:nth-child(4n+1){--tone:var(--brick1)}.action-cards li:nth-child(4n+2){--tone:var(--brick2)}
+.action-cards li:nth-child(4n+3){--tone:var(--brick3)}.action-cards li:nth-child(4n+4){--tone:var(--brick4)}
+:is(.article-layout .article-style,.article-layout .article-head,.hub-start,.welcome-start,.brick-row) .action-cards{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,190px),1fr));gap:16px 5px;list-style:none;margin:26px 0 32px;padding:0;max-width:none}
+:is(.article-layout .article-style,.article-layout .article-head,.hub-start,.welcome-start,.brick-row) .action-cards li{position:relative;margin:0;--brick:var(--tone)}
+/* The studs: short blocks along the top edge, on a pseudo-element so the text sits on a plain fill. */
+:is(.article-layout .article-style,.article-layout .article-head,.hub-start,.welcome-start,.brick-row) .action-cards li::before{content:"";position:absolute;left:14px;right:14px;top:-8px;height:8px;background:linear-gradient(90deg,transparent 6px,var(--brick) 6px 28px,transparent 28px) left top/34px 8px space no-repeat;border-radius:3px 3px 0 0;pointer-events:none}
+:is(.article-layout .article-style,.article-layout .article-head,.hub-start,.welcome-start,.brick-row) .action-cards a{display:flex;flex-direction:column;gap:4px;height:100%;box-sizing:border-box;min-height:96px;padding:16px 18px 22px;background:var(--brick);border-radius:3px;box-shadow:inset 0 -6px 0 rgb(0 0 0/.24);color:#fff;text-decoration:none;-webkit-print-color-adjust:exact;print-color-adjust:exact}
+:is(.article-layout .article-style,.article-layout .article-head,.hub-start,.welcome-start,.brick-row) .action-cards strong{font:500 24px/1.15 var(--display);color:#fff}
+:is(.article-layout .article-style,.article-layout .article-head,.hub-start,.welcome-start,.brick-row) .action-cards span{font:400 17px/1.4 var(--text);color:#fff}
+:is(.article-layout .article-style,.article-layout .article-head,.hub-start,.welcome-start,.brick-row) .action-cards a:hover strong{text-decoration:underline;text-decoration-thickness:1.5px;text-underline-offset:4px}
+:is(.article-layout .article-style,.article-layout .article-head,.hub-start,.welcome-start,.brick-row) .action-cards a:focus-visible{outline:3px solid var(--ink);outline-offset:3px}
+@media(prefers-reduced-motion:no-preference){
+ :is(.article-layout .article-style,.article-layout .article-head,.hub-start,.welcome-start,.brick-row) .action-cards li{transition:transform .15s}
+ :is(.article-layout .article-style,.article-layout .article-head,.hub-start,.welcome-start,.brick-row) .action-cards li:hover{transform:translateY(-3px)}
+}
+/* A disclosure inside a list item (the effects on /reversals/) is a small toggle under the entry, not a full-width bar. */
+.article-layout .article-style li .spoiler{margin:4px 0 12px;background:none;border-radius:0}
+.article-layout .article-style li .spoiler>summary{display:inline-flex;padding:4px 0;font-size:15px;color:var(--link);text-decoration:none}
+.article-layout .article-style li .spoiler>summary:is(:hover,:focus-visible){text-decoration-line:underline;text-decoration-color:currentColor;text-decoration-thickness:var(--u-thick-hover);text-underline-offset:var(--u-offset)}
+.article-layout .article-style li .spoiler[open]{padding:4px var(--box-pad) 2px;background:var(--surface);border-radius:var(--r-small)}
+/* The open entry already pads its box, so its body adds no frame of its own. */
+.article-layout .article-style li .spoiler-body{padding:2px 0 12px}
+.article-layout .article-style li .spoiler[open]>summary{text-decoration:none}
+.article-layout .article-style li .spoiler{margin-top:0}
+.article-layout .article-style li .spoiler>summary::before{content:"▸";display:inline-block;margin-inline-end:6px;text-decoration:none;transition:transform .15s}
+.article-layout .article-style li .spoiler[open]>summary::before{transform:rotate(90deg)}
+.article-layout .article-style .btn.btn-outline-primary{padding:10px 22px!important;border-radius:999px!important;font-size:17px!important;line-height:1.3!important}
+/* Replication outcomes on /reversals/ (site.js), in the colours of --out-* in tokens.css. The strong colour marks an
+ entry's edge and its part of the outcome bar; the pale one is the chip, the button and the entry's ground. */
+.status-replicated,.outcome-replicated{--out:var(--out-replicated);--out-bg:var(--out-replicated-bg)}
+.status-mixed,.outcome-mixed{--out:var(--out-mixed);--out-bg:var(--out-mixed-bg)}
+.status-not-replicated,.outcome-not-replicated{--out:var(--out-not-replicated);--out-bg:var(--out-not-replicated-bg)}
+.status-reversed,.outcome-reversed{--out:var(--out-reversed);--out-bg:var(--out-reversed-bg)}
+.status-no-status,.outcome-no-status{--out:var(--out-no-status);--out-bg:var(--out-no-status-bg)}
+.status-chip{display:inline-block;margin:0 2px 0 0;padding:1px 9px;border-radius:999px;font:600 15px/1.4 var(--text);color:var(--ink);background:var(--out-bg,var(--surface));box-shadow:inset 0 0 0 1.5px var(--out,transparent);vertical-align:1px}
+/* A list with a search over it (the games portal, Educators' Corner) reads as rows: no bullets, a rule between entries. */
+.article-layout .article-style .list-filter~ul{list-style:none;padding-inline-start:0}
+.article-layout .article-style .list-filter~ul>li{margin:0;padding:12px 0 6px;border-bottom:1px solid var(--line)}
+.article-layout .article-style .list-filter~ul>li>p{margin:0 0 4px}
+.article-layout .article-style .list-filter-jump{display:flex;align-items:center;gap:8px;margin:10px 0 0;font:600 16px/1.3 var(--text)}
+.article-layout .article-style .list-filter-jump select{flex:1;padding:8px 10px;border:1.5px solid var(--line);border-radius:var(--r-small);background:#fff;font:400 16px/1.3 var(--text);color:var(--ink)}
+
+/* A page's opening with its picture in view (partials/page_hero.html: the AWoP and citation wheels, a banner): on a
+ desktop the title, lede and actions sit beside a large image and span the side card and text below;
+ on a phone the image follows the actions at a size that keeps them on the first screen. */
+.article-layout .page-hero{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,400px);column-gap:48px;align-items:center}
+/* A full-width page (AI in Metascience) gives a landscape banner the width of the cards below it. */
+.article-layout-wide .page-hero{grid-template-columns:minmax(0,1fr) minmax(0,520px);column-gap:56px}
+.article-layout .page-hero h1{font-size:clamp(34px,3.2vw,44px);line-height:1.1;letter-spacing:-.01em;margin:0;text-wrap:balance}
+.article-layout .page-hero .page-actions{margin-bottom:0}
+.article-layout .page-hero-media{margin:0;text-align:center}
+.article-layout .page-hero-media img{display:block;width:100%;height:auto}
+.article-layout .page-hero-media a{display:block;border-radius:var(--r-small);overflow:hidden}
+.article-layout .page-hero-media p{margin:6px 0 0;font-size:15px}
+.article-layout .page-hero-media p a{display:inline;color:var(--link);text-decoration-line:underline;text-decoration-color:var(--u-rest-color);text-decoration-thickness:var(--u-thick);text-underline-offset:var(--u-offset);text-decoration-skip-ink:auto}
+.article-layout .page-hero-media p a:is(:hover,:focus-visible){text-decoration-color:currentColor;text-decoration-thickness:var(--u-thick-hover)}
+@media(min-width:1001px){
+ .article-layout:has(>.page-hero){row-gap:40px}
+ .article-layout:not(.article-layout-wide)>.page-hero{grid-column:1/-1;grid-row:1}
+ .article-layout:not(.article-layout-wide):has(>.page-hero)>:is(.article-card,.reading){grid-row:2}
+}
+@media(max-width:1000px){
+ .article-layout:has(>.page-hero){row-gap:24px}
+ .article-layout .page-hero{grid-template-columns:minmax(0,1fr);row-gap:24px}
+ .article-layout .page-hero-media{width:min(100%,340px)}
+ .article-layout .page-hero-landscape .page-hero-media{width:100%}
+}
+@media(max-width:600px){
+ .article-layout .page-hero{row-gap:18px}
+ .article-layout .page-hero:not(.page-hero-landscape) .page-hero-media{width:min(100%,280px)}
+}
+
+/* /reversals/ (site.js). The page is wider than an article: the contents card, with each discipline's mix of outcomes,
+ stays beside the list, and the board of outcomes opens it. */
+@media(min-width:1001px){
+ .article-layout:has(.list-filter[data-noun=effects]){grid-template-columns:256px minmax(0,1fr);gap:48px;max-width:1064px;margin-inline:auto}
+ .article-layout:not(.article-layout-wide):has(.list-filter[data-noun=effects])>.article-card{width:auto;padding:18px 14px 18px 18px}
+}
+/* With JavaScript enabled, the toolbar's Go to menu replaces the phone contents list (assets.html's