/* Research area — index, strand pages, publication entries. Site tokens only. */
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.research-hero, .strand-hero { padding-top: 88px; padding-bottom: 72px; }
.hero-todo, .strand-desc { margin-top: 28px; max-width: 46em; }
.strand-q { max-width: 20em; }
.h2 { font-size: 1.6rem; font-weight: 500; letter-spacing: -0.02em; color: var(--slate-dark); margin-bottom: 18px; }
.block { margin-bottom: 64px; }
.block:last-of-type { margin-bottom: 40px; }

.tools { display: flex; flex-wrap: wrap; gap: 14px 22px; margin-top: 32px; align-items: center; }
.tool { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; }
.tools .todo { flex: 1 1 320px; }
.tool-credit { color: var(--text-light); font-size: .98rem; }

.findings { list-style: none; counter-reset: f; display: grid; gap: 22px; max-width: 52em; }
.findings li { counter-increment: f; position: relative; padding-left: 52px; }
.findings li::before {
  content: counter(f); position: absolute; left: 0; top: 2px; width: 34px; height: 34px; border-radius: 50%;
  display: grid; place-items: center; background: var(--warm); color: var(--coral-deep); font-weight: 600;
}
.findings p { font-size: 1.22rem; line-height: 1.55; color: var(--text); }
.findings .src { font-size: .95rem; color: var(--text-light); }

.partner-list { list-style: none; display: flex; flex-wrap: wrap; gap: 10px 28px; font-size: 1.15rem; }

.entries { display: grid; gap: 0; }
.entry { padding: 28px 0; border-top: 1px solid var(--line); }
.entry:last-child { border-bottom: 1px solid var(--line); }
.entry[hidden] { display: none; }
.pub-meta { font-size: .95rem; color: var(--text-light); margin-bottom: 6px; }
.pub-meta a { color: var(--coral-deep); text-decoration: none; }
.pub-meta a:hover { text-decoration: underline; }
.pub-title { font-size: 1.4rem; font-weight: 500; letter-spacing: -0.02em; line-height: 1.3; color: var(--slate-dark); max-width: 36em; }
.pub-authors { margin-top: 4px; color: var(--text); font-size: 1.02rem; }
.pub-desc { margin-top: 10px; color: var(--text-light); font-size: 1.1rem; line-height: 1.6; max-width: 46em; }
.pub-with { margin-top: 8px; color: var(--text-light); font-size: 1rem; }
.pub-links { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 16px; align-items: center; }
.entry .todo { margin-top: 12px; }
.entry-tool .pub-title { color: var(--slate-deep); }

.todo-inline {
  display: inline-block; font-size: .82rem; font-weight: 600; letter-spacing: .02em; color: var(--coral-deep);
  border: 1px dashed var(--coral); border-radius: 6px; padding: 1px 7px; vertical-align: 1px;
}

/* Exploration */
.partner-row { margin-bottom: 26px; }
.filter-label { font-size: .8rem; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--text-light); margin-bottom: 10px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  min-height: 40px; padding: 0 14px; border-radius: 999px; border: 1px solid #cfd8de; background: var(--white);
  color: var(--slate-dark); font: 500 .98rem var(--sans); cursor: pointer;
}
.chip:hover { border-color: var(--coral); color: var(--coral-deep); }
.chip[aria-pressed="true"], .chip[aria-current="true"] { background: var(--slate-dark); border-color: var(--slate-dark); color: var(--white); }
.filters { display: flex; flex-wrap: wrap; gap: 12px 18px; align-items: end; margin-bottom: 14px; }
.filters label { display: grid; gap: 4px; font-size: .9rem; font-weight: 500; color: var(--text-light); }
.filters select {
  min-height: 44px; min-width: 200px; padding: 0 12px; border-radius: 10px; border: 1px solid #cfd8de;
  background: var(--white); color: var(--text); font: 400 1rem var(--sans);
}
@media (max-width: 620px) { .filters label { flex: 1 1 100%; } .filters select { width: 100%; } }
.filter-status { color: var(--text-light); font-size: 1rem; margin-bottom: 8px; min-height: 1.7em; }
.filter-status b { color: var(--slate-dark); font-weight: 600; }
.empty { padding: 28px 0; color: var(--text-light); }
.linkish { border: 0; background: none; color: var(--coral-deep); font: inherit; text-decoration: underline; cursor: pointer; }

