/* Page rails: thin vertical lines down both sides of a section, with a small
   gold "+" marker where the rails meet the section's bottom edge.

   Usage: add class "rails" to a section. It centers itself in a 1216px column
   (12px from the viewport edges on small screens), so give it its own padding. */

.rails {
  position: relative;
  width: min(1216px, calc(100% - 24px));
  margin-inline: auto;
  background:
    linear-gradient(var(--rail), var(--rail)) left / 1px 100% no-repeat,
    linear-gradient(var(--rail), var(--rail)) right / 1px 100% no-repeat;
}

/* Section divider: a 1px line across the full viewport width at the section's bottom edge.
   The page needs `overflow-x: clip` on body so 100vw (which includes the scrollbar) never scrolls. */
.rails::before {
  content: "";
  position: absolute;
  bottom: -1px;
  left: 50%;
  width: 100vw;
  height: 1px;
  transform: translateX(-50%);
  pointer-events: none;
  background: var(--rail);
}

/* Bottom pair of markers: a 9px "+" centered on each rail, straddling the section edge */
.rails::after {
  content: "";
  position: absolute;
  right: -4px;
  bottom: -5px;
  left: -4px;
  height: 9px;
  pointer-events: none;
  background:
    linear-gradient(var(--rail-marker), var(--rail-marker)) left center / 9px 1px no-repeat,
    linear-gradient(var(--rail-marker), var(--rail-marker)) left 4px top / 1px 9px no-repeat,
    linear-gradient(var(--rail-marker), var(--rail-marker)) right center / 9px 1px no-repeat,
    linear-gradient(var(--rail-marker), var(--rail-marker)) right 4px top / 1px 9px no-repeat;
}
