/* ==========================================================
   /cot page — loaded on that page only. Mobile-first. Brand D.
   The page is light; the summary card and the weekly table sit on the dark scene (.scene in main.css).
   Green/red only on data: net, weekly change, long/short bar.
   Numbers: Latin digits, left-to-right, monospace.
   ========================================================== */

.cot{padding-bottom:48px}
@media(min-width:980px){.cot{padding-bottom:80px}}
.cot .up{color:var(--up)}
.cot .dn{color:var(--down)}

/* ---------- header ---------- */
.cot-h{padding-block:26px 22px}
@media(min-width:980px){.cot-h{padding-block:52px 30px}}
.cot-h .h1{margin-top:16px}
.cot-h .lead{font-size:15px}
.cot-read{display:grid;grid-template-columns:repeat(3,1fr);max-width:560px;margin:22px 0 0;
  background:var(--card);border:1px solid var(--line);border-radius:var(--r);box-shadow:var(--shadow)}
.cot-read div{padding:12px}
.cot-read div+div{border-inline-start:1px solid var(--line2)}
.cot-read dt{font-size:12px;letter-spacing:.06em;color:var(--ink3);margin-bottom:3px}
.cot-read dd{margin:0;font-size:14px;font-weight:700;text-align:start}
.cot-read dd[dir=ltr]{text-align:right}

/* ---------- market picker: small light cards; the chosen one is navy ---------- */
/* 0.8.2: with the 12px minimum, a weekly change like «+40.0K» is about 44px wide — wider than a card in a row of seven
   on any phone. Phones: five per row (5 + 5 + 4), so the numbers sit inside their cards with room and each card is a
   full-size tap target. Seven per row from 600px, fourteen from 900px. */
.cot-mk{display:grid;grid-template-columns:repeat(5,1fr);gap:6px}
@media(min-width:600px){.cot-mk{grid-template-columns:repeat(7,1fr)}}
@media(min-width:900px){.cot-mk{grid-template-columns:repeat(14,1fr)}}
.cot-mk li{border-radius:12px;background:var(--card);border:1px solid var(--line)}
.cot-mk a,.cot-mk span{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:2px;
  min-height:52px;padding:6px 0;border-radius:12px;text-align:center;line-height:1.2}