/* Previous / next */
.pager { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 24px; padding-top: 28px; border-top: 1px solid var(--line); }
.pager a { display: grid; gap: 2px; text-decoration: none; color: var(--slate-dark); font-size: 1.15rem; font-weight: 500; padding: 10px 0; }
.pager a span { font-size: .8rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--text-light); }
.pager a:hover { color: var(--coral-deep); }
.pager .next { text-align: right; }

/* Research index header: the network motif sits behind the text and drifts with a gentle parallax. */
.research-hero { position: relative; overflow: hidden; isolation: isolate; }
.research-hero .hero-motif { position: absolute; left: 0; top: 0; width: 100%; z-index: -1; pointer-events: none; will-change: transform; }
.research-hero .wrap { position: relative; }

/* ---- Strand pages: guided read (question, at a glance, the work itself, research) ---------- */
.strand-hero { padding-bottom: 32px; }
.strand-q { max-width: 22em; }
.strand-lead { margin-top: 22px; max-width: 38em; }
.summary-en p { max-width: 46em; font-size: 1.1rem; line-height: 1.75; color: var(--text); }
.summary-en p + p { margin-top: 14px; }

.figs { list-style: none; display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 16px; }
.fig a { display: grid; gap: 6px; height: 100%; padding: 24px 24px 20px; background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow); text-decoration: none; color: inherit; }
.fig-n { font-family: var(--display); font-weight: 300; font-size: clamp(2rem, 4vw, 2.8rem); line-height: 1.05; color: var(--ink); font-variant-numeric: tabular-nums; }
.fig-l { font-size: 1.02rem; line-height: 1.5; color: var(--text); }
.fig-s { font-size: .88rem; color: var(--coral-deep); font-weight: 600; }
.fig a:hover .fig-s { text-decoration: underline; }

/* Embedded work at full content width */
.embed-block { scroll-margin-top: var(--head-h); }
.embed-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 12px 24px; margin-bottom: 18px; }
.embed-head .h2 { margin-bottom: 0; }
.embed { position: relative; }
.embed-preview { position: relative; border-radius: var(--radius); overflow: hidden; background: var(--white); box-shadow: var(--shadow); min-height: 220px; display: grid; }
.embed-preview img { width: 100%; height: auto; display: block; grid-area: 1 / 1; }
.embed-status { grid-area: 1 / 1; align-self: start; margin: 16px; padding: 12px 18px; border-radius: 20px; background: rgba(255, 255, 255, .94); box-shadow: var(--shadow); color: var(--text); font-size: .98rem; max-width: 34em; }
.embed[data-state="loading"] .embed-preview { display: none; }
.embed[data-state="failed"] .embed-preview { display: grid; }
.embed-credit { margin-top: 18px; color: var(--text); font-size: 1rem; }
.embed-credit a { color: var(--ink); }
.also-on { margin-top: 4px; font-size: .98rem; color: var(--text-light); }
.also-on a { color: var(--coral-deep); font-weight: 600; text-decoration: none; }
.also-on a:hover { text-decoration: underline; }

.embed.is-fullscreen, .embed.is-full { background: var(--ivory); padding: 24px clamp(16px, 3vw, 40px); overflow: auto; }
.embed.is-full { position: fixed; inset: 0; z-index: 200; }
.has-full-embed { overflow: hidden; }
.embed-close { position: sticky; top: 0; z-index: 2; margin: 0 0 16px auto; display: flex; }

/* How to cite this */
.cite { margin-top: 14px; }
.cite summary { display: inline-flex; align-items: center; min-height: 44px; cursor: pointer; color: var(--ink); font-weight: 600; font-size: .98rem; list-style: none; }
.cite summary::-webkit-details-marker { display: none; }
.cite summary::before { content: "+"; display: inline-grid; place-items: center; width: 22px; height: 22px; margin-right: 8px; border-radius: 50%; background: var(--pale-slate); font-weight: 700; }
.cite[open] summary::before { content: "−"; }
.cite-body { margin-top: 6px; padding: 18px 22px; background: var(--white); border-radius: 20px; box-shadow: var(--shadow); max-width: 52em; }
.cite-text { font-size: 1rem; line-height: 1.6; color: var(--text); overflow-wrap: anywhere; }
.cite-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 20px; margin-top: 12px; }
.cite-actions a { color: var(--coral-deep); font-weight: 600; }
.embed-preview[hidden], .embed[data-state="ready"] .embed-preview { display: none; }
.embed-status a { color: var(--coral-deep); font-weight: 600; margin-left: 4px; }
.embed-preview img { opacity: .55; }

