/* Jaisandar 358 · Tenge playback + real Carry trade sub-tab */

body.home .economy-window[hidden] .carry-trade-block{display:none!important}
body.home .tenge-carry-link{
  appearance:none;display:inline-flex!important;align-items:center!important;justify-content:center!important;
  min-height:40px!important;padding:0 18px!important;border-radius:12px!important;
  border:1px solid #3f444a!important;background:#3f444a!important;color:#fff!important;
  font:900 .72rem/1 Inter,"Segoe UI",Arial,sans-serif!important;text-decoration:none!important;
  box-shadow:0 6px 16px rgba(31,36,41,.14)!important;cursor:pointer!important;
  transition:transform .18s ease,box-shadow .18s ease,background .18s ease!important;
}
body.home .tenge-carry-link:hover{background:#30353a!important;border-color:#30353a!important;color:#fff!important;transform:translateY(-1px)}
body.home .tenge-subnav [data-tenge-section-target="main"]{transition:transform .18s ease,background .18s ease,color .18s ease!important}
body.home .tenge-window[data-tenge-section-mode="carry"] .tenge-subnav [data-tenge-section-target="main"]{background:#fff!important;color:#4d5a58!important;border-color:#d8e1df!important}
body.home .tenge-window[data-tenge-section-mode="carry"] .tenge-carry-link{background:#202529!important;border-color:#202529!important;box-shadow:0 8px 20px rgba(31,36,41,.2)!important}

/* Carry trade is a true Tenge sub-view: hide FX tools while it is active. */
body.home .tenge-window[data-tenge-section-mode="main"] > .carry-trade-block{display:none!important}
body.home .tenge-window[data-tenge-section-mode="carry"] > .tenge-toolbar,
body.home .tenge-window[data-tenge-section-mode="carry"] > .tenge-period-row,
body.home .tenge-window[data-tenge-section-mode="carry"] > .tenge-year-scroll,
body.home .tenge-window[data-tenge-section-mode="carry"] > .tenge-chart-card,
body.home .tenge-window[data-tenge-section-mode="carry"] > .tenge-reveal-block:not(.carry-trade-block){display:none!important}
body.home .tenge-window[data-tenge-section-mode="carry"] > .carry-trade-block{
  display:block!important;margin:12px 0 0!important;scroll-margin-top:88px!important;border-color:#d7e1df!important;
}
body.home .tenge-window[data-tenge-section-mode="carry"] > .carry-trade-block > summary{display:none!important}
body.home .tenge-window[data-tenge-section-mode="carry"] > .carry-trade-block .carry-trade-shell{display:block!important;padding:14px!important}

/* Remove generic play controls from ordinary charts. Video-maker controls remain untouched. */
body.home .jai313-motion-play{display:none!important}

/* Restore the requested Tenge chart playback button. */
body.home [data-economy-window="tenge"] > .tenge-chart-card .tenge-reveal-controls > [data-tenge-pause],
body.home [data-economy-window="tenge"] > .tenge-chart-card .tenge-reveal-controls > [data-tenge-restart]{display:none!important}
body.home [data-economy-window="tenge"] > .tenge-chart-card .tenge-reveal-controls > [data-tenge-play]{
  display:inline-flex!important;align-items:center!important;justify-content:center!important;gap:6px!important;
  min-height:34px!important;padding:7px 13px!important;border:1px solid #006666!important;border-radius:9px!important;
  background:#006666!important;color:#fff!important;font-weight:900!important;box-shadow:0 7px 16px rgba(0,102,102,.16)!important;
}
body.home [data-economy-window="tenge"] > .tenge-chart-card .tenge-reveal-controls > [data-tenge-play]:hover{transform:translateY(-1px);background:#004f4f!important}

body.home .carry-chart{min-height:350px!important;width:100%!important}
body.home .carry-chart svg{display:block!important}
body.home .carry-empty-state{display:grid;place-items:center;align-content:center;gap:6px;min-height:300px;padding:24px;text-align:center;border:1px dashed #cfdedb;border-radius:14px;background:#f8fbfa;color:#536864}
body.home .carry-empty-state b{color:#173a39;font-size:.9rem}
body.home .carry-empty-state span{max-width:460px;font-size:.72rem;line-height:1.45}

@media(max-width:640px){
  body.home .carry-chart{min-height:320px!important}
  body.home [data-economy-window="tenge"] > .tenge-chart-card .tenge-reveal-controls > [data-tenge-play]{min-width:96px!important}
  body.home .tenge-window[data-tenge-section-mode="carry"] > .carry-trade-block .carry-trade-shell{padding:10px!important}
}
