/* Topic-specific visuals only. Typography, layout, theme and components are
   loaded directly from the computational-chemistry reference showcase. */
[hidden] { display: none !important; }
.fluorescence p { text-wrap: pretty; }
.skip-link { position: fixed; left: 16px; top: -80px; z-index: 100; padding: 10px 16px; background: #fff; color: #2563eb; border: 1px solid var(--line); border-radius: 8px; }
.skip-link:focus { top: 12px; }
.section-anchor { display: block; scroll-margin-top: 100px; }
.hero-microscopy { position: absolute; inset: 68px 22px 145px 145px; z-index: 1; display: flex; align-items: center; }
.hero-microscopy svg { width: 100%; height: 100%; }
.detection-visual .axis-callout { max-width: 130px; padding-right: 8px; background: none; }
.detection-visual .axis-callout .method-line { max-width: 114px; }
.detection-visual .axis-callout div > span { display: block; }
.detection-visual .axis-callout strong { font-size: 38px; }
.fluorescence .input-toolbar select { max-width: 150px; }
.record-button { border-radius: 6px; padding: 8px 6px; }
.record-button[aria-pressed=true] { background: #e7f3f3; }
.record-button .file-name { font-family: var(--sans); white-space: normal; line-height: 1.5; font-size: 10px; }
.record-button .file-summary { font-family: var(--sans); }
.record-button .file-type { font-size: 9px; }
.record-empty { font-size: 11px; color: var(--muted); padding: 20px 4px; }
.fluorescence .input-tree { scrollbar-color: #afc7d0 #f3f7fa; }
.fluorescence .input-selection { min-height: 54px; }
.fluorescence .input-selection strong { white-space: normal; }
.fluorescence [data-preview-seek] { touch-action: none; }
.preview-controls output { font: 9px Arial; white-space: nowrap; font-variant-numeric: tabular-nums; }
.workflow-caption { font-size: 11px; color: var(--muted); padding: 0 18px 16px; min-height: 60px; line-height: 1.7; }
.process-player:fullscreen { width: 100%; height: 100%; border: 0; padding: 18px max(18px, calc((100vw - 1280px) / 2)); overflow-y: auto; background: #f6f8fb; }
.process-player:fullscreen .inline-film-frame { min-height: 0; flex: 1 1 auto; }
.process-player:fullscreen .workflow-caption { min-height: 0; }
.evidence-intro { margin-bottom: 18px; }
.evidence-intro h3 { font-size: 22px; }
.evidence-intro p { margin-top: 6px; color: var(--muted); font-size: 12px; max-width: 760px; }
.dataset-controls { margin-bottom: 22px; border-radius: 10px; }
.dataset-controls button { border-radius: 6px; }
.detection-results-layout { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(230px, 1fr); gap: 30px; align-items: start; }
.score-chart { height: 335px; width: 100%; min-width: 0; }
.score-chart svg { display: block; width: 100%; height: 100%; overflow: visible; }
.chart-grid { stroke: #dce4ef; stroke-width: 1; }
.chart-axis { fill: #526078; font-size: 11px; }
.chart-line { fill: none; stroke: #0b7f83; stroke-width: 2.5; stroke-linejoin: round; }
.chart-area { fill: #edf6f5; }
.chart-selection { stroke: #9bb7c6; stroke-dasharray: 4 4; }
.chart-point { cursor: pointer; outline: none; }
.chart-point .point-dot { fill: #fff; stroke: #0b7f83; stroke-width: 2; }
.chart-point[aria-pressed=true] .point-dot { fill: #0b7f83; }
.chart-point:focus-visible .point-focus, .chart-point:hover .point-focus { stroke: #2563eb; stroke-width: 1.5; fill: #e7f3f3; }
.chart-value { fill: #0b7f83; font-size: 12px; font-weight: 600; }
.score-inspector { padding: 18px 20px; border: 1px solid var(--line); border-radius: 12px; background: #fff; min-width: 0; }
.score-inspector .eyebrow { font-size: 9px; }
.score-inspector h3 { font-size: 19px; line-height: 1.45; }
.score-inspector > p { font-size: 12px; color: var(--muted); margin-top: 12px; }
.score-inspector .readouts { grid-template-columns: 1fr 1fr; }
.score-inspector .readout { padding: 10px; }
.score-inspector .readout strong { font-size: 20px; }
.submission-navigation { display: flex; justify-content: space-between; margin-top: 18px; gap: 14px; }
.submission-navigation button, .inspect-animation { font-size: 11px; color: #36776f; }
.inspect-animation { text-align: left; margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--line); width: 100%; }
.table-view caption { text-align: left; padding: 8px 0 12px; font-size: 11px; }
.source-links { display: flex; flex-wrap: wrap; gap: 10px 20px; font-size: 11px; margin-top: 20px; }
.source-links a { color: #36776f; text-decoration: underline; text-underline-offset: 4px; }
.dataset-results { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.dataset-result { padding: 16px; text-align: left; border: 1px solid var(--line); border-radius: 10px; background: #fff; min-width: 0; }
.dataset-result:hover, .dataset-result:focus-visible { border-color: #0b7f83; }
.dataset-result h4 { font-size: 12px; font-weight: 550; color: var(--ink); margin: 0 0 12px; }
.dataset-result .dataset-values { display: flex; justify-content: space-between; align-items: center; gap: 8px; color: var(--muted); font-size: 11px; font-variant-numeric: tabular-nums; }
.dataset-result .dataset-values strong { color: #0b7f83; font-weight: 550; }
.dataset-result > span { display: block; color: var(--muted); font-size: 10px; margin-top: 12px; }
.dataset-bars { display: grid; gap: 4px; margin-top: 10px; }
.dataset-bars i { display: block; height: 4px; width: var(--score); background: #b9cde7; border-radius: 2px; }
.dataset-bars i:last-child { background: #0b7f83; }
.comparison-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-top: 24px; }
.comparison-picker { border-radius: 10px; }
.comparison-picker button { border-radius: 6px; }
.comparison-status { min-height: 22px; margin-top: 12px; font-size: 11px; color: var(--muted); }
.comparison-status[data-state=error] { color: #a66022; }
.comparison-status + .comparison-grid { margin-top: 16px; }
.comparison-grid figure { min-width: 0; margin: 0; }
.comparison-grid figcaption { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 6px; font-size: 10px; color: var(--muted); margin-bottom: 12px; }
.comparison-grid figcaption > span { font-size: 9px; letter-spacing: .08em; }
.comparison-grid figcaption strong { font-weight: 500; }
.comparison-grid svg { width: 100%; height: auto; border-radius: 8px; }
.spot-reference { fill: none; stroke: #81b9ff; stroke-width: 3; }
.spot-matched { fill: none; stroke: #56c596; stroke-width: 3; }
.spot-extra { fill: none; stroke: #f4a259; stroke-width: 4; }
.spot-missed { fill: none; stroke: #c59ce6; stroke-width: 4; }
.detection-controls { margin-top: 20px; }
.detection-controls button { display: inline-flex; align-items: center; gap: 7px; }
.detection-controls i { font-style: normal; font-size: 18px; line-height: 12px; }
.legend-ring { width: 10px; height: 10px; border: 2px solid; border-radius: 50%; }
.reference-key { color: #2b6fc8; }.match-key { color: #238361; }.extra-key { color: #a66022; }.missed-key { color: #8853b0; }
@media (max-width: 1150px) { .detection-results-layout { grid-template-columns: 1fr; } .score-inspector .readouts { max-width: 400px; } }
@media (max-width: 860px) {
 .hero-microscopy { inset: 62px 16px 130px 120px; }
 .detection-visual .axis-callout { max-width: 104px; bottom: 100px; }
 .detection-visual .axis-callout strong { font-size: 31px; }
 .detection-visual .axis-callout .method-line { max-width: 95px; }
 .dataset-results { grid-template-columns: repeat(2, minmax(0, 1fr)); }
 .comparison-grid { grid-template-columns: 1fr; }
 .score-inspector { padding: 16px; }
 .workflow-caption { min-height: 64px; }
 .replay-reading { flex-wrap: wrap; }
 .replay-reading > .replay-caption { flex-basis: 70%; }
 .fluorescence .inline-film-frame { min-height: 0; aspect-ratio: 16/10; }
}
@media (max-width: 430px) {
 .detection-visual .visual-heading { align-items: flex-start; }
 .detection-visual .visual-heading > span:first-child { max-width: 150px; line-height: 1.6; }
 .dataset-results { grid-template-columns: 1fr; }
 .fluorescence .input-toolbar select { max-width: 125px; }
 .fluorescence .workbench-chrome { flex-wrap: wrap; }
 .score-inspector .readouts { gap: 8px; }
}
