/* Scoped futures curves for the live Curves tab. Colours follow the page theme. */
#curvesView .v2-live, #curvesView .v2-live * {box-sizing: border-box;}
#curvesView .v2-live button, #curvesView .v2-live select {font: inherit; color: inherit;}
#curvesView .v2-live button {cursor: pointer;}
#curvesView .v2-live button:focus-visible, #curvesView .v2-live select:focus-visible {outline: 2px solid var(--accent); outline-offset: 2px;}
#curvesView .v2-live a {color: var(--accent);}
#curvesView .v2-live {width: 100%; max-width: 1280px; margin: 0 auto; padding: 16px 14px 40px;}
#curvesView .v2-live h1 {margin: 0; font-size: 28px; letter-spacing: -.03em; font-weight: 750;}
#curvesView .v2-live h2 {margin: 0; font-size: 17px; letter-spacing: -.01em; font-weight: 720;}
#curvesView .v2-live .kicker {margin: 0 0 6px; color: var(--faint); font-size: 11px; font-weight: 750; letter-spacing: .16em; text-transform: uppercase;}
#curvesView .v2-live .lede, #curvesView .v2-live .build, #curvesView .v2-live .v2nav {margin: 8px 0 0; color: var(--muted); font-size: 14px;}
#curvesView .v2-live .build, #curvesView .v2-live .v2nav, #curvesView .v2-live .asof {color: var(--faint); font-size: 12.5px;}
#curvesView .v2-live .v2nav a[aria-current="page"] {color: var(--text); text-decoration: none;}
#curvesView .v2-live .block {margin: 12px 0 0; padding: 12px 12px 10px;
  border: 1px solid var(--border); border-radius: var(--radius); background: var(--panel); min-width: 0;}
#curvesView .v2-live .bh {display: flex; justify-content: space-between; align-items: baseline; gap: 8px; flex-wrap: wrap;}
#curvesView .v2-live .asof {margin: 0;}
#curvesView .v2-live .tools {display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin-top: 8px;}
#curvesView .v2-live .tools label {color: var(--faint); font-size: 12px;}
#curvesView .v2-live .tools select {min-height: 32px; max-width: 100%; padding: 2px 6px; border: 1px solid var(--border); border-radius: 8px; background: var(--panel-deep); font-size: 16px;}
#curvesView .v2-live .tools button {min-height: 32px; padding: 4px 10px; border: 1px solid var(--border); border-radius: 8px;
  background: transparent; color: var(--muted); font-size: 13px; font-weight: 700;}
#curvesView .v2-live .tools button.is-on {color: var(--text); border-color: var(--accent);}
#curvesView .v2-live .tenors {display: flex; flex-wrap: wrap; gap: 6px;}
#curvesView .v2-live .plot {min-width: 0; margin-top: 8px; overflow: visible;}
#curvesView .v2-live .plot svg {display: block; width: 100%; height: auto; overflow: visible;}
#curvesView .v2-live .plot svg text {font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;}
#curvesView .v2-live .leg {display: flex; flex-wrap: wrap; gap: 4px 12px; margin: 4px 0 0; color: var(--muted); font-size: 12px;}
#curvesView .v2-live .leg i {display: inline-block; width: 16px; height: 0; margin-right: 5px; border-top: 2.5px solid var(--c, var(--text)); vertical-align: 2px;}
#curvesView .v2-live .leg i.dot {width: 8px; height: 8px; border: 0; border-radius: 50%; background: var(--c, var(--text)); vertical-align: 0;}
#curvesView .v2-live table {width: 100%; border-collapse: collapse; margin-top: 8px; font-size: 13px; font-variant-numeric: tabular-nums;}
#curvesView .v2-live th, #curvesView .v2-live td {padding: 4px 6px; border-bottom: 1px solid var(--border); text-align: right;}
#curvesView .v2-live th:first-child, #curvesView .v2-live td:first-child {text-align: left;}
#curvesView .v2-live th {color: var(--faint); font-size: 10px; letter-spacing: .06em; text-transform: uppercase; font-weight: 750;}
#curvesView .v2-live .up {color: var(--good);}
#curvesView .v2-live .dn {color: var(--bad);}
#curvesView .v2-live .na {color: var(--muted);}
#curvesView .v2-live .note {margin: 6px 0 0; color: var(--faint); font-size: 12px;}
#curvesView .v2-live footer {margin-top: 16px; color: var(--faint); font-size: 12px;}
#curvesView .v2-live footer p {margin: 6px 0;}
@media (max-width: 420px){
#curvesView .v2-live {padding: 12px 10px 28px;}
#curvesView .v2-live h1 {font-size: 24px;}
#curvesView .v2-live table {font-size: 12px;}
}

#curvesView .v2-live {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 12px 12px 28px;
  background: var(--bg);
  color: var(--text);
  border-radius: 16px;
  font: 15px/1.45 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}
