/* Presentation/print finishing for the generated CC-21 farm. Playback and
   layout are owned by farm.js, farm.css and tools/v5_design/farm.py. */
.farm-slide,.farm-slide [data-step]{transition:none!important}
.farm-active .footer-control-zone:not(:hover):not(:focus-within) .footnav,
.farm-active .voice-agent-zone:not(:hover):not(:focus-within) .voice-agent{opacity:0!important;pointer-events:none!important}
.farm-active .edge:not(:hover):not(:focus-visible){opacity:0!important}
/* Both final frames are useful on paper; iframe printing otherwise stacks the
   second on top of the first. Original poster files stay unchanged. */
@media print{
  .farm-slide[data-farm]{height:auto!important;break-after:auto!important}
  .farm-slide[data-farm] .farm-stage{position:relative!important;inset:auto;overflow:visible;height:auto}
  .farm-slide[data-farm] .farm-era{position:relative!important;inset:auto;height:1080px;display:block!important;visibility:visible!important;opacity:1!important;break-after:page;break-inside:avoid}
  .farm-slide[data-farm] .farm-era-1800{background:#FFFFFF;--farm-poster:url('../media/figures/farm-1800s-poster.png')}
  .farm-slide[data-farm] .farm-era-1900{background:#F2F2F0;--farm-poster:url('../media/figures/farm-1900s-poster.png')}
  .farm-slide[data-farm] .farm-era:after{content:'';position:absolute;left:120px;top:126px;width:1680px;height:828px;background-image:var(--farm-poster);background-size:100% 100%;background-repeat:no-repeat;print-color-adjust:exact;-webkit-print-color-adjust:exact}
  .farm-slide[data-farm] .farm-movie,.farm-slide[data-farm] .farm-backdrop{display:none!important}
}

/* Sound revision uses distinct posters; approved silent assets remain on disk. */
@media print{
.farm-slide[data-farm-revision="sound"] .farm-era-1800{--farm-poster:url('../media/figures/farm-1800s-sound-poster.png')}
.farm-slide[data-farm-revision="sound"] .farm-era-1900{--farm-poster:url('../media/figures/farm-1900s-sound-poster.png')}
.farm-handoff{display:none!important}
}
