/* Subject navigation belongs to the page; quotes are a separate daily feed. */
#cdp-subject-bar { background:#f7f7f7; }
#cdp-subject-bar > .maxwidth-theme { display:flex; align-items:center; gap:24px; min-width:0; }
#cdp-subject-bar .cdp-subject-choice { flex:0 1 355px; min-width:180px; padding:6px 24px 6px 0; border:0; }
#cdp-subject-bar .cdp-subject-field { display:flex; flex-direction:column; align-items:stretch; gap:4px; min-height:38px; }
#cdp-subject-bar label { margin:0; flex-shrink:0; font-size:13px; }
#cdp-subject-bar select { width:100%; max-width:308px; min-width:0; height:36px; padding:5px 28px 5px 8px; border:1px solid #dce2ea; border-radius:6px; background-color:#fff; font-size:13px; }
#cdp-subject-bar .cdp-markets { flex:1 1 0; min-width:0; padding:6px 0; color:#4b6280; font-size:12px; line-height:1.3; font-family:inherit; }
.cdp-markets, .cdp-markets * { box-sizing:border-box; }
.cdp-markets [hidden] { display:none!important; }
.cdp-markets__heading { display:flex; align-items:baseline; gap:10px; margin:0 22px 4px; font-size:11px; font-weight:600; }
.cdp-markets__line { display:flex; align-items:center; gap:4px; min-width:0; min-height:58px; }
.cdp-markets .market-quotes__viewport { flex:1; min-width:0; overflow-x:auto; scrollbar-width:none; scroll-snap-type:x mandatory; overscroll-behavior-x:contain; }
.cdp-markets .market-quotes__viewport::-webkit-scrollbar { display:none; }
.cdp-markets .market-quotes__track { display:flex; gap:8px; }
.cdp-markets .market-quotes__card { display:grid; grid-template-columns:minmax(0,1fr) auto; gap:2px 4px; flex:0 0 calc((100% - 32px)/5); min-width:0; padding:3px 6px; border:0; position:relative; border-radius:0; background:transparent; color:inherit; text-decoration:none; scroll-snap-align:start; }
.cdp-markets .market-quotes__caption { display:none; }
.cdp-markets .market-quotes__name-row { display:flex; align-items:center; gap:4px; grid-column:1/-1; min-width:0; }
.cdp-markets .market-quotes__dot { flex:0 0 5px; width:5px; height:5px; border-radius:50%; background:#a2a9b1; }
.cdp-markets .market-quotes__dot.is-on { background:#30a46c; }
.cdp-markets .market-quotes__name { overflow:hidden; white-space:nowrap; text-overflow:ellipsis; font-size:11px; }
.cdp-markets .market-quotes__price { grid-column:1/-1; overflow:hidden; white-space:nowrap; text-overflow:ellipsis; font-size:14px; font-weight:600; font-variant-numeric:tabular-nums; }
.cdp-markets .market-quotes__unit { overflow:hidden; white-space:nowrap; text-overflow:ellipsis; font-size:9px; color:#8b95a2; }
.cdp-markets .market-quotes__change { font-size:10px; white-space:nowrap; font-variant-numeric:tabular-nums; }
.cdp-markets .is-positive { color:#218459; }
.cdp-markets .is-negative { color:#cb4b4b; }
.cdp-markets .cdp-market-arrow { display:flex; align-items:center; justify-content:center; flex:0 0 18px; width:18px; height:30px; min-height:0; padding:0; margin:0; background:transparent; border:0; box-shadow:none; border-radius:4px; color:#64758b; font:25px/1 Arial,sans-serif; cursor:pointer; }
.cdp-markets .cdp-market-arrow:hover:not(:disabled) { background:#edf2f7; }
.cdp-markets .cdp-market-arrow:disabled { opacity:.25; cursor:default; }
.cdp-markets .market-quotes__status { margin:0 22px; color:#8b95a2; font-size:11px; }
.cdp-markets a:focus-visible,.cdp-markets button:focus-visible,.cdp-markets [tabindex]:focus-visible { outline:2px solid #2878c8; outline-offset:1px; }
@media(max-width:1100px) {
  #cdp-subject-bar > .maxwidth-theme { gap:12px; }
  #cdp-subject-bar .cdp-subject-choice { flex-basis:270px; padding-right:12px; }
}
@media(max-width:760px) {
  #cdp-subject-bar > .maxwidth-theme { flex-direction:column; align-items:stretch; gap:0; }
  #cdp-subject-bar .cdp-subject-choice { flex-basis:auto; border-right:0; padding:6px 0; border-bottom:0; }
  #cdp-subject-bar .cdp-markets { display:none!important; }
  #cdp-subject-bar select { max-width:308px; }
  .cdp-markets .market-quotes__card { flex-basis:calc((100% - 16px)/3); }
  /* Sticky positioning is supplied by the existing .ci_link_wrap.fixed styles. */
}
@media(max-width:380px) {
  .cdp-markets .market-quotes__card { flex-basis:calc((100% - 8px)/2); }
}

/* Dividers sit in the gaps; the viewport clips them at each page edge. */
.cdp-markets .market-quotes__card + .market-quotes__card::before { content:""; position:absolute; left:-4px; top:6px; bottom:6px; width:1px; background:#e5e9ef; }
.cdp-calendar .cdp-calendar-heading { font-size:22px; margin-top:30px; }

/* Keep compact vertical spacing, including the site's shared containers. */
#cdp-subject-bar.ci_link_wrap,
#cdp-subject-bar > .maxwidth-theme { height:auto!important; min-height:0!important; padding-top:0!important; padding-bottom:0!important; }
#cdp-subject-bar .cdp-subject-choice,
#cdp-subject-bar .cdp-markets { padding-top:3px!important; padding-bottom:3px!important; }
#cdp-subject-bar .cdp-subject-field { min-height:0!important; gap:2px; }
#cdp-subject-bar label { line-height:16px; }
#cdp-subject-bar .cdp-markets__line { min-height:0!important; }
#cdp-subject-bar .cdp-subject-select-wrap { position:relative; width:100%; max-width:308px; }
#cdp-subject-bar .cdp-subject-brand,
#cdp-subject-bar .cdp-subject-selected-flag { display:none; }
@media(max-width:760px) {
  #cdp-subject-bar .cdp-subject-choice,
  #cdp-subject-bar .cdp-subject-field,
  #cdp-subject-bar .cdp-subject-select-wrap,
  #cdp-subject-bar select { width:100%!important; max-width:none!important; min-width:0; box-sizing:border-box; }
  #cdp-subject-bar .cdp-subject-choice { padding-left:0; padding-right:0; }
  #cdp-subject-bar label { display:none!important; }
  #cdp-subject-bar .cdp-subject-brand { display:block; font-size:10px; line-height:13px; color:#8490a0; }
  #cdp-subject-bar .cdp-subject-selected-flag { display:block; position:absolute; left:10px; top:50%; transform:translateY(-50%); width:22px!important; height:22px!important; min-width:22px; max-width:22px; border:1px solid #dce2ea; border-radius:50%!important; object-fit:cover; box-sizing:border-box; pointer-events:none; z-index:1; }
  #cdp-subject-bar .cdp-subject-selected-flag[hidden] { display:none!important; }
  #cdp-subject-bar .has-flag select { padding-left:40px!important; }
}

#cdp-subject-bar .cdp-subject-brand { text-align:center; width:100%; }
.cdp-calendar[hidden] { display:none!important; }

@media (min-width: 761px) {
    #cdp-subject-bar > .maxwidth-theme {
        align-items: flex-start;
    }

    #cdp-subject-bar .cdp-subject-field {
        gap: 4px;
    }

    #cdp-subject-bar label {
        display: block;
        margin: 0 0 4px;
        font-family: inherit;
        font-size: 11px;
        font-weight: 600;
        line-height: 14px;
    }

    #cdp-subject-bar .cdp-markets__heading {
        line-height: 14px;
    }
}