/* ---- Report chapters (DRP funding audit) ---------------------------------------------------- */
.report-hero .kicker { max-width: 52em; }
.lang-switch { margin-top: 18px; font-size: 1rem; color: var(--text-light); }
.lang-switch a { color: var(--coral-deep); font-weight: 600; }
.report-grid { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 48px; align-items: start; }
@media (max-width: 900px) { .report-grid { grid-template-columns: 1fr; gap: 24px; } }
.report-nav { position: sticky; top: calc(var(--head-h) + 12px); }
@media (max-width: 900px) { .report-nav { position: static; } }
.report-nav ol { list-style: none; display: grid; gap: 4px; padding: 10px; background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow); counter-reset: ch; }
@media (max-width: 900px) { .report-nav ol { display: flex; flex-wrap: wrap; } }
.report-nav a { display: flex; align-items: center; min-height: 40px; padding: 0 14px; border-radius: 999px; color: var(--text); text-decoration: none; font-family: var(--display); font-weight: 500; }
.report-nav a:hover { background: var(--pale-slate); color: var(--ink); }
.report-nav a[aria-current] { background: var(--panel); color: var(--white); }
.report-text { max-width: 46em; min-width: 0; }
.report-text > h2 { font-family: var(--display); font-weight: 400; font-size: clamp(1.5rem, 2.6vw, 1.95rem); color: var(--ink); margin: 48px 0 16px; line-height: 1.25; }
.report-text > h2:first-child, .draft-banner + h2, .draft-banner + p + h2 { margin-top: 0; }
.report-text > h3 { font-family: var(--display); font-weight: 500; font-size: 1.3rem; color: var(--ink); margin: 36px 0 12px; }
.report-text > h4, .report-text > h5 { font-family: var(--display); font-weight: 600; font-size: 1.05rem; color: var(--ink); margin: 28px 0 8px; }
.report-text > p, .report-text li { font-size: 1.08rem; line-height: 1.75; color: var(--text); }
.report-text > p + p { margin-top: 14px; }
.report-text > ul { margin: 12px 0 16px 1.2em; display: grid; gap: 8px; }
.report-text a { color: var(--ink); }
.report-text strong { color: var(--ink); font-weight: 700; }
.report-text > .kicker { margin-top: 8px; }
.draft-banner { margin-bottom: 28px; padding: 16px 20px; border-radius: 20px; background: var(--blush); color: var(--ink); font-size: 1rem; }
.flourish-fig, .report-img { margin: 28px 0; }
.flourish-fig { width: min(100%, 60rem); }
.flourish-fig .embed-live { background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; padding: 8px; }
.flourish-fig figcaption { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 16px; margin-top: 12px; font-size: .98rem; color: var(--text); }
.flourish-fig .fl-cap { font-weight: 600; color: var(--ink); }
.report-img img { border-radius: 20px; box-shadow: var(--shadow); background: var(--white); }
.report-text .pager { margin-top: 56px; }

/* What should change / Read the report (strand pages) */
.change-list { list-style: none; counter-reset: c; display: grid; gap: 12px; max-width: 52em; }
.change-list li { counter-increment: c; position: relative; padding: 18px 22px 18px 64px; background: var(--white); border-radius: 22px; box-shadow: var(--shadow); font-size: 1.06rem; line-height: 1.6; color: var(--text); }
.change-list li::before { content: counter(c); position: absolute; left: 20px; top: 16px; width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; background: var(--pale-slate); color: var(--ink); font-family: var(--display); font-weight: 600; }
.change-list strong { color: var(--ink); }
.src-line { margin-top: 12px; font-size: .95rem; color: var(--text-light); }
.src-line a { color: var(--coral-deep); font-weight: 600; }
.report-title { font-family: var(--display); font-size: 1.2rem; color: var(--ink); margin-bottom: 14px; max-width: 40em; }
.chapters { list-style: none; display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 10px; counter-reset: k; }
.chapters li { counter-increment: k; display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; padding: 16px 20px; background: var(--white); border-radius: 22px; box-shadow: var(--shadow); }
.chapters li::before { content: counter(k) "."; font-family: var(--display); color: var(--text-light); font-weight: 600; }
.chapters a { color: var(--ink); font-family: var(--display); font-weight: 500; font-size: 1.08rem; }
.chapters .ro-link { font-family: var(--sans); font-size: .9rem; font-weight: 400; color: var(--text-light); }
.fig { display: grid; gap: 10px; align-content: start; }
.fig-note { padding: 0 8px; font-size: .9rem; line-height: 1.55; color: var(--text-light); }
.fig-note a { color: var(--coral-deep); font-weight: 600; }

