/* On every case page: the way out of a case. The hand-off between cases that
   used to live here came off the site on 31 Oct 2026, see case-chain.js at
   8da913a in the history. */

/* ---- The way out of a case -----------------------------------------------
   The header scrolls away with the page, so once the reader leaves the top
   nothing on a desktop case page was clickable except the content. The name
   comes back to the corner, pinned in the sidebar's own column where it never
   sits over the case (the blur cushion starts after that column), and leads
   home as it does on phones. The EN/RU pill moved to the bar on the right. */
@media (min-width: 1200px) {
  .sidebar--case .sidebar__top {
    position: relative;
  }

  .sidebar--case .sidebar__name-link {
    position: absolute;
    top: 16px;                  /* on the centre line of the Back circle */
    left: 0;
  }

  .sidebar--case .sidebar__name {
    font-family: var(--font-body);
  }

  .topbar-right .lang-switch {
    margin-right: 20px;         /* the links keep the same distance to the CTA */
  }

  /* Let's talk stays on screen for the whole read while the links leave with
     the bar. The bar runs the height of the page so the pill can stick inside
     it and keep its own slot in the row, whatever length the label is in
     each language. The bar lets clicks through to the case beneath it. */
  body {
    position: relative;
  }

  .topbar-right {
    bottom: 0;
    align-items: flex-start;
    pointer-events: none;
  }

  .topbar-right > * {
    pointer-events: auto;
  }

  .topbar-right .lang-switch,
  .topbar-right .case__cta {
    margin-top: 2px;            /* the 44px links set the row's centre line */
  }

  .topbar-right .case__cta {
    position: sticky;
    top: 32px;
  }
}
