/* YADIM Scroll Story Navigator. Placement is chosen in the module: by Divi's own Position settings (the module is then an ordinary element and the ruler fills it), or fixed to the edge of the window by the module (it then takes no room). Without JavaScript the ruler is a plain list of anchor links. */
.yadim-ssn { --ssn-line: rgba(128, 128, 128, .35); --ssn-fill: #2a7de1; --ssn-mk: #8a8f98; --ssn-mt: #fff; --ssn-lw: 2px; --ssn-tick: 8px; --ssn-lg: 12px; --ssn-z: 50; --ssn-p: 0; --ssn-pos: 0;
  --_w: var(--ssn-w, 150px); --_edge: var(--ssn-edge, 24px); --_ct: var(--ssn-ct, 90px); --_cb: var(--ssn-cb, 40px); --_h: var(--ssn-h, 60vh);
  display: block; height: 0; margin: 0; padding: 0; box-sizing: border-box; }
.yadim-ssn *, .yadim-ssn *::before, .yadim-ssn *::after { box-sizing: border-box; }
.yadim-ssn { --_dd: 10px; --_dsz: var(--ssn-ms, var(--_dd)); }
.yadim-ssn.ssn-s-timeline { --_dd: 28px; }
.yadim-ssn.ssn-s-gauge { --_dd: 18px; }
.yadim-ssn [hidden] { display: none !important; }

