/* Researchgram Platform: light, minimal theme that matches the main site.
   Applies only to pages with <body class="pf"> and the .pf-teaser block on the home page.
   Palette and type come from style.css (Merriweather headings, Lato body, charcoal + coral). */
:root {
  --pf-bg: #ffffff;
  --pf-bg2: #f2f2f2;
  --pf-panel: #ffffff;
  --pf-panel2: #f2f2f2;
  --pf-line: #d9d9d9;
  --pf-text: #6b6b6b;
  --pf-dim: #6f6f6f;
  --pf-ink: #222222;
  --pf-dark: #202020;
  --pf-accent: #e57a5a;       /* decorative: borders, bars, rings */
  --pf-accent-ink: #a84a28;   /* accent used for small text */
  /* muted category colours (graph, radar, wall, chips) */
  --pf-acid: #4d7a58;         /* sage */
  --pf-coral: #c4573a;
  --pf-violet: #7b5ea7;       /* plum */
  --pf-cyan: #2f7482;         /* teal */
  --pf-amber: #9a6f12;        /* ochre */
  --pf-pink: #a8527e;
  --pf-display: "Lato", system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
  --pf-mono: "Lato", system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
  --pf-radius: 3px;
}

/* ---- page chrome (platform pages only) ---- */
body.pf { background: var(--pf-bg); color: var(--pf-text); font-size: 1.05rem; }
body.pf main { background: var(--pf-bg); }
body.pf .nav { margin-bottom: 1.4rem; }
body.pf h1, body.pf h2, body.pf h3, body.pf h4 { font-family: var(--serif); font-weight: 400; color: var(--pf-ink); letter-spacing: 0; }
body.pf h1 { font-size: clamp(2.1rem, 5vw, 3.6rem); line-height: 1.15; }
body.pf h2 { font-size: clamp(1.6rem, 3vw, 2.3rem); }
body.pf h3 { font-size: clamp(1.1rem, 1.8vw, 1.35rem); }
body.pf h4 { font-size: 1.02rem; margin: 0 0 .4rem; }
body.pf p { max-width: 70ch; }
body.pf a { color: var(--pf-ink); text-underline-offset: 3px; }
body.pf a:hover { color: var(--pf-accent-ink); }
body.pf strong { color: var(--pf-ink); font-weight: 700; }
body.pf code { background: var(--pf-bg2); padding: .05em .35em; border-radius: 3px; font-size: .92em; color: var(--pf-ink); }
body.pf mark { background: rgba(229,122,90,.22); color: var(--pf-ink); padding: 0 .12em; border-radius: 2px; }
body.pf [id] { scroll-margin-top: 4.5rem; }
body.pf [hidden] { display: none !important; }
body.pf ::selection { background: var(--pf-accent); color: #fff; }

.pf-sub { position: sticky; top: 0; z-index: 20; background: rgba(255,255,255,.96); backdrop-filter: blur(8px); border-block: 1px solid var(--pf-line); }
.pf-sub ul { display: flex; gap: .2rem; list-style: none; margin: 0 auto; padding: .5rem 1.25rem; max-width: 76rem; overflow-x: auto; scrollbar-width: thin; justify-content: center; }
.pf-sub a { display: block; white-space: nowrap; padding: .42rem .85rem; border-radius: 4px; font-size: .95rem; line-height: 1.2; color: var(--pf-text); text-decoration: none; }
body.pf .pf-sub a { color: var(--pf-text); }
.pf-sub a:hover, body.pf .pf-sub a:hover { color: var(--pf-ink); background: var(--pf-bg2); }
.pf-sub a[aria-current="page"], body.pf .pf-sub a[aria-current="page"] { color: #fff; background: var(--pf-ink); }

.pf-wrap { max-width: 76rem; margin-inline: auto; padding-inline: 1.25rem; }
.blog-narrow { max-width: 50rem; }
.pf-section { padding-block: clamp(2.4rem, 5vw, 4rem); background: var(--pf-bg); }
.pf-section.alt { background: var(--pf-bg2); }
.pf-eyebrow { font-size: .8rem; line-height: 1; letter-spacing: .16em; text-transform: uppercase; color: var(--pf-accent-ink); margin: 0 0 1rem; font-weight: 700; }
.pf-lead { font-size: clamp(1.08rem, 1.8vw, 1.25rem); color: var(--pf-text); max-width: 54rem; }
.pf-dim { color: var(--pf-dim); }
.meta { font-size: .88rem; color: var(--pf-dim); }

/* dark hero band, like the site's page headers */
.pf-hero { background: var(--pf-dark); color: #e4e4e4; text-align: center; padding-block: clamp(2.8rem, 6vw, 4.6rem); }
.pf-hero .pf-wrap > * { margin-inline: auto; }
body.pf .pf-hero h1 { color: #fff; margin-bottom: 1rem; }
body.pf .pf-hero h1 em { font-style: italic; color: #f0a48c; }
.pf-hero .pf-eyebrow { color: #f0a48c; }
.pf-hero .pf-lead { color: #d6d6d6; margin-inline: auto; }
.pf-hero .pf-lead em { color: #fff; }
.pf-hero .pf-actions { justify-content: center; }
body.pf .pf-hero a { color: #fff; }
.pf-hero .pf-note { border-color: #f0a48c; color: #e4e4e4; text-align: left; }
.pf-hero code { background: rgba(255,255,255,.12); color: #fff; }
.pf-hero-split { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, .75fr); gap: 2.5rem; align-items: center; text-align: left; }
.pf-hero-split .pf-actions { justify-content: flex-start; }
.pf-hero-split .pf-wrap > * { margin-inline: 0; }
.pf-hero-split > div > * { margin-inline: 0; }

/* ---- buttons, chips, notes ---- */
.pf-btn { display: inline-flex; align-items: center; gap: .5rem; font: 400 1.02rem/1.2 var(--sans); background: var(--pf-ink); color: #fff; border: 1px solid var(--pf-ink); border-radius: 0; padding: .85rem 1.4rem; cursor: pointer; text-decoration: none; transition: background .15s, color .15s, border-color .15s; }
body.pf a.pf-btn, body.pf button.pf-btn { color: #fff; }
.pf-btn:hover, body.pf a.pf-btn:hover { background: #000; color: #fff; }
.pf-btn.ghost, body.pf a.pf-btn.ghost, body.pf button.pf-btn.ghost { background: transparent; color: var(--pf-ink); border-color: var(--pf-ink); }
.pf-btn.ghost:hover, body.pf a.pf-btn.ghost:hover, body.pf button.pf-btn.ghost:hover { background: var(--pf-ink); color: #fff; }
.pf-btn.coral { background: transparent; color: var(--pf-coral); border-color: var(--pf-coral); }
body.pf button.pf-btn.coral, body.pf a.pf-btn.coral { color: var(--pf-coral); }
.pf-btn.coral:hover, body.pf button.pf-btn.coral:hover { background: var(--pf-coral); color: #fff; }
.pf-btn.sm { font-size: .92rem; padding: .55rem 1rem; }
.pf-btn[disabled] { opacity: .5; cursor: not-allowed; }
/* on dark bands the primary button is white (as on the home page) */
.pf-hero .pf-btn, body.pf .pf-hero a.pf-btn, .pf-btn.light, body.pf a.pf-btn.light, .pf-teaser-dark .pf-btn { background: #fff; color: var(--pf-text); border-color: #fff; }
.pf-hero .pf-btn:hover, body.pf .pf-hero a.pf-btn:hover, body.pf a.pf-btn.light:hover { background: var(--pf-bg2); color: var(--pf-ink); }
.pf-hero .pf-btn.ghost, body.pf .pf-hero a.pf-btn.ghost { background: transparent; color: #fff; border-color: rgba(255,255,255,.55); }
.pf-hero .pf-btn.ghost:hover, body.pf .pf-hero a.pf-btn.ghost:hover { background: #fff; color: var(--pf-ink); border-color: #fff; }
.pf-actions { display: flex; flex-wrap: wrap; gap: .6rem; align-items: center; margin-top: 1rem; }

.chip { display: inline-block; font-size: .8rem; line-height: 1; padding: .4rem .65rem; border-radius: 3px; background: var(--pf-bg2); color: var(--pf-text); border: 1px solid transparent; }
.pf-section.alt .chip, .pf-card .chip { background: var(--pf-bg2); }
.pf-section.alt .pf-card .chip { background: var(--pf-bg2); }
.chip.acid { color: #3d6347; background: rgba(77,122,88,.12); }
.chip.coral { color: var(--pf-coral); background: rgba(196,87,58,.1); }
.chip.violet { color: var(--pf-violet); background: rgba(123,94,167,.1); }
.chip.cyan { color: var(--pf-cyan); background: rgba(47,116,130,.1); }
.chip.amber { color: var(--pf-amber); background: rgba(154,111,18,.1); }
.chips { display: flex; flex-wrap: wrap; gap: .4rem; margin: .5rem 0; }
button.chip { cursor: pointer; background: #fff; border-color: var(--pf-line); color: var(--pf-text); font-family: var(--sans); }
button.chip:hover { border-color: var(--pf-ink); color: var(--pf-ink); }
button.chip[aria-pressed="true"] { background: var(--pf-ink); color: #fff; border-color: var(--pf-ink); }
.pf-note { font-size: .95rem; color: var(--pf-dim); border-left: 3px solid var(--pf-line); padding: .1rem 0 .1rem .9rem; margin: 1rem 0; }
.pf-note.warn { border-color: var(--pf-amber); color: #6a5320; }
.pf-note.err { border-color: var(--pf-coral); color: #8f3a22; }
.pf-note.ok { border-color: var(--pf-acid); color: #3d6347; }
.pf-note strong { color: inherit; }

/* ---- cards and grids ---- */
.pf-grid { display: grid; gap: 1.1rem; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.pf-grid.g2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.pf-grid.g4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.pf-card { background: #fff; border: 1px solid var(--pf-line); border-radius: var(--pf-radius); padding: 1.4rem; min-width: 0; position: relative; display: flex; flex-direction: column; }
.pf-card > p { color: var(--pf-text); }
.pf-card h3 { margin-bottom: .6rem; }
.pf-card .pf-actions { margin-top: auto; padding-top: 1rem; }
a.pf-card { text-decoration: none; color: inherit; transition: border-color .15s, box-shadow .15s; }
body.pf a.pf-card:hover, a.pf-card:hover { border-color: var(--pf-ink); box-shadow: 0 8px 24px -14px rgba(0,0,0,.35); color: inherit; }
.pf-card .num { font-size: .8rem; line-height: 1; color: var(--pf-dim); margin-bottom: 1rem; display: flex; justify-content: space-between; align-items: center; gap: .5rem; font-weight: 700; letter-spacing: .06em; }
.pf-card.hot { border-top: 3px solid var(--pf-accent); }
.pf-card.violet { border-top: 3px solid var(--pf-ink); }
.pf-card.wide { grid-column: span 2; }
.stat { background: #fff; border: 1px solid var(--pf-line); border-radius: var(--pf-radius); padding: 1rem 1.1rem; }
.stat.hot { border-top: 3px solid var(--pf-accent); }
.stat b { display: block; font: 400 clamp(1.7rem, 3vw, 2.3rem)/1.1 var(--serif); color: var(--pf-ink); }
.stat span { font-size: .78rem; line-height: 1.3; color: var(--pf-dim); text-transform: uppercase; letter-spacing: .08em; font-weight: 700; }
.stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: .8rem; margin: 1.2rem 0; }

/* ---- forms ---- */
.pf-form label, .pf-label { display: block; font-size: .88rem; line-height: 1.3; color: var(--pf-ink); margin: 0 0 .4rem; font-weight: 700; }
.pf-form .req { color: var(--pf-coral); }
.pf-field { margin-bottom: 1.1rem; }
.pf-field .hint { font-size: .88rem; color: var(--pf-dim); margin: .35rem 0 0; }
.pf-form input[type=text], .pf-form input[type=email], .pf-form input[type=url], .pf-form input[type=date], .pf-form input[type=datetime-local], .pf-form input[type=password], .pf-form select, .pf-form textarea,
.pf-input { width: 100%; font: 400 1rem/1.5 var(--sans); color: var(--pf-ink); background: #fff; border: 1px solid var(--pf-line); border-radius: 2px; padding: .75rem .9rem; }
.pf-form textarea { min-height: 7rem; resize: vertical; }
.pf-form textarea.tall { min-height: 12rem; }
.pf-form select { height: 3rem; }
.pf-form input:focus, .pf-form textarea:focus, .pf-form select:focus, .pf-input:focus { outline: none; border-color: var(--pf-ink); box-shadow: 0 0 0 3px rgba(229,122,90,.3); }
.pf-form ::placeholder { color: #9a9a9a; }
.pf-form .row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
.checks { display: flex; flex-wrap: wrap; gap: .5rem; }
.checks label { display: inline-flex; align-items: center; gap: .45rem; margin: 0; padding: .5rem .8rem; border: 1px solid var(--pf-line); border-radius: 3px; cursor: pointer; font-size: .88rem; line-height: 1; color: var(--pf-text); font-weight: 400; background: #fff; }
.checks label:has(input:checked) { border-color: var(--pf-ink); color: var(--pf-ink); background: var(--pf-bg2); }
.checks input { accent-color: var(--pf-ink); }
.consent { display: flex; gap: .7rem; align-items: flex-start; padding: .9rem 1rem; background: var(--pf-bg2); border: 0; border-radius: var(--pf-radius); font-size: .95rem; margin: 1rem 0; font-weight: 400 !important; color: var(--pf-text) !important; }
.consent input { margin-top: .3rem; accent-color: var(--pf-ink); width: 1.1rem; height: 1.1rem; flex: none; }
.counter { font-size: .78rem; line-height: 1; color: var(--pf-dim); text-align: right; margin-top: .3rem; }
.tag-box { display: flex; flex-wrap: wrap; gap: .4rem; background: #fff; border: 1px solid var(--pf-line); border-radius: 2px; padding: .5rem; cursor: text; }
.tag-box:focus-within { border-color: var(--pf-ink); box-shadow: 0 0 0 3px rgba(229,122,90,.3); }
.tag { display: inline-flex; align-items: center; gap: .3rem; font-size: .88rem; line-height: 1; background: var(--pf-bg2); border-radius: 3px; padding: .4rem .35rem .4rem .7rem; color: var(--pf-ink); }
.tag button { border: 0; background: transparent; color: var(--pf-dim); cursor: pointer; font-size: 1rem; line-height: 1; padding: 0 .3rem; border-radius: 50%; }
.tag button:hover { color: var(--pf-coral); }
.pf-form input.tag-text { flex: 1 1 10rem; min-width: 8rem; border: 0 !important; background: transparent !important; box-shadow: none !important; padding: .4rem .4rem !important; color: var(--pf-ink); font: 400 1rem var(--sans); width: auto; }
.tag-text:focus { outline: none; }

/* ---- profile steps and genome ---- */
.steps { display: flex; gap: .4rem; flex-wrap: wrap; margin-bottom: 1.4rem; border-bottom: 1px solid var(--pf-line); }
.steps button { font: 400 1rem/1 var(--sans); border: 0; border-bottom: 3px solid transparent; background: transparent; color: var(--pf-text); padding: .8rem 1rem; cursor: pointer; margin-bottom: -1px; }
.steps button:hover { color: var(--pf-ink); }
.steps button[aria-selected="true"] { color: var(--pf-ink); border-bottom-color: var(--pf-accent); font-weight: 700; }
.panel[hidden] { display: none; }
.ring { width: 5.2rem; height: 5.2rem; flex: none; }
.ring circle { fill: none; stroke-width: 8; }
.ring .bg { stroke: var(--pf-bg2); }
.ring .fg { stroke: var(--pf-accent); stroke-linecap: round; transition: stroke-dashoffset .5s; transform: rotate(-90deg); transform-origin: 50% 50%; }
.ring text { fill: var(--pf-ink); font: 700 20px var(--sans); text-anchor: middle; dominant-baseline: central; }
.story { border-left: 3px solid var(--pf-accent); padding-left: 1.1rem; margin-bottom: 1.4rem; }
.story .q { font: 400 1.15rem/1.4 var(--serif); color: var(--pf-ink); margin: 0 0 .15rem; }
.story .qn { font-size: .75rem; line-height: 1; color: var(--pf-accent-ink); letter-spacing: .14em; text-transform: uppercase; margin: 0 0 .5rem; font-weight: 700; }
.versions { list-style: none; margin: 0; padding: 0; display: grid; gap: .5rem; }
.versions li { display: flex; flex-wrap: wrap; gap: .5rem; align-items: center; justify-content: space-between; background: var(--pf-bg2); border-radius: var(--pf-radius); padding: .6rem .8rem; font-size: .92rem; }
.diff ins { background: rgba(77,122,88,.2); color: #2f4f38; text-decoration: none; border-radius: 2px; }
.diff del { background: rgba(196,87,58,.16); color: #8f3a22; border-radius: 2px; }
.diffbox { background: var(--pf-bg2); border-radius: var(--pf-radius); padding: .9rem 1rem; white-space: pre-wrap; margin-top: .6rem; font-size: .95rem; }
.lineage { width: 100%; height: auto; display: block; background: #fafafa; border: 1px solid var(--pf-line); border-radius: var(--pf-radius); }
.lineage text { font: 400 12px var(--sans); fill: var(--pf-text); }
.lineage .ctr { fill: var(--pf-ink); }
.lineage .in { fill: var(--pf-violet); }
.lineage .out { fill: var(--pf-cyan); }
.lineage .ver { fill: var(--pf-amber); }
.lineage line, .lineage path { stroke: #bdbdbd; fill: none; stroke-width: 1.5; }
.lineage .big { font: 700 15px var(--sans); fill: var(--pf-ink); }
.idea-tabs { display: flex; flex-wrap: wrap; gap: .4rem; margin-bottom: 1rem; }

/* ---- results lists ---- */
.res { list-style: none; margin: 0; padding: 0; display: grid; gap: .8rem; }
.res > li { background: #fff; border: 1px solid var(--pf-line); border-radius: var(--pf-radius); padding: 1rem 1.1rem; position: relative; scroll-margin-top: 5rem; }
.res > li.flash { animation: flash 1.4s ease-out; }
@keyframes flash { 0% { box-shadow: 0 0 0 3px var(--pf-accent); } 100% { box-shadow: 0 0 0 0 transparent; } }
.res h4 { font-size: 1.05rem; line-height: 1.4; margin-bottom: .3rem; }
.res h4 a { color: var(--pf-ink); text-decoration: none; }
.res h4 a:hover { color: var(--pf-accent-ink); text-decoration: underline; }
.res .meta { font-size: .84rem; line-height: 1.4; color: var(--pf-dim); }
.res .why { font-size: .95rem; color: var(--pf-text); margin: .55rem 0 0; }
.res .why b { font-size: .72rem; line-height: 1; color: var(--pf-accent-ink); text-transform: uppercase; letter-spacing: .12em; margin-right: .4rem; font-weight: 700; }
.res .abs { font-size: .93rem; color: var(--pf-dim); margin: .5rem 0 0; }
.res .row-actions { display: flex; gap: .4rem; margin-top: .7rem; flex-wrap: wrap; }
.res .match { position: absolute; right: .9rem; top: .9rem; text-align: right; font: 400 1.3rem/1 var(--serif); color: var(--pf-ink); }
.res .match small { display: block; font: 700 .62rem/1.2 var(--sans); color: var(--pf-dim); text-transform: uppercase; letter-spacing: .1em; margin-top: .2rem; }
.res.has-match > li { padding-right: 5.5rem; }
.mini { font: 400 .85rem/1 var(--sans); border: 1px solid var(--pf-line); background: #fff; color: var(--pf-text); padding: .5rem .75rem; border-radius: 3px; cursor: pointer; text-decoration: none; display: inline-block; }
.mini:hover { border-color: var(--pf-ink); color: var(--pf-ink); }
.mini[aria-pressed="true"] { background: var(--pf-ink); border-color: var(--pf-ink); color: #fff; }
body.pf a.mini { color: var(--pf-text); }
body.pf a.mini:hover { color: var(--pf-ink); }
.bar-meter { height: 4px; background: var(--pf-bg2); border-radius: 2px; overflow: hidden; margin-top: .5rem; }
.bar-meter i { display: block; height: 100%; background: var(--pf-accent); }
.res-head { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; flex-wrap: wrap; margin: 2rem 0 .8rem; }
.res-head h3 { margin: 0; }
.cuebox blockquote { margin: 0 0 .7rem; padding: .6rem .9rem; background: var(--pf-bg2); border-left: 3px solid var(--pf-accent); border-radius: 0 3px 3px 0; font-size: .95rem; }
.cuebox cite { display: block; font-size: .78rem; line-height: 1.3; color: var(--pf-dim); margin-top: .3rem; font-style: normal; }
.spark { width: 100%; height: 56px; display: block; }
.spark .bar { fill: #bdbdbd; }
.spark rect:last-child { fill: var(--pf-accent); }
.steps-run { list-style: none; margin: 1rem 0; padding: 0; display: grid; gap: .35rem; font-size: .92rem; line-height: 1.3; color: var(--pf-dim); }
.steps-run li::before { content: "\25CB"; margin-right: .6rem; color: var(--pf-dim); }
.steps-run li.run { color: var(--pf-ink); }
.steps-run li.run::before { content: "\25D4"; color: var(--pf-amber); }
.steps-run li.done::before { content: "\25CF"; color: var(--pf-acid); }
.steps-run li.fail::before { content: "\2715"; color: var(--pf-coral); }
.next-list { counter-reset: n; list-style: none; padding: 0; margin: 0; display: grid; gap: .6rem; }
.next-list li { counter-increment: n; display: grid; grid-template-columns: 2.2rem 1fr; gap: .7rem; align-items: start; }
.next-list li::before { content: counter(n); width: 2rem; height: 2rem; border-radius: 50%; background: var(--pf-ink); color: #fff; display: grid; place-items: center; font: 700 .9rem var(--sans); }

/* ---- problem graph svg ---- */
.graphbox { background: #fafafa; border: 1px solid var(--pf-line); border-radius: var(--pf-radius); padding: .5rem; }
.pgraph { width: 100%; height: auto; display: block; }
.pgraph .edge { stroke: #cfcfcf; stroke-width: 1.2; }
.pgraph .node { cursor: pointer; }
.pgraph .node circle { stroke: #fff; stroke-width: 2.5; }
.pgraph .node:hover circle, .pgraph .node:focus circle { stroke: var(--pf-ink); }
.pgraph .node text { display: none; font: 400 11px var(--sans); fill: var(--pf-ink); paint-order: stroke; stroke: #fafafa; stroke-width: 3px; }
.pgraph .node.lab text, .pgraph .node:hover text, .pgraph .node:focus text { display: block; }
.pgraph .node:hover, .pgraph .node:focus { outline: none; }
.pgraph .core text { font: 700 13px var(--sans); fill: #fff; text-anchor: middle; stroke: none; letter-spacing: .06em; }
.legend { display: flex; flex-wrap: wrap; gap: .8rem; font-size: .82rem; line-height: 1; color: var(--pf-dim); margin: .7rem .5rem .3rem; }
.legend i { display: inline-block; width: .7rem; height: .7rem; border-radius: 50%; margin-right: .35rem; vertical-align: -1px; }

/* ---- radar ---- */
.radar-stage { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: 1.5rem; align-items: start; }
.radar-box { position: relative; background: radial-gradient(circle at 50% 50%, #ffffff 0%, #f7f7f7 62%, #efefef 100%); border: 1px solid var(--pf-line); border-radius: 50%; aspect-ratio: 1; width: 100%; max-width: 40rem; margin-inline: auto; box-shadow: 0 18px 40px -28px rgba(0,0,0,.4); }
.radar { width: 100%; height: 100%; display: block; overflow: visible; }
.radar .ring-l { fill: none; stroke: #d9d9d9; stroke-width: 1; }
.radar .spoke { stroke: #e6e6e6; stroke-width: 1; }
.radar .sweep { transform-origin: 0 0; animation: spin 7s linear infinite; }
.radar .rlabel { font: 400 9px var(--sans); fill: #9a9a9a; }
.radar .lane-l { font: 700 10px var(--sans); letter-spacing: .1em; text-transform: uppercase; }
.radar .you circle { fill: var(--pf-ink); }
.radar .you text { font: 700 13px var(--sans); fill: #fff; text-anchor: middle; dominant-baseline: central; }
.radar .pulse { fill: none; stroke: var(--pf-accent); stroke-width: 1.5; opacity: 0; transform-box: fill-box; transform-origin: center; }
.radar .pulse.go { animation: ping 1.4s ease-out; }
.blip { cursor: pointer; }
.blip circle.dot { stroke: #fff; stroke-width: 1.5; }
.blip circle.halo { opacity: 0; transform-box: fill-box; transform-origin: center; animation: halo 7s linear infinite; animation-delay: var(--d, 0s); }
.blip.live { animation: blipin .6s ease-out backwards; animation-delay: var(--in, 0s); }
.blip.sel circle.dot, .blip:hover circle.dot, .blip:focus circle.dot { stroke: var(--pf-ink); stroke-width: 2.5; }
.blip:focus { outline: none; }
.blip.off { display: none; }
.blip text { font: 700 12px var(--sans); fill: #fff; text-anchor: middle; dominant-baseline: central; pointer-events: none; }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes ping { 0% { opacity: .9; transform: scale(.1); } 100% { opacity: 0; transform: scale(14); } }
@keyframes halo { 0% { opacity: .55; transform: scale(1); } 14% { opacity: 0; transform: scale(3.2); } 100% { opacity: 0; transform: scale(3.2); } }
@keyframes blipin { from { opacity: 0; transform: scale(.2); } to { opacity: 1; transform: scale(1); } }
.radar-tip { position: absolute; pointer-events: none; background: var(--pf-ink); color: #fff; font: 400 .8rem/1.3 var(--sans); padding: .4rem .65rem; border-radius: 3px; max-width: 15rem; transform: translate(-50%, -125%); opacity: 0; transition: opacity .12s; z-index: 5; }
.radar-tip.on { opacity: 1; }
.lane-filter { display: flex; flex-wrap: wrap; gap: .4rem; margin: 0 0 1rem; }
.lane-filter .chip { cursor: pointer; }
.lane-dot { display: inline-block; width: .6rem; height: .6rem; border-radius: 50%; margin-right: .4rem; background: var(--c, var(--pf-accent)); }
.lanes-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .9rem; }
.lane-card { background: #fff; border: 1px solid var(--pf-line); border-radius: var(--pf-radius); padding: 1.1rem; display: flex; flex-direction: column; gap: .5rem; }
.lane-card h4 { display: flex; align-items: center; gap: .5rem; margin: 0; }
.lane-card p { font-size: .92rem; color: var(--pf-dim); margin: 0; }
.lane-card .links { display: flex; flex-wrap: wrap; gap: .4rem; margin-top: auto; padding-top: .6rem; }
.tracker { width: 100%; border-collapse: collapse; font-size: .93rem; }
.tracker th { text-align: left; font-size: .74rem; line-height: 1; color: var(--pf-dim); text-transform: uppercase; letter-spacing: .1em; padding: .6rem .5rem; border-bottom: 1px solid var(--pf-ink); font-weight: 700; }
.tracker td { padding: .65rem .5rem; border-bottom: 1px solid var(--pf-line); vertical-align: top; }
.tracker select { background: #fff; color: var(--pf-ink); border: 1px solid var(--pf-line); border-radius: 3px; padding: .3rem; font: inherit; }
.table-wrap { overflow-x: auto; }

/* ---- collision, contributions ---- */
.filters { display: flex; flex-wrap: wrap; gap: .4rem; margin-bottom: 1rem; align-items: center; }
.wall { display: grid; gap: 1rem; grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: start; }
.wall-card { background: #fff; border: 1px solid var(--pf-line); border-left: 4px solid var(--c, var(--pf-accent)); border-radius: var(--pf-radius); padding: 1.2rem; min-width: 0; }
.wall-card h3 { font-size: 1.2rem; margin: .4rem 0 .5rem; }
.wall-card .kind { font-size: .72rem; line-height: 1; letter-spacing: .12em; text-transform: uppercase; color: var(--c, var(--pf-accent-ink)); font-weight: 700; }
.wall-card .tried { font-size: .93rem; color: var(--pf-dim); }
.wall-card[data-type="question"] { --c: var(--pf-acid); }
.wall-card[data-type="negative"] { --c: var(--pf-coral); }
.wall-card[data-type="limitation"] { --c: var(--pf-amber); }
.wall-card[data-type="challenge"] { --c: var(--pf-violet); }
.contribs { list-style: none; margin: .8rem 0 0; padding: 0; display: grid; gap: .5rem; }
.contribs li { background: var(--pf-bg2); border-radius: var(--pf-radius); padding: .6rem .8rem; font-size: .93rem; }
.contribs .k { font-size: .7rem; line-height: 1; color: var(--pf-cyan); text-transform: uppercase; letter-spacing: .1em; margin-right: .4rem; font-weight: 700; }
details.pf-d { margin-top: .8rem; border-top: 1px solid var(--pf-line); padding-top: .7rem; }
details.pf-d summary { cursor: pointer; font-size: .92rem; line-height: 1.2; color: var(--pf-ink); font-weight: 700; }
.sprint-roles { list-style: none; padding: 0; margin: .5rem 0 0; display: flex; flex-wrap: wrap; gap: .4rem; }
.sprint-time { font: 400 clamp(1.8rem, 4vw, 2.6rem)/1 var(--serif); color: var(--pf-ink); }
.sprint-time small { font: 400 .8rem var(--sans); color: var(--pf-dim); }
.dir { display: grid; gap: 1rem; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.dir-card { background: #fff; border: 1px solid var(--pf-line); border-radius: var(--pf-radius); padding: 1.1rem; min-width: 0; }
.dir-card h3 { font-size: 1.1rem; margin-bottom: .2rem; }
.dir-card .role { font-size: .84rem; line-height: 1.4; color: var(--pf-dim); margin: 0 0 .5rem; }
.dir-card p { font-size: .93rem; }
.dir-card .tags { font-size: .84rem; line-height: 1.5; color: var(--pf-cyan); }
.collide { display: grid; gap: 1rem; }
.collide .pair { background: #fff; border: 1px solid var(--pf-line); border-radius: var(--pf-radius); padding: 1.2rem; }
.pair .vs { display: flex; align-items: center; gap: .7rem; flex-wrap: wrap; font: 400 1.15rem/1.3 var(--serif); color: var(--pf-ink); }
.pair .vs .x { color: var(--pf-accent); font-size: 1.4rem; }
.pair blockquote { margin: .8rem 0; padding: .8rem 1rem; background: var(--pf-bg2); border-left: 3px solid var(--pf-accent); border-radius: 0 3px 3px 0; font-size: 1.02rem; color: var(--pf-ink); }
.sealed { font: 400 .85rem/1.5 ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace; word-break: break-all; background: var(--pf-bg2); border: 1px dashed #bdbdbd; border-radius: var(--pf-radius); padding: .8rem; max-height: 9rem; overflow: auto; color: var(--pf-ink); }
.ledger { display: grid; gap: .8rem; }
.entry { background: #fff; border: 1px solid var(--pf-line); border-radius: var(--pf-radius); padding: 1rem 1.1rem; }
.entry.verified { border-left: 4px solid var(--pf-acid); }
.entry .hash { font: 400 .75rem/1.4 ui-monospace, Menlo, Consolas, monospace; color: var(--pf-dim); word-break: break-all; }
.status { font-size: .7rem; line-height: 1; letter-spacing: .1em; text-transform: uppercase; padding: .35rem .55rem; border-radius: 3px; border: 1px solid var(--pf-line); font-weight: 700; white-space: nowrap; }
.status.v { color: #3d6347; border-color: rgba(77,122,88,.5); background: rgba(77,122,88,.08); }
.status.p { color: var(--pf-amber); border-color: rgba(154,111,18,.45); background: rgba(154,111,18,.07); }
.status.r { color: var(--pf-coral); border-color: rgba(196,87,58,.45); background: rgba(196,87,58,.07); }
.legal { background: #fbf6e9; border: 1px solid #e6d3a3; border-radius: var(--pf-radius); padding: 1rem 1.2rem; color: #6a5320; }
.legal h4 { color: #6a5320; font-family: var(--sans); font-weight: 700; }
.legal ul { margin: .4rem 0 0; padding-left: 1.2rem; }
.status-table { width: 100%; border-collapse: collapse; font-size: .95rem; }
.status-table th, .status-table td { text-align: left; padding: .7rem .7rem; border-bottom: 1px solid var(--pf-line); vertical-align: top; }
.status-table th { font-size: .74rem; line-height: 1; letter-spacing: .1em; text-transform: uppercase; color: var(--pf-dim); border-bottom: 1px solid var(--pf-ink); font-weight: 700; }
.flow { display: flex; flex-wrap: wrap; gap: .5rem; align-items: center; font-size: .98rem; line-height: 1; }
.flow span.arrow { color: var(--pf-accent); }
.flow .node-s { background: #fff; border: 1px solid var(--pf-line); border-radius: 3px; padding: .65rem 1rem; color: var(--pf-ink); }

/* ---- community blog ---- */
.blog-grid { display: grid; gap: 1rem; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.blog-card { background: #fff; border: 1px solid var(--pf-line); border-radius: var(--pf-radius); padding: 1.3rem; }
.blog-card h3 { margin: .3rem 0 .5rem; }
.blog-card h3 a { text-decoration: none; }
.blog-card h3 a:hover { text-decoration: underline; }
.blog-card p { font-size: .98rem; }
.blog-card .meta { margin: 0; }
.blog-post h2 { margin: .6rem 0 .8rem; }
.blog-body { font-size: 1.1rem; line-height: 1.8; margin-top: 1.2rem; }
.blog-body p { max-width: none; }
.blog-body h3 { margin: 1.8rem 0 .6rem; }
.subs { list-style: none; margin: 0; padding: 0; display: grid; gap: .6rem; }
.subs li { display: flex; flex-wrap: wrap; gap: .8rem; align-items: center; justify-content: space-between; background: #fff; border: 1px solid var(--pf-line); border-radius: var(--pf-radius); padding: .8rem 1rem; }
.subs li > div { flex: 1 1 14rem; }
.subs .meta { margin: .2rem 0 0; }

/* ---- admin ---- */
.adm-login { max-width: 32rem; margin-inline: auto; }
.adm-top { display: flex; justify-content: space-between; align-items: center; gap: 1rem; flex-wrap: wrap; }
.adm-bar { display: flex; gap: .6rem; align-items: center; flex-wrap: wrap; margin-bottom: .6rem; }
.adm-bar .pf-input { flex: 1 1 18rem; }
.adm-chart { width: 100%; height: auto; max-height: 150px; }
.adm-chart text.axis { font: 400 10px var(--sans); fill: var(--pf-dim); }
.adm-table td, .adm-table th { vertical-align: middle; }
.adm-row { cursor: pointer; }
.adm-row:hover, .adm-row:focus { background: var(--pf-bg2); outline: none; }
.adm-row[aria-expanded="true"] { background: var(--pf-bg2); }
.adm-row .chips { margin: 0; }
.adm-detail td { background: #fafafa; padding: 1rem 1.2rem; }
.adm-box { max-width: 52rem; }
.adm-line { margin: .25rem 0; font-size: .95rem; max-width: none; }
.adm-blog { background: #fff; border: 1px solid var(--pf-line); border-radius: var(--pf-radius); padding: 1.1rem 1.2rem; margin-bottom: .9rem; }
.adm-blog-head { display: flex; justify-content: space-between; gap: 1rem; align-items: flex-start; }
.adm-blog-head h4 { font-size: 1.1rem; margin: 0; }
.adm-blog .meta { margin: .3rem 0 .4rem; }
.adm-body { max-height: 26rem; overflow: auto; padding: .4rem 0; font-size: .98rem; }
.adm-edit { margin-top: 1rem; padding-top: 1rem; border-top: 1px solid var(--pf-line); }

/* ---- toasts ---- */
#rg-toasts { position: fixed; right: 1rem; bottom: 1rem; display: grid; gap: .5rem; z-index: 200; max-width: min(24rem, calc(100vw - 2rem)); }
.rg-toast { background: var(--pf-ink); color: #fff; padding: .75rem 1rem; border-radius: 3px; font: 400 .95rem/1.35 var(--sans); box-shadow: 0 10px 30px -8px rgba(0,0,0,.4); transition: opacity .4s, transform .4s; }
.rg-toast.err { background: var(--pf-coral); }
.rg-toast.out { opacity: 0; transform: translateY(8px); }

/* ---- animated hero stages (see assets/js/pf-fx.js) ---- */
.fx-wrap { width: min(100%, 21rem); margin-inline: auto; display: flex; flex-direction: column; align-items: center; gap: .8rem; }
.fx { position: relative; width: 100%; aspect-ratio: 1; border-radius: 50%; border: 1px solid rgba(255,255,255,.28); background: radial-gradient(circle, rgba(255,255,255,.08), rgba(255,255,255,0) 70%); overflow: hidden; cursor: pointer; touch-action: manipulation; -webkit-tap-highlight-color: transparent; user-select: none; transition: border-color .2s, box-shadow .2s; }
.fx:hover { border-color: rgba(240,164,140,.8); box-shadow: 0 0 40px -12px rgba(240,164,140,.55); }
body.pf .fx:focus-visible { outline: 3px solid #f0a48c; outline-offset: 4px; }
.fx svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.fx-ring { fill: none; stroke: rgba(255,255,255,.2); stroke-width: 1; }
.fx-spoke { stroke: rgba(255,255,255,.12); stroke-width: 1; }
.fx-edge { stroke: rgba(255,255,255,.28); stroke-width: 1; stroke-dasharray: 3 3; animation: fxdash 2.4s linear infinite; }
.fx-rung { stroke: rgba(255,255,255,.4); stroke-width: 1.4; }
.fx-t { font: 700 7px var(--sans); fill: #d6d6d6; letter-spacing: .08em; text-transform: uppercase; }
.fx-t:not(.left) { text-anchor: middle; }
.fx-t.left { text-anchor: start; }
.fx-sweep, .fx-orbit { transform-origin: 0 0; animation: fxspin 6s linear infinite; }
.fx-orbit { animation-duration: 30s; }
.fx-node { transform-box: fill-box; transform-origin: center; animation: fxspin 30s linear infinite; cursor: pointer; }
.fx-wave { fill: none; stroke: #f0a48c; stroke-width: 1.5; transform-origin: 0 0; animation: fxwave 3.4s ease-out infinite; }
.fx-wave.w2 { animation-delay: 1.7s; }
.fx-blip, .fx-halo { transform-box: fill-box; transform-origin: center; }
.fx-blip { animation: fxpop .5s ease-out backwards; }
.fx-halo { animation: fxhalo 1.6s ease-out 1; opacity: 0; }
.fx-block rect { fill: rgba(255,255,255,.08); stroke: rgba(255,255,255,.4); stroke-width: 1.3; transition: fill .3s, stroke .3s; }
.fx-block text { fill: #222; opacity: 0; transition: opacity .3s; font-weight: 700; }
.fx-block.ok rect { fill: #f0a48c; stroke: #f0a48c; }
.fx-block.ok text { opacity: 1; }
.fx-block.ok { animation: fxbump .5s ease-out; transform-box: fill-box; transform-origin: center; }
.fx-seal { transform-origin: 0 0; animation: fxbreathe 3s ease-in-out infinite; }
.fx-orb { position: absolute; left: 50%; top: 50%; width: 28%; aspect-ratio: 1; border-radius: 50%; display: grid; place-items: center; font-size: clamp(1.4rem, 7vw, 2.3rem); line-height: 1; transform: translate(-50%, -50%); }
.fx-orb.a { background: rgba(240,164,140,.22); border: 1.5px solid #f0a48c; }
.fx-orb.b { background: rgba(194,176,227,.22); border: 1.5px solid #c2b0e3; }
.fx-pair { position: absolute; bottom: 14%; left: 0; right: 0; text-align: center; font: 700 .8rem/1 var(--sans); color: #fff; letter-spacing: .05em; }
.fx-flash { position: absolute; left: 50%; top: 50%; width: 30%; aspect-ratio: 1; border-radius: 50%; background: radial-gradient(circle, #fff, rgba(240,164,140,.6) 60%, transparent 70%); opacity: 0; pointer-events: none; }
.fx-shard { position: absolute; width: 7px; height: 7px; border-radius: 50%; pointer-events: none; }
.fx-p { position: absolute; pointer-events: none; line-height: 1; z-index: 3; }
.fx-p.big { font-size: 2.2rem; }
.fx-float { position: absolute; bottom: -14%; font-size: 1.6rem; line-height: 1; opacity: 0; animation: fxfloat 10s linear infinite; pointer-events: none; }
.fx-type { position: absolute; left: 9%; right: 9%; top: 50%; transform: translateY(-50%); background: rgba(255,255,255,.96); color: var(--pf-ink); border-radius: 8px; padding: .85rem .95rem; font: 400 .92rem/1.45 var(--sans); min-height: 4.6rem; text-align: left; box-shadow: 0 12px 30px -12px rgba(0,0,0,.6); z-index: 2; }
.fx-line { display: inline; }
.fx-caret { display: inline; color: var(--pf-accent); animation: fxblink 1s steps(1) infinite; }
.fx-cap { display: flex; justify-content: space-between; align-items: center; gap: 1rem; width: 100%; font-size: .85rem; color: #c4c4c4; }
.fx-count { color: #f0a48c; font-weight: 700; background: rgba(255,255,255,.08); padding: .3rem .7rem; border-radius: 999px; white-space: nowrap; }
.fx-count.bump { animation: fxbump .35s ease-out; }
.fx.paused * { animation-play-state: paused !important; }
.pf-card .ico { font-size: 1.5rem; line-height: 1; display: inline-block; margin-right: auto; margin-left: .7rem; }
a.pf-card:hover .ico { animation: fxwiggle .6s ease-in-out; }
@keyframes fxspin { to { transform: rotate(360deg); } }
@keyframes fxdash { to { stroke-dashoffset: -12; } }
@keyframes fxwave { 0% { transform: scale(1); opacity: .85; } 100% { transform: scale(8.5); opacity: 0; } }
@keyframes fxpop { from { transform: scale(0); } to { transform: scale(1); } }
@keyframes fxhalo { 0% { transform: scale(1); opacity: .9; } 100% { transform: scale(3.4); opacity: 0; } }
@keyframes fxbreathe { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.08); } }
@keyframes fxbump { 0% { transform: scale(1); } 40% { transform: scale(1.3); } 100% { transform: scale(1); } }
@keyframes fxblink { 50% { opacity: 0; } }
@keyframes fxfloat { 0% { bottom: -14%; transform: rotate(-10deg); opacity: 0; } 12% { opacity: .95; } 50% { transform: rotate(10deg); } 88% { opacity: .95; } 100% { bottom: 102%; transform: rotate(-6deg); opacity: 0; } }
@keyframes fxwiggle { 0%, 100% { transform: rotate(0) scale(1); } 25% { transform: rotate(-14deg) scale(1.2); } 75% { transform: rotate(12deg) scale(1.2); } }

/* ---- home page teaser (light grey band between the existing sections) ---- */
.pf-teaser { background: var(--pf-bg2); color: var(--pf-text); padding-block: clamp(3rem, 6vw, 5rem); }
.pf-teaser h2 { color: var(--pf-ink); }
.pf-teaser p { color: var(--pf-text); }
.pf-teaser .pf-eyebrow { color: var(--pf-accent-ink); }
.pf-teaser .pf-grid { margin: 1.6rem 0; }
.pf-teaser .pf-card h3 { color: var(--pf-ink); font-size: 1.2rem; }
.pf-teaser .pf-card p { color: var(--pf-text); margin: 0; font-size: 1rem; }
.pf-teaser a { color: var(--pf-ink); }
.pf-teaser a.pf-btn { color: #fff; }
.pf-teaser a.pf-btn.ghost { color: var(--pf-ink); }
.pf-teaser a.pf-btn.ghost:hover { color: #fff; }
.pf-teaser a.pf-card:hover { color: inherit; }

/* ---- responsive ---- */
@media (max-width: 62rem) {
  .pf-grid, .pf-grid.g4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .lanes-grid, .dir { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .radar-stage { grid-template-columns: minmax(0, 1fr); }
  .pf-sub ul { justify-content: flex-start; }
}
@media (max-width: 52rem) {
  .pf-hero-split, .wall, .pf-grid.g2, .blog-grid { grid-template-columns: minmax(0, 1fr); }
  .pf-hero-split { text-align: center; }
  .pf-hero-split .pf-actions { justify-content: center; }
  .pf-card.wide { grid-column: auto; }
  .pf-hero .fx-wrap { width: min(72%, 17rem); }
}
@media (max-width: 38rem) {
  .pf-grid, .pf-grid.g4, .lanes-grid, .dir, .pf-form .row { grid-template-columns: minmax(0, 1fr); }
  .res.has-match > li { padding-right: 1.1rem; padding-top: 3rem; }
  .res .match { left: 1.1rem; right: auto; text-align: left; top: .8rem; display: flex; gap: .5rem; align-items: baseline; }
  .res .match small { margin: 0; }
  body.pf .nav a { padding: .45rem .8rem; font-size: 1rem; }
  .adm-blog-head { flex-direction: column; }
}
@media (prefers-reduced-motion: reduce) {
  .radar .sweep, .blip circle.halo, .blip.live, .res > li.flash, .fx *, .fx-count { animation: none !important; }
  .blip circle.halo { opacity: 0; }
  .pf-btn, a.pf-card { transition: none; }
}
