/* Variation: on a desktop screen the register form is fixed down the right side, so it is always in reach.
   Below 1100px this file does nothing and the page is the same as the main version. */
.rail { display: none; }
@media (min-width: 1100px) {
  html[data-rail] { --rail: clamp(350px, 27vw, 430px); }
  html[data-rail] body { padding-right: var(--rail); }
  html[data-rail] .bar { right: var(--rail); }
  html[data-rail] .bar .rsvp { display: none; }
  html[data-rail] .bar .clock { display: none; }
  html[data-rail] .bar nav a { white-space: nowrap; }
  html[data-rail] .bar { grid-template-columns: 1fr auto; }
  html[data-rail] .bar .mark { display: none; }   /* the logo sits at the top of the panel instead */
  html[data-rail] #register { display: none; }

  /* Sections sized in viewport widths are re-sized to the space left of the panel. */
  html[data-rail] { --cw: calc(100vw - var(--rail)); }
  html[data-rail] .showcase { --fh: min(calc(var(--cw) * 0.32), 46svh); --fw4: min(calc(var(--cw) * 0.92), calc(76svh * 16 / 9)); }
  html[data-rail] .showcase[data-stage="3"] .frame { width: min(calc(var(--cw) * 0.88), calc(var(--fh) * 2.8)); }
  html[data-rail] .showcase .caption { width: min(52ch, calc(var(--cw) * 0.88)); }
  html[data-rail] .sheet { margin-right: max(0px, calc((var(--cw) - 2 * var(--margin)) * 0.04)); }

  .rail { display: flex; flex-direction: column; position: fixed; inset: 0 0 0 auto; z-index: 40; width: var(--rail); padding: 28px clamp(24px, 2.4vw, 36px) 24px; background: var(--accent); color: var(--accent-ink); overflow-y: auto; overscroll-behavior: contain; transition: background-color var(--t-mode) var(--ease-in-out); }
  html[data-mode="night"] .rail { background: #16232e; color: #eef1ee; }
  .rail .rail-logo { flex: none; width: min(210px, 70%); aspect-ratio: 2928.45 / 555.91; margin: 0 auto; background: currentColor; -webkit-mask: url(img/logo-primary.svg?v=2) center / contain no-repeat; mask: url(img/logo-primary.svg?v=2) center / contain no-repeat; }
  .rail .card { margin: auto 0; padding: 28px 0 0; width: auto; background: none; color: inherit; opacity: 1; transform: none; box-shadow: none; position: static; }
  html[data-mode="night"] .rail .card { background: none; color: inherit; }
  .rail .card h2 { font-size: clamp(1.25rem, 1.5vw, 1.5rem); line-height: 1.2; text-wrap: balance; }
  .rail .card .addr { margin-top: 12px; font-size: 0.875rem; line-height: 1.5; opacity: 0.86; max-width: none; }
  .rail .eoi { gap: 10px; margin-top: 18px; grid-template-columns: 1fr 1fr; column-gap: 12px; }
  .rail .eoi > * { grid-column: 1 / -1; }
  .rail .eoi > label:nth-of-type(2), .rail .eoi > label:nth-of-type(3) { grid-column: auto; }
  .rail .eoi label { gap: 4px; font-size: 0.75rem; letter-spacing: 0.02em; }
  .rail .eoi input, .rail .eoi select { min-width: 0; min-height: 42px; padding: 9px 10px; font-size: 0.9375rem; color: #1f2a25; background: #f4f6f1; border-color: transparent; border-radius: 3px; }
  .rail .eoi input:focus-visible, .rail .eoi select:focus-visible { outline: 2px solid var(--accent-ink); outline-offset: 2px; }
  .rail .eoi .eoi-msg { min-height: 0; font-size: 0.875rem; }
  .rail .eoi .eoi-msg.bad { color: #ffd9cf; }
  .rail .eoi button.go { order: 1; width: 100%; height: 52px; margin: 4px 0 0; background: var(--accent-ink); color: var(--accent); transition: transform 140ms var(--ease-out), background-color 200ms ease; }
  .rail .eoi button.go:hover { background: #fff; }
  .rail .eoi button.go:active { transform: scale(0.98); }
  html[data-mode="night"] .rail .eoi button.go { background: var(--glow); color: #16232e; }
  html[data-mode="night"] .rail .eoi button.go:hover { background: #efcba2; }
  .rail .eoi .eoi-share { order: 2; }
  .rail .eoi .legal, html[data-mode="night"] .rail .eoi .legal { order: 3; margin-top: 6px; font-size: 0.6875rem; line-height: 1.45; color: inherit; opacity: 0.62; }
  .rail.is-called .card h2 { animation: rail-call 700ms var(--ease-out); }
  @keyframes rail-call { 0% { opacity: 0.4; transform: translateX(8px); } 100% { opacity: 1; transform: none; } }
}
@media (min-width: 1100px) and (max-height: 820px) {
  .rail .card .addr { display: none; }
  .rail { padding-top: 20px; }
  .rail .rail-logo { width: 170px; }
  .rail .card { padding-top: 18px; }
}
