/* Page orientation and readable record layouts. Uses the site's existing theme. */
.review-kicker { display: block; margin: 0 0 9px; font: 600 .78rem/1.45 var(--mono); letter-spacing: .07em; text-transform: uppercase; color: var(--muted); }
.review-section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px 28px; margin: 0 0 18px; flex-wrap: wrap; }
.review-section-head h2, .review-section-head p { margin-bottom: 0; }
.review-label { display: inline-block; padding: 5px 10px; border: 1px solid var(--rule); border-radius: 5px; color: var(--ink-2); font-size: .83rem; line-height: 1.45; }
.review-subnav { display: flex; flex-wrap: wrap; gap: 8px; padding: 0 0 24px; margin: 16px 0 8px; }
.review-subnav a { display: block; padding: 9px 15px; color: var(--ink); background: var(--surface); border: 1px solid var(--rule); border-radius: 6px; text-decoration: none; font-size: .94rem; }
.review-subnav a:hover { border-color: var(--link); color: var(--link); }
.review-details { margin: 20px 0; padding: 14px 0; border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); }
.review-details > summary { cursor: pointer; font-weight: 600; font-size: .95rem; color: var(--ink-2); }
.review-details[open] > summary { margin-bottom: 16px; }
.review-details p { font-size: .96rem; line-height: 1.65; }
.review-date { color: var(--muted); font-size: .88rem; margin: 16px 0 30px; }
.review-record { display: grid; grid-template-columns: 155px minmax(0, 1fr); gap: 8px 20px; font-size: .9rem; }
.review-record dt { color: var(--muted); }
.review-record dd { margin: 0; overflow-wrap: anywhere; }
.review-link-row { display: flex; flex-wrap: wrap; gap: 10px 26px; }

/* Goals: three questions, with an honest short status for each. */
.goal-questions { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 36px; margin-bottom: 56px; }
.goal-question { padding: 8px 0 24px; border-top: 3px solid var(--ink); display: flex; flex-direction: column; align-items: start; }
.goal-question .review-kicker { margin-top: 12px; }
.goal-question h2 { font-size: clamp(1.4rem, 2.2vw, 1.9rem); line-height: 1.2; margin: 0 0 18px; }
.goal-question > p { color: var(--ink-2); font-size: 1.04rem; }
.goal-question > a { margin-top: 20px; font-size: .95rem; font-weight: 600; }
.goal-progress { margin-top: auto; padding: 14px 16px; background: var(--surface); border-left: 3px solid var(--rule); width: 100%; }
.goal-progress strong, .goal-progress span { display: block; font-size: .88rem; line-height: 1.5; }
.goal-progress span { color: var(--muted); margin-top: 4px; }
.goal-next { padding: 28px 0; border-top: 1px solid var(--rule); display: grid; grid-template-columns: 1fr 2fr; gap: 16px 40px; }
.goal-next h2 { font-size: 1.45rem; }
.goal-next p { margin: 0; }
.goal-next > a { grid-column: 2; font-size: .95rem; }
.review-note { padding: 24px 0 0; }
.review-note h2 { font-size: 1.35rem; margin-bottom: 12px; }

