/* Only the additions to the deployed homepage; the original layout lives in styles.css. */
html:not([data-palette=dark]) .classic-home {
  --surface:#fff;--surface-quiet:#f3f7f8;--paper:#f8f6f0;--ink:#182332;
  --muted:#5e6876;--line:#d9dfeb;--teal:#277a78;--copper-dark:#7e5135;
}
.classic-home [id] {scroll-margin-top:86px;}
.classic-home .hero {overflow:clip;grid-template-columns:minmax(0,.93fr) minmax(0,1.07fr);align-items:center;align-content:center;gap:32px clamp(28px,4%,72px);padding-block:32px 112px;}
.classic-home {--section-edge:max(40px,calc((100% - 76rem)/2));}
.classic-home main > :is(.hero,.section) {padding-inline:var(--section-edge);}
@media(max-width:720px){.classic-home {--section-edge:18px;}}
.hero-brand {grid-column:1/-1;justify-self:center;text-align:center;}
.classic-home .hero h1 {margin:0;font-size:4.5rem;line-height:1;color:var(--ink);}
.brand-expansion {margin:6px 0 0;color:var(--muted);font-size:.88rem;font-weight:600;line-height:1.4;}
.hero-claim {margin:0 0 14px;color:var(--ink);font-size:3rem;font-weight:750;line-height:1.06;}
.hero-claim span {display:block;}
.classic-home .hero-lede {display:grid;margin:0 0 18px;max-width:49ch;font-size:1.04rem;line-height:1.55;}
/* Share the taller translation's space so the actions do not jump on a language switch. */
:is(.hero-lede,.install-note) > span {grid-area:1/1;align-self:start;}
:is(.hero-lede,.install-note) > span[hidden] {display:block;visibility:hidden;}
.classic-home .install-note {display:grid;margin:10px 0 0;color:var(--muted);font-size:.84rem;line-height:1.5;max-width:62ch;}
.classic-home .hero-mark {inset:0;}
/* The eye and wordmark span 39–56% of the artwork height. Keep that band above the crop. */
.classic-home .hero-fish-main {top:100%;right:-3%;bottom:auto;width:min(66%,700px);translate:0 calc(-56% - 14px);animation:none;}
.classic-home .hero-fish-main[data-live=true] {transform:translate3d(calc(var(--fish-x) * .32),calc(var(--fish-y) * .08),0) rotate(var(--fish-rotate));}
.fish-tap {position:absolute;inset:0;width:100%;height:100%;border:0;padding:0;background:transparent;pointer-events:auto;cursor:pointer;clip-path:polygon(0 50%,10% 31%,29% 11%,45% 2%,58% 6%,71% 26%,99% 7%,96% 40%,100% 71%,75% 61%,58% 88%,40% 99%,23% 78%,10% 64%);}
.hero-fish-main:has(.fish-tap:focus-visible) .fish-lids {outline:3px solid var(--ink);border-radius:50%;}
.fish-tap[hidden] {display:none;}
.fish-lids {z-index:2;pointer-events:none;}
.fish-tap {z-index:3;}
/* Split the existing transparent artwork at the clear ring around the pupil. */
@media(prefers-reduced-motion:no-preference) and (any-hover:hover) and (any-pointer:fine){
  .hero-fish-main[data-gaze] {background-image:none;}
  .hero-fish-main[data-gaze]::before,.hero-fish-main[data-gaze] .fish-pupil {
    content:"";position:absolute;inset:0;background:url("taffish-logo.webp") center/contain no-repeat;pointer-events:none;
  }
  .hero-fish-main[data-gaze]::before {mask-image:radial-gradient(ellipse 3.3% 4.18% at 11.67% 44.65%,transparent 97%,black 100%);}
  .hero-fish-main[data-gaze] .fish-pupil {clip-path:ellipse(3.2% 4.05% at 11.67% 44.65%);transform:translate(var(--look-x,0%),var(--look-y,0%));transition:transform .12s ease-out;}
}
@media(prefers-reduced-motion:no-preference){
  .fish-lids {position:absolute;left:7.15%;top:38.9%;width:8.9%;height:11.3%;background:linear-gradient(#9f6b4a,#9f6b4a) top/100% 0 no-repeat,linear-gradient(#9f6b4a,#9f6b4a) bottom/100% 0 no-repeat;animation:watermark-blink 9s linear infinite;}
  @keyframes watermark-blink {0%,67%,70%,100%{background-size:100% 0;}68.2%,68.7%{background-size:100% 48%;}}
}
@media(max-width:720px){
  .classic-home .hero h1 {font-size:3rem;}
  .brand-expansion {font-size:.8rem;}
  .hero-claim {margin-bottom:10px;font-size:2.2rem;}
}
.classic-home .button.primary {color:var(--on-action);}

.classic-home .mast-example {min-width:0;--editor-font:"SFMono-Regular",Menlo,Consolas,"Liberation Mono",monospace;}
.script-console {
  color: var(--ink);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 6px;
  overflow: hidden;
}
.example-caption { display: flex; align-items: center; gap: 14px; padding: 3px 14px; min-height: 36px; background: var(--surface-quiet); border-bottom: 1px solid var(--line); }
.terminal-mark { padding-right: 14px; border-right: 1px solid var(--line); color: var(--blue); font: 650 .9rem var(--editor-font); }
.example-caption h2 { margin: 0; font: 550 .9rem var(--editor-font); color: var(--ink); }
.script-modes { display: flex; flex-wrap: wrap; align-items: center; gap: 4px; margin: 0 0 10px; }
.script-modes[hidden] { display: none; }
.script-modes button { padding: 6px 10px; min-height: 34px; border: 0; border-bottom: 2px solid transparent; background: transparent; color: var(--muted); line-height: 1.25; font-family: inherit; font-size: .88rem; font-weight: 620; cursor: pointer; }
.script-modes button:hover, .script-modes button[aria-pressed="true"] { color: var(--teal); border-color: var(--teal); }
.script-console :focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; }
.command-pair { min-width: 0; margin: 0; padding: 0 13px; }
.command-pair > div { padding: 8px 0; }
.command-pair > div + div { border-top: 1px solid var(--line); }
.command-pair dt { color: var(--muted); font-size: .84rem; }
.command-pair dd { margin: 5px 0 0; }
.command-pair code {
  font-family: var(--editor-font);
  font-size: .91rem;
  overflow-wrap: anywhere;
}
.command-pair code { display: block; font-variant-ligatures: none; line-height: 1.38; white-space: pre-wrap; tab-size: 4; }
.syn-keyword { color: var(--syntax-key); }
.syn-call { color: var(--blue-dark); }
.syn-option { color: var(--blue); }
.syn-file { color: var(--syntax-file); }
.syn-variable { color: var(--blue-dark); }
.example-stack, .example-notes { display: grid; }
.example-stack > *, .example-notes > * { grid-area: 1/1; }
.example-stack > [aria-hidden="true"], .example-notes [aria-hidden="true"] { visibility: hidden; }
.example-stack {grid-template-rows:auto auto;}
.example-stack .command-pair {display:grid;grid-area:1/1/3/2;grid-template-rows:subgrid;}
.example-stack .command-pair > div { display:grid; grid-template-rows:max-content 1fr; align-content:start; }
.command-pair dt { display:flex; gap:8px; align-items:baseline; font:600 .8rem/1.5 var(--editor-font); color:var(--muted); }
.command-pair dt::before { content:"#" / ""; color:var(--muted); }
.command-pair[data-context=nextflow] dt::before { content:"//" / ""; }
.example-stack code { white-space:normal; }
.code-line { display:block; position:relative; padding-inline-start:2.15em; white-space:pre-wrap; }
.line-no { position:absolute; inset:0 auto 0 0; width:1.55em; border-right:1px solid var(--line); color:var(--muted); text-align:center; user-select:none; }
.line-no::before { content:attr(data-number); }
.command-pair dd { margin-top:4px; }

.prefix-play { margin-inline-start: auto; background: transparent; color: var(--blue); border: 0; cursor: pointer; width: 32px; height: 30px; }
.prefix-play svg { width: 16px; height: 16px; }
.prefix-play .stop-shape, .playing .prefix-play .play-shape { display: none; }
.playing .prefix-play .stop-shape { display: block; }
.command-pair [data-added] { display:inline-block;white-space:pre; }
.script-console b { background: var(--mark); color: var(--copper-dark); font-weight: 700; box-decoration-break: clone; }
.script-console [hidden] { display: none; }
.example-note { color: var(--muted); font-size: .87rem; line-height: 1.5; margin: 10px 0 0; }
.example-note strong {color:var(--ink);font-weight:650;white-space:nowrap;}
.script-console { border:1px solid var(--line); border-top:2px solid var(--blue); box-shadow:0 12px 38px -22px color-mix(in srgb,var(--blue-dark) 38%,transparent); }
/* Hold the two readable states; removal is brisk, insertion slightly slower. */
@media(prefers-reduced-motion:no-preference) {
 .playing .command-pair:not([inert]) [data-added] {
   animation:prefix-edit 4.8s cubic-bezier(.35,.02,.22,1) infinite;overflow:clip;vertical-align:bottom;
 }
 @keyframes prefix-edit {
   0%,32%,78%,100% { width:var(--insert-width);opacity:1; }
   42%,62% { width:.1px;opacity:0; }
 }
}

.position-map {max-width:76rem;margin-inline:auto;display:grid;grid-template-columns:minmax(0,55fr) minmax(0,45fr);gap:24px;align-items:center;}
.system-plate {display:grid;grid-template-columns:minmax(0,47fr) minmax(0,53fr);align-items:center;}
.layer-stage {grid-area:1/2;position:relative;width:100%;aspect-ratio:435/400;}
.system-leaders {position:absolute;inset:0;width:100%;height:100%;color:var(--muted);overflow:visible;pointer-events:none;}
.system-leaders {--route:var(--copper-dark);}
.position-map {--face:var(--blue-dark);--top-fill:color-mix(in srgb,var(--face) 6%,var(--surface));--front-fill:color-mix(in srgb,var(--face) var(--front,14%),var(--surface));--side-fill:color-mix(in srgb,var(--face) var(--side,31%),var(--surface));}
.system-leaders .pyramid-limit {--face:var(--muted);--front:5%;--side:10%;pointer-events:none;}
.system-leaders .pyramid-limit path {stroke:color-mix(in srgb,var(--muted) 30%,var(--line));}
.system-leaders .lead-shell {--face:var(--route);--front:20%;--side:38%;color:var(--route);}
.system-leaders :is(.sheet-top,.sheet-front,.sheet-side) {stroke:color-mix(in srgb,var(--face) 52%,var(--line));stroke-width:1;stroke-linejoin:round;vector-effect:non-scaling-stroke;}
.system-leaders .sheet-top {fill:color-mix(in srgb,var(--face) 6%,var(--surface));}
.system-leaders .sheet-front {fill:color-mix(in srgb,var(--face) var(--front,14%),var(--surface));}
.system-leaders .sheet-side {fill:color-mix(in srgb,var(--face) var(--side,31%),var(--surface));}
.system-leaders :is(.leader,.pin) {stroke:currentColor;stroke-width:1;vector-effect:non-scaling-stroke;}
.system-leaders .pin {fill:var(--surface);}
.system-leaders :is(.hub-lead,.command-route) {stroke:var(--route);stroke-width:2.6;stroke-linecap:round;}
.system-leaders stop {stop-color:var(--route);}
.system-leaders .command-route {stroke:url(#route-ink);}
.system-leaders .hub-lead {stroke:url(#branch-ink);}
.hub-port-label {fill:var(--route);font:650 14px ui-monospace,Menlo,monospace;}
.system-leaders[data-connected] .hub-port-label {display:none;}
.system-leaders .ports {stroke:var(--route);stroke-width:1.6;fill:var(--surface);}
.system-leaders .route-name {fill:var(--route);font:750 19px ui-monospace,Menlo,monospace;}
.system-leaders .drawing-index {fill:currentColor;font:650 16px ui-monospace,Menlo,monospace;display:none;}
.hub-cloud {position:relative;min-width:0;}
.hub-heading {margin:0 0 14px;text-align:center;font-size:1rem;background:transparent;}
.part-targets {position:absolute;inset:66% 3% 1.5%;display:grid;grid-template-columns:repeat(3,1fr);}
.part-targets[hidden],.hub-files[hidden],.hub-files [hidden] {display:none;}
.part-targets button {position:relative;padding:0;border:0;background:transparent;color:var(--blue-dark);cursor:pointer;border-radius:3px;}
.part-targets button:focus-visible,.axis-row:focus-visible {outline:2px solid var(--blue);outline-offset:1px;}
.hub-files {display:grid;position:relative;margin-top:10px;min-width:0;color:var(--ink);}
.hub-cloud:not([data-preview]) .hub-files {visibility:hidden;}
/* Stack all previews in one intrinsic grid cell, so even translated content reserves its space once. */
.hub-files [role=group] {grid-area:1/1;display:grid;align-content:start;gap:10px;min-width:0;padding:12px 14px;border:1px solid var(--line);border-inline-start:2px solid var(--blue);border-radius:4px;background:var(--surface);}
.hub-files [role=group][hidden] {display:grid;visibility:hidden;pointer-events:none;}
.artifact-heading {display:flex;align-items:center;gap:11px;min-width:0;}
.artifact-heading > div {flex:1;display:flex;flex-direction:row-reverse;flex-wrap:wrap-reverse;align-items:baseline;justify-content:space-between;gap:2px 12px;}
.file-glyph {width:21px;height:27px;flex:none;stroke:var(--blue-dark);stroke-width:1.55;fill:var(--surface-quiet);stroke-linejoin:round;}
.file-glyph .file-symbol,.registry-artifact svg {fill:none;stroke:var(--copper-dark);stroke-linecap:round;}
.artifact-heading small {color:var(--muted);font:600 .76rem/1.5 system-ui,sans-serif;}
.artifact-heading h4 {margin:3px 0 0;font:650 .98rem/1.3 ui-monospace,Menlo,monospace;}
.artifact-code,.registry-artifact code {margin:0;padding:10px 12px;min-width:0;border-radius:3px;background:var(--surface-quiet);color:var(--ink);font:500 .89rem/1.55 ui-monospace,Menlo,monospace;white-space:pre-wrap;overflow-wrap:anywhere;}
.artifact-code code {padding:0;background:none;color:inherit;font:inherit;white-space:inherit;}
.artifact-code span,.registry-artifact a {color:var(--blue-dark);}
.hub-files b {color:var(--copper-dark);white-space:nowrap;}
.registry-artifact {display:grid;grid-template-columns:20px minmax(0,1fr);align-items:center;gap:5px 8px;}
.registry-artifact a {display:inline-flex;align-items:center;gap:7px;justify-self:start;text-underline-offset:3px;font-weight:700;}
.registry-artifact svg {width:21px;height:21px;stroke:currentColor;stroke-width:1.6;}
.registry-artifact code {grid-column:1/-1;}
.build-arrow {color:var(--muted);}
.help-excerpt {font-size:.85rem;line-height:1.45;}
.help-intro {display:flex;justify-content:space-between;align-items:baseline;gap:10px;}
.help-intro a {color:var(--blue-dark);font-weight:650;}
.help-syntax {display:block;margin:2px 0 7px;overflow-wrap:anywhere;}
.help-options {display:grid;grid-template-columns:max-content minmax(0,1fr);gap:3px 12px;border-top:1px solid var(--line);padding-top:6px;margin:0;}
.help-options dd {color:var(--muted);margin:0;}
.upstream-help {display:flex;flex-wrap:wrap;align-items:baseline;gap:2px 12px;margin:7px 0 0;}
.upstream-help span {color:var(--muted);}
@media(prefers-reduced-motion:no-preference){
  .hub-files [role=group]:not([hidden]) {animation:file-open .19s ease-out;}
  @keyframes file-open {from {opacity:.4;transform:translateY(4px);}}
}
.hub-cloud[data-preview] .featured-parcel {--parcel-front:color-mix(in srgb,var(--blue) 45%,var(--surface));}
.hub-cloud[data-preview=script] .art-script,.hub-cloud[data-preview=image] .art-image,.hub-cloud[data-preview=help] .art-help {--part-ink:var(--blue-dark);--part-scale:1.24;--part-rise:-3px;--label-scale:1.07;--label-weight:750;--part-fill:var(--top-fill);}
.package-part :is(.artifact-mark,.facet-top) {stroke:var(--part-ink,var(--blue-dark));}
@media(prefers-reduced-motion:no-preference){
  .hub-cloud[data-preview] .cloud-canopy {translate:0 -4px;}
  .cloud-canopy {transition:translate .18s ease-out;}
  .part-body,.part-labels text {transform-box:fill-box;transform-origin:center;transition:transform .18s cubic-bezier(.2,.7,.3,1);}
  .part-body {transform:translateY(var(--part-rise,0px)) scale(var(--part-scale,1));}
  .part-labels text {transform:scale(var(--label-scale,1));}
  .hub-cloud[data-preview=script] .script-ink {stroke-dasharray:1;animation:write-args .85s ease-out both;}
  .hub-cloud[data-preview=image] .image-arrow {animation:registry-arrow .8s ease-out both;}
  .hub-cloud[data-preview=help] .help-leaf {transform-box:fill-box;transform-origin:left center;animation:open-manual .75s ease-out both;}
  @keyframes write-args {from {stroke-dashoffset:1;} to {stroke-dashoffset:0;}}
  @keyframes registry-arrow {0% {opacity:.3;transform:translate(-6px,6px);} 100% {opacity:1;transform:none;}}
  @keyframes open-manual {0% {transform:scaleX(.22) skewY(-15deg);} 100% {transform:none;}}
}
@media(hover:hover) and (prefers-reduced-motion:no-preference){
  .hub-inventory:hover .cloud-canopy {translate:0 -4px;}
}
.hub-branch {display:inline-block;color:var(--blue-dark);text-decoration:none;}
.hub-branch span {font-size:.78em;color:var(--muted);}
.hub-branch:hover,.hub-branch:focus-visible {text-decoration:underline;text-underline-offset:.2em;}
.hub-inventory {position:relative;width:min(100%,14.5rem);margin-inline:auto;aspect-ratio:248/235;}
.cloud-cutaway {display:block;width:100%;height:100%;overflow:visible;}
.hub-cloud :is(.facet-top,.facet-front,.facet-side) {stroke:color-mix(in srgb,var(--face) 52%,var(--line));stroke-width:1;stroke-linejoin:round;vector-effect:non-scaling-stroke;}
.hub-cloud .facet-top {fill:var(--top-fill);}
.hub-cloud .facet-front {fill:var(--front-fill);}
.hub-cloud .facet-side {fill:var(--side-fill);}
.canopy-cut {fill:none;stroke:color-mix(in srgb,var(--face) 32%,var(--line));stroke-width:1;stroke-linecap:round;}
.parcel-collection {--parcel-edge:var(--muted);--parcel-front:var(--surface-quiet);--parcel-top:var(--surface);--parcel-side:var(--side-fill);}
.featured-parcel {--parcel-edge:var(--blue-dark);--parcel-top:color-mix(in srgb,var(--blue) 12%,var(--surface));--parcel-front:color-mix(in srgb,var(--blue) 30%,var(--surface));--parcel-side:color-mix(in srgb,var(--blue) 55%,var(--surface));}
.parcel-callout,.artifact-mark {fill:none;stroke:var(--blue-dark);stroke-linejoin:round;stroke-linecap:round;}
.parcel-callout {stroke-width:1.25;}
.package-caption {font:650 13px system-ui,sans-serif;fill:var(--blue-dark);}
.box-inside {fill:var(--surface);stroke:var(--line);}
.package-part :is(.facet-top,.facet-front,.facet-side) {stroke:var(--blue-dark);}
.package-part .facet-front {fill:var(--part-fill,var(--surface-quiet));}
.artifact-mark {stroke-width:2.4;}
.artifact-mark.fine {stroke-width:1.5;}
.part-labels {fill:var(--ink);font:600 12.5px system-ui,sans-serif;}
.part-labels text {font-weight:var(--label-weight,600);fill:var(--part-ink,var(--ink));}
.position-axis {grid-area:1/1;list-style:none;border:0;padding:0;margin:0;min-width:0;height:78%;display:grid;grid-template-rows:repeat(4,1fr);}
.axis-row {display:grid;grid-template-columns:minmax(0,1fr) 1.6rem;align-items:center;gap:8px;min-width:0;}
.axis-row .layer-index {grid-area:1/2;}
.axis-row .axis-copy {grid-area:1/1;}
.tier-heading {display:flex;flex-wrap:wrap;align-items:baseline;gap:2px 10px;}
.tier-role {font-size:.79rem;font-weight:650;color:var(--muted);}
.system-leaders .sheet {transform-box:fill-box;transform-origin:center;}
.tier-hit {fill:transparent;pointer-events:fill;}
.axis-copy {transform-origin:left center;min-width:0;}
.system-leaders .is-traced :is(.leader,.pin) {stroke-width:2;}
.system-leaders .is-traced .sheet path {stroke-width:1.6;}
.axis-row.is-traced .layer-index {font-weight:800;}
@media(prefers-reduced-motion:no-preference){
  .sheet,.axis-copy,.limit-faces {transition:transform .24s cubic-bezier(.2,.7,.25,1),opacity .18s;}
  .is-traced .sheet {transform:scale(1.28);}
  .is-traced .axis-copy {transform:scale(1.22);}
  [data-neighbor=above-near] {--shift:-15px;}
  [data-neighbor=below-near] {--shift:15px;}
  [data-neighbor=above-far] {--shift:-5px;}
  [data-neighbor=below-far] {--shift:5px;}
  [data-neighbor] .sheet {transform:translateY(var(--shift)) scale(.96);opacity:.76;}
  [data-neighbor] .axis-copy {transform:translateY(calc(var(--shift)*.4)) scale(.97);opacity:.84;}
  [data-tracing] .limit-tip .limit-faces {transform:translateY(-9px);}
  [data-tracing] .limit-foot .limit-faces {transform:translateY(9px);}
}
.axis-copy {width:81.5%;}
@media(prefers-reduced-motion:reduce){
  .system-leaders .sheet,.limit-faces,.axis-copy {transition:none;transform:none;}
}
.axis-shell :is(strong,.tier-role,.layer-index) {color:var(--copper-dark);}
.layer-index {font:650 .82rem/1 ui-monospace,Menlo,monospace;color:var(--muted);border-bottom:1px solid currentColor;text-align:end;padding-bottom:3px;}
.axis-row strong {display:block;font-size:1.17rem;line-height:1.25;}
.tool-list {display:flex;align-items:center;flex-wrap:wrap;gap:7px 19px;margin-top:8px;}
.tool {display:inline-flex;align-items:center;gap:6px;color:var(--ink);font:600 .92rem/1.4 ui-monospace,Menlo,monospace;}
.tool img,.tool svg {width:25px;height:25px;object-fit:contain;}
.tool svg {color:var(--teal);}
#detail-image {position:relative;display:grid;grid-template-columns:repeat(4,minmax(0,1fr));align-items:start;gap:6px;width:100%;max-width:21rem;padding-inline-end:1rem;}
#detail-image .more-deps {position:absolute;inset-inline-end:0;bottom:.35em;color:var(--muted);line-height:1;}
#detail-image .tool {display:grid;justify-items:start;gap:2px;font:600 .82rem/1.3 system-ui,sans-serif;}
#detail-image small {color:var(--muted);font:550 .73rem/1.25 system-ui,sans-serif;}
.hero-actions .button [aria-hidden] {margin-inline-start:.25em;font-size:.85em;}
[data-palette=dark] .tool img {background:#fff;border-radius:3px;padding:2px;}
.classic-home .position-heading {max-width:76rem;margin:0 auto 8px;}
.position-heading h2 {margin-bottom:0;}
.stack-note {max-width:76rem;margin:0 auto 24px;color:var(--muted);line-height:1.5;}
.position-links {max-width:76rem;margin:24px auto 0;display:flex;align-items:baseline;flex-wrap:wrap;gap:8px 28px;border-top:1px solid var(--line);padding-top:14px;}
.position-links small {color:var(--muted);font-size:.77rem;font-weight:650;}
.position-links .feature-read {border:0;margin:0;padding:2px 0;min-height:30px;gap:.65rem;font-size:.93rem;}
@media(min-width:1141px){
  .system-plate {grid-template-columns:1fr 1fr;}
  .position-axis {height:auto;}
  .position-axis .axis-row {min-height:5.75rem;}
  .position-axis .axis-copy {width:100%;text-align:start;}
  .position-axis .tier-heading {display:grid;gap:2px;}
  .position-axis .tier-role {line-height:1.2;}
  /* Tools sit below the number, so their last item can use its gutter. */
  .position-axis .tool-list {width:max-content;max-width:calc(100% + 1.6rem);gap:3px 8px;margin-top:4px;}
  .position-axis .tool {font:600 .84rem/1.4 system-ui,sans-serif;gap:4px;}
  .position-axis .tool :is(img,svg) {width:19px;height:19px;}
}
@media (min-width:1141px) and (max-width:1200px){
  .axis-caller .tool-list {column-gap:4px;}
}
@media(scripting:none){.system-leaders .drawing-index {display:block;}}
@media(max-width:1140px){
  .position-map {grid-template-columns:minmax(0,.9fr) minmax(0,1.1fr);grid-template-areas:"tower hub" "key key";}
  .system-plate {display:contents;}
  .layer-stage {grid-area:tower;}
  .hub-cloud {grid-area:hub;}
  .system-leaders .drawing-index {display:block;}
  .position-axis {grid-area:key;height:auto;grid-template-columns:repeat(2,minmax(0,1fr));grid-template-rows:auto;align-items:start;gap:20px 24px;}
  .axis-row {align-items:baseline;grid-template-columns:1.6rem minmax(0,1fr);gap:10px;}
  .axis-row .layer-index {grid-column:1;}
  .axis-row .axis-copy {grid-column:2;}
}
@media(max-width:720px){
  .position-map {grid-template-columns:minmax(0,1fr);grid-template-areas:"tower" "key" "hub";gap:22px;}
  .layer-stage {width:min(100%,25rem);justify-self:center;}
  .hub-cloud {width:min(100%,36rem);justify-self:center;margin-top:8px;}
  .position-links {gap:4px 22px;}
}
@media(max-width:520px){
  .position-axis {grid-template-columns:minmax(0,1fr);}
  .tool-list {column-gap:10px;}
  #detail-image {max-width:18rem;}
  .position-axis {gap:16px;}
  .position-links {display:grid;justify-items:start;}
}
/* The legend also narrows when its four tiers first share two columns. */
@media(max-width:400px),(min-width:521px) and (max-width:840px){
  #detail-image {grid-template-columns:repeat(2,minmax(0,1fr));row-gap:8px;}
  #detail-image .tool {grid-template-columns:auto 1fr;align-items:center;gap:2px 4px;}
  #detail-image small {grid-column:1/-1;}
}
@media(min-width:961px) and (max-width:1160px){
  .classic-home .hero {align-content:start;}
  .classic-home .hero-copy {align-self:start;padding-top:24px;}
  .classic-home .hero-actions {flex-wrap:nowrap;gap:6px;}
  .classic-home .hero-actions a {padding-inline:8px;font-size:.9rem;line-height:1.2;text-align:center;}
  .classic-home .hero-actions a:not(.text) {white-space:nowrap;}
}
@media(max-width:960px){
  .classic-home .hero {grid-template-columns:minmax(0,1fr);gap:26px;padding-bottom:84px;}
  .classic-home .hero-fish-main {width:min(106%,550px);translate:0 calc(-56% - 10px);}
  .mast-example {width:min(100%,44rem);}
}
@media(max-width:720px){
  .script-modes { gap:1px; }
  .script-modes button { padding-inline:7px; }
  .example-stack .command-pair > div {padding-block:8px;}
  .command-pair code {font-size:.87rem;}
}
.feature-read {display:flex;align-items:center;justify-content:space-between;gap:10px;align-self:stretch;border-top:1px solid var(--line);margin-top:auto;padding-top:12px;color:var(--blue-dark);text-decoration:none;font-weight:700;font-size:.92rem;}
.feature-read:hover span:first-child,.feature-read:focus-visible span:first-child {text-decoration:underline;text-underline-offset:.2em;}
.feature-read span:last-child {font-size:1.25rem;line-height:1;}
.classic-home .stories {background:var(--surface-quiet);}
.classic-home .story-grid {grid-template-columns:repeat(2,minmax(0,1fr));grid-auto-flow:row;overflow:visible;}
.classic-home .story-card {min-height:0;}
.classic-home .story-card span {margin-bottom:18px;}
/* The paper link still opens the original file when dialogs or scripting are unavailable. */
.figure-viewer {padding:0;border:0;border-radius:8px;max-width:calc(100vw - 24px);max-height:calc(100dvh - 24px);background:var(--surface);color:var(--ink);box-shadow:0 16px 70px #0004;overflow:hidden;}
.figure-viewer:not([open]) {display:none;}
.figure-viewer::backdrop {background:rgb(10 18 27 / .74);}
html:has(.figure-viewer[open]) {overflow:hidden;}
.figure-controls {display:flex;align-items:center;gap:4px;padding:5px 8px 5px 15px;border-bottom:1px solid var(--line);}
.figure-controls strong {flex:1;min-width:0;font-size:.93rem;}
.figure-controls button {background:transparent;color:var(--ink);border:none;border-radius:4px;display:grid;place-items:center;cursor:pointer;width:42px;height:42px;}
.figure-controls button:hover,.figure-controls button[aria-pressed=true] {background:var(--surface-quiet);color:var(--blue-dark);}
.figure-controls button:focus-visible,.figure-window:focus-visible {outline:2px solid var(--blue);outline-offset:-3px;}
.figure-controls svg {width:20px;height:20px;}
.figure-zoom[aria-pressed=true] .zoom-plus {display:none;}
.figure-window {width:min(1280px,calc(100vw - 24px),calc((100dvh - 86px) * 1.61148));aspect-ratio:3426/2126;overflow:auto;overscroll-behavior:contain;background:white;}
.figure-window img {display:block;width:100%;height:auto;max-width:none;}
.figure-viewer:has(.figure-zoom[aria-pressed=true]) .figure-window img {width:max(180%,1050px);}
@media(prefers-reduced-motion:no-preference){.figure-viewer[open] {animation:figure-reveal .17s ease-out;}@keyframes figure-reveal {from {opacity:0;transform:translateY(5px);}}}
.classic-home .paper-body {width:min(100%,76rem);margin-inline:auto;}
.classic-home .paper-body .scene-heading {margin-bottom:26px;}
.publication-entry {border-top:1px solid var(--line);padding-top:16px;}
.classic-home .publication-spread {display:grid;grid-template-columns:minmax(0,1.1fr) minmax(0,1fr);column-gap:clamp(16px,2%,24px);align-items:start;}
.classic-home .publication-figure {margin:0;min-width:0;}
.publication-figure a:has(img) {display:block;cursor:zoom-in;}
.publication-figure img {width:100%;height:auto;border-radius:6px;}
.publication-figure figcaption {margin-top:6px;}
@media(min-width:721px){
  .classic-home .publication-figure {grid-column:2;grid-row:1 / 3;display:grid;grid-template-rows:subgrid;align-self:stretch;}
  .publication-figure > a {position:relative;min-height:0;}
  .publication-figure img {position:absolute;left:0;bottom:0;width:auto;height:auto;max-width:100%;max-height:100%;}
  .publication-figure figcaption {margin-top:12px;padding-top:12px;text-align:start;}
  .classic-home .publication-spread::after {content:"";grid-column:1/-1;grid-row:2;align-self:start;margin-top:12px;border-top:1px solid var(--line);pointer-events:none;}
  .classic-home .citation-actions {grid-column:1;grid-row:2;margin-top:12px;border:0;}
  .classic-home .citation-manual {grid-column:1/-1;}
}
.publication-figure figcaption,.affiliations {color:var(--muted);font-size:.86rem;}
.publication-figure figcaption a {color:var(--blue-dark);}
.affiliations {margin:5px 0 0;padding-left:1.5em;}
.aff-number {font-size:.65em;}
.author-id {display:inline-block;vertical-align:super;line-height:0;}
.classic-home .citation-manual {width:100%;}
[data-palette=dark] .classic-home .hero::before {background:var(--surface);}
[data-palette=dark] .classic-home .hero-lede {color:var(--body-copy);}
[data-palette=dark] .classic-home .button.secondary {background:var(--mark);}
@media(max-width:720px){
  .classic-home .hero {padding-top:26px;}
  .classic-home .hero-copy {width:100%;}
  .classic-home .hero-actions {flex-direction:row;align-items:center;gap:7px;}
  .classic-home .hero-actions a {width:auto;min-height:40px;padding-inline:11px;}
  .classic-home .story-grid,.classic-home .publication-spread {grid-template-columns:minmax(0,1fr);}
  .classic-home .publication-figure {width:min(100%,30rem);justify-self:center;margin-top:16px;}

}
@media(max-width:520px){
  .classic-home .hero-actions {display:grid;grid-template-columns:max-content max-content minmax(0,1fr);max-width:23.5rem;gap:6px;}
  .classic-home .hero-actions a {height:44px;min-width:0;padding-inline:5px;font-size:.87rem;line-height:1.2;text-align:center;}
  .classic-home .hero-actions .button:not(.text) {white-space:nowrap;padding-inline:8px;}
}
@media(max-width:370px){
  .classic-home .hero-actions {grid-template-columns:repeat(2,minmax(0,1fr));}
  .classic-home .hero-actions .button.text {grid-column:1/-1;justify-self:start;}
}
