/* aniwaffle 1126 · section rail, second form (Larissa picked "no ticks").
   Up arrow / previous name (faded) / current name in a pill / next name (faded) / down arrow, on the right edge.
   js/aw-rail-1126.js builds it inside nav.section-rail and sets .is-v2; without that class the old tick rail
   (css/aw-prelaunch-1116.css) shows unchanged. The old marks stay in the DOM: they carry the labels (so
   aw-i18n-1126.js translates them in place) and the links the new buttons click.
   Colours are the page's own: on blue sections white text and the site glass (white 22% + blur 22);
   on white sections #5A86FF (hero headline, nav Docs) and #DBE9FF (hero circle). No backing panel. */
.section-rail.is-v2 > .rail-product, .section-rail.is-v2 > a.rail-mark { display: none; }
.section-rail.is-v2 {
  --r2-ink: #fff; --r2-pill: rgba(255, 255, 255, .22); --r2-blur: blur(22px);
  --r2-spring: cubic-bezier(.34, 1.56, .64, 1);
  top: 50dvh; height: 0;
  justify-items: end; color: var(--r2-ink);
  font: 500 14px/1.3 proxima-nova, "Noto Sans JP", "Hiragino Sans", sans-serif;
}
#awNav.m13-pl ~ .section-rail.is-v2 { --r2-ink: #5A86FF; --r2-pill: #DBE9FF; --r2-blur: none; }
html[lang="ja"] .section-rail.is-v2 { letter-spacing: .03em; }
.rail2 { position: relative; display: grid; justify-items: end; transform: translateY(-50%); transition: opacity .28s ease, transform .42s var(--rail-ease), visibility 0s; }
/* Hero at rest: the whole group is away (not clickable, not focusable; js also sets inert). */
.section-rail[data-rest] .rail2 { opacity: 0; transform: translate(10px, -50%); visibility: hidden; pointer-events: none; transition: opacity .22s ease, transform .3s var(--rail-ease), visibility 0s .3s; }
.rail2 button { appearance: none; -webkit-appearance: none; margin: 0; border: 0; background: transparent; color: inherit; font: inherit; letter-spacing: inherit; cursor: pointer; -webkit-tap-highlight-color: transparent; }

/* Arrows: bare strokes. Hover nudges 2px in their own direction, press sinks and shrinks, release springs back, a hop after the click; faded at either end. */
.rail2-step { position: relative; display: grid; place-items: center; justify-items: end; width: 30px; height: 30px; margin-right: 8px; padding: 0; border-radius: 10px; transition: transform .28s var(--r2-spring), opacity .18s ease, color .25s ease; }
.rail2-step::before { content: ''; position: absolute; inset: -5px -8px -5px -6px; }
.rail2-step svg { display: block; width: 18px; height: 18px; transition: transform .28s var(--r2-spring); }
@media (hover: hover) {
  .rail2-step[data-step="-1"]:hover svg { transform: translateY(-2px); }
  .rail2-step[data-step="1"]:hover svg { transform: translateY(2px); }
}
.rail2-step:active { transform: translateY(2px) scale(.82); transition-duration: .07s; }
.rail2-step:disabled { opacity: .3; pointer-events: none; }
.rail2-step.hop-up svg { animation: rail2HopU .42s var(--rail-ease); }
.rail2-step.hop-dn svg { animation: rail2HopD .42s var(--rail-ease); }
@keyframes rail2HopU { 35% { transform: translateY(-7px) scale(1.15); } 70% { transform: translateY(2px); } }
@keyframes rail2HopD { 35% { transform: translateY(7px) scale(1.15); } 70% { transform: translateY(-2px); } }
.rail2 button:focus-visible { outline: 2px solid currentColor; outline-offset: 2px; }

/* Three rows are one wheel: the whole list of names rolls one slot. Only the neighbours of the current one show. */
.rail2-wheel { position: relative; height: 84px; overflow: hidden; }
.rail2-strip { position: relative; display: grid; justify-items: end; transition: transform .5s var(--r2-spring); }
.rail2-name { display: flex; align-items: center; height: 26px; padding: 0 12px; font-size: 13px; font-weight: 500; white-space: nowrap; opacity: 0; pointer-events: none; transition: height .5s var(--r2-spring), opacity .25s ease, color .25s ease; }
.rail2-name[data-d="1"] { opacity: .78; pointer-events: auto; }
.rail2-name[data-d="0"] { height: 32px; font-size: 14px; opacity: 1; pointer-events: auto; }
@media (hover: hover) { .rail2-name[data-d="1"]:hover { opacity: 1; } }
.rail2-pill { position: absolute; right: 0; top: 28px; height: 28px; border-radius: 999px; background: var(--r2-pill); -webkit-backdrop-filter: var(--r2-blur); backdrop-filter: var(--r2-blur); transform-origin: 100% 50%; transition: width .5s var(--r2-spring), background-color .25s ease; }
.rail2-pill.pop { animation: rail2Pop .46s var(--rail-ease); }
@keyframes rail2Pop { 28% { scale: 1.07 .88; } 60% { scale: .97 1.06; } }

