/* /research — a timeline of papers. Only what vision.css lacks. */

.era h2, #here h2, #open h2 { font-size: clamp(2rem, 2.2vw + 1rem, 3.25rem); }
.cite-rule { margin: 16px 0 0; max-width: 46ch; }

/* One row per paper: the year in the margin, the work beside it. No rules, only space. */
.timeline { list-style: none; margin: 0; padding: 0; display: grid; gap: clamp(28px, 3vw, 44px); }
.timeline > li { display: grid; grid-template-columns: 4.5rem minmax(0, 1fr); gap: 4px 24px; margin: 0; max-width: 72ch; }
.timeline .year { font-size: var(--body); font-weight: 600; line-height: 1.3; }
.timeline h3 { margin: 0 0 4px; }
.timeline cite { font-style: normal; }
.timeline .micro { margin: 0 0 8px; }
.timeline p:last-child { margin-bottom: 0; }
@media (max-width: 520px) { .timeline > li { grid-template-columns: 1fr; } }

/* "Used here": a quiet tag, never Peach Red — that colour is only for what the machine sees. */
.used { display: inline-block; margin-left: 8px; padding: 2px 8px; background: var(--field); color: var(--field-text); white-space: nowrap; }
.field-quiet .used { background: var(--olive); color: var(--naples); }

.questions { grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); align-items: start; }
.questions h3 { margin-top: 0; }

/* A research case study: diagrams remain readable as columns become rows. */
.tagid-case h2 { font-size: clamp(2.5rem, 4vw, 4rem); }
.tagid-case .chapter-body > p { max-width: 66ch; }
.tagid-source { font-size: var(--micro); }
.tagid-pipeline, .tagid-research, .face-lineage, .tagid-watch { min-width: 0; }
.tagid-pipeline { background: var(--black); color: var(--white); padding: 20px; }
.tagid-pipeline > figcaption, .face-lineage > figcaption { padding: 0 0 20px; }
.tagid-input, .tagid-output { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 4px 16px; }
.tagid-input .micro, .tagid-output .micro { grid-column: 2; color: var(--gray); }
.tagid-branches { position: relative; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2px; margin: 24px 0; }
.tagid-path { background: var(--black-2); padding: 16px; min-width: 0; }
.tagid-path strong { display: block; font-size: var(--body); line-height: 1.3; }
.tagid-path p { margin: 8px 0 0; color: var(--gray); }
.feature-sketch { width: 100%; height: 80px; display: block; margin: 12px 0; stroke: var(--naples); stroke-width: 2; fill: none; }
.feature-sketch circle { fill: var(--naples); }
.sketch-faint { opacity: 0.4; }
.tagid-caption { margin: 16px 0 0; max-width: 76ch; line-height: 1.55; }
.tagid-pipeline .tagid-caption { color: var(--gray); }
.tagid-research-head h3, .tagid-watch h3, .tagid-reading h3 { margin: 0 0 12px; }
.tagid-research-head .label { display: block; margin-bottom: 6px; }
.tagid-modules { border-top: 1px solid currentColor; }
.tagid-modules details { border-bottom: 1px solid currentColor; }
.tagid-modules summary { min-height: var(--target); padding: 12px 0; cursor: pointer; font-weight: 600; }
.tagid-modules summary .num { margin: 0 12px; font-size: var(--micro); }
.tagid-modules details p { margin: 0; padding: 0 16px 16px; max-width: 70ch; }
.face-lineage ol { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); list-style: none; padding: 0; margin: 0; gap: 2px; }
.face-lineage li { display: flex; flex-direction: column; gap: 12px; padding: 16px 12px; border-top: 3px solid var(--olive); background: var(--naples); color: var(--olive); }
.face-lineage li strong { font-size: var(--micro); }
.face-lineage li:last-child { background: var(--olive); color: var(--naples); }
.tagid-videos { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2px; }
.tagid-video { display: flex; flex-direction: column; gap: 8px; padding: 16px; background: var(--black); color: var(--white); text-decoration: none; }
.tagid-video strong { font-size: var(--body); line-height: 1.3; }
.tagid-video:hover { background: var(--olive); }
.video-graphic { display: block; width: 100%; color: var(--naples); }
.video-graphic svg { display: block; width: 100%; max-height: 160px; fill: var(--naples); }
.video-route { fill: none; stroke: var(--gray); stroke-width: 2; }
.video-play { fill: var(--naples); }
.video-triangle { fill: var(--black); }
@media (max-width: 1100px) { .face-lineage ol { grid-template-columns: 1fr; } .face-lineage li { border-top: 0; border-left: 3px solid var(--olive); } }
@media (max-width: 600px) {
  .tagid-branches, .tagid-videos { grid-template-columns: 1fr; }
  .tagid-pipeline { padding: 16px; }
  .tagid-input, .tagid-output { gap: 4px 12px; }
}

