/* Reusable layout only: typography inherits the active theme. */
.ql-history-row > :is(.container, .container-fluid) { max-width: none; padding-inline: 0; }
.ql-history-row > :is(.container, .container-fluid) > .row { margin-inline: 0; }
.ql-history-row > :is(.container, .container-fluid) > .row > [class*="col-"] { padding-inline: 0; }
.ql-history-row > :is(.container, .container-fluid) > .row > [class*="col-"] > .vc_column-inner { padding-inline: 0; }
.ql-history { position: relative; background: var(--ql-history-bg); color: var(--ql-history-ink); }
.ql-history-sticky { padding-block: 28px; }
.ql-history-bar, .ql-history-foot { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding-inline: clamp(20px, 5vw, 80px); }
.ql-history .ql-history-eyebrow { font-size: .75rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; margin: 0 0 16px; color: inherit; }
.ql-history-bar .ql-history-eyebrow { margin: 0; }
.ql-history-instruction { font-size: .8rem; }
.ql-history-scene { overflow: auto; overscroll-behavior-x: contain; scrollbar-width: thin; scroll-snap-type: x proximity; margin-block: 24px; }
.ql-history-track { position: relative; display: flex; align-items: center; gap: clamp(32px, 5vw, 80px); width: max-content; min-height: 520px; padding: 24px clamp(20px, 5vw, 80px); }
.ql-history-panel { flex: 0 0 auto; width: min(82vw, 340px); min-width: 0; scroll-snap-align: center; overflow-wrap: anywhere; }
.ql-history-width-compact { width: min(82vw, 280px); }
.ql-history-width-wide, .ql-history-intro, .ql-history-outro { width: min(82vw, 420px); }
.ql-history-panel.ql-history-pos-top, .ql-history-panel.ql-history-pos-alternate:nth-child(even) { align-self: flex-start; }
.ql-history-panel.ql-history-pos-bottom, .ql-history-panel.ql-history-pos-alternate:nth-child(odd) { align-self: flex-end; }
.ql-history-panel.ql-history-pos-centre { align-self: center; }
.ql-history .ql-history-panel h2, .ql-history .ql-history-outro h3 { font-size: var(--fs-display-md, clamp(2rem, 4vw, 3rem)); margin: 0 0 24px; color: inherit; }
.ql-history .ql-history-slide h3 { font-size: var(--fs-h3, 1.6rem); margin: 20px 0 16px; color: inherit; }
.ql-history .ql-history-panel p:not(.ql-history-eyebrow) { font-size: 1rem; line-height: 1.65; color: inherit; margin: 0 0 16px; }
.ql-history .ql-history-panel p:last-child { margin-bottom: 0; }
.ql-history-media { width: 100%; aspect-ratio: 4 / 3; max-height: 28svh; border-radius: 18px; overflow: hidden; margin-bottom: 20px; background: #00000012; }
.ql-history-media img, .ql-history-media video { display: block; width: 100%; height: 100%; object-fit: cover; object-position: center top; }
.ql-history .ql-history-quote blockquote { margin: 0; padding: 0; border: 0; }
.ql-history .ql-history-quote blockquote p:not(.ql-history-eyebrow) { font-size: clamp(1.5rem, 2.7vw, 2.4rem); line-height: 1.25; font-weight: 500; }
.ql-history-quote cite { display: block; font-size: .9rem; font-style: normal; margin-top: 24px; }
.ql-history-cta { margin-top: 24px; max-width: 100%; white-space: normal; }
.ql-history-foot { justify-content: center; }
.ql-history-foot button { display: none; background: transparent; border: 1px solid currentColor; color: inherit; width: 44px; height: 44px; border-radius: 50%; cursor: pointer; font-size: 1.3rem; }
.ql-history[data-ready] .ql-history-foot button { display: inline-block; }
.ql-history-foot button:disabled { opacity: .35; cursor: default; }
.ql-history :is(button, a, .ql-history-scene):focus-visible { outline: 3px solid var(--ql-history-accent); outline-offset: 4px; }
.ql-history-meter { flex: 1; max-width: 320px; height: 3px; background: currentColor; position: relative; }
.ql-history-meter span { position: absolute; inset: 0; background: var(--ql-history-accent); transform-origin: left; transform: scaleX(var(--ql-history-progress, 0)); }
.ql-history-position { font-size: .85rem; font-variant-numeric: tabular-nums; min-width: 4em; text-align: center; }
.ql-history.is-pinned { height: calc(100svh + var(--ql-history-distance)); }
.ql-history.is-pinned .ql-history-sticky { position: sticky; top: 0; height: 100svh; display: flex; flex-direction: column; }
.ql-history.is-pinned .ql-history-scene { flex: 1; min-height: 0; overflow: clip; }
.ql-history.is-pinned .ql-history-track { height: 100%; min-height: 0; transform: translate3d(var(--ql-history-x, 0px), 0, 0); will-change: transform; }
@media (max-width: 991px) {
    .ql-history-bar { align-items: flex-start; flex-direction: column; gap: 8px; }
    .ql-history-track { align-items: flex-start; min-height: 0; }
    .ql-history-panel { align-self: flex-start !important; }
    .ql-history-media { max-height: none; }
    .ql-history-foot { gap: 16px; }
}
@media (prefers-reduced-motion: reduce) {
    .ql-history *, .ql-history *::after { scroll-behavior: auto !important; transition: none !important; }
}