/* Engine: one viewport/caption vocabulary, latest run date explicit. */
.review-engine .page-head { padding-bottom: 20px; margin-bottom: 28px; }
.current-gallery .lead { max-width: 72ch; font-size: 1.08rem; }
.engine-gallery-group { margin-top: 36px; }
.engine-gallery-group > h3 { padding-bottom: 12px; border-bottom: 1px solid var(--rule); font-size: 1.5rem; }
.review-engine .current-gallery .tgrid { gap: 28px; margin-top: 24px; }
.review-engine .current-gallery .field { background: var(--surface); color: var(--ink); border: 1px solid var(--rule); }
.review-engine .current-gallery .field .fov { aspect-ratio: 16 / 10; background: #05080d; }
.review-engine .current-gallery .field .fov img, .review-engine .current-gallery .field .fov video { width: 100%; height: 100%; object-fit: contain; }
.review-engine .current-gallery .field figcaption { border-color: var(--rule); padding: 18px 20px; color: var(--ink-2); }
.review-engine .current-gallery .field .cap { color: var(--ink); font-size: 1.15rem; line-height: 1.3; margin-bottom: 9px; }
.review-engine .current-gallery .field .plain { color: var(--ink-2); font-size: .94rem; }
.review-engine .current-gallery .field .srcd summary, .review-engine .current-gallery .field .prov dt { color: var(--muted); }
.review-engine .current-gallery .field .prov dd { color: var(--ink-2); }
.review-engine .current-gallery .scene { grid-column: auto; display: flex; flex-direction: column; gap: 0; margin: 0; border: 1px solid var(--rule); border-radius: 10px; overflow: hidden; background: var(--surface); }
.review-engine .current-gallery .scene-view { width: 100%; aspect-ratio: 16 / 10; border-radius: 0; }
.review-engine .current-gallery .scene figcaption { padding: 18px 20px; width: 100%; }
.review-engine .current-gallery .scene figcaption h3 { font-size: 1.15rem; line-height: 1.3; }
.review-engine .current-gallery .scene figcaption p { font-size: .94rem; }
.review-engine .current-gallery .scene-reads { font-size: .88rem; padding-left: 20px; }
.engine-parts { margin: 32px 0 48px; padding-top: 30px; border-top: 1px solid var(--rule); }
.engine-parts-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 44px; }
.engine-parts-grid .block { padding-bottom: 20px; min-width: 0; }
.engine-parts-grid .block h2 { font-size: 1.2rem; }
.engine-parts-grid .plist li a { display: block; padding: 15px 0; }
.engine-parts-grid .plist .t { font-size: 1rem; }
.engine-parts-grid .plist .s { font-size: .88rem; }
.review-part-evidence { display: block; font-size: .8rem; color: var(--muted); margin-top: 7px; }
.review-archive { border: 1px solid var(--rule); border-radius: 8px; padding: 20px 24px; }
.review-archive > summary { font-size: 1.1rem; font-weight: 700; cursor: pointer; }
.review-archive[open] > summary { margin-bottom: 18px; }
.review-archive .block.showcase { margin: 24px -24px; padding: 32px 24px; }

/* Evidence: questions remain visible; a plot is given room when opened. */
.evidence-orientation { display: grid; grid-template-columns: 1.2fr 1fr; gap: 30px; padding-bottom: 24px; }
.evidence-orientation article { padding: 24px; border: 1px solid var(--rule); border-radius: 8px; }
.evidence-orientation h2 { font-size: 1.4rem; margin-bottom: 12px; }
.evidence-orientation p { font-size: 1rem; color: var(--ink-2); }
.evidence-orientation a { font-size: .92rem; }
.evidence-group { margin: 24px 0 48px; }
.evidence-check { border-top: 1px solid var(--rule); }
.evidence-check:last-child { border-bottom: 1px solid var(--rule); }
.evidence-check > summary { display: flex; justify-content: space-between; align-items: center; gap: 18px; padding: 21px 0; font-weight: 600; cursor: pointer; list-style: none; }
.evidence-check > summary::-webkit-details-marker { display: none; }
.evidence-check > summary::before { content: "+"; font: 400 1.5rem var(--mono); color: var(--muted); }
.evidence-check[open] > summary::before { content: "−"; }
.evidence-check > summary > span:first-of-type { flex: 1; }
.evidence-check > summary .verdict { flex: none; font-size: .8rem; }
.evidence-check-body { padding: 0 0 24px 34px; max-width: 1020px; }
.evidence-answer { font-size: 1.06rem; color: var(--ink-2); }
.evidence-check figure { margin: 20px 0; max-width: 880px; }
.evidence-check figure img { width: 100%; background: white; border: 1px solid var(--rule); border-radius: 6px; }
.evidence-check figure figcaption { font-size: .8rem; color: var(--muted); margin-top: 5px; }
.review-levels { list-style: none; padding: 0; }
.review-levels li { padding: 10px 0; border-top: 1px solid var(--rule); font-size: .9rem; }
.review-levels .lv { white-space: normal; }