/* the ruler: fixed, never in the way of the page (only the markers take clicks) */
.yadim-ssn .ssn-rail { position: fixed; z-index: var(--ssn-z); top: var(--_ct); bottom: var(--_cb); width: var(--_w); display: flex; flex-direction: column; justify-content: center; margin: 0; padding: 0; color: #1d2327; pointer-events: none; opacity: 0; visibility: hidden; transition: opacity .3s ease, visibility 0s linear .3s; }
.yadim-ssn.ssn-side-right .ssn-rail { right: var(--_edge); align-items: flex-end; text-align: right; }
.yadim-ssn.ssn-side-left .ssn-rail { left: var(--_edge); align-items: flex-start; text-align: left; }
.yadim-ssn.is-shown .ssn-rail, .yadim-ssn:not(.ssn-ready) .ssn-rail { opacity: 1; visibility: visible; transition: opacity .3s ease; }
.yadim-ssn:not(.ssn-ready) .ssn-rail { overflow: auto; }
.yadim-ssn .ssn-body { position: relative; width: 100%; height: min(var(--_h), 100%); }
.yadim-ssn:not(.ssn-ready) .ssn-body { height: auto; }

/* the rail line and its fill */
.yadim-ssn .ssn-track { position: absolute; top: 0; bottom: 0; width: var(--ssn-lw); pointer-events: none; }
.yadim-ssn.ssn-side-right .ssn-track { right: calc(var(--_dsz) / 2 - var(--ssn-lw) / 2); }
.yadim-ssn.ssn-side-left .ssn-track { left: calc(var(--_dsz) / 2 - var(--ssn-lw) / 2); }
.yadim-ssn .ssn-line, .yadim-ssn .ssn-fill { position: absolute; inset: 0; border-radius: var(--ssn-lw); }
.yadim-ssn .ssn-line { background: var(--ssn-line); }
.yadim-ssn .ssn-fill { background: var(--ssn-fill); clip-path: inset(0 0 calc((1 - var(--ssn-p, 0)) * 100%) 0); }
.yadim-ssn:not(.ssn-ready) .ssn-track { display: none; }
.yadim-ssn.ssn-s-gauge .ssn-track { width: 12px; }
.yadim-ssn.ssn-s-gauge.ssn-side-right .ssn-track { right: calc(var(--_dsz) / 2 - 6px); }
.yadim-ssn.ssn-s-gauge.ssn-side-left .ssn-track { left: calc(var(--_dsz) / 2 - 6px); }
.yadim-ssn.ssn-s-gauge .ssn-line { border-radius: 0; background: repeating-linear-gradient(to bottom, var(--ssn-line) 0 1px, transparent 1px var(--ssn-tick)); }
.yadim-ssn.ssn-s-gauge .ssn-fill { border-radius: 0; background: repeating-linear-gradient(to bottom, var(--ssn-fill) 0 2px, transparent 2px var(--ssn-tick)); }
.yadim-ssn.ssn-s-gauge.ssn-side-right .ssn-line, .yadim-ssn.ssn-s-gauge.ssn-side-right .ssn-fill { left: auto; right: 0; width: 100%; }

/* the markers */
.yadim-ssn .ssn-list { list-style: none; margin: 0; padding: 0; }
.yadim-ssn .ssn-item { margin: 0; padding: 0; list-style: none; }
.yadim-ssn.ssn-ready .ssn-item { position: absolute; top: calc(var(--ssn-pos, 0) * 100%); transform: translateY(-50%); }
.yadim-ssn.ssn-ready.ssn-side-right .ssn-item { right: 0; }
.yadim-ssn.ssn-ready.ssn-side-left .ssn-item { left: 0; }
.yadim-ssn .ssn-link { display: flex; align-items: center; gap: var(--ssn-lg); min-height: 24px; margin: 0; padding: 0; border: 0; background: none; color: inherit; font: inherit; text-align: inherit; text-decoration: none; cursor: pointer; pointer-events: auto; position: relative; -webkit-tap-highlight-color: transparent; }
.yadim-ssn.ssn-side-right .ssn-link { flex-direction: row-reverse; }
.yadim-ssn .ssn-dot { flex: none; display: grid; place-items: center; width: var(--_dsz); height: var(--_dsz); border-radius: 50%; background: var(--ssn-mk); color: var(--ssn-mt); transition: background-color .25s, transform .25s, opacity .25s; }
.yadim-ssn .ssn-num { font-size: calc(var(--_dsz) * .42); font-weight: 600; line-height: 1; font-variant-numeric: tabular-nums; }
.yadim-ssn .ssn-num-et { font-family: ETmodules, sans-serif; font-weight: 400; font-style: normal; font-variant: normal; text-transform: none; speak: none; }
.yadim-ssn:not(.ssn-ready) .ssn-item { margin: 0 0 8px; }
.yadim-ssn .ssn-item.is-past .ssn-dot { background: var(--ssn-fill); opacity: .7; }
.yadim-ssn .ssn-item.is-active .ssn-dot { background: var(--ssn-fill); transform: scale(1.18); opacity: 1; }
.yadim-ssn .ssn-link:hover .ssn-dot { background: var(--ssn-fill); }
.yadim-ssn .ssn-link:focus-visible { outline: 2px solid var(--ssn-fill); outline-offset: 4px; border-radius: 6px; }
.yadim-ssn .ssn-link:focus { outline-offset: 4px; }
.yadim-ssn .ssn-link:focus:not(:focus-visible) { outline: 0; }

/* the look of the gauge: markers are longer ticks, the current one longest */
.yadim-ssn.ssn-s-gauge .ssn-dot { width: var(--_dsz); height: 2px; border-radius: 1px; transition: width .25s, background-color .25s; }
.yadim-ssn.ssn-s-gauge .ssn-num { display: none; }
.yadim-ssn.ssn-s-gauge .ssn-item.is-active .ssn-dot { width: calc(var(--_dsz) + 10px); height: 3px; transform: none; }
.yadim-ssn.ssn-s-gauge.ssn-side-right .ssn-dot { margin-right: -3px; }

/* the names: a small chip, shown as chosen; hidden ones stay in the page for screen readers and appear on hover and focus */
.yadim-ssn .ssn-label { max-width: calc(var(--_w) - var(--_dsz) - var(--ssn-lg)); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; padding: 4px 9px; border-radius: 6px; background: rgba(255, 255, 255, .94); color: #1d2327; font-size: 13px; line-height: 1.25; box-shadow: 0 2px 10px rgba(0, 0, 0, .12); }
.yadim-ssn.ssn-ready.ssn-lb-hover .ssn-label, .yadim-ssn.ssn-ready.ssn-lb-none .ssn-label, .yadim-ssn.ssn-ready.ssn-lb-active .ssn-label,
.yadim-ssn.ssn-ready.ssn-lb-active .ssn-link:not(:hover):not(:focus-visible) .ssn-label { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); box-shadow: none; }
.yadim-ssn.ssn-ready.ssn-lb-hover .ssn-link:hover .ssn-label, .yadim-ssn.ssn-ready.ssn-lb-hover .ssn-link:focus-visible .ssn-label,
.yadim-ssn.ssn-ready.ssn-lb-none .ssn-link:focus-visible .ssn-label,
.yadim-ssn.ssn-ready.ssn-lb-active .ssn-link:hover .ssn-label, .yadim-ssn.ssn-ready.ssn-lb-active .ssn-link:focus-visible .ssn-label, .yadim-ssn.ssn-ready.ssn-lb-active .is-active .ssn-label {
  position: static; width: auto; height: auto; padding: 4px 9px; margin: 0; overflow: hidden; clip-path: none; box-shadow: 0 2px 10px rgba(0, 0, 0, .12); animation: ssn-in .22s ease both; }

/* the current section at the top of the rail, and the figure at its foot */
.yadim-ssn .ssn-current { display: none; max-width: 100%; margin: 0 0 14px; overflow: hidden; font-size: 14px; font-weight: 600; line-height: 1.4; white-space: nowrap; text-overflow: ellipsis; pointer-events: none; }
.yadim-ssn.ssn-has-cur .ssn-current { display: block; min-height: 1.4em; }
.yadim-ssn .ssn-cur-t { display: inline-block; max-width: 100%; overflow: hidden; text-overflow: ellipsis; vertical-align: top; transition: transform .22s cubic-bezier(.16, 1, .3, 1), opacity .22s ease; }
.yadim-ssn.is-swapping .ssn-cur-t { opacity: 0; transform: translateY(-70%); }
.yadim-ssn.is-enter .ssn-cur-t { opacity: 0; transform: translateY(70%); transition: none; }
.yadim-ssn .ssn-pct { margin: 14px 0 0; font-size: 12px; font-weight: 600; font-variant-numeric: tabular-nums; letter-spacing: .02em; opacity: .75; pointer-events: none; }
.yadim-ssn:not(.ssn-has-pct) .ssn-pct { display: none; }

/* native scroll-driven fill, for the "true to the page" spacing, where the browser has it (the script sets .ssn-native) */
@keyframes ssn-fill-y { from { clip-path: inset(0 0 100% 0); } to { clip-path: inset(0 0 0 0); } }
@keyframes ssn-fill-x { from { clip-path: inset(0 100% 0 0); } to { clip-path: inset(0 0 0 0); } }
@keyframes ssn-in { from { opacity: 0; transform: translateX(var(--_nudge, 6px)); } to { opacity: 1; transform: none; } }
.yadim-ssn.ssn-side-left { --_nudge: -6px; }
@supports (animation-timeline: scroll()) {
  .yadim-ssn.ssn-native .ssn-fill { animation: ssn-fill-y linear both; animation-timeline: scroll(root block); }
}

/* placement by Divi's Position settings: the ruler is an ordinary box inside the module; the author makes the module fixed (or anything else) in the Advanced tab */
.yadim-ssn.ssn-pos-divi { height: auto; }
.yadim-ssn.ssn-pos-divi .ssn-rail { position: relative; z-index: auto; top: auto; bottom: auto; left: auto; right: auto; height: var(--_h); }
.yadim-ssn.ssn-pos-divi.ssn-side-right .ssn-rail { margin-left: auto; }

/* the minimize button: the one thing that takes clicks besides the markers */
.yadim-ssn .ssn-min { display: none; position: relative; flex: none; width: 28px; height: 28px; margin: 0 0 10px; padding: 0; border: 0; border-radius: 50%; background: var(--ssn-fill); color: var(--ssn-mt); cursor: pointer; pointer-events: auto; -webkit-tap-highlight-color: transparent; box-shadow: 0 2px 8px rgba(0, 0, 0, .18); }
.yadim-ssn.ssn-ready.ssn-can-min .ssn-min { display: block; }
.yadim-ssn.ssn-side-right .ssn-min { align-self: flex-end; }
.yadim-ssn.ssn-side-left .ssn-min { align-self: flex-start; }
.yadim-ssn .ssn-min-i::before, .yadim-ssn .ssn-min-i::after { content: ""; position: absolute; left: 50%; top: 50%; width: 12px; height: 2px; margin: -1px 0 0 -6px; border-radius: 1px; background: currentColor; transition: transform .2s ease; }
.yadim-ssn .ssn-min-i::after { transform: rotate(90deg); }
.yadim-ssn:not(.ssn-is-min) .ssn-min-i::after { transform: rotate(0); }
.yadim-ssn .ssn-min:focus-visible { outline: 2px solid var(--ssn-fill); outline-offset: 3px; }
.yadim-ssn.ssn-ready.ssn-is-min .ssn-body, .yadim-ssn.ssn-ready.ssn-is-min .ssn-current, .yadim-ssn.ssn-ready.ssn-is-min .ssn-pct { display: none; }
.yadim-ssn.ssn-ready.ssn-is-min .ssn-rail { bottom: auto; height: auto; width: auto; }
.yadim-ssn.ssn-ready.ssn-is-min .ssn-min { margin-bottom: 0; }
.yadim-ssn.ssn-ready.ssn-is-min.ssn-pos-divi .ssn-rail { margin-left: auto; }
.yadim-ssn.ssn-ready.ssn-is-min.ssn-pos-divi.ssn-side-left .ssn-rail { margin-left: 0; }

/* the dots mode: a section with an ID can show it in place of the dot */
.yadim-ssn .ssn-dot-id { width: auto; min-width: var(--_dsz); height: max(var(--_dsz), 22px); padding: 0 9px; border-radius: 999px; }
.yadim-ssn .ssn-dot-id .ssn-num { max-width: calc(var(--_w) - 24px); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 11px; }
.yadim-ssn.ssn-s-gauge .ssn-dot-id { height: auto; padding: 0; border-radius: 1px; }

/* devices (Divi's breakpoints) */
@media (min-width: 768px) and (max-width: 980px) { .yadim-ssn.ssn-tab-hide .ssn-rail { display: none; } }
@media (max-width: 980px) {
  .yadim-ssn { --_w: var(--ssn-w-t, var(--ssn-w, 150px)); --_edge: var(--ssn-edge-t, var(--ssn-edge, 24px)); --_ct: var(--ssn-ct-t, var(--ssn-ct, 90px)); --_cb: var(--ssn-cb-t, var(--ssn-cb, 40px)); --_h: var(--ssn-h-t, var(--ssn-h, 60vh)); }
  .yadim-ssn[class*="ssn-s-"] { --_dsz: var(--ssn-ms-t, var(--ssn-ms, var(--_dd))); }
}
@media (max-width: 767px) {
  .yadim-ssn { --_w: var(--ssn-w-m, var(--ssn-w-t, var(--ssn-w, 150px))); --_edge: var(--ssn-edge-m, var(--ssn-edge-t, var(--ssn-edge, 24px))); --_ct: var(--ssn-ct-m, var(--ssn-ct-t, var(--ssn-ct, 90px))); --_cb: var(--ssn-cb-m, var(--ssn-cb-t, var(--ssn-cb, 40px))); --_h: var(--ssn-h-m, var(--ssn-h-t, var(--ssn-h, 60vh))); }
  .yadim-ssn[class*="ssn-s-"] { --_dsz: var(--ssn-ms-m, var(--ssn-ms-t, var(--ssn-ms, var(--_dd)))); }
  .yadim-ssn.ssn-ph-hide .ssn-rail { display: none; }
  /* a slim bar along the bottom: the line, the current section and the figure; the markers stay in the page for screen readers */
  .yadim-ssn.ssn-ph-bottom .ssn-rail { position: fixed; z-index: var(--ssn-z); height: auto; margin: 0; top: auto; bottom: 0; left: 0; right: 0; width: auto; flex-direction: row; flex-wrap: wrap; align-items: center; justify-content: space-between; padding: 8px 14px 0; background: rgba(255, 255, 255, .94); box-shadow: 0 -2px 12px rgba(0, 0, 0, .1); text-align: left; }
  .yadim-ssn.ssn-ph-bottom .ssn-min { margin: 0 0 6px; order: 4; }
  .yadim-ssn.ssn-ready.ssn-ph-bottom.ssn-is-min .ssn-rail { left: auto; right: 12px; bottom: 12px; width: auto; padding: 0; background: none; box-shadow: none; }
  .yadim-ssn.ssn-ph-bottom .ssn-current { display: block; margin: 0 12px 6px 0; min-height: 0; flex: 1 1 auto; min-width: 0; }
  .yadim-ssn.ssn-ph-bottom:not(.ssn-has-cur) .ssn-current { display: none; }
  .yadim-ssn.ssn-ph-bottom .ssn-pct { margin: 0 0 6px; }
  .yadim-ssn.ssn-ph-bottom .ssn-body { order: 3; flex: 0 0 auto; height: var(--ssn-lw, 2px); min-height: 3px; margin: 0 -14px; width: calc(100% + 28px); }
  .yadim-ssn.ssn-ph-bottom .ssn-track { top: 0; bottom: 0; left: 0; right: 0; width: auto; display: block; }
  .yadim-ssn.ssn-ph-bottom .ssn-line, .yadim-ssn.ssn-ph-bottom .ssn-fill { border-radius: 0; background-image: none; }
  .yadim-ssn.ssn-ph-bottom .ssn-line { background-color: var(--ssn-line); }
  .yadim-ssn.ssn-ph-bottom .ssn-fill { background-color: var(--ssn-fill); clip-path: inset(0 calc((1 - var(--ssn-p, 0)) * 100%) 0 0); }
  .yadim-ssn.ssn-ph-bottom.ssn-native .ssn-fill { animation-name: ssn-fill-x; }
  .yadim-ssn.ssn-ph-bottom .ssn-list { position: absolute; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
  .yadim-ssn.ssn-ph-bottom .ssn-item { position: static !important; transform: none !important; }
}

/* the page scrollbar look: a full-height rail that stands in for the page scrollbar. The real list of links stays in the page for screen readers; it is hidden here once the script has built the rail. */
.yadim-ssn { --ssn-sbw: 88px; --ssn-sba: #2a7de1; --ssn-sbink: #1d2327; --ssn-sbbg: rgba(255, 255, 255, .55); }
.yadim-ssn.ssn-sb-on .ssn-rail, .yadim-ssn.ssn-sb-dup { display: none; }
.yadim-ssn .ssn-sb { position: fixed; z-index: var(--ssn-z); top: 0; bottom: 0; width: var(--ssn-sbw); margin: 0; padding: 0; overflow: hidden; cursor: crosshair; touch-action: none; user-select: none; -webkit-user-select: none; color: var(--ssn-sbink); font: 500 11px/14px ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; letter-spacing: .06em; opacity: 0; visibility: hidden; transition: opacity .3s ease, visibility 0s linear .3s; outline: none; }
.yadim-ssn.is-shown .ssn-sb { opacity: 1; visibility: visible; transition: opacity .3s ease; }
.yadim-ssn.ssn-side-right .ssn-sb { right: 0; }
.yadim-ssn.ssn-side-left .ssn-sb { left: 0; }
.yadim-ssn .ssn-sb:focus-visible { box-shadow: inset 0 0 0 2px var(--ssn-sba); }
.yadim-ssn .ssn-sb-bg { position: absolute; inset: 0; background: var(--ssn-sbbg); -webkit-backdrop-filter: blur(9px); backdrop-filter: blur(9px); transition: opacity .3s ease; }
.yadim-ssn.ssn-side-right .ssn-sb-bg { -webkit-mask-image: linear-gradient(to left, #000 40%, rgba(0, 0, 0, .53) 55%, rgba(0, 0, 0, .22) 70%, rgba(0, 0, 0, .05) 85%, transparent 100%); mask-image: linear-gradient(to left, #000 40%, rgba(0, 0, 0, .53) 55%, rgba(0, 0, 0, .22) 70%, rgba(0, 0, 0, .05) 85%, transparent 100%); }
.yadim-ssn.ssn-side-left .ssn-sb-bg { -webkit-mask-image: linear-gradient(to right, #000 40%, rgba(0, 0, 0, .53) 55%, rgba(0, 0, 0, .22) 70%, rgba(0, 0, 0, .05) 85%, transparent 100%); mask-image: linear-gradient(to right, #000 40%, rgba(0, 0, 0, .53) 55%, rgba(0, 0, 0, .22) 70%, rgba(0, 0, 0, .05) 85%, transparent 100%); }
.yadim-ssn .ssn-sb-clip { position: absolute; inset: 0; overflow: hidden; }

/* the titles: one element each; the calm and the zoomed-out places are custom properties, so a state change is a class and the browser animates it */
.yadim-ssn .ssn-sb-t { position: absolute; top: 0; left: 0; display: block; max-width: var(--cl, none); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; transform-origin: 0 0; transform: var(--c, none); opacity: var(--co, 0); color: var(--ssn-sbink); font-weight: 400; will-change: transform; transition: transform .7s cubic-bezier(.16, 1, .3, 1), opacity .35s ease, color .35s ease; }
.yadim-ssn .ssn-sb-t:not(.is-cur) { color: color-mix(in srgb, var(--ssn-sbink) 50%, transparent); }
.yadim-ssn .ssn-sb-t.is-cur { font-weight: 700; font-size: 12px; }
.yadim-ssn .ssn-sb.is-zoom .ssn-sb-t { max-width: var(--zl, none); transform: var(--z, none); opacity: var(--zo, 0); }
.yadim-ssn .ssn-sb-peel { position: absolute; left: 8px; top: 12px; display: block; overflow: visible; white-space: nowrap; font-weight: 700; font-size: 12px; pointer-events: none; }
.yadim-ssn .ssn-sb-l { display: inline-block; }
.yadim-ssn .ssn-sb.is-zoom .ssn-sb-peel { display: none; }

/* the ruler: only while zoomed out */
.yadim-ssn .ssn-sb-ticks, .yadim-ssn .ssn-sb-band { position: absolute; top: 0; bottom: 0; opacity: 0; transition: opacity .35s ease; pointer-events: none; }
.yadim-ssn .ssn-sb-ticks { left: 0; right: 0; }
.yadim-ssn .ssn-sb.is-zoom .ssn-sb-ticks { opacity: 1; }
.yadim-ssn .ssn-sb-tick { position: absolute; height: 1px; width: 8px; background: var(--ssn-sbink); opacity: .4; }
.yadim-ssn .ssn-sb-tick.is-major { width: 16px; opacity: .8; }
.yadim-ssn.ssn-side-right .ssn-sb-tick { right: 0; transform-origin: right center; }
.yadim-ssn.ssn-side-left .ssn-sb-tick { left: 0; transform-origin: left center; }
.yadim-ssn .ssn-sb-num { position: absolute; transform: translateY(-50%); font-size: 9px; line-height: 1; opacity: .55; }
.yadim-ssn.ssn-side-right .ssn-sb-num { right: 22px; }
.yadim-ssn.ssn-side-left .ssn-sb-num { left: 22px; }
.yadim-ssn .ssn-sb-band { left: 0; right: 0; top: 0; bottom: auto; height: 0; background: color-mix(in srgb, var(--ssn-sbink) 10%, transparent); box-shadow: inset 0 1px 0 color-mix(in srgb, var(--ssn-sbink) 50%, transparent), inset 0 -1px 0 color-mix(in srgb, var(--ssn-sbink) 50%, transparent); transition: opacity .35s ease, top .5s cubic-bezier(.16, 1, .3, 1), height .5s cubic-bezier(.16, 1, .3, 1); }
.yadim-ssn .ssn-sb.is-zoom .ssn-sb-band.is-on { opacity: 1; }

/* the accent line and the rolling percentage */
.yadim-ssn .ssn-sb-mk { position: absolute; left: 0; right: 0; top: 0; height: 0; will-change: transform; pointer-events: none; }
.yadim-ssn .ssn-sb-ml { position: absolute; left: 0; right: 0; top: 0; height: 1px; background: var(--ssn-sba); box-shadow: 0 0 6px var(--ssn-sba); }
.yadim-ssn .ssn-sb-mp { position: absolute; top: 4px; display: inline-flex; align-items: center; height: 1em; font-size: 9px; line-height: 1; letter-spacing: .08em; color: var(--ssn-sba); white-space: nowrap; font-variant-numeric: tabular-nums; }
.yadim-ssn.ssn-side-right .ssn-sb-mp { right: 4px; }
.yadim-ssn.ssn-side-left .ssn-sb-mp { left: 4px; }
.yadim-ssn .ssn-sb-mk.is-low .ssn-sb-mp { top: -13px; }
.yadim-ssn .ssn-sb.is-nopct .ssn-sb-mp { display: none; }
.yadim-ssn .ssn-sb-dg { display: inline-flex; height: 1em; overflow: hidden; }
.yadim-ssn .ssn-sb-dc { display: block; width: .62em; height: 1em; overflow: hidden; transition: width .3s ease, opacity .3s ease; }
.yadim-ssn .ssn-sb-dc.is-off { width: 0; opacity: 0; }
.yadim-ssn .ssn-sb-di { display: flex; flex-direction: column; transition: transform .6s cubic-bezier(.16, 1, .3, 1); }
.yadim-ssn .ssn-sb-di > span { display: block; height: 1em; line-height: 1; text-align: center; }
.yadim-ssn .ssn-sb-pc { margin-left: 2px; }

/* devices: the rail is hidden where the module is set to show nothing, and phones that ask for the bottom bar get the plain list of links instead */
@media (min-width: 768px) and (max-width: 980px) { .yadim-ssn.ssn-tab-hide .ssn-sb { display: none; } }
@media (max-width: 767px) {
  .yadim-ssn.ssn-ph-hide .ssn-sb, .yadim-ssn.ssn-ph-bottom .ssn-sb { display: none; }
  .yadim-ssn.ssn-sb-on.ssn-ph-bottom .ssn-rail { display: flex; }
}

/* the browser's own page scrollbar, hidden only while the rail is on screen (the script adds and removes the class) */
html.ssn-hide-sb { scrollbar-width: none; -ms-overflow-style: none; }
html.ssn-hide-sb::-webkit-scrollbar, html.ssn-hide-sb body::-webkit-scrollbar { display: none; width: 0; height: 0; }

/* the builder: the scrollbar look drawn in place, as tall as the other looks */
.yadim-ssn.ssn-preview .ssn-sb { position: relative; top: auto; bottom: auto; left: auto; right: auto; height: 380px; width: var(--ssn-sbw); opacity: 1; visibility: visible; transition: none; cursor: default; }
.yadim-ssn.ssn-preview.ssn-s-scrollbar .ssn-sb-bg { background: rgba(128, 128, 128, .12); -webkit-mask-image: none; mask-image: none; }

/* the builder: the ruler is drawn in place, in the module, with a made-up scroll position */
.yadim-ssn.ssn-preview { display: flex; height: auto; justify-content: flex-end; }
.yadim-ssn.ssn-preview.ssn-side-left { justify-content: flex-start; }
.yadim-ssn.ssn-preview .ssn-rail, .yadim-ssn.ssn-preview.ssn-ph-bottom .ssn-rail { position: relative; top: auto; bottom: auto; left: auto; right: auto; width: var(--_w); height: 380px; flex-direction: column; flex-wrap: nowrap; justify-content: center; padding: 0; background: none; box-shadow: none; opacity: 1; visibility: visible; transition: none; }
.yadim-ssn.ssn-preview.ssn-side-right .ssn-rail { align-items: flex-end; text-align: right; }
.yadim-ssn.ssn-preview.ssn-side-left .ssn-rail { align-items: flex-start; text-align: left; }
.yadim-ssn.ssn-preview .ssn-link { cursor: default; }

/* page headings that reveal: the text is read as one (the hidden copy), the visible copy is cut into pieces that rise into place */
.ssn-rv .ssn-sr { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; user-select: none; -webkit-user-select: none; }
.ssn-rv .ssn-w { display: inline-block; white-space: nowrap; vertical-align: baseline; }
.ssn-rv.ssn-mask .ssn-w { clip-path: inset(-0.05em -0.15em); }
.ssn-rv .ssn-u { display: inline-block; transform: translate(var(--ssn-x, 0), var(--ssn-y, 0)); transition: transform var(--ssn-dur, 700ms) var(--ssn-ease, ease-out) calc(var(--ssn-i, 0) * var(--ssn-st, 28ms)), opacity var(--ssn-dur, 700ms) var(--ssn-ease, ease-out) calc(var(--ssn-i, 0) * var(--ssn-st, 28ms)); }
.ssn-rv:not(.ssn-mask) .ssn-u { opacity: 0; }
.ssn-rv.is-in .ssn-u { transform: none; opacity: 1; }
.ssn-rv.is-snap .ssn-u { transition: none; }

@media (prefers-reduced-motion: reduce) {
  .yadim-ssn .ssn-sb, .yadim-ssn .ssn-sb-t, .yadim-ssn .ssn-sb-band, .yadim-ssn .ssn-sb-ticks, .yadim-ssn .ssn-sb-di, .yadim-ssn .ssn-sb-dc { transition: none; }
  .yadim-ssn .ssn-rail, .yadim-ssn .ssn-dot, .yadim-ssn .ssn-cur-t { transition: none; }
  .yadim-ssn .ssn-label { animation: none !important; }
  .ssn-rv .ssn-u { transform: none; opacity: 1; transition: none; }
  .yadim-ssn.is-swapping .ssn-cur-t { opacity: 1; transform: none; }
}
