/* Phone carousels (every card 78% wide, same on every page). Any element with data-rail turns into a sideways swipe row on phones (native scroll-snap,
   no auto-rotate), with a peek of the next card and dots (or "3 / 15" for long rows) under it. Desktop is untouched. */
.rail-dots { display: none; }
@media (max-width: 700px) {
  [data-rail] { display: flex !important; flex-wrap: nowrap !important; gap: 12px; overflow-x: auto; overflow-y: hidden; scroll-snap-type: x mandatory; scroll-padding-inline: 16px; padding: 4px 16px 8px; margin-inline: -16px; scrollbar-width: none; overscroll-behavior-x: contain; -webkit-overflow-scrolling: touch; }
  [data-rail]::-webkit-scrollbar { display: none; }
  [data-rail] > * { flex: 0 0 78% !important; max-width: 78%; scroll-snap-align: start; min-width: 0; }
  [data-rail] > :last-child { scroll-snap-align: end; }
  .rail-dots { display: flex; justify-content: center; align-items: center; gap: 0; margin-top: 8px; }
  .rail-dots[hidden] { display: none; }
  .rail-dots button { width: 22px; height: 26px; padding: 0; border: 0; background: none; display: grid; place-items: center; cursor: pointer; }
  .rail-dots button::before { content: ''; width: 7px; height: 7px; border-radius: 4px; background: rgba(157, 124, 243, .35); transition: width .2s ease, background .2s ease; }
  .rail-dots button[aria-current="true"]::before { width: 18px; background: #d4af37; }
  .rail-dots .rail-count { font: 500 12px 'JetBrains Mono', ui-monospace, monospace; letter-spacing: .12em; color: #b0b0c0; min-width: 64px; text-align: center; }
  .rail-dots .rail-step { width: 36px; height: 32px; color: #b0b0c0; }
  .rail-dots .rail-step::before { display: none; }
  .rail-dots .rail-step svg { width: 18px; height: 18px; }
}
@media (max-width: 700px) and (prefers-reduced-motion: no-preference) { [data-rail] { scroll-behavior: smooth; } }
