/* Shared compact timeline for liquidity and reporting loophole pages. */
.cns-page .cns-timeline-journey { margin-bottom:58px; }
.cns-page[data-loophole-page] .cns-timeline-journey .cns-trade-timeline-step { margin-top:0; }

.cns-page .cns-timeline-journey .cns-trade-timeline { padding:24px; border-radius:15px; }
.cns-page .cns-timeline-journey .cns-trade-timeline-head { grid-template-columns:minmax(0,1fr) auto; gap:12px 24px; align-items:center; }
.cns-page .cns-timeline-journey .cns-trade-timeline-head :is(h1,h2) { max-width:none; font-size:clamp(28px,2.5vw,34px); line-height:1.15; text-wrap:pretty; }
.cns-page .cns-timeline-journey .cns-trade-descriptions-toggle { justify-self:end; gap:12px; min-height:44px; padding:9px 12px; font-size:12px; }
.cns-page .cns-timeline-journey .cns-trade-timeline-track { margin-top:56px; }
.cns-page .cns-timeline-journey .cns-trade-timeline-sign { width:162px; height:44px; min-height:44px; padding:3px 6px; }
.cns-page .cns-timeline-journey .cns-trade-timeline-sign .loophole-wordmark { font-size:11px; }
.cns-page .cns-timeline-journey .cns-trade-timeline-sign .loophole-wordmark-sub { margin-top:1px; font-size:9px; }
@media(min-width:761px) {
 .cns-page .cns-timeline-journey .cns-trade-timeline-track { display:grid; grid-template-columns:repeat(6,minmax(0,1fr)); }
 .cns-page .cns-timeline-journey .cns-trade-timeline-track::before,.cns-page .cns-timeline-journey .cns-trade-timeline-track::after { top:92px; bottom:auto; left:8.333333%; height:2px; }
 .cns-page .cns-timeline-journey .cns-trade-timeline-track::before { width:83.333333%; }
 .cns-page .cns-timeline-journey .cns-trade-timeline-track::after { display:block; width:var(--cns-trade-progress,0%); }
 .cns-page .cns-timeline-journey .cns-trade-timeline-step > button { display:flex; flex-direction:column; align-items:center; justify-items:center; gap:0; min-height:146px; padding:0 4px 10px; text-align:center; }
 .cns-page .cns-timeline-journey .cns-trade-timeline-node { width:84px; max-width:100%; height:84px; }
 .cns-page .cns-timeline-journey .cns-trade-timeline-node::after { display:block; }
 .cns-page .cns-timeline-journey .cns-trade-timeline-node-label { width:calc(100% - 12px); font-size:13px; }
 .cns-page .cns-timeline-journey .cns-trade-timeline-number { align-self:auto; margin:18px 0 0; }
 .cns-page .cns-timeline-journey .cns-trade-timeline-step > button small { align-self:auto; margin-top:4px; font-size:11px; }
 .cns-page .cns-timeline-journey .cns-trade-timeline-sign { left:50%; transform:translateX(-50%); animation-name:cns-trade-sign-float; }
 .cns-page .cns-timeline-journey .cns-trade-timeline-step:first-child .cns-trade-timeline-sign { left:0; transform:none; animation-name:cns-trade-delivery-sign-float; }
 .cns-page .cns-timeline-journey .cns-trade-timeline-step:last-child .cns-trade-timeline-sign { right:0; left:auto; transform:none; animation-name:cns-trade-delivery-sign-float; }
 .cns-page .cns-timeline-journey .cns-trade-timeline-bubble { width:600%; margin:9px 0 18px var(--cns-bubble-shift,0%); }
 .cns-page .cns-timeline-journey .cns-trade-timeline-bubble::before { left:var(--cns-bubble-pointer,50%); }
 .cns-page .cns-timeline-journey .cns-trade-timeline-step:nth-child(1) { --cns-bubble-shift:0%; --cns-bubble-pointer:8.333%; }
 .cns-page .cns-timeline-journey .cns-trade-timeline-step:nth-child(2) { --cns-bubble-shift:-100%; --cns-bubble-pointer:25%; }
 .cns-page .cns-timeline-journey .cns-trade-timeline-step:nth-child(3) { --cns-bubble-shift:-200%; --cns-bubble-pointer:41.667%; }
 .cns-page .cns-timeline-journey .cns-trade-timeline-step:nth-child(4) { --cns-bubble-shift:-300%; --cns-bubble-pointer:58.333%; }
 .cns-page .cns-timeline-journey .cns-trade-timeline-step:nth-child(5) { --cns-bubble-shift:-400%; --cns-bubble-pointer:75%; }
 .cns-page .cns-timeline-journey .cns-trade-timeline-step:nth-child(6) { --cns-bubble-shift:-500%; --cns-bubble-pointer:91.667%; }
}
@media(max-width:760px) {
 .cns-page .cns-timeline-journey .cns-trade-timeline { padding:20px 16px; }
 .cns-page .cns-timeline-journey .cns-trade-timeline-head { grid-template-columns:minmax(0,1fr); gap:10px; }
 .cns-page .cns-timeline-journey .cns-trade-timeline-head :is(h1,h2) { font-size:28px; }
 .cns-page .cns-timeline-journey .cns-trade-descriptions-toggle { width:auto; justify-self:start; }
 .cns-page .cns-timeline-journey .cns-trade-timeline-track { display:block; margin-top:16px; }
 .cns-page .cns-timeline-journey .cns-trade-timeline-sign { left:0; transform:none; animation-name:cns-trade-delivery-sign-float; }
 .cns-page .cns-timeline-journey.has-entry-at-start .cns-trade-timeline-track { margin-top:56px; }
 .cns-page[data-loophole-page] .cns-timeline-journey .cns-trade-timeline-step.is-loophole-entry:not(:first-child) { margin-top:56px; }
 .cns-page .cns-timeline-journey .cns-trade-timeline-track::before { top:26px; bottom:38px; left:64px; width:2px; height:auto; }
 .cns-page .cns-timeline-journey .cns-trade-timeline-track::after { display:none; }
 .cns-page .cns-timeline-journey .cns-trade-timeline-step > button { grid-template-columns:128px minmax(0,1fr); gap:3px 12px; min-height:64px; padding:3px 0 15px; }
 .cns-page .cns-timeline-journey .cns-trade-timeline-node { width:128px; max-width:128px; height:46px; border-radius:10px; }
 .cns-page .cns-timeline-journey .cns-trade-timeline-node-label { width:calc(100% - 12px); font-size:13px; }
 .cns-page .cns-timeline-journey .cns-trade-timeline-step > button small { font-size:11px; }
 .cns-page .cns-timeline-journey .cns-trade-timeline-bubble::before { left:64px; }
}
@media(max-width:400px) {
 .cns-page .cns-timeline-journey .cns-trade-timeline { padding:18px 13px; }
 .cns-page .cns-timeline-journey .cns-trade-timeline-head :is(h1,h2) { font-size:26px; }
 .cns-page .cns-timeline-journey .cns-trade-timeline-step > button { grid-template-columns:116px minmax(0,1fr); column-gap:10px; }
 .cns-page .cns-timeline-journey .cns-trade-timeline-node { width:116px; max-width:116px; }
 .cns-page .cns-timeline-journey .cns-trade-timeline-track::before,.cns-page .cns-timeline-journey .cns-trade-timeline-bubble::before { left:58px; }
}

