/* SMRMap: compare two reactor types (/explainers/compare/). Loaded by that page only; the 3D views' own styles come from
   family.css on request. Site tokens only; the page's one breakpoint is the existing 800 px. */
.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden;
  clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; border: 0;
}
.explainer-page.type-compare { max-width: none; }
.type-compare .cmp-pick { display: flex; flex-wrap: wrap; align-items: flex-end; gap: .75rem 1rem; margin: 1rem 0; }
/* WebKit paints a long selected option past its select; the field clips it, with room left for the focus outline */
.type-compare .cmp-pick-field { display: flex; flex: 1 1 15rem; flex-direction: column; gap: .3rem; min-width: 0; overflow: clip; padding: 6px; margin: -6px; }
.type-compare .cmp-pick label { font-size: .92rem; font-weight: 600; color: var(--muted); }
.type-compare .cmp-pick select {
  width: 100%; min-height: 44px; padding: .4rem .6rem; border: 1px solid var(--border); border-radius: 6px;
  background: var(--bg); color: var(--text); font: inherit;
}
.type-compare .button { min-height: 44px; }
.type-compare .button[aria-disabled="true"] { opacity: .65; cursor: progress; }
.type-compare select:focus-visible,
.type-compare button:focus-visible,
.type-compare input:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.type-compare .cmp-note {
  display: flex; align-items: flex-start; gap: .75rem; margin: .75rem 0; padding: .6rem .75rem; border: 1px solid var(--border);
  border-left: 3px solid var(--warn); border-radius: 8px; background: var(--panel);
}
.type-compare .cmp-note-lines { flex: 1 1 auto; margin: 0; padding: 0; list-style: none; }
.type-compare .cmp-note-lines li + li { margin-top: .3rem; }
.type-compare .cmp-note-dismiss {
  flex: none; min-width: 44px; min-height: 44px; border: 1px solid var(--border); border-radius: 6px;
  background: var(--bg); color: var(--text); font: inherit; font-size: 1.2rem; cursor: pointer;
}
.type-compare .cmp-panels,
.type-compare .cmp-views,
.type-compare .cmp-source-columns { display: grid; grid-template-columns: minmax(0, 1fr); gap: 1rem; }
.type-compare .cmp-panel { display: flex; flex-direction: column; min-width: 0; }
.type-compare .cmp-side { margin: 0; font-size: .85rem; color: var(--muted); }
.type-compare .cmp-type { margin: .1rem 0 0; font-size: 1.15rem; }
.type-compare .cmp-schematic { flex: 1 1 auto; display: flex; }
.type-compare .cmp-figure { flex: 1 1 auto; margin: .5rem 0 0; }
.type-compare .cmp-3d { margin: 1rem 0; }
.type-compare .cmp-3d-offer { margin: 0; }
.type-compare .cmp-3d-status:empty { display: none; }
.type-compare .cmp-viewer { margin-bottom: 1rem; }
.type-compare .cmp-shared {
  display: flex; flex-wrap: wrap; align-items: flex-end; gap: .75rem 1.5rem; margin: 0 0 1rem; padding: .75rem 1rem;
  border: 1px solid var(--border); border-radius: var(--radius); background: var(--panel);
}
.type-compare .cmp-shared > legend { padding: 0 .35rem; font-weight: 650; }
.type-compare .cmp-shared-view { display: flex; flex-wrap: wrap; gap: .25rem .5rem; margin: 0; padding: 0; border: 0; }
.type-compare .cmp-shared-view > legend { width: 100%; margin-bottom: .2rem; padding: 0; font-size: .85rem; font-weight: 600; color: var(--muted); }
.type-compare .cmp-radio { display: inline-flex; align-items: center; gap: .35rem; min-height: 44px; padding: 0 .5rem; cursor: pointer; }
.type-compare .cmp-radio input { width: 1.1rem; height: 1.1rem; margin: 0; accent-color: var(--accent); }
.type-compare .cmp-shared-power { flex: 1 1 14rem; min-width: 0; }
.type-compare .cmp-shared-power label { display: block; font-size: .85rem; font-weight: 600; color: var(--muted); }
.type-compare .cmp-shared-power input { display: block; width: 100%; min-height: 44px; margin: 0; accent-color: var(--accent); }
.type-compare .cmp-shared-power input:disabled { opacity: .55; cursor: not-allowed; }
.type-compare .cmp-power-ends { display: flex; justify-content: space-between; font-size: .8rem; color: var(--muted); }
.type-compare .cmp-power-note { margin: .25rem 0 0; font-size: .82rem; color: var(--muted); }
.type-compare .cmp-view { min-width: 0; }
.type-compare .cmp-view-name { margin: 0 0 .35rem; font-weight: 600; }
.type-compare .cmp-view-host:empty { aspect-ratio: 3 / 4; max-height: 78vh; border: 1px solid var(--border); border-radius: var(--radius); background: var(--panel); }
.type-compare .cmp-view-note { margin-top: .5rem; padding: .6rem .75rem; border: 1px solid var(--border); border-radius: 8px; background: var(--panel); }
.type-compare .cmp-view-note p { margin: 0 0 .5rem; }
/* Shared presets/animation remain above; native part buttons and explanations belong to each model. */
.type-compare .cmp-view .family-tour,
.type-compare .cmp-view .family-controls > .family-group:first-child,
.type-compare .cmp-view .family-power,
.type-compare .cmp-view .family-close { display: none; }
.type-compare .cmp-view .family-controls { border: 0; }
.type-compare .cmp-view .family-status { min-height: 0; }
.type-compare .cmp-parts-source { display: inline-block; margin-top: .5rem; }
.type-compare .cmp-view .family-3d.family-3d--split .family-body { grid-template-columns: minmax(0, 1fr); }
/* positioned, so the hidden marker text inside the scrolling table is clipped by it rather than widening the page */
.type-compare .table-wrap { position: relative; }
.type-compare .cmp-table { min-width: 0; }
.type-compare .cmp-table th[scope="row"] { width: 28%; font-weight: 600; }
.type-compare .cmp-table td { width: 36%; overflow-wrap: anywhere; }
.type-compare .cmp-table caption { caption-side: top; }
.type-compare .cmp-col-example { display: block; font-size: .82rem; font-weight: 400; color: var(--muted); }
.type-compare .cmp-source-heading { margin: .5rem 0 .25rem; font-size: 1rem; }
.type-compare .cmp-noscript ul { margin: .25rem 0 1rem; }
@media (min-width: 800px) {
  .type-compare .cmp-panels,
  .type-compare .cmp-views,
  .type-compare .cmp-source-columns { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
}
@media (max-width: 640px) {
  .type-compare .cmp-table th, .type-compare .cmp-table td { padding: .5rem .4rem; }
}
@media (prefers-reduced-motion: reduce) {
  .type-compare *, .type-compare *::before, .type-compare *::after { transition: none !important; animation: none !important; }
}
@media print {
  .type-compare .cmp-pick, .type-compare .cmp-3d, .type-compare .cmp-note { display: none; }
}