/* ======================================================================================
   Open layout (site-wide rule, 2026-11-20): text, figures, charts and lists sit on the page
   background, separated by space and heading size. Cards only for things you click
   (strand cards, publication entries, previous/next).
   ====================================================================================== */
.strand-hero { padding-bottom: 8px; }
.strand-lead { margin-top: 20px; max-width: 40em; font-size: clamp(1.15rem, 1.9vw, 1.35rem); }
.strand-body .block { margin-bottom: 88px; }
.strand-body .h2 { font-family: var(--display); font-weight: 600; font-size: 1.375rem; color: var(--ink); margin-bottom: 10px; }

/* At a glance: one plain row of large numbers */
.glance-src { color: var(--text-light); font-size: .95rem; margin-bottom: 28px; }
.figs { list-style: none; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 32px 40px; }
@media (max-width: 900px) { .figs { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 480px) { .figs { grid-template-columns: 1fr; gap: 26px; } }
.fig { display: block; }
.fig-n { display: block; font-family: var(--display); font-weight: 300; font-size: clamp(2.2rem, 4.2vw, 3.1rem); line-height: 1.05; color: var(--ink); font-variant-numeric: tabular-nums; white-space: nowrap; }
.fig-l { display: block; margin-top: 10px; font-size: 1rem; line-height: 1.5; color: var(--text); }
.fig a, .fig-note, .fig-s { all: unset; }
/* The definition marker beside a figure */
.def { display: inline; margin-left: 4px; }
.def > summary { display: inline-grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; background: var(--pale-slate); color: var(--ink); font: 700 .78rem var(--display); cursor: pointer; list-style: none; vertical-align: 2px; }
.def > summary::-webkit-details-marker { display: none; }
.def[open] > summary { background: var(--panel); color: var(--white); }
.def > p { display: block; margin-top: 10px; font-size: .92rem; line-height: 1.6; color: var(--text); }

/* The work itself, full width, no frame */
.embed-head { margin-bottom: 8px; }
.embed-intro { max-width: 46em; margin-bottom: 26px; }
.embed-intro p { font-size: 1.08rem; line-height: 1.75; color: var(--text); }
.embed-key { margin-top: 12px; font-size: .98rem; color: var(--text-light); }
.embed-preview { background: none; box-shadow: none; border-radius: 0; }
.embed-preview img { border-radius: 16px; }
.embed-status { box-shadow: none; background: rgba(251, 247, 244, .94); }
.linkish.embed-full { font-weight: 700; text-decoration: none; color: var(--coral-deep); padding: 8px 0; }
.linkish.embed-full:hover { text-decoration: underline; }

/* Lists and closing lines: plain */
.plain-list { max-width: 50em; padding-left: 1.4em; display: grid; gap: 12px; }
.plain-list li { font-size: 1.08rem; line-height: 1.65; color: var(--text); padding-left: 6px; }
.plain-list li::marker { font-family: var(--display); font-weight: 600; color: var(--ink); }
.plain-list strong { color: var(--ink); }
.draft-note { margin-bottom: 14px; font-size: .92rem; color: var(--text-light); }
.closing { display: grid; gap: 10px; }
.credits-line { color: var(--text); }
.credits-line a { color: var(--ink); }
.read-full a { color: var(--coral-deep); font-weight: 700; text-decoration: none; }
.read-full a:hover { text-decoration: underline; }
.cite-body { background: none; box-shadow: none; padding: 8px 0 0; }
.change-list li { background: none; box-shadow: none; }
.fig-n { white-space: normal; }
.fig-u { font-size: .45em; font-weight: 500; letter-spacing: .04em; color: var(--text); white-space: nowrap; }

/* Steps (How it works) with the report's charts in place; open layout */
.steps .step { margin-top: 56px; }
.steps .step:first-of-type { margin-top: 24px; }
.steps h3 { display: flex; align-items: baseline; gap: 14px; font-family: var(--display); font-weight: 400; font-size: clamp(1.3rem, 2.2vw, 1.6rem); color: var(--ink); margin-bottom: 18px; }
.step-n { display: inline-grid; place-items: center; flex: 0 0 auto; width: 34px; height: 34px; border-radius: 50%; background: var(--pale-slate); font-weight: 600; font-size: 1rem; }
.step-more a, .cross-link a { color: var(--coral-deep); font-weight: 700; }
.qr-report { background: transparent; }
.qr-report.qr-inline figure { margin: 0; }
.read-main { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 22px; }
.read-main a:not(.btn) { color: var(--ink); font-weight: 600; }
.cross-link { max-width: 46em; color: var(--text); }
.qr-tdi-credit { padding: 32px 0 8px; color: var(--text); font-size: .98rem; }
.qr-tdi-credit a { color: var(--ink); }
/* Buttons keep white text wherever they sit (link colours elsewhere must not override them). */
a.btn:not(.btn-quiet), a.btn:not(.btn-quiet):hover, .read-full a.btn:not(.btn-quiet) { color: var(--white); }


/* ---- Polish pass (2026-11-20) -------------------------------------------------------------- */
/* 1. "At a glance": one soft coral rule under the figures, before the next section (static). */
.strand-body .glance { margin-bottom: 3rem; padding-bottom: 3rem; border-bottom: 1px solid rgba(212, 119, 107, .45); }
/* 2. Figures stay on one line and share a baseline; long figures scale down a little. */
.figs { align-items: start; }
/* Every figure sits in a number band of the same height, bottom-aligned, so all share one baseline. */
.fig-n { white-space: nowrap; display: flex; align-items: flex-end; height: clamp(2.4rem, 4.5vw, 3.35rem); line-height: 1; }
.fig-n.fig-long { font-size: clamp(1.6rem, 3vw, 2.35rem); }
.fig-n .fig-u { margin-left: .2em; padding-bottom: .12em; }
/* 8. Title accent: a short coral line drawn once under the page title. */
.title-accent::after {
  content: ""; display: block; width: 72px; height: 2px; margin-top: 1.25rem; background: var(--coral);
  transform-origin: left center; transform: scaleX(0);
  animation: titleAccent .7s cubic-bezier(.22, 1, .36, 1) .2s forwards;
}
@keyframes titleAccent { to { transform: scaleX(1); } }
@media (prefers-reduced-motion: reduce) { .title-accent::after { animation: none; transform: none; } }
.fig-n { font-variant-numeric: lining-nums tabular-nums; font-feature-settings: "lnum" 1, "tnum" 1; }

/* Research index: community cards (clickable, so they keep the card) */
.communities-h { margin-top: 56px; }
.community-card .cc-img { display: block; margin: -30px -28px 18px; }
.community-card .cc-img img { width: 100%; height: auto; border-radius: var(--radius) var(--radius) 0 0; }
.credit-after { margin-top: 18px; font-size: .95rem; color: var(--text-light); }

/* Publisher marks: small, one colour at reduced strength, full strength on hover; under the line on phones. */
.pub-pubrow { display: flex; align-items: center; justify-content: space-between; gap: 8px 24px; margin-top: 8px; }
.pub-pubrow .pub-with { margin-top: 0; }
.pmark { flex: 0 0 auto; display: inline-flex; align-items: center; opacity: .62; transition: opacity .2s ease; }
.pmark:hover, .pmark:focus-visible { opacity: 1; }
.pmark img { display: block; height: 26px; width: auto; }
.pmark-ph { width: 72px; height: 26px; border-radius: 6px; border: 1px dashed rgba(47, 67, 84, .35); opacity: 1; }
.partner-list li { display: inline-flex; align-items: center; gap: 12px; }
.chip { text-decoration: none; display: inline-flex; align-items: center; }
.chip-mark img { display: block; height: 26px; width: auto; opacity: .62; }
.chip-mark:hover img { opacity: 1; }
@media (max-width: 620px) { .pub-pubrow { flex-direction: column; align-items: flex-start; } }