/* Let the title echo the journey without making the compact header taller. */
.cns-page .cns-timeline-journey .cns-trade-timeline-head { position:relative; padding-bottom:12px; }
.cns-page .cns-timeline-journey .cns-trade-timeline-head::after { content:""; position:absolute; right:0; bottom:0; left:0; height:1px; background:linear-gradient(90deg,#8fe2ce70,#edcc9335 48%,#edcc9300); pointer-events:none; }
.cns-page .cns-timeline-journey .cns-trade-timeline-head :is(h1,h2) { font-weight:600; letter-spacing:-.035em; line-height:1.25; }
.cns-page .cns-timeline-journey .cns-timeline-title-prefix { color:#e7e7ec; font-weight:400; }
.cns-page .cns-timeline-journey .cns-timeline-title-order { color:var(--cns-timeline-start,#8fe2ce); }
.cns-page .cns-timeline-journey .cns-timeline-title-reporting { color:var(--cns-timeline-end,#edcc93); }
.cns-page .cns-timeline-journey .cns-timeline-title-tag { display:inline-block; margin-left:7px; padding:4px 7px; border:1px solid #a7d7d235; border-radius:4px; color:#b9cbcf; font-size:10px; font-weight:600; line-height:1.4; letter-spacing:.11em; text-transform:uppercase; vertical-align:middle; white-space:nowrap; }
@media(max-width:760px) {
 .cns-page .cns-timeline-journey .cns-trade-timeline-head { padding-bottom:10px; }
 .cns-page .cns-timeline-journey .cns-timeline-title-tag { margin-left:5px; padding:3px 6px; font-size:9px; }
}

/* Reporting guides start with the shared timeline before their chapter navigation. */
.cns-page.reporting-topic-page > .cns-shell > .cns-timeline-journey { margin:24px 0 58px; }
.cns-page.reporting-topic-page .cns-timeline-journey > .cns-trade-timeline { margin:0; }

/* A soft backdrop and warm orange accents for every shared loophole timeline. */
.cns-page .cns-timeline-journey {
 --cns-timeline-start:#e7e7ec; --cns-timeline-end:#e7e7ec;
}
.cns-page .cns-timeline-journey .cns-trade-timeline {
 --cns-timeline-feather:clamp(22px,3vw,40px);
 border-color:transparent; background:transparent; box-shadow:none;
}
.cns-page .cns-timeline-journey .cns-trade-timeline::before {
 content:""; position:absolute; inset:0; z-index:-1; border-radius:inherit; pointer-events:none;
 background:radial-gradient(ellipse 80% 50% at 50% 0%,#ffac6607,transparent 70%),linear-gradient(145deg,#14171ef0,#10151def);
 -webkit-mask-image:linear-gradient(90deg,transparent,#000 var(--cns-timeline-feather),#000 calc(100% - var(--cns-timeline-feather)),transparent),linear-gradient(180deg,transparent,#000 var(--cns-timeline-feather),#000 calc(100% - var(--cns-timeline-feather)),transparent);
 mask-image:linear-gradient(90deg,transparent,#000 var(--cns-timeline-feather),#000 calc(100% - var(--cns-timeline-feather)),transparent),linear-gradient(180deg,transparent,#000 var(--cns-timeline-feather),#000 calc(100% - var(--cns-timeline-feather)),transparent);
 -webkit-mask-composite:source-in; mask-composite:intersect;
}
.cns-page .cns-timeline-journey .cns-trade-timeline-head::after {
 background:linear-gradient(90deg,#ffac6670,#ffac6635 48%,#ffac6600);
}
.cns-page .cns-timeline-journey .cns-trade-timeline-head .cns-kicker { color:#ffac66; }
.cns-page .cns-timeline-journey .cns-timeline-title-tag { border-color:#aeb5c135; color:#e7e7ec; }
.cns-page .cns-timeline-journey .cns-trade-timeline-track::before { background:#aeb5c135; }
.cns-page .cns-timeline-journey .cns-trade-timeline-track::after {
 background:#ffac66; box-shadow:0 0 10px #ffac6626;
}
.cns-page .cns-timeline-journey .cns-trade-timeline-step { --cns-step-rgb:174 181 193; }
.cns-page .cns-timeline-journey .cns-trade-descriptions-toggle {
 border-color:#ffac6666; background:#ffac660c; color:#ffac66;
}
.cns-page .cns-timeline-journey .cns-trade-descriptions-toggle:hover { border-color:#ffac66a6; background:#ffac661a; }

/* Orange identifies the selected stop; the rest of the journey stays neutral. */
.cns-page .cns-timeline-journey .cns-trade-timeline-head :is(h1,h2) { color:#e7e7ec; }
.cns-page .cns-timeline-journey :is(
 [data-cns-trade-selected-step="0"] [data-cns-trade-step="0"],
 [data-cns-trade-selected-step="1"] [data-cns-trade-step="1"],
 [data-cns-trade-selected-step="2"] [data-cns-trade-step="2"],
 [data-cns-trade-selected-step="3"] [data-cns-trade-step="3"],
 [data-cns-trade-selected-step="4"] [data-cns-trade-step="4"],
 [data-cns-trade-selected-step="5"] [data-cns-trade-step="5"]
) {
 --cns-step-rgb:255 172 102; --cns-node-tint:.14;
 --cns-node-label:#ffac66; --cns-node-number:#ffac66;
 --cns-node-lift:-3px; --cns-node-counter-lift:3px;
 --cns-node-shadow:0 8px 20px #00000040,0 0 0 1px #ffac6626;
 --cns-panel-edge:#ffac66; --cns-panel-outline:.75; --cns-panel-number:#ffac66b3;
}
.cns-page .cns-timeline-journey .cns-trade-timeline-step > button .cns-trade-timeline-node {
 border-color:rgb(var(--cns-step-rgb) / .55);
 background:linear-gradient(rgb(var(--cns-step-rgb) / var(--cns-node-tint,.06)),rgb(var(--cns-step-rgb) / var(--cns-node-tint,.06))),#181a20;
 color:var(--cns-node-label,#e7e7ec);
 transform:translateY(var(--cns-node-lift,0px)); box-shadow:var(--cns-node-shadow,none);
 transition:transform .22s ease,box-shadow .22s ease,border-color .2s ease,background-color .2s ease;
}
.cns-page .cns-timeline-journey .cns-trade-timeline-step > button:is(:hover,:focus-visible,[aria-expanded="true"]) .cns-trade-timeline-node {
 border-color:rgb(var(--cns-step-rgb) / .85);
}
.cns-page .cns-timeline-journey .cns-trade-timeline-step > button .cns-trade-timeline-node::after {
 background:rgb(var(--cns-step-rgb)); transform:translate(-50%,var(--cns-node-counter-lift,0px));
 transition:transform .22s ease;
}
.cns-page .cns-timeline-journey .cns-trade-timeline-step > button .cns-trade-timeline-number { color:var(--cns-node-number,#aeb5c1); }
.cns-page .cns-timeline-journey .cns-trade-timeline-step > button small { color:#aeb5c1; }
.cns-page .cns-timeline-journey :is(.cns-trade-timeline-step > button,.cns-trade-descriptions-toggle):focus-visible { outline-color:#ffac66; }
.cns-page .cns-timeline-journey .cns-trade-timeline-bubble { border-color:#ffac6666; }
.cns-page .cns-timeline-journey .cns-trade-timeline-bubble::before { border-color:#ffac6666; }
.cns-page .cns-timeline-journey .cns-trade-timeline-bubble-step { color:#ffac66; }
.cns-page .cns-timeline-journey .cns-trade-timeline-sign {
 border-color:#aeb5c159; background:linear-gradient(145deg,#24262c,#17191f 78%);
 box-shadow:0 11px 25px #02060d80,inset 0 1px #ffffff12;
}
.cns-page .cns-timeline-journey .cns-trade-timeline-sign :is(.loophole-wordmark-main,.loophole-wordmark-sub) { color:#e7e7ec; }

/* Small line drawings keep the compact stops readable at each breakpoint. */
.cns-page .cns-timeline-journey .cns-trade-timeline-node {
 display:flex; flex-direction:column; align-items:center; justify-content:center; gap:4px;
}
.cns-page .cns-timeline-journey .cns-trade-timeline-icon {
 display:grid; flex:none; place-items:center; width:19px; height:19px;
 color:rgb(var(--cns-step-rgb)); line-height:0; pointer-events:none;
}
.cns-page .cns-timeline-journey .cns-trade-timeline-icon svg {
 display:block; width:100%; height:100%; fill:none; stroke:currentColor;
 stroke-width:1.65; stroke-linecap:round; stroke-linejoin:round;
}

/* JavaScript runs one connector pulse for a new selection, then hides it. */
.cns-page .cns-timeline-journey .cns-trade-timeline-pulse {
 position:absolute; z-index:1; top:93px; left:8.333333%; width:6px; height:6px;
 border-radius:50%; background:#ffac66; opacity:0; box-shadow:0 0 7px #ffac6670,0 0 14px #ffac6626;
 transform:translate(-50%,-50%); pointer-events:none;
}
.cns-page .cns-timeline-journey .cns-trade-timeline-pulse::after {
 content:""; position:absolute; top:1px; right:2px; width:18px; height:4px;
 border-radius:50%; background:linear-gradient(90deg,#ffac6600,#ffac6633); pointer-events:none;
}
.cns-page .cns-timeline-journey .cns-trade-timeline-pulse[hidden] { display:none; }
@media(max-width:760px) {
 .cns-page .cns-timeline-journey .cns-trade-timeline-node { flex-direction:row; gap:6px; padding:0 8px; }
 .cns-page .cns-timeline-journey .cns-trade-timeline-icon { width:16px; height:16px; }
 .cns-page .cns-timeline-journey .cns-trade-timeline-node-label { width:auto; flex:0 1 auto; min-width:0; }
 .cns-page .cns-timeline-journey .cns-trade-timeline-pulse { top:26px; left:64px; }
 .cns-page .cns-timeline-journey .cns-trade-timeline-pulse::after {
  top:auto; right:1px; bottom:2px; width:4px; height:14px;
  background:linear-gradient(180deg,#ffac6600,#ffac6633);
 }
}
@media(max-width:400px) {
 .cns-page .cns-timeline-journey .cns-trade-timeline-pulse { left:58px; }
}
@media(prefers-reduced-motion:reduce) {
 .cns-page .cns-timeline-journey .cns-trade-timeline-step > button .cns-trade-timeline-node,
 .cns-page .cns-timeline-journey .cns-trade-timeline-step > button .cns-trade-timeline-node::after { transition:none; }
 .cns-page .cns-timeline-journey .cns-trade-timeline-pulse { display:none; }
}

/* Connected editorial panels give the journey a stronger visual hierarchy. */
.cns-page .cns-timeline-journey .cns-trade-timeline-track { margin-top:64px; }
.cns-page .cns-timeline-journey .cns-trade-timeline-step > button .cns-trade-timeline-node {
 display:grid; grid-template-columns:minmax(0,1fr) auto; grid-template-rows:28px minmax(0,1fr);
 align-items:start; justify-items:start; justify-content:initial; gap:8px; width:calc(100% - 14px); max-width:none;
 height:104px; padding:12px; border-radius:13px; border-color:rgb(var(--cns-step-rgb) / var(--cns-panel-outline,.25));
 background:radial-gradient(ellipse 100% 90% at 0 0,rgb(var(--cns-step-rgb) / var(--cns-node-tint,.035)),transparent),linear-gradient(145deg,#202229e8,#12161cef);
}
.cns-page .cns-timeline-journey .cns-trade-timeline-node::before {
 content:""; position:absolute; top:13px; bottom:13px; left:-1px; width:3px; border-radius:3px;
 background:var(--cns-panel-edge,transparent); pointer-events:none;
}
.cns-page .cns-timeline-journey .cns-trade-timeline-stage-number {
 grid-column:2; grid-row:1; align-self:start; justify-self:end; color:var(--cns-panel-number,#8c94a46b);
 font:500 30px/.95 "IBM Plex Mono",monospace; letter-spacing:-.07em; pointer-events:none;
}
.cns-page .cns-timeline-journey .cns-trade-timeline-icon { grid-column:1; grid-row:1; width:22px; height:22px; align-self:center; }
.cns-page .cns-timeline-journey .cns-trade-timeline-node-label {
 grid-column:1/-1; grid-row:2; align-self:end; width:100%; min-width:0;
 font-size:15px; line-height:1.15; text-align:left; text-wrap:balance;
}
.cns-page .cns-timeline-journey .cns-trade-timeline-step > button .cns-trade-timeline-number {
 position:absolute; width:1px; height:1px; padding:0; margin:-1px; overflow:hidden; clip-path:inset(50%); white-space:nowrap;
}
@media(min-width:761px) {
 .cns-page .cns-timeline-journey .cns-trade-timeline-step > button { min-height:150px; }
 .cns-page .cns-timeline-journey .cns-trade-timeline-step > button small { margin-top:20px; }
 .cns-page .cns-timeline-journey .cns-trade-timeline-track::before,
 .cns-page .cns-timeline-journey .cns-trade-timeline-track::after { top:112px; }
 .cns-page .cns-timeline-journey .cns-trade-timeline-step:not(:last-child)::after {
  content:""; position:absolute; z-index:1; top:110px; right:-3px; width:5px; height:5px;
  border-top:1px solid #aeb5c18c; border-right:1px solid #aeb5c18c; transform:rotate(45deg); pointer-events:none;
 }
}
@media(min-width:761px) and (max-width:1000px) {
 .cns-page .cns-timeline-journey .cns-trade-timeline-step > button .cns-trade-timeline-node { width:calc(100% - 8px); padding:10px; }
 .cns-page .cns-timeline-journey .cns-trade-timeline-node-label { font-size:13px; }
 .cns-page .cns-timeline-journey .cns-trade-timeline-stage-number { font-size:25px; }
 .cns-page .cns-timeline-journey .cns-trade-timeline-icon { width:19px; height:19px; }
}
@media(max-width:760px) {
 .cns-page .cns-timeline-journey .cns-trade-timeline-track { margin-top:18px; }
 .cns-page .cns-timeline-journey.has-entry-at-start .cns-trade-timeline-track { margin-top:64px; }
 .cns-page[data-loophole-page] .cns-timeline-journey .cns-trade-timeline-step.is-loophole-entry:not(:first-child) { margin-top:64px; }
 .cns-page .cns-timeline-journey .cns-trade-timeline-step > button { display:block; min-height:78px; padding:0 0 14px; text-align:left; }
 .cns-page .cns-timeline-journey .cns-trade-timeline-step > button .cns-trade-timeline-node {
  width:100%; max-width:none; height:64px; padding:12px 14px;
  grid-template-columns:28px minmax(0,1fr) auto; grid-template-rows:minmax(0,1fr); gap:10px;
 }
 .cns-page .cns-timeline-journey .cns-trade-timeline-icon { grid-column:1; grid-row:1; justify-self:center; width:22px; height:22px; }
 .cns-page .cns-timeline-journey .cns-trade-timeline-node-label { grid-column:2; grid-row:1; align-self:start; margin-top:1px; font-size:15px; }
 .cns-page .cns-timeline-journey .cns-trade-timeline-stage-number { grid-column:3; grid-row:1; align-self:center; font-size:30px; }
 .cns-page .cns-timeline-journey .cns-trade-timeline-step > button small {
  position:absolute; top:36px; left:54px; right:54px; margin:0; font-size:11px; line-height:1.3; text-align:left;
 }
 .cns-page .cns-timeline-journey .cns-trade-timeline-track::before { top:32px; bottom:46px; left:27px; }
 .cns-page .cns-timeline-journey .cns-trade-timeline-bubble::before { left:27px; }
}