/* A visual route into the papers, with no horizontal scrolling on phones. */
.history-lab { padding: clamp(24px, 4vw, 56px) var(--gutter); display: grid; gap: 20px; scroll-margin-top: 90px; }
.history-lab h2 { font-size: clamp(1.75rem, 3vw, 3rem); max-width: 28ch; }
.history-lab > .prose { margin: 0; max-width: 74ch; }
.history-choices { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 2px; }
.history-choices .btn { display: grid; grid-template-columns: 1fr; gap: 4px; align-content: start; white-space: normal; height: auto; min-height: 60px; text-align: left; justify-content: flex-start; padding: 12px; }
.history-choices .btn[aria-pressed="true"] { background: var(--naples); color: var(--black); }
.history-panel { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: var(--gap); align-items: start; }
.history-panel figure { margin: 0; min-width: 0; }
.history-panel img { width: 100%; height: auto; display: block; }
.history-panel figcaption { margin-top: 8px; }
.history-panel h3 { font-size: clamp(1.35rem, 2vw, 2rem); margin: 8px 0 16px; }
.history-panel p { max-width: 66ch; }
.history-panel .controls { padding: 0; background: transparent; flex-wrap: wrap; }
.history-limit { border-left: 3px solid currentColor; padding-left: 16px; }
.history-next { display: flex; flex-wrap: wrap; gap: 12px 24px; }
.history-next a { min-height: 44px; display: inline-flex; align-items: center; }
@media (max-width: 900px) { .history-panel { grid-template-columns: 1fr; } .history-choices { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

.learning-kinds { padding: clamp(24px, 4vw, 56px) var(--gutter); scroll-margin-top: 90px; }
.learning-kinds > h2 { font-size: clamp(1.75rem, 3vw, 3rem); margin-bottom: 16px; }
.learning-kinds > .prose { max-width: 80ch; }
.learning-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; margin: 24px 0; }
.learning-cards article { min-width: 0; border-top: 3px solid currentColor; padding-top: 16px; }
.learning-cards h3 { font-size: clamp(1.35rem, 2vw, 1.8rem); margin: 10px 0 16px; }
.learning-cards .controls { flex-wrap: wrap; background: transparent; padding: 0; }
.learning-cards .controls .btn { white-space: normal; }
.learning-objects { list-style: none; padding: 16px; margin: 12px 0; display: flex; flex-wrap: wrap; gap: 20px; background: var(--black); color: var(--white); }
.learning-objects li { display: grid; justify-items: center; gap: 8px; min-width: 56px; }
.learning-object { display: block; width: 44px; height: 44px; }
.learning-object.circle { clip-path: circle(50%); }
.learning-object.red { background: var(--signal); }
.learning-object.yellow { background: var(--naples); }
.learning-answer { font-size: var(--micro); }
.learning-groups { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.learning-groups h4 { margin: 12px 0 0; }
.learning-groups .learning-objects { padding: 12px; gap: 12px; }
.learning-limit { border-left: 3px solid currentColor; padding-left: 12px; }
.reward-paths { display: grid; gap: 4px; margin: 16px 0; }
.reward-paths > div { background: var(--black); color: var(--white); padding: 12px; }
.reward-paths strong { display: block; color: var(--naples); font-size: 1.4rem; margin-top: 6px; }
.learning-interaction .readout { padding: 12px 0; color: inherit; }
@media (max-width: 1100px) { .learning-cards { grid-template-columns: 1fr; gap: 32px; } }
