/* Quiet, coordinated motion for the anonymous standalone preview. */
:root { --motion-ease: cubic-bezier(.22,.72,.18,1); }
.hero-atlas { display:block; width:100%; height:auto; max-width:460px; margin:8px auto; }
.hero-atlas [data-atlas-modality] { transition:opacity .25s ease, stroke-width .25s ease; }
.hero-figure[data-highlight-modality]:not([data-highlight-modality=""]) .hero-atlas [data-atlas-modality] { opacity:.18; }
.hero-figure[data-highlight-modality="DNA"] [data-atlas-modality="DNA"],
.hero-figure[data-highlight-modality="RNA"] [data-atlas-modality="RNA"],
.hero-figure[data-highlight-modality="Protein"] [data-atlas-modality="Protein"] { opacity:1 !important; stroke-width:6.2; }
.hero-figure .figure-key { appearance:none; position:relative; border:0; background:transparent; text-align:left; color:inherit; padding:4px 6px 6px; border-radius:8px; font:12px/1.4 var(--sans); cursor:pointer; transition:background-color .2s,transform .2s; }
.hero-figure .figure-key[aria-pressed="true"] { background:#e8ece2; }
.hero-figure .figure-key:hover { background:#edf0e7; }
.hero-figure .figure-key:focus-visible { outline:2px solid var(--green); outline-offset:3px; }
.hero-figure .figure-key b { transition:transform .28s var(--motion-ease); }
.hero-figure .figure-key:hover b { transform:translateY(-2px); }
.motion-tabs { position:relative; isolation:isolate; }
.motion-tabs > button { position:relative; z-index:1; }
.motion-tabs > .motion-active-pill { position:absolute; left:0; top:0; z-index:0; background:#fff; border-radius:999px; box-shadow:0 1px 5px #17231d15; pointer-events:none; }
.filters.motion-tabs > button[aria-pressed="true"] { background:transparent; box-shadow:none; }
.catalogue-toolbar .motion-tabs > .motion-active-pill { background:var(--green); }
.catalogue-toolbar .filters.motion-tabs > button[aria-pressed="true"] { color:#fff; border-color:transparent; }
.ranking-bar-fill { transform-origin:left center; }
.motion-pending { transform:translateY(18px); }
.motion-pending:focus-within { transform:none; }
.button, .domain-link, .text-link, .resource-type > span, .task-arrow, .dialog-top button, .pagination button, .ranking-bottom button, #heatmap-expand { transition:transform .24s var(--motion-ease), background-color .2s, border-color .2s, box-shadow .24s; }
.button > span, .text-link > span, .domain-link > span { display:inline-block; transition:transform .24s var(--motion-ease); }
@media (hover:hover) and (pointer:fine) {
  .button:hover { transform:translateY(-2px); box-shadow:0 6px 15px -9px #203e3260; }
  .button:hover > span, .domain-link:hover > span { transform:translateY(2px); }
  .button-secondary:hover > span, .text-link:hover > span { transform:translate(2px,-2px); }
  .task-row:hover .task-arrow { transform:rotate(90deg); }
  .resource-card:hover .resource-type > span { transform:translate(3px,-3px); }
  .dialog-top button:hover { transform:rotate(90deg); }
  .pagination button:not(:disabled):hover { transform:translateY(-2px); }
}
.button:active, .pagination button:not(:disabled):active, .ranking-bottom button:active, #heatmap-expand:active { transform:translateY(0) scale(.975); }
.search-field { transition:border-color .2s,box-shadow .2s; }
.search-field:focus-within { border-color:#6c8c76; box-shadow:0 0 0 3px #3f766114; }
.ranking-search input, .ranking-setting select, .model-category select { transition:border-color .2s,box-shadow .2s; }
.ranking-search input:focus-visible, .ranking-setting select:focus-visible, .model-category select:focus-visible { outline:2px solid #6c8c76; outline-offset:3px; }
dialog.motion-dialog[open] { animation:none !important; }
dialog.motion-dialog[open]::backdrop, #task-dialog.motion-dialog[open]::backdrop { animation:atlas-backdrop-in .3s ease both; }
dialog.motion-dialog.motion-closing::backdrop, #task-dialog.motion-dialog.motion-closing::backdrop { animation:atlas-backdrop-out .24s ease both; }
@keyframes atlas-backdrop-in { from { background-color:rgba(15,28,22,0); } to { background-color:rgba(15,28,22,.38); } }
@keyframes atlas-backdrop-out { from { background-color:rgba(15,28,22,.38); } to { background-color:rgba(15,28,22,0); } }
.scaling-crosshair { animation:atlas-guide-in .18s ease both; }
@keyframes atlas-guide-in { from { opacity:0; } to { opacity:1; } }
@media (max-width:550px) {
  .hero-figure .figure-key { padding-inline:3px; }
  .hero-atlas { margin-block:8px; }
}
@media (prefers-reduced-motion:reduce) {
  html { scroll-behavior:auto !important; }
  dialog.motion-dialog::backdrop, #task-dialog.motion-dialog::backdrop { animation:none !important; transition:none !important; }
  *, *::before, *::after { animation:none !important; transition:none !important; }
  .motion-pending { opacity:1; transform:none; }
}
@media print { .motion-pending { opacity:1; transform:none; } }