/* Learning: the interactive model is reached immediately, supporting reading follows. */
.review-learning > .wrap > .page-head { margin-bottom: 16px; padding-bottom: 24px; }
.review-learning .outer-app { border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); }
.review-learning .outer-app .outer-bar { flex-wrap: wrap; gap: 10px 18px; }
.review-learning .outer-app .outer-bar nav { flex-wrap: wrap; }
.review-learning .outer-app .outer-bar nav button { font-size: .9rem; }
.review-learning .outer-app .page-heading h1 { font-size: clamp(1.8rem, 3vw, 2.5rem); }
.learning-roles { padding: 48px 0 20px; }
.learning-paths { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; }
.learning-paths article { padding: 24px; border: 1px solid var(--rule); border-top: 3px solid var(--ink); border-radius: 6px; }
.learning-paths h3 { font-size: 1.2rem; line-height: 1.35; margin-bottom: 14px; }
.learning-paths p { color: var(--ink-2); font-size: 1rem; }
.learning-paths a { font-size: .92rem; }
.learning-bridge { padding: 22px 28px; margin: 20px 0; border: 1px dashed var(--muted); border-radius: 6px; text-align: center; }
.learning-bridge span { font-size: .8rem; color: var(--muted); display: block; margin-bottom: 5px; }
.learning-bridge strong { display: block; font-size: 1.25rem; }
.learning-bridge p { margin: 8px auto 0; font-size: .93rem; color: var(--muted); }
.learning-latest { padding: 24px 0; }
.learning-latest > h2 { margin-bottom: 28px; }
.learning-result { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 30px; margin: 0 0 40px; }
.learning-result img { width: 100%; background: #fff; border: 1px solid var(--rule); border-radius: 8px; }
.learning-result h3 { font-size: 1.3rem; margin-bottom: 14px; }
.learning-result p { color: var(--ink-2); }

@media (max-width: 1000px) {
  .goal-questions { gap: 24px; }
  .review-engine .current-gallery .tgrid { grid-template-columns: 1fr; }
  .review-engine .current-gallery .field .fov { max-height: 550px; }
}
@media (max-width: 760px) {
  .goal-questions, .evidence-orientation, .learning-paths, .learning-result, .engine-parts-grid, .goal-next { grid-template-columns: 1fr; }
  .goal-question { padding-bottom: 12px; }
  .goal-question h2 { font-size: 1.55rem; }
  .goal-next > a { grid-column: auto; }
  .review-record { grid-template-columns: 1fr; gap: 2px; }
  .review-record dd { margin-bottom: 12px; }
  .evidence-check > summary { flex-wrap: wrap; gap: 8px 12px; font-size: 1rem; }
  .evidence-check > summary > span:first-of-type { flex-basis: calc(100% - 34px); }
  .evidence-check > summary .verdict { margin-left: 28px; }
  .evidence-check-body { padding-left: 0; }
  .review-section-head h2 { font-size: 1.5rem; }
  .review-archive { padding: 16px; }
  .review-archive .block.showcase { margin-left: -16px; margin-right: -16px; padding-left: 16px; padding-right: 16px; }
}

/* Current experiments: recorded motion large enough to inspect, separate diagnostic plots. */
.review-experiments .page-head { margin-bottom: 26px; }
.current-cell-experiments > .lead { font-size: 1.08rem; }
.current-cell-run { margin: 36px 0 48px; padding-top: 28px; border-top: 1px solid var(--rule); }
.current-cell-run .review-section-head h3 { font-size: 1.6rem; }
.current-cell-body { display: grid; grid-template-columns: minmax(0, 1.45fr) minmax(0, 1fr); gap: 30px; align-items: start; }
.current-cell-motion, .current-cell-reading { min-width: 0; }
.current-cell-motion figure { margin: 0; }
.current-cell-motion .scene-view, .recorded-viewport { aspect-ratio: 16 / 10; border-radius: 10px; overflow: hidden; background: #05080d; }
.recorded-viewport video { width: 100%; height: 100%; object-fit: contain; }
.current-cell-motion figcaption { margin-top: 10px; font-size: .85rem; line-height: 1.5; color: var(--muted); }
.current-cell-reading > p { font-size: 1rem; color: var(--ink-2); }
.current-cell-reading .instrument-reading { font-size: 1.28rem; font-weight: 700; color: var(--ink); padding: 15px 0; border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); }
.current-cell-reading .review-record { grid-template-columns: 1fr; }
.current-cell-reading .review-record dd { margin-bottom: 10px; }
.current-cell-plots { display: grid; grid-template-columns: 1fr; gap: 24px; max-width: 1080px; }
.current-cell-plots figure { margin: 0; }
.current-cell-plots img { width: 100%; height: auto; background: #fff; border: 1px solid var(--rule); border-radius: 7px; }
.current-cell-plots figcaption { margin-top: 8px; font-size: .85rem; color: var(--muted); }
.experiment-diagnostics { margin: 32px 0 48px; }
.diagnostic-run { border-top: 1px solid var(--rule); }
.diagnostic-run:last-child { border-bottom: 1px solid var(--rule); }
.diagnostic-run > summary { display: flex; justify-content: space-between; gap: 20px; align-items: baseline; padding: 20px 0; font-weight: 600; cursor: pointer; }
.diagnostic-body { padding: 6px 0 24px; }
.experiment-build-archive { margin-top: 24px; }
.review-engine .current-gallery .field.plot .fov { aspect-ratio: auto; max-height: none; background: #fff; }
.review-engine .current-gallery .field.plot .fov img { width: 100%; height: auto; }
@media (max-width: 1000px) { .current-cell-body { grid-template-columns: 1fr; gap: 22px; } }
@media (max-width: 760px) { .diagnostic-run > summary { flex-wrap: wrap; gap: 8px; } }

.engine-comparison-heading{margin-top:44px;font-size:1.2rem}

/* One recording per viewport; data stays outside the moving picture. */
.record-view[hidden] { display: none !important; }
.record-view-controls { display: flex; flex-wrap: wrap; gap: 7px; padding: 12px 0; }
.record-view-controls button { border: 1px solid var(--rule); border-radius: 5px; padding: 9px 13px; background: var(--surface); color: var(--ink-2); font: 500 .87rem/1.3 var(--sans, sans-serif); cursor: pointer; }
.record-view-controls button[aria-pressed=true] { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.record-view-controls button:focus-visible { outline: 3px solid var(--link); outline-offset: 2px; }
.engine-record-heading { padding: 18px 20px; min-height: 89px; box-sizing: border-box; }
.engine-record-heading h4 { margin: 0; font-size: 1.22rem; line-height: 1.35; }
.fresh-engine > .record-views > .record-view-controls { padding: 12px 20px; }
.engine-motion { margin: 0; }
.review-engine .current-gallery .engine-motion figcaption { padding: 8px 20px; font-size: .8rem; }
.engine-record-caption { padding: 14px 20px 20px; }
.engine-record-caption > p { font-size: .94rem; }
.record-limitation { padding: 12px 14px; border-left: 3px solid #bd8853; background: var(--bg); }
.engine-readouts .tchart { margin: 18px 0; }
.engine-readouts svg { width: 100%; height: auto; }
.engine-record-caption code { overflow-wrap: anywhere; }
.displacement-library, .earlier-instrument-records { margin: 50px 0; padding-top: 30px; border-top: 1px solid var(--rule); }
.displacement-library > .record-views { border: 1px solid var(--rule); border-radius: 8px; padding: 20px; }
.displacement-library .dispgrid { display: flex; flex-direction: column; gap: 16px; }
.displacement-library .dispgrid figure { margin: 0; }
.displacement-library .dispv { aspect-ratio: auto; background: #05080d; }
.displacement-library video, .displacement-library img { width: 100%; max-height: 720px; object-fit: contain; }
.displacement-library .small { overflow-wrap: anywhere; }
.displacement-still { border-top: 1px solid var(--rule); padding-top: 12px; }
.displacement-still summary { cursor: pointer; font-size: .9rem; }
.displacement-current { display: block; margin: 0; }
.displacement-current .scene-view { width: 100%; aspect-ratio: 16/10; }
.displacement-current figcaption { padding: 20px 0 0; }
.current-cell-motion .scene { display: block; }
.current-cell-motion .scene-view { width: 100%; }
@media (max-width:760px) { .displacement-library > .record-views { padding: 12px; } .displacement-current .scene-view { aspect-ratio: 1/1; } }
.recording-player:fullscreen { width: 100vw; height: 100vh; background: #05080d; display: flex; flex-direction: column; justify-content: center; }
.recording-player:fullscreen .recorded-viewport, .recording-player:fullscreen .fov { width: 100%; flex: 1; aspect-ratio: auto !important; max-height: calc(100vh - 56px) !important; }
.recording-player:fullscreen video { width: 100%; height: 100%; object-fit: contain; }
.displacement-current .scene-view { max-height: 520px; }
@media(max-width:540px) {
  .recording-controls { display: grid; grid-template-columns: auto minmax(0,1fr) auto; }
  .recording-controls input { min-width: 0; width: 100%; grid-column: 2; grid-row: 1; }
  .recording-controls button:last-child { grid-column: 3; grid-row: 1; }
  .recording-time { grid-column: 1 / -1; grid-row: 2; justify-self: end; min-width: 0; }
}

/* Every replay keeps the same uncropped 16:10 canvas. Switches sit below it,
   so differing numbers of choices do not stagger neighbouring pictures. */
.fresh-engine > .record-views { display: flex; flex-direction: column; }
.fresh-engine > .record-views > .record-view-controls { order: 2; }
.motor-record > .engine-motion { margin-top: 0; }
.review-engine .current-gallery .recorded-viewport { width: 100%; aspect-ratio: 16 / 10; max-height: none; }
.review-engine .current-gallery .recorded-viewport video { object-fit: contain; }
.flow-key, .motor-key, .render-view-label { position: absolute; z-index: 2; pointer-events: none; color: #e9f2f7; font: 500 12px/1.5 var(--font); }
.flow-key { bottom: 48px; right: 18px; width: 205px; display: grid; grid-template-columns: 1fr 1fr 1fr; padding: 9px 12px; background: #05080ddb; border-radius: 6px; }
.flow-key b, .flow-key i, .flow-key small { grid-column: 1 / -1; }
.flow-key i { height: 8px; margin: 5px 0 3px; background: linear-gradient(90deg,#06101e,#086c97,#32c5b9,#f0ed9b); border-radius: 3px; }
.flow-key span:nth-of-type(2) { text-align: center; }.flow-key span:nth-of-type(3) { text-align: right; }
.flow-key small { font-size: 10px; color: #b5c8d5; margin-top: 4px; }
.motor-key { bottom: 48px; right: 18px; display: grid; gap: 3px; padding: 8px 12px; border-radius: 6px; background: #05080ddd; }
.motor-key i { display: inline-block; width: 8px; height: 8px; border-radius: 50%; margin-right: 7px; }
.motor-key b { font-weight: 500; color: #d6e1e9; margin-top: 4px; }
.render-view-label { top: 15px; right: 18px; margin: 0; padding: 4px 8px; background: #05080dcc; border-radius: 4px; }
@media (max-width:600px) { .flow-key { width: 180px; bottom: 44px; right: 9px; font-size: 10px; padding: 6px 8px; }.motor-key { font-size: 10px; right: 8px; bottom: 40px; } }
/* Keep scientific keys outside the image, including on narrow screens. */
.flow-key { position: static; width: auto; margin: 10px 20px 4px; padding: 0; background: transparent; color: var(--ink-2); }
.flow-key small { color: var(--muted); }
.motor-key { position: static; display: flex; flex-wrap: wrap; gap: 7px 18px; padding: 12px 20px 0; background: transparent; color: var(--ink-2); }
.motor-key b { margin: 0; color: var(--ink-2); }
.engine-now .engine-rules { padding-left: 1.3em; line-height: 1.55; }
.engine-now .engine-rules li { margin: 0 0 10px; }
.engine-now .table-scroll { overflow-x: auto; max-width: 100%; }
.engine-status { width: 100%; min-width: 640px; border-collapse: collapse; font-size: .9rem; }
.engine-status th, .engine-status td { padding: 10px 12px; border-bottom: 1px solid var(--rule); text-align: left; vertical-align: top; }
.engine-status thead th { color: var(--muted); font-weight: 500; }
.engine-status tbody th { font-weight: 600; width: 18%; }
.engine-status td:last-child { width: 26%; }
@media (max-width: 640px) {
  .engine-status { min-width: 0; }
  .engine-status thead { display: none; }
  .engine-status tr, .engine-status th, .engine-status td { display: block; width: auto !important; }
  .engine-status tbody th { padding-bottom: 2px; border-bottom: 0; }
  .engine-status tbody td { padding-top: 4px; }
}
/* 16 October films */
.show1016 .s16-card h4 { margin: 0 0 6px; }
.show1016 .s16-card .pills, .show1016 > .pills { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 6px; }
.show1016 .s16-card .cap { margin: 8px 0 4px; }
.show1016 .s16-card .review-record dd { overflow-wrap: anywhere; }
.motor-change .mc-pair { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr)); gap: 16px; margin: 12px 0; }
.motor-change .mc-still { margin: 0; } .motor-change .mc-still img { width: 100%; height: auto; display: block; border-radius: 6px; }
.motor-change .pills { display: flex; flex-wrap: wrap; gap: 6px; }
.motor-change td { vertical-align: top; }
