/* PSY 101 Lessons 1 and 2: figure styles. Self-contained; uses the site's CSS variables from /style.css. */
.page-article .article-col { min-width: 0; }
.page-article .sidenotes.long { position: static; }
.prose ul.plain { margin: 0.75rem 0 0 1.1rem; color: var(--muted); }
.prose ul.plain li { margin: 0.35rem 0; }
.viz { margin: 2rem 0; border: 1px solid var(--rule); background: #0f0e0d; padding: 0.9rem; }
.viz figcaption { padding: 0 0.15rem 0.1rem; }
.viz .article-figure img, .viz img { width: auto; }
.viz-btn { font-family: var(--font-chrome); font-size: var(--size-small); letter-spacing: 0.04em; background: transparent; color: var(--paper); border: 1px solid var(--rule); padding: 0.5rem 0.85rem; min-height: 44px; min-width: 44px; cursor: pointer; border-radius: 2px; }
.viz-btn:hover { border-color: var(--dust); color: var(--dust); }
.viz-btn[aria-pressed="true"] { border-color: var(--paper); background: rgba(232,228,220,0.08); }
.viz-btn:focus-visible, .viz button:focus-visible, .viz input:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
.viz-btn[disabled] { opacity: 0.4; cursor: default; }
.viz-row { display: flex; flex-wrap: wrap; gap: 0.5rem; align-items: center; margin: 0.7rem 0 0.2rem; }
.viz-kicker { font-family: var(--font-chrome); font-size: var(--size-label); letter-spacing: 0.08em; text-transform: uppercase; color: var(--dust); margin: 0 0 0.35rem; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; }
.check { margin: 2.25rem 0 0; max-width: 38rem; }
.check details { border-bottom: 1px solid var(--rule); padding: 0.6rem 0; }
.check summary { cursor: pointer; color: var(--paper); font-family: var(--font-body); font-size: var(--size-body); }
.check details p { color: var(--muted); margin: 0.5rem 0 0.2rem; }
.check summary:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
.listen-article { margin: 0 0 1.75rem; padding: 0.75rem 0.9rem; border: 1px solid var(--rule); background: var(--bg-band); max-width: 42rem; }
.listen-article-label { display: block; margin: 0 0 0.45rem; font-family: var(--font-chrome); font-size: var(--size-small); letter-spacing: 0.04em; color: var(--dust); }
.listen-article audio { display: block; width: 100%; height: 40px; color-scheme: dark; }
.listen-article-meta { margin: 0.4rem 0 0; font-size: 0.8rem; color: var(--muted); }
.fig-credit { font-size: 0.7rem; color: #77736b; }
.fig-credit a, .article-figure figcaption a { color: inherit; text-decoration: underline; text-underline-offset: 2px; }

/* ---------- Figure 1.1: the research cycle ---------- */
.cyc { display: grid; grid-template-columns: minmax(0, 1fr); gap: 0.9rem; }
.cyc-stage { position: relative; width: 100%; max-width: 30rem; margin: 0 auto; aspect-ratio: 1 / 1; }
.cyc-stage svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.cyc-ring { fill: none; stroke: rgba(196,180,154,0.22); stroke-width: 26; }
.cyc-flow { fill: none; stroke: url(#cycG); stroke-width: 3; stroke-linecap: round; stroke-dasharray: 2 16; animation: cycFlow 1.6s linear infinite; }
@keyframes cycFlow { to { stroke-dashoffset: -36; } }
.cyc-arrow { fill: #c4b49a; }
.cyc-core-t { font-family: var(--font-display); font-size: 25px; fill: #E8E4DC; }
.cyc-core-s { font-family: var(--font-chrome); font-size: 13px; fill: #8E8A82; letter-spacing: 0.04em; }
.cyc-arc-l { font-family: var(--font-chrome); font-size: 12px; fill: #c4b49a; letter-spacing: 0.08em; }
.cyc-node { position: absolute; width: 23%; aspect-ratio: 1 / 1; transform: translate(-50%, -50%); border-radius: 50%; border: 1px solid rgba(232,228,220,0.18); background: radial-gradient(circle at 50% 35%, #2a2622 0%, #171513 70%); padding: 0; cursor: pointer; display: flex; flex-direction: column; align-items: center; justify-content: center; color: var(--paper); box-shadow: 0 8px 22px rgba(0,0,0,0.45); transition: transform 0.25s ease, border-color 0.25s, box-shadow 0.25s; }
.cyc-node img { width: 50%; height: auto; display: block; margin-top: 4%; filter: drop-shadow(0 3px 4px rgba(0,0,0,0.4)); }
.cyc-node span:not(.cyc-num) { white-space: nowrap; font-family: var(--font-chrome); font-size: clamp(0.62rem, 1.6vw, 0.78rem); letter-spacing: 0.03em; line-height: 1.1; margin-top: 2%; text-align: center; }
.cyc-node:hover { border-color: var(--dust); }
.cyc-node[aria-pressed="true"] { border-color: var(--dust); box-shadow: 0 0 0 3px rgba(196,180,154,0.28), 0 10px 26px rgba(0,0,0,0.5); transform: translate(-50%, -50%) scale(1.07); }
.cyc-num { position: absolute; top: -4%; right: -2%; width: 1.5rem; height: 1.5rem; line-height: 1.5rem; border-radius: 50%; text-align: center; background: #0f0e0d; border: 1px solid rgba(196,180,154,0.5); font-family: var(--font-chrome); font-size: 0.66rem; color: var(--dust); }
.cyc-panel { border-top: 1px solid var(--rule); padding: 0.75rem 0 0; min-height: 11.5rem; }
.cyc-panel h3 { font-size: 1.25rem; margin: 0 0 0.3rem; }
.cyc-panel p { margin: 0 0 0.45rem; font-family: var(--font-body); font-size: var(--size-small); line-height: 1.5; color: var(--muted); }
.cyc-panel .cyc-ex { color: var(--paper); border-left: 2px solid var(--dust); padding-left: 0.65rem; }
.cyc-panel .cyc-ex b { font-family: var(--font-chrome); font-weight: 400; font-size: var(--size-label); letter-spacing: 0.06em; text-transform: uppercase; color: var(--dust); display: block; }

/* ---------- Figure 1.2: timeline with portraits ---------- */
.tl-eras { display: flex; flex-wrap: wrap; gap: 0.4rem; margin: 0 0 0.8rem; }
.tl-eras .viz-btn { font-size: 0.75rem; padding: 0.35rem 0.6rem; min-height: 40px; display: inline-flex; align-items: center; gap: 0.4rem; }
.tl-dot { width: 10px; height: 10px; border-radius: 50%; display: inline-block; }
.tl-wrap { position: relative; }
.tl-track { list-style: none; margin: 0; padding: 0.4rem 0.2rem 1rem; display: flex; gap: 0.8rem; overflow-x: auto; scroll-snap-type: x mandatory; -webkit-overflow-scrolling: touch; scrollbar-width: thin; scrollbar-color: #4a453f transparent; }
.tl-track:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
.tl-card { flex: 0 0 11.5rem; scroll-snap-align: start; position: relative; padding: 2.1rem 0.8rem 0.9rem; background: linear-gradient(180deg, #1b1916 0%, #131210 100%); border: 1px solid var(--rule); border-top: 3px solid var(--era, #c4b49a); transition: opacity 0.3s, transform 0.3s; }
.tl-card.is-dim { opacity: 0.28; }
.tl-year { position: absolute; top: 0.45rem; left: 0.8rem; font-family: var(--font-chrome); font-size: 0.95rem; color: var(--era, #c4b49a); letter-spacing: 0.04em; }
.tl-card img { display: block; width: 92px; height: 92px; border-radius: 50%; object-fit: cover; margin: 0 auto 0.6rem; border: 2px solid rgba(232,228,220,0.25); box-shadow: 0 6px 16px rgba(0,0,0,0.5); }
.tl-card .tl-icon { width: 92px; height: 92px; border-radius: 50%; margin: 0 auto 0.6rem; background: radial-gradient(circle at 50% 35%, #2a2622, #171513 70%); display: flex; align-items: center; justify-content: center; border: 2px solid rgba(232,228,220,0.18); }
.tl-card .tl-icon img { width: 70%; height: auto; border: 0; border-radius: 0; box-shadow: none; margin: 0; }
.tl-name { font-family: var(--font-display); font-size: 1.05rem; color: var(--paper); margin: 0 0 0.15rem; line-height: 1.25; }
.tl-school { font-family: var(--font-chrome); font-size: 0.66rem; letter-spacing: 0.07em; text-transform: uppercase; color: var(--era, #c4b49a); margin: 0 0 0.35rem; }
.tl-what { font-family: var(--font-body); font-size: 0.86rem; line-height: 1.42; color: var(--muted); margin: 0; }
.tl-nav { display: flex; gap: 0.5rem; justify-content: flex-end; margin: 0.2rem 0 0; }
.tl-axis { height: 2px; background: linear-gradient(90deg, #7fb3d5, #b9a3dc, #e07a5f, #9ccf8c, #e3a76f); opacity: 0.5; margin: 0 0.2rem 0.2rem; }

/* ---------- Figure 1.3: perspectives map ---------- */
.pm { display: grid; grid-template-columns: minmax(0, 1fr); gap: 0.8rem; }
.pm-map { position: relative; width: 100%; max-width: 32rem; margin: 0 auto; aspect-ratio: 1 / 0.92; }
.pm-map svg.pm-lines { position: absolute; inset: 0; width: 100%; height: 100%; }
.pm-line { stroke: rgba(196,180,154,0.28); stroke-width: 1.5; stroke-dasharray: 3 5; }
.pm-line.is-on { stroke: var(--dust); stroke-dasharray: none; stroke-width: 2; }
.pm-core { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); width: 36%; aspect-ratio: 1 / 1; border-radius: 50%; background: radial-gradient(circle at 50% 30%, #2c2723, #151311 72%); border: 1px solid rgba(232,228,220,0.2); display: flex; flex-direction: column; justify-content: center; align-items: center; text-align: center; padding: 0.6rem; box-shadow: 0 10px 30px rgba(0,0,0,0.5); }
.pm-core b { font-family: var(--font-chrome); font-weight: 400; font-size: 0.62rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--dust); }
.pm-core span { font-family: var(--font-display); font-size: clamp(0.8rem, 2.3vw, 1.02rem); line-height: 1.25; color: var(--paper); margin-top: 0.25rem; }
.pm-node { position: absolute; transform: translate(-50%, -50%); width: 21%; background: none; border: 0; padding: 0; cursor: pointer; color: var(--paper); display: flex; flex-direction: column; align-items: center; }
.pm-node .pm-disc { width: 100%; aspect-ratio: 1 / 1; border-radius: 50%; background: radial-gradient(circle at 50% 35%, #2a2622 0%, #171513 70%); border: 1px solid rgba(232,228,220,0.18); display: flex; align-items: center; justify-content: center; box-shadow: 0 6px 18px rgba(0,0,0,0.45); transition: transform 0.25s, border-color 0.25s, box-shadow 0.25s; }
.pm-node img { width: 74%; height: auto; display: block; }
.pm-node .pm-lab { font-family: var(--font-chrome); font-size: clamp(0.6rem, 1.55vw, 0.74rem); letter-spacing: 0.03em; margin-top: 0.3rem; text-align: center; line-height: 1.15; }
.pm-node:hover .pm-disc { border-color: var(--dust); }
.pm-node[aria-pressed="true"] .pm-disc { border-color: var(--dust); transform: scale(1.08); box-shadow: 0 0 0 3px rgba(196,180,154,0.28), 0 10px 24px rgba(0,0,0,0.5); }
.pm-panel { border-top: 1px solid var(--rule); padding: 0.75rem 0 0; min-height: 10rem; }
.pm-panel h3 { font-size: 1.2rem; margin: 0 0 0.3rem; }
.pm-panel p { margin: 0 0 0.45rem; font-family: var(--font-body); font-size: var(--size-small); line-height: 1.5; color: var(--muted); }
.pm-panel .pm-measure { color: var(--paper); border-left: 2px solid var(--dust); padding-left: 0.65rem; }

/* ---------- Figure 2.1: research methods ---------- */
.mc { display: grid; grid-template-columns: repeat(auto-fill, minmax(12.5rem, 1fr)); gap: 0.7rem; }
.mc-card { background: linear-gradient(180deg, #1b1916, #131210); border: 1px solid var(--rule); padding: 0.75rem 0.8rem 0.8rem; display: grid; grid-template-columns: 64px 1fr; column-gap: 0.7rem; align-items: start; }
.mc-card img { width: 64px; height: 64px; display: block; filter: drop-shadow(0 3px 5px rgba(0,0,0,0.45)); }
.mc-card h3 { font-size: 1.02rem; margin: 0.1rem 0 0.2rem; }
.mc-card p { margin: 0; font-family: var(--font-body); font-size: 0.84rem; line-height: 1.4; color: var(--muted); }
.mc-bars { grid-column: 1 / -1; margin: 0.6rem 0 0; display: grid; grid-template-columns: auto 1fr; gap: 0.25rem 0.6rem; align-items: center; }
.mc-bars dt { font-family: var(--font-chrome); font-size: 0.64rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--dust); }
.mc-bars dd { margin: 0; display: flex; gap: 3px; }
.mc-bars dd i { display: block; height: 7px; flex: 1; border-radius: 2px; background: rgba(232,228,220,0.1); }
.mc-bars dd i.on { background: linear-gradient(90deg, #c4b49a, #e3a76f); }
.mc-bars dd.cause i.on { background: linear-gradient(90deg, #9ccf8c, #6fae78); }

/* ---------- Figure 2.2: correlation explorer ---------- */
.cx-head { display: flex; flex-wrap: wrap; gap: 0.4rem; margin: 0 0 0.6rem; }
.cx-head .viz-btn { font-size: 0.78rem; padding: 0.4rem 0.65rem; min-height: 40px; }
.cx-plot { position: relative; width: 100%; max-width: 34rem; margin: 0 auto; }
.cx-plot svg { display: block; width: 100%; height: auto; }
.cx-dot { transition: cx 0.55s cubic-bezier(.4,.1,.2,1), cy 0.55s cubic-bezier(.4,.1,.2,1), opacity 0.4s, fill 0.4s; }
.cx-fit { transition: all 0.55s cubic-bezier(.4,.1,.2,1); }
.cx-axis { font-family: var(--font-chrome); font-size: 13px; fill: #8E8A82; }
.cx-r { font-family: var(--font-display); font-size: 30px; fill: #E8E4DC; }
.cx-rs { font-family: var(--font-chrome); font-size: 12px; fill: #c4b49a; letter-spacing: 0.05em; }
.cx-ctrl { display: grid; grid-template-columns: auto 1fr auto; gap: 0.7rem; align-items: center; margin: 0.7rem 0 0.2rem; }
.cx-ctrl label { font-family: var(--font-chrome); font-size: var(--size-small); color: var(--paper); }
.cx-ctrl output { font-family: var(--font-chrome); font-size: var(--size-small); color: var(--dust); min-width: 3.4rem; text-align: right; }
.cx-ctrl input[type=range] { width: 100%; accent-color: #c4b49a; min-height: 44px; }
.cx-note { font-family: var(--font-body); font-size: var(--size-small); line-height: 1.5; color: var(--muted); margin: 0.5rem 0 0; min-height: 4.5em; }
.cx-note strong { color: var(--paper); }
.cx-legend { display: flex; align-items: center; gap: 0.5rem; font-family: var(--font-chrome); font-size: 0.7rem; color: var(--muted); margin: 0.3rem 0 0; }
.cx-legend i { display: block; width: 8rem; height: 8px; border-radius: 4px; background: linear-gradient(90deg, #7fb3d5, #e3a76f, #e07a5f); }
.cx-legend[hidden] { display: none; }

/* ---------- Figure 2.3: experiment builder ---------- */
.xb-steps { display: flex; gap: 0.35rem; flex-wrap: wrap; margin: 0 0 0.6rem; }
.xb-steps .viz-btn { font-size: 0.74rem; padding: 0.35rem 0.6rem; min-height: 40px; }
.xb-stage { position: relative; width: 100%; aspect-ratio: 16 / 10.5; background: radial-gradient(ellipse at 50% 20%, #1d1a17, #0f0e0d 70%); border: 1px solid var(--rule); overflow: hidden; }
.xb-stage .xb-person { position: absolute; width: 5.2%; height: auto; left: 0; top: 0; transform: translate(-50%, -100%); transition: left 0.9s cubic-bezier(.45,.05,.2,1), top 0.9s cubic-bezier(.45,.05,.2,1), opacity 0.5s, filter 0.5s; filter: drop-shadow(0 2px 2px rgba(0,0,0,0.5)); }
.xb-stage .xb-person.is-out { opacity: 0.16; filter: grayscale(1); }
.xb-box { position: absolute; border: 1px dashed rgba(196,180,154,0.35); border-radius: 8px; opacity: 0; transition: opacity 0.5s; }
.xb-box.is-on { opacity: 1; }
.xb-box b { position: absolute; top: -1.6em; left: 0; right: 0; text-align: center; font-family: var(--font-chrome); font-weight: 400; font-size: clamp(0.58rem, 1.5vw, 0.74rem); color: var(--dust); letter-spacing: 0.04em; white-space: nowrap; }
.xb-lab { position: absolute; font-family: var(--font-chrome); font-size: clamp(0.58rem, 1.5vw, 0.74rem); color: var(--muted); letter-spacing: 0.04em; }
.xb-chart { position: absolute; left: 6%; right: 6%; bottom: 7%; top: 12%; opacity: 0; transition: opacity 0.6s; pointer-events: none; }
.xb-chart.is-on { opacity: 1; }
.xb-chart svg { width: 100%; height: 100%; }
.xb-read { margin: 0.6rem 0 0; min-height: 6.2em; font-family: var(--font-body); font-size: var(--size-small); line-height: 1.5; color: var(--muted); }
.xb-read strong { color: var(--paper); font-family: var(--font-chrome); font-weight: 400; letter-spacing: 0.03em; display: block; }
.xb-comp { display: grid; grid-template-columns: 7.5rem 1fr; gap: 0.3rem 0.6rem; align-items: center; margin: 0.5rem 0 0; font-family: var(--font-chrome); font-size: 0.7rem; color: var(--muted); }
.xb-bar { display: flex; height: 12px; border-radius: 3px; overflow: hidden; background: rgba(232,228,220,0.06); }
.xb-bar span { display: block; height: 100%; transition: width 0.6s; }
.xb-key { display: flex; flex-wrap: wrap; gap: 0.3rem 0.9rem; margin: 0.4rem 0 0; font-family: var(--font-chrome); font-size: 0.68rem; color: var(--muted); }
.xb-key i { display: inline-block; width: 9px; height: 9px; border-radius: 50%; margin-right: 0.3rem; vertical-align: -1px; }

/* ---------- Figure 2.4: protections ---------- */
.eth { display: grid; grid-template-columns: minmax(0, 1fr); gap: 0.9rem; }
.eth-temple { position: relative; width: 100%; max-width: 30rem; margin: 0 auto; }
.eth-temple > img { display: block; width: 100%; height: auto; filter: drop-shadow(0 12px 18px rgba(0,0,0,0.45)); }
.eth-roof { position: absolute; left: 22%; right: 22%; top: 21%; text-align: center; font-family: var(--font-chrome); font-size: clamp(0.56rem, 1.6vw, 0.74rem); letter-spacing: 0.06em; text-transform: uppercase; color: #3b342b; }
.eth-col { position: absolute; top: 40%; height: 40%; transform: translateX(-50%); width: 15%; background: transparent; border: 0; cursor: pointer; border-radius: 6px; }
.eth-col span { position: absolute; left: 50%; top: 104%; transform: translateX(-50%); white-space: nowrap; font-family: var(--font-chrome); font-size: clamp(0.6rem, 1.6vw, 0.76rem); color: var(--paper); background: rgba(15,14,13,0.82); padding: 0.2rem 0.45rem; border: 1px solid var(--rule); border-radius: 3px; }
.eth-col:hover span, .eth-col[aria-pressed="true"] span { border-color: var(--dust); color: var(--dust); }
.eth-col[aria-pressed="true"] { box-shadow: 0 0 0 2px rgba(196,180,154,0.55), 0 0 22px rgba(196,180,154,0.25); }
.eth-panel { border-top: 1px solid var(--rule); padding: 0.75rem 0 0; min-height: 10.5rem; }
.eth-panel h3 { font-size: 1.2rem; margin: 0 0 0.3rem; }
.eth-panel p { margin: 0 0 0.45rem; font-family: var(--font-body); font-size: var(--size-small); line-height: 1.5; color: var(--muted); }
.eth-panel .eth-app { color: var(--paper); border-left: 2px solid var(--dust); padding-left: 0.65rem; }
.eth-tl { list-style: none; margin: 0.4rem 0 0; padding: 0 0 0 1.1rem; border-left: 2px solid rgba(196,180,154,0.3); }
.eth-tl li { position: relative; margin: 0 0 0.85rem; font-family: var(--font-body); font-size: 0.88rem; line-height: 1.45; color: var(--muted); }
.eth-tl li::before { content: ""; position: absolute; left: calc(-1.1rem - 6px); top: 0.3em; width: 10px; height: 10px; border-radius: 50%; background: #0f0e0d; border: 2px solid var(--c, #c4b49a); }
.eth-tl b { font-family: var(--font-chrome); font-weight: 400; color: var(--c, #c4b49a); margin-right: 0.4rem; }
.eth-tl li.harm { --c: #e07a5f; }
.eth-tl li.rule { --c: #9ccf8c; }
.eth-tlkey { display: flex; gap: 1rem; font-family: var(--font-chrome); font-size: 0.68rem; color: var(--muted); margin: 0.6rem 0 0; }
.eth-tlkey i { display: inline-block; width: 9px; height: 9px; border-radius: 50%; margin-right: 0.3rem; border: 2px solid; vertical-align: -1px; }

@media (min-width: 900px) {
  .cyc.is-wide { grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); align-items: center; }
}
@media (max-width: 520px) {
  .viz { padding: 0.65rem; }
  .tl-card { flex-basis: 10.2rem; }
  .cyc-node span:not(.cyc-num) { font-size: 0.58rem; }
  .cyc-num { width: 1.2rem; height: 1.2rem; line-height: 1.2rem; font-size: 0.58rem; }
  .pm-node .pm-lab { font-size: 0.56rem; }
  .xb-stage .xb-person { width: 5.6%; }
  .eth-col span { white-space: normal; width: 5.2rem; text-align: center; line-height: 1.2; }
}
@media (prefers-reduced-motion: reduce) {
  .cyc-flow { animation: none; stroke-dasharray: none; opacity: 0.6; }
  .viz *, .viz *::before { transition: none !important; }
}

/* ---------- Figure 1.2: parts of a research article ---------- */
.an { display: grid; grid-template-columns: minmax(0, 1fr); gap: 1rem; }
.an-desk { position: relative; padding: 1.6rem 1.2rem 1.8rem; background: radial-gradient(ellipse at 50% 0%, #2a241e 0%, #15120f 70%); border: 1px solid var(--rule); perspective: 1600px; overflow: hidden; }
.an-paper { position: relative; max-width: 34rem; margin: 0 auto; padding: 1.1rem 1.15rem 1.2rem; background: linear-gradient(172deg, #f5f0e6 0%, #ece5d6 60%, #e3dac8 100%); color: #2a2622; border-radius: 2px; box-shadow: 0 1px 0 rgba(255,255,255,0.6) inset, 6px 6px 0 -1px #d9cfbc, 7px 7px 2px -1px rgba(0,0,0,0.25), 12px 12px 0 -2px #c9bea9, 0 24px 44px rgba(0,0,0,0.55), 0 4px 10px rgba(0,0,0,0.35); transform: rotateX(4deg) rotateZ(-0.6deg); transform-origin: 50% 0; }
.an-part { position: relative; padding: 0.35rem 0.45rem 0.4rem 1.7rem; margin: 0 0 0.35rem; border-radius: 3px; cursor: pointer; transition: background 0.25s, box-shadow 0.25s, opacity 0.25s; }
.an-part:hover { background: rgba(120, 96, 60, 0.07); }
.an-paper.has-sel .an-part:not(.is-on) { opacity: 0.62; }
.an-part.is-on { background: rgba(196, 160, 100, 0.16); box-shadow: 0 0 0 1.5px #a9844f inset; opacity: 1; }
.an-pin { position: absolute; left: 0.15rem; top: 0.35rem; width: 1.3rem; height: 1.3rem; min-width: 0; min-height: 0; padding: 0; border-radius: 50%; border: 1px solid #8a6a3e; background: #2a2622; color: #f2e7d2; font-family: var(--font-chrome); font-size: 0.66rem; line-height: 1; cursor: pointer; box-shadow: 0 2px 4px rgba(0,0,0,0.3); }
.an-pin::after { content: ""; position: absolute; inset: -12px; }
.an-pin[aria-pressed="true"] { background: #a9844f; color: #1a1612; border-color: #6b5130; }
.an-pin:focus-visible { outline: 2px solid #2a2622; outline-offset: 2px; }
.an-run { margin: 0 0 0.35rem; font-family: var(--font-chrome); font-size: 0.56rem; letter-spacing: 0.08em; text-transform: uppercase; color: #7a6e60; border-bottom: 1px solid rgba(42,38,34,0.25); padding-bottom: 0.25rem; }
.an-title { margin: 0 0 0.2rem; font-family: var(--font-display); font-weight: 600; font-size: clamp(0.82rem, 2.3vw, 1.02rem); line-height: 1.2; color: #1d1a17; }
.an-auth { margin: 0 0 0.4rem; font-family: var(--font-display); font-style: italic; font-size: 0.7rem; color: #4a433b; }
.an-abs { font-family: var(--font-body); font-size: 0.64rem; line-height: 1.45; color: #3a342e; border-left: 2px solid #a9844f; padding: 0.15rem 0 0.15rem 0.5rem; background: rgba(169,132,79,0.07); }
.an-abs b { font-family: var(--font-display); font-weight: 600; margin-right: 0.3rem; color: #1d1a17; }
.an-cols { margin-top: 0.4rem; }
.an-h { margin: 0 0 0.15rem; font-family: var(--font-display); font-weight: 600; font-size: 0.78rem; color: #1d1a17; }
.an-sh { margin: 0.2rem 0 0.05rem; font-family: var(--font-display); font-style: italic; font-size: 0.66rem; color: #3a342e; }
.an-t, .an-ref { margin: 0 0 0.2rem; font-family: var(--font-body); font-size: 0.62rem; line-height: 1.45; color: #3a342e; }
.an-ref { padding-left: 0.8rem; text-indent: -0.8rem; }
.an-line { display: block; height: 0.3rem; margin: 0.28rem 0; border-radius: 2px; background: linear-gradient(90deg, rgba(58,52,46,0.22), rgba(58,52,46,0.14)); }
.an-chart { display: block; width: 100%; max-width: 13rem; height: auto; margin: 0.15rem auto 0.25rem; }
.an-panel { border-top: 1px solid var(--rule); padding: 0.75rem 0 0; min-height: 13rem; }
.an-panel h3 { font-size: 1.25rem; margin: 0 0 0.4rem; }
.an-panel p { color: var(--muted); font-size: var(--size-small); line-height: 1.55; margin: 0 0 0.6rem; }
.an-stage { border-left: 2px solid var(--dust); padding-left: 0.7rem; color: var(--paper) !important; }
.an-stage .viz-kicker { display: block; margin: 0 0 0.1rem; }
.an-ask b { display: block; font-family: var(--font-chrome); font-weight: 400; font-size: var(--size-label); letter-spacing: 0.08em; text-transform: uppercase; color: var(--dust); margin-bottom: 0.15rem; }
@media (min-width: 560px) { .an-cols { column-count: 2; column-gap: 1rem; } .an-part { break-inside: avoid; } }
@media (max-width: 520px) { .an-desk { padding: 0.7rem 0.5rem 1.1rem; } .an-paper { padding: 0.8rem 0.75rem 0.9rem; transform: none; box-shadow: 0 1px 0 rgba(255,255,255,0.6) inset, 4px 4px 0 -1px #d9cfbc, 0 14px 28px rgba(0,0,0,0.5); } }
@media (prefers-reduced-motion: reduce) { .an-paper { transform: none; } }

/* ---------- Figure 2.3: 3D hidden dimension ---------- */
.c3 { display: grid; grid-template-columns: minmax(0, 1fr); gap: 0.9rem; }
.c3-stage { position: relative; width: 100%; aspect-ratio: 4 / 3; background: #0f0e0d; border: 1px solid var(--rule); overflow: hidden; touch-action: pan-y; cursor: grab; }
.c3-stage.is-drag { cursor: grabbing; }
.c3-stage canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.c3-labels { position: absolute; inset: 0; pointer-events: none; }
.c3-lab { position: absolute; left: 0; top: 0; font-family: var(--font-chrome); font-size: 0.72rem; letter-spacing: 0.04em; color: var(--paper); white-space: nowrap; text-shadow: 0 1px 3px #000, 0 0 8px #000; transition: opacity 0.2s; }
.c3-lab.is-hot { color: #e3a76f; }
.c3-lab.is-small { font-size: 0.62rem; color: var(--muted); }
.c3-lab.is-small.is-hot { color: #e3a76f; }
.c3-hint { position: absolute; right: 0.6rem; bottom: 0.5rem; margin: 0; font-family: var(--font-chrome); font-size: 0.66rem; color: var(--muted); letter-spacing: 0.06em; transition: opacity 0.6s; pointer-events: none; }
.c3-hint.is-gone { opacity: 0; visibility: hidden; transition: opacity 0.6s, visibility 0s 0.6s; }
.c3-views { display: flex; flex-wrap: wrap; gap: 0.4rem; }
.c3-views .viz-btn { font-size: 0.74rem; padding: 0.4rem 0.65rem; }
.c3-read { margin: 0.7rem 0 0; min-height: 7.5em; font-size: var(--size-small); line-height: 1.55; color: var(--muted); }
.c3-read strong { display: block; font-weight: 400; color: var(--paper); margin-bottom: 0.25rem; }
.c3-legend i { background: linear-gradient(90deg, #7fb3d5, #e3a76f) !important; }
.c3-stage.is-fallback { cursor: default; display: flex; align-items: center; justify-content: center; }
.c3-fail { position: relative; z-index: 1; max-width: 22rem; margin: 0; padding: 1rem; text-align: center; color: var(--muted); font-size: var(--size-small); }
@media (min-width: 900px) { .c3 { grid-template-columns: minmax(0, 1.35fr) minmax(0, 0.65fr); align-items: start; } .c3-views { flex-direction: column; align-items: stretch; } }
@media (max-width: 520px) { .c3-stage { aspect-ratio: 1 / 1; } }

/* ---------- Figure 2.6: one participant's path ---------- */
.pp-stage { position: relative; width: 100%; aspect-ratio: 16 / 8; background: radial-gradient(ellipse at 50% 30%, #1f1b17 0%, #0f0e0d 72%); border: 1px solid var(--rule); overflow: hidden; }
.pp-stage.is-tall { aspect-ratio: 1 / 1.25; }
.pp-svg { position: absolute; inset: 0; }
.pp-road { fill: none; stroke: rgba(232,228,220,0.08); stroke-width: 18; stroke-linecap: round; }
.pp-lane { fill: none; stroke: rgba(196,180,154,0.35); stroke-width: 1.5; stroke-dasharray: 3 7; }
.pp-done { fill: none; stroke: url(#ppG); stroke-width: 3; stroke-linecap: round; }
.pp-st { position: absolute; width: 0; height: 0; cursor: pointer; }
.pp-disc { position: absolute; left: 0; top: 0; width: clamp(3.1rem, 8vw, 4.6rem); aspect-ratio: 1; transform: translate(-50%, -50%); border-radius: 50%; display: flex; align-items: center; justify-content: center; background: radial-gradient(circle at 50% 35%, #2a2622 0%, #151311 72%); border: 1px solid rgba(232,228,220,0.18); box-shadow: 0 8px 20px rgba(0,0,0,0.5); transition: border-color 0.3s, box-shadow 0.3s, transform 0.3s; }
.pp-disc img { width: 62%; height: auto; filter: drop-shadow(0 3px 4px rgba(0,0,0,0.45)); }
.pp-num { position: absolute; left: 0; top: 0; transform: translate(calc(clamp(3.1rem, 8vw, 4.6rem) * 0.3), calc(clamp(3.1rem, 8vw, 4.6rem) * -0.62)); width: 1.25rem; height: 1.25rem; line-height: 1.25rem; text-align: center; border-radius: 50%; background: #0f0e0d; border: 1px solid rgba(196,180,154,0.5); font-family: var(--font-chrome); font-size: 0.62rem; color: var(--dust); }
.pp-lab { position: absolute; left: 0; top: 0; transform: translate(-50%, calc(clamp(3.1rem, 8vw, 4.6rem) * 0.56)); white-space: nowrap; padding: 0.05rem 0.3rem; background: rgba(15,14,13,0.82); border-radius: 2px; font-family: var(--font-chrome); font-size: clamp(0.58rem, 1.4vw, 0.72rem); letter-spacing: 0.03em; color: var(--muted); }
.pp-st.is-done .pp-disc { border-color: rgba(156,207,140,0.6); }
.pp-st.is-on .pp-disc { border-color: var(--dust); box-shadow: 0 0 0 3px rgba(196,180,154,0.25), 0 10px 24px rgba(0,0,0,0.55); transform: translate(-50%, -50%) scale(1.08); }
.pp-st.is-on .pp-lab { color: var(--paper); }
.viz .pp-walker { position: absolute; left: 0; top: 0; width: clamp(1.7rem, 4vw, 2.3rem); height: auto; z-index: 2; filter: drop-shadow(0 4px 4px rgba(0,0,0,0.6)); pointer-events: none; }
.viz .pp-walker.is-walk { animation: ppBob 0.36s ease-in-out infinite alternate; }
@keyframes ppBob { to { margin-top: -3px; } }
.pp-dots { display: flex; flex-wrap: wrap; gap: 0.35rem; margin: 0.7rem 0 0; }
.pp-dots .viz-btn { font-size: 0.72rem; padding: 0.35rem 0.55rem; min-height: 40px; }
.pp-read { margin: 0.6rem 0 0; min-height: 11em; }
.pp-read h3 { font-size: 1.2rem; margin: 0 0 0.35rem; }
.pp-read p { color: var(--muted); font-size: var(--size-small); line-height: 1.55; margin: 0 0 0.5rem; }
.pp-rule { border-left: 2px solid #9ccf8c; padding-left: 0.7rem; }
.pp-rule b { display: block; font-family: var(--font-chrome); font-weight: 400; font-size: var(--size-label); letter-spacing: 0.08em; text-transform: uppercase; color: #9ccf8c; }
@media (prefers-reduced-motion: reduce) { .viz .pp-walker.is-walk { animation: none; } }

/* long reference URLs must wrap on phones */
.refs li, .refs a { overflow-wrap: anywhere; }
