/* Side rails beside the 760px content column. The layout loads this file only on
   viewports wide and tall enough, and js/app-rails.js uses that same media query. */
/* min-height: imported posts are short stubs, and a full banner must still clear the footer. */
.content-wrap { position: relative; min-height: 720px; }

/* site.css sets overflow-x: hidden on both html and body, which makes body a scroll
   container and stops anything inside it from sticking. clip hides overflow without that. */
body { overflow-x: clip; }

.app-rail {
  position: absolute;
  top: 0;
  bottom: 88px; /* .content-wrap's bottom padding */
  display: flex;
}
.app-rail--left { right: calc(50% + 412px); }
.app-rail--right { left: calc(50% + 412px); }

.app-rail a {
  position: sticky;
  top: 88px; /* clears the sticky nav */
  align-self: flex-start;
  display: block;
  overflow: hidden;
  border-radius: 12px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  transition: transform 0.2s ease;
}
.app-rail a:hover { transform: translateY(-3px); }
.app-rail a:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

/* Shrinks to stay fully visible on short laptop screens. */
.app-rail img {
  height: min(600px, calc(100vh - 120px));
  width: auto;
}