#curvesView .v2-live .prev-tab { margin: 0 0 4px; text-align: right; }
#curvesView .v2-live .prev-tab a { color: var(--faint); font-size: 12px; text-decoration: none; }
#curvesView .v2-live .prev-tab a:hover { color: var(--text); text-decoration: underline; }
@media (max-width: 600px){
  body.view-curves { padding-bottom: calc(96px + env(safe-area-inset-bottom)); }
  #curvesView .v2-live { width: 100%; max-width: none; padding-bottom: 16px; }
}

/* Curve blocks on the commodity pages. The chart keeps the full strip; the table opens on the front months. */
.cv { min-width: 0; }
.cv-wait { margin: 8px 0; color: var(--muted); font-size: 13px; }
.cv-src { display: none !important; }
.cv .prev-tab { margin: 0 0 4px; text-align: right; }
.cv .prev-tab a { color: var(--faint); font-size: 12px; text-decoration: none; }
.cv .prev-tab a:hover { color: var(--text); text-decoration: underline; }
.cv-block { margin: 12px 0 0; padding: 12px 12px 10px; border: 1px solid var(--border); border-radius: 12px; background: var(--panel); min-width: 0; color: var(--text); }
.cv-block h2 { margin: 0; font-size: 17px; letter-spacing: -.01em; font-weight: 720; }
.cv-block .bh { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.cv-block .asof { margin: 0; color: var(--faint); font-size: 12.5px; }
.cv-block .tools { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin-top: 8px; }
.cv-block .tools label { color: var(--faint); font-size: 12px; }
.cv-block .tools select { min-height: 32px; max-width: 100%; padding: 2px 6px; border: 1px solid var(--border); border-radius: 8px; background: var(--panel-deep); color: inherit; font-size: 16px; }
.cv-block .tools button, .cv-block .curve-more { min-height: 32px; padding: 4px 10px; border: 1px solid var(--border); border-radius: 8px; background: transparent; color: var(--muted); font-size: 13px; font-weight: 700; cursor: pointer; }
.cv-block .tools button.is-on { color: var(--text); border-color: var(--accent); }
.cv-block .curve-more { display: block; width: 100%; margin-top: 8px; border-style: dashed; }
.cv-block .tenors { display: flex; flex-wrap: wrap; gap: 6px; }
.cv-dates { display: flex; flex-wrap: wrap; gap: 8px 12px; margin-top: 8px; }
.cv-dates label { display: flex; flex-direction: column; gap: 2px; color: var(--muted); font-size: 12px; font-weight: 650; }
.cv-dates input { min-height: 32px; max-width: 100%; padding: 2px 6px; border: 1px solid var(--border); border-radius: 8px; background: var(--panel-deep); color: inherit; font-size: 16px; }
.cv-block .leg i.dash { width: 16px; height: 0; border: 0; border-top: 2px dashed var(--c, var(--text)); background: none; vertical-align: 2px; }
.cv-miss { margin: 4px 0 0; }
.cv-miss .na { margin: 0; font-size: 13px; }
.cv-block .plot { min-width: 0; margin-top: 8px; overflow: visible; }
.cv-block .plot svg { display: block; width: 100%; height: auto; overflow: visible; }
.cv-block .plot svg text { font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif; }
.cv-block .leg { display: flex; flex-wrap: wrap; gap: 4px 12px; margin: 4px 0 0; color: var(--muted); font-size: 12px; }
.cv-block .leg i { display: inline-block; width: 16px; height: 0; margin-right: 5px; border-top: 2.5px solid var(--c, var(--text)); vertical-align: 2px; }
.cv-block .leg i.dot { width: 8px; height: 8px; border: 0; border-radius: 50%; background: var(--c, var(--text)); vertical-align: 0; }
.cv-block table { width: 100%; border-collapse: collapse; margin-top: 8px; font-size: 13px; font-variant-numeric: tabular-nums; }
.cv-block th, .cv-block td { padding: 4px 6px; border-bottom: 1px solid var(--border); text-align: right; }
.cv-block th:first-child, .cv-block td:first-child { text-align: left; }
.cv-block th { color: var(--faint); font-size: 10px; letter-spacing: .06em; text-transform: uppercase; font-weight: 750; }
.cv-block .up { color: var(--good); }
.cv-block .dn { color: var(--bad); }
.cv-block .na { color: var(--muted); }
.cv-block .note { margin: 6px 0 0; color: var(--faint); font-size: 12px; }
#curvesView .v2-live .curve-more { display: block; width: 100%; margin-top: 8px; min-height: 32px; border: 1px dashed var(--border); border-radius: 8px; background: transparent; color: var(--muted); font-size: 13px; font-weight: 700; cursor: pointer; }
/* shared chart system: 1 month earlier is a faint line */
.cv-block .leg i.faint { opacity: .45; }
