/*
 * Versioned layout and visual-balance guard for the July 2026 frame update.
 *
 * Next's current CSS chunk URL can remain stable across a stylesheet-only
 * rebuild while browsers are told to cache that URL as immutable. Keeping
 * this guard at an explicit, unique public URL gives returning visitors a
 * fresh asset URL as well as protecting first visits.
 */
:root {
  --context-rail-width: 216px;
  --context-rail-gap: 20px;
  --context-rail-space: calc(var(--context-rail-width) + var(--context-rail-gap));
}

@media (min-width: 1900px) {
  /*
   * The homepage conversion rail sits outside the 1516px contextual frame.
   * Recenter the complete left-nav + tool + right-rail composition, otherwise
   * the frame is mathematically centered while everything the visitor sees is
   * pulled toward the right edge. The rail grows from 162px to its 260px cap,
   * so the balancing shift grows from 90px to 139px with it.
   */
  .site-frame-context:has(.home-rail) {
    transform: translateX(clamp(-139px, calc(385px - 25vw), -90px));
  }

  .home-rail {
    width: calc((100vw - var(--maxw) - var(--context-rail-space)) / 2 - 30px);
    min-width: 0;
    max-width: 260px;
  }
}
