/* GST: contracts page (/contracts/). Builds on gst_v2.css; only adds what this page needs. */
.ct h1 { font-size: clamp(34px, 8vw, 72px); line-height: .95; margin-top: 10px; }
.ct-hero { padding-top: 26px; }
.ct-years { display: flex; gap: 6px; flex-wrap: wrap; margin: 18px 0 6px; }
.ct-years button, .ct-more { font: 800 12px var(--body); text-transform: uppercase; letter-spacing: .08em; background: transparent; color: var(--white); border: 2px solid var(--g3); padding: 8px 12px; cursor: pointer; }
.ct-years button[aria-pressed="true"] { border-color: var(--white); background: var(--white); color: var(--ink); }
.ct-years button:hover, .ct-more:hover { border-color: var(--orange); }
.ct-more { margin-top: 14px; }
.ct-h3 { margin: 28px 0 8px; }
.ct-explain { max-width: 900px; color: #e6e6e6; margin-top: 14px; }

/* running total chart */
.ct-chart { margin-top: 18px; max-width: 900px; }
.ct-chart svg { display: block; width: 100%; height: auto; }
.ct-chart .axis { fill: var(--g4); font: 600 11px var(--body); }

/* context box */
.ct-context { background: var(--g6); color: var(--ink); margin: 30px 0 4px; padding: 20px 20px 10px; border-left: 10px solid var(--ink); }
.ct-context h2 { font-size: clamp(22px, 4vw, 30px); margin-bottom: 10px; }
.ct-context ul { padding-left: 20px; margin: 0 0 12px; max-width: 920px; }
.ct-context li { margin-bottom: 8px; }
.ct-context .muted { color: #555; }
.ct-context a { color: var(--ink); }

/* filters */
.ct-filters { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1.4fr) minmax(0, 1fr) auto; gap: 10px 14px; align-items: end; margin: 18px 0 10px; }
.ct-filters label, .ct-search { display: flex; flex-direction: column; gap: 4px; min-width: 0; font-size: 11px; text-transform: uppercase; letter-spacing: .1em; color: var(--g4); font-weight: 700; }
.ct-filters input[type="search"], .ct-filters select, .ct-search input { font: 600 15px var(--body); background: var(--g1); color: var(--white); border: 2px solid var(--g3); padding: 8px 10px; width: 100%; min-width: 0; border-radius: 0; }
.ct-filters input:focus, .ct-filters select:focus, .ct-search input:focus { outline: none; border-color: var(--white); }
.ct-filters .ct-check { flex-direction: row; align-items: center; gap: 8px; text-transform: none; letter-spacing: 0; font-size: 14px; color: var(--g5); padding-bottom: 10px; }
.ct-filters .ct-check input { accent-color: var(--orange); width: 18px; height: 18px; }
.ct-search-inline { max-width: 420px; margin: 12px 0 4px; }

/* contract list */
.ct-list { border-top: 2px solid var(--white); }
.ct-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 2px 14px; padding: 12px 0; border-bottom: 1px solid var(--g2); }
.ct-row .who { font-weight: 800; font-size: 16px; overflow-wrap: anywhere; }
.ct-row .val { font: 900 20px/1.2 var(--body); font-variant-numeric: tabular-nums; text-align: right; white-space: nowrap; }
.ct-row .desc { grid-column: 1 / -1; color: var(--g5); font-size: 14px; overflow-wrap: anywhere; }
.ct-row .meta { grid-column: 1 / -1; font-size: 12px; color: var(--g4); overflow-wrap: anywhere; }
.ct-row .rank { color: var(--g4); font-weight: 700; margin-right: 6px; }
.ct-tag { display: inline-block; font: 800 10px/1 var(--body); letter-spacing: .1em; text-transform: uppercase; padding: 3px 5px; border: 1px solid var(--g3); color: var(--g5); margin-left: 4px; vertical-align: 1px; }

/* Big 4 */
.ct-big4 { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 12px; margin-top: 12px; }
.ct-firm { border: 2px solid var(--g3); background: var(--g1); padding: 14px; min-width: 0; }
.ct-firm h4 { margin: 0 0 8px; font: 400 22px/1 var(--head); text-transform: uppercase; }
.ct-firm .lbl { font-size: 11px; text-transform: uppercase; letter-spacing: .1em; color: var(--g4); font-weight: 700; margin-top: 8px; }
.ct-firm .v { font: 900 22px/1.15 var(--body); font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.ct-firm .n { font-size: 12px; color: var(--g4); }

/* open / limited split */
.ct-split { margin: 18px 0 14px; max-width: 900px; }
.ct-split .bar2 { display: flex; height: 22px; background: var(--g1); }
.ct-split .bar2 span { display: block; height: 100%; }
.ct-split .s-open { background: var(--white); }
.ct-split .s-limited { background: var(--g4); }
.ct-split .s-other { background: var(--g3); }
.ct-split .legend { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 8px 18px; margin-top: 10px; font-size: 14px; }
.ct-split .legend i { display: inline-block; width: 12px; height: 12px; margin-right: 6px; vertical-align: -1px; }
.ct-split .legend b { font-variant-numeric: tabular-nums; }
.ct-table-wrap { max-width: 100%; overflow-x: auto; }
.ct-method-table td { overflow-wrap: anywhere; }
.ct-method-table td.r, .ct-method-table th.r { text-align: right; }

/* sources */
#ct-sources .src a { overflow-wrap: anywhere; }

@media (max-width: 760px) {
  .ct-filters { grid-template-columns: 1fr 1fr; }
  .ct-filters .ct-search { grid-column: 1 / -1; }
  .ct-filters .ct-check { grid-column: 1 / -1; padding-bottom: 0; }
}
@media (max-width: 420px) {
  .ct-filters { grid-template-columns: 1fr; }
  .ct-row .val { font-size: 17px; }
  .ct-method-table .hide-s { display: none; }
  .ct-context { padding: 16px 14px 8px; border-left-width: 6px; }
}