/* With a mouse at 900 and up the rail keeps its place and only lets go of what would sit on the page's text
   or controls at that moment (js decides): slim drops the two neighbours, bare drops the pill as well. */
.rail2-name { transition: height .5s var(--r2-spring), opacity .25s ease, color .25s ease, visibility 0s; }
.rail2-pill { transition: width .5s var(--r2-spring), background-color .25s ease, opacity .25s ease; }
.is-slim .rail2-name[data-d="1"], .is-bare .rail2-name { opacity: 0; visibility: hidden; pointer-events: none; transition: height .5s var(--r2-spring), opacity .2s ease, visibility 0s .2s; }
.is-bare .rail2-pill { opacity: 0; }
.is-bare .rail2-wheel { pointer-events: none; }

/* Bare (desktop, squeezed down to the arrows) and compact (touch, or a window under 900): the current name
   is written upright between the two arrows, in the arrows' own 40px strip, so it never sits on the text.
   Japanese is set vertically (vertical-rl: long vowel marks and commas take their vertical forms); English is
   turned to read downwards, small capitals with open tracking. No pill behind it. */
.rail2-v, .rail2-vm { display: none; }
.rail2-vt { writing-mode: vertical-rl; text-orientation: mixed; white-space: nowrap; font-size: 11px; line-height: 18px; font-weight: 500; letter-spacing: .12em; text-transform: uppercase; }
html[lang="ja"] .rail2-vt { font-size: 13px; letter-spacing: .1em; text-transform: none; font-feature-settings: "vert"; }
.rail2-tcy { text-combine-upright: all; -webkit-text-combine: horizontal; letter-spacing: 0; }
.rail2-vm { display: block; position: absolute; right: 0; top: 0; visibility: hidden; pointer-events: none; height: 0; overflow: visible; white-space: nowrap; }
.rail2-vm .rail2-vt { display: inline-block; }
.is-bare .rail2-v, .is-compact .rail2-v { display: flex; align-items: center; justify-content: center; width: 18px; height: var(--r2-vh, 120px); max-height: calc(100dvh - 250px); margin-right: 8px; }
/* short windows: the name is cut with an ellipsis rather than pushing the arrows off the screen */
.rail2-v .rail2-vt { max-height: 100%; overflow: hidden; text-overflow: ellipsis; }
.rail2-v .rail2-vt.in-up { animation: rail2RollU .36s var(--rail-ease); }
.rail2-v .rail2-vt.in-dn { animation: rail2RollD .36s var(--rail-ease); }
@keyframes rail2RollU { from { transform: translateY(-16px); opacity: 0; } }
@keyframes rail2RollD { from { transform: translateY(16px); opacity: 0; } }
/* the horizontal wheel stays in layout (hidden) so the names can still be measured */
.is-bare .rail2-wheel, .is-compact .rail2-wheel { position: absolute; right: 0; top: 0; visibility: hidden; pointer-events: none; }
/* bare sits as close to the edge as compact does, clear of anything that stops short of the page gutter */
.is-bare .rail2-step, .is-bare .rail2-v { margin-right: -6px; }
.is-bare .rail2-step { margin-right: -6px; }
.section-rail.is-compact { right: 0; }
.is-compact .rail2-step { width: 40px; height: 40px; margin: 0; padding-right: 5px; }
.is-compact .rail2-step::before { inset: 0; }
.is-compact .rail2-step svg { width: 16px; height: 16px; }
.is-compact .rail2-v { margin-right: 4px; }

/* Where an arrow leads: a small solid pill beside it, while the mouse is on the arrow or for a moment after a press. */
.rail2-hint {
  position: absolute; right: calc(100% - 2px); top: 0; height: 28px; margin-top: -14px; padding: 0 12px; border-radius: 999px; box-sizing: border-box;
  display: flex; align-items: center; background: #DBE9FF; color: #5A86FF; font-size: 13px; white-space: nowrap; pointer-events: none;
  opacity: 0; visibility: hidden; transform: translateX(6px); transition: opacity .18s ease, transform .3s var(--r2-spring), visibility 0s .3s;
}
.rail2-hint[data-show] { opacity: 1; visibility: visible; transform: none; transition: opacity .18s ease, transform .3s var(--r2-spring), visibility 0s; }
@media (prefers-reduced-motion: reduce) {
  .rail2, .rail2-step, .rail2-step svg, .rail2-strip, .rail2-name, .rail2-pill, .rail2-hint, .rail2-vt { transition: none !important; animation: none !important; }
}