.cot-mk b{font-size:12px;font-weight:700;letter-spacing:.04em;color:var(--ink)}
.cot-mk i{font-style:normal;font-size:12px;letter-spacing:0;color:var(--ink3)}
@media(hover:hover){.cot-mk a:hover{background:#FAFBFD}}
.cot-mk a[aria-current="page"]{background:var(--ink);--up:#2BD08A;--down:#FF5C61}
.cot-mk a[aria-current="page"] b{color:#fff}
.cot-mk a[aria-current="page"] i:not(.up):not(.dn){color:#C3C6E0}
.cot-mk span{cursor:default}
.cot-mk span i{color:var(--line3)}

/* ---------- summary card (scene) ---------- */
.cot-card{margin-top:14px;border-radius:18px;overflow:hidden;box-shadow:0 18px 40px rgba(14,16,36,.22)}
.cot-ch{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:12px 14px;
  border-bottom:1px solid var(--line);font-size:12px;letter-spacing:.07em;color:var(--ink2)}
.cot-ch span:first-child{color:#fff}
.cot-sum{display:grid;grid-template-columns:1fr 1fr;margin:0}
@media(min-width:760px){.cot-sum{grid-template-columns:repeat(4,1fr)}}
.cot-sum div{padding:12px 14px}
.cot-sum div:nth-child(even){border-inline-start:1px solid var(--line2)}
.cot-sum div:nth-child(n+3){border-top:1px solid var(--line2)}
@media(min-width:760px){
  .cot-sum div+div{border-inline-start:1px solid var(--line2)}
  .cot-sum div:nth-child(n+3){border-top:0}
}
.cot-sum dt{font-size:12px;letter-spacing:.06em;color:var(--ink3)}
.cot-sum dd{margin:4px 0 0;font-size:clamp(19px,5.4vw,24px);font-weight:500;letter-spacing:-.01em;line-height:1.2;text-align:right}
.cot-sum p{margin-top:4px;font-size:12px;line-height:1.6;color:var(--ink3)}
.cot-split{padding:12px 14px 14px;border-top:1px solid var(--line)}
.cot-split-l{display:flex;justify-content:space-between;font-size:12px;letter-spacing:.04em;color:var(--ink2);margin-bottom:7px}
.cot-bar{display:flex;justify-content:space-between;gap:2px;height:6px;border-radius:999px;overflow:hidden;background:var(--line)}
.cot-bar i{display:block;height:100%}
.cot-bar .up{background:var(--up)}
.cot-bar .dn{background:var(--down)}

/* ---------- table (scene) ---------- */
.cot-tbx{margin-top:12px;overflow-x:auto;border-radius:18px;box-shadow:0 18px 40px rgba(14,16,36,.22);
  -webkit-overflow-scrolling:touch;overscroll-behavior-x:contain}
.cot-tbx:focus-visible{outline:2px solid var(--blue);outline-offset:3px}
.cot-t{width:100%;min-width:640px;border-collapse:separate;border-spacing:0;font-size:12px;line-height:1.4}
.cot-t th,.cot-t td{padding:10px;white-space:nowrap;text-align:right;border-bottom:1px solid var(--line2)}
.cot-t thead th{background:var(--card);color:var(--ink3);font-size:12px;font-weight:500;letter-spacing:.06em;
  border-bottom:1px solid var(--line)}
.cot-t th:first-child{position:sticky;left:0;z-index:1;text-align:left;background:var(--scene);color:var(--ink2);font-weight:400;
  border-right:1px solid var(--line)}
.cot-t thead th:first-child{background:var(--card);color:var(--ink3)}
/* NET: last column, pinned to the right edge so it stays visible while the middle scrolls on a phone */
.cot-t th:last-child,.cot-t td:last-child{position:sticky;right:0;z-index:1;background:var(--scene);border-left:1px solid var(--line)}
.cot-t thead th:last-child{background:var(--card)}
/* 0.8.2: the columns that scroll under the pinned DATE and NET columns fade out at their edge, instead of showing
   a cut word (with 12px headings «CHANGE LONG» showed as «CHAI» beside NET). The fade is the colour of the cell itself
   (--fade), a plain background — no mask, so no extra layers for the phone to paint. */
.cot-t th:first-child::after,.cot-t th:last-child::before,.cot-t td:last-child::before{content:"";position:absolute;top:0;bottom:0;width:18px;
  pointer-events:none;--fade:var(--scene)}
.cot-t th:first-child::after{left:100%;background:linear-gradient(to right,var(--fade),transparent)}
.cot-t th:last-child::before,.cot-t td:last-child::before{right:100%;background:linear-gradient(to left,var(--fade),transparent)}
.cot-t thead th:first-child::after,.cot-t thead th:last-child::before{--fade:var(--card)}
.cot-t tbody tr:first-child th::after,.cot-t tbody tr:first-child td:last-child::before{--fade:#141733}
@media(hover:hover){.cot-t tbody tr:hover th::after,.cot-t tbody tr:hover td:last-child::before{--fade:#1A1E40}}
.cot-t tbody tr:last-child th,.cot-t tbody tr:last-child td{border-bottom:0}
.cot-t tbody tr:first-child th,.cot-t tbody tr:first-child td{background:#141733}
.cot-t tbody tr:first-child th{color:#fff}
.cot-t td.b{font-weight:700}
@media(hover:hover){.cot-t tbody tr:hover td,.cot-t tbody tr:hover th{background:#1A1E40}}
@media(min-width:760px){.cot-t{font-size:13px}.cot-t th,.cot-t td{padding:11px 14px}}

.cot-foot{display:flex;justify-content:space-between;align-items:center;gap:12px;margin-top:10px;font-size:12.5px;color:var(--ink3)}
.cot-foot a{display:inline-flex;align-items:center;min-height:44px;font-weight:700;color:var(--blue)}
.cot-foot a:hover{color:var(--blue-d)}

.cot-empty{margin-top:14px;padding:28px 16px;background:var(--card);border:1px dashed var(--line3);border-radius:var(--r);text-align:center;color:var(--ink2);font-size:14px}
.cot-empty .mn{font-size:12px;letter-spacing:.08em;color:var(--ink3);margin-bottom:6px}

/* ---------- locked frame (visitors without access) ---------- */
.cot-lock{margin-top:14px}
.cot-lock .cot-tbx{margin-top:0;overflow:hidden;box-shadow:none;
  -webkit-mask-image:linear-gradient(to bottom,#000 35%,transparent);mask-image:linear-gradient(to bottom,#000 35%,transparent)}
.cot-lock .ph{display:inline-block;width:46px;height:6px;border-radius:999px;background:rgba(255,255,255,.12);vertical-align:middle}
.cot-gate{position:relative;margin-top:-70px;padding:22px 18px;background:var(--card);border:1px solid var(--line);border-radius:var(--r);box-shadow:0 18px 44px rgba(18,21,43,.12)}
@media(min-width:760px){.cot-gate{padding:28px 28px}}
.cot-gate-k{display:inline-flex;align-items:center;gap:8px;font-size:12px;letter-spacing:.16em;color:var(--ink3)}
.cot-gate-k::before{content:"";width:6px;height:6px;border-radius:50%;background:var(--blue)}
.cot-gate h2{margin-top:8px;font-size:clamp(19px,5.2vw,23px);font-weight:900;letter-spacing:-.02em;line-height:1.5}
.cot-gate p{margin-top:8px;font-size:14px;line-height:1.9;color:var(--ink2)}
.cot-gate .cot-gate-u{font-size:13px;color:var(--ink3)}
.cot-gate-u .mn{color:var(--ink2);font-size:12px}
.cot-act{display:flex;flex-direction:column;gap:10px;margin-top:18px}
@media(min-width:430px){.cot-act{flex-direction:row}.cot-act .btn{flex:1}}

/* ---------- column guide ---------- */
.cot-guide{margin-top:34px}
.cot-guide h2{display:inline-flex;align-items:center;gap:8px;font-size:12px;letter-spacing:.16em;color:var(--ink3);font-weight:500}
.cot-guide h2::before{content:"";width:6px;height:6px;border-radius:50%;background:var(--blue)}
.cot-guide dl{display:grid;gap:8px;margin:14px 0 0}
@media(min-width:760px){.cot-guide dl{grid-template-columns:1fr 1fr;gap:12px}}
.cot-guide dl div{padding:14px 16px;background:var(--card);border:1px solid var(--line);border-radius:14px}
.cot-guide dt{font-size:12px;letter-spacing:.05em;color:var(--ink);font-weight:700;text-align:right}
.cot-guide dd{margin:4px 0 0;font-size:13.5px;line-height:1.85;color:var(--ink2)}
.cot-note{margin-top:14px;font-size:12.5px;line-height:1.9;color:var(--ink3)}
