/* GST staff page (/staff/). Builds on gst_v2.css. Groups are told apart by text tags and grey steps, never colour alone. */
.st-h1 { font-size: clamp(38px, 10vw, 96px); line-height: .92; margin-bottom: 16px; }
.st-h2 { font-size: clamp(24px, 5vw, 40px); margin: 10px 0 6px; }
.st-h3 { font-family: var(--body); font-weight: 800; text-transform: none; font-size: 18px; margin: 28px 0 4px; }
.st-ctx { margin: 30px 0 4px; border: 2px solid var(--g3); border-left: 10px solid var(--white); background: var(--g1); padding: 16px 18px 6px; }
.st-ctx h2 { font-size: clamp(20px, 4vw, 26px); margin-bottom: 8px; }
.st-ctx ul { margin: 0; padding-left: 20px; }
.st-ctx li { margin-bottom: 8px; color: #e6e6e6; }

.st-filters { display: flex; flex-wrap: wrap; gap: 8px; margin: 16px 0 8px; }
.st-filters button, .st-more { font: 800 12px var(--body); text-transform: uppercase; letter-spacing: .08em; background: transparent; color: var(--white); border: 2px solid var(--g3); padding: 8px 10px; cursor: pointer; }
.st-filters button[aria-pressed="true"] { border-color: var(--white); background: var(--white); color: var(--ink); }
.st-filters button:hover, .st-more:hover { border-color: var(--orange); }
.st-more { margin-top: 14px; }

.st-bars { margin-top: 6px; }
.st-bar { display: grid; grid-template-columns: 2.4em minmax(0, 1fr) auto; gap: 2px 10px; padding: 10px 0; border-bottom: 1px solid var(--g2); align-items: baseline; }
.st-bar .rk { font: 800 13px var(--body); color: var(--g4); font-variant-numeric: tabular-nums; }
.st-bar .who { min-width: 0; }
.st-bar .who b { font-weight: 800; font-size: 16px; }
.st-bar .who .off { display: block; font-size: 13px; color: var(--g5); overflow-wrap: anywhere; }
.st-bar .v { font: 900 clamp(22px, 5vw, 30px)/1 var(--body); font-variant-numeric: tabular-nums; text-align: right; }
.st-bar .track { grid-column: 2 / -1; height: 18px; background: var(--g1); position: relative; margin-top: 6px; }
.st-bar .fill { position: absolute; left: 0; top: 0; bottom: 0; border-radius: 0 4px 4px 0; }
.st-bar .fill.government { background: var(--white); }
.st-bar .fill.opposition { background: #a8a8a8; }
.st-bar .fill.crossbench { background: #6b6b6b; }
.st-bar .fill.other { background: transparent; border: 2px solid #8a8a8a; border-left: 0; }
.tag { display: inline-block; font: 800 10px/1 var(--body); letter-spacing: .1em; text-transform: uppercase; padding: 3px 5px; border: 1px solid var(--g4); color: var(--g5); margin-left: 6px; vertical-align: 2px; white-space: nowrap; }
.tag.government { border-color: var(--white); color: var(--white); }

.st-cols { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin-top: 16px; }
.st-col { border: 2px solid var(--g3); padding: 14px; background: var(--g1); min-width: 0; }
.st-col h3 { font-family: var(--body); font-weight: 800; text-transform: uppercase; letter-spacing: .1em; font-size: 13px; color: var(--g5); }
.st-col .big { font: 900 clamp(40px, 9vw, 64px)/1 var(--body); font-variant-numeric: tabular-nums; margin: 8px 0 10px; }
.st-col .meter { height: 10px; background: var(--g2); position: relative; margin-bottom: 10px; }
.st-col .meter i { position: absolute; left: 0; top: 0; bottom: 0; background: var(--white); border-radius: 0 4px 4px 0; }
.st-col ul { list-style: none; padding: 0; margin: 0; font-size: 14px; }
.st-col li { display: flex; justify-content: space-between; gap: 8px; padding: 4px 0; border-top: 1px solid var(--g2); }
.st-col li span:last-child { font-weight: 800; font-variant-numeric: tabular-nums; }

.st-tbl td.r, .st-tbl th.r { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.st-tbl td.r { font-weight: 700; }

.st-chart { margin-top: 14px; position: relative; }
.st-chart svg { display: block; width: 100%; height: auto; overflow: visible; }
.st-chart .ax { stroke: var(--g3); stroke-width: 1; }
.st-chart .gl { stroke: var(--g2); stroke-width: 1; }
.st-chart text { fill: var(--g4); font: 600 11px var(--body); }
.st-chart .ln { fill: none; stroke: var(--white); stroke-width: 2; }
.st-chart .pt { fill: var(--white); stroke: var(--black); stroke-width: 2; }
.st-chart .pt.last { fill: var(--orange); }
.st-chart .era { fill: var(--g1); }
.st-chart .era.alt { fill: #121212; }
.st-chart .eralbl { fill: var(--g5); font-weight: 800; }
.st-chart .hit { fill: transparent; cursor: default; }
.st-tip { position: absolute; pointer-events: none; background: var(--white); color: var(--ink); font: 600 13px/1.35 var(--body); padding: 6px 8px; white-space: nowrap; transform: translate(-50%, -110%); display: none; }
.st-details { margin-top: 12px; }
.st-details summary { cursor: pointer; font-weight: 800; }
.st-srcs li { margin-bottom: 8px; overflow-wrap: anywhere; }

@media (max-width: 760px) {
  .st-cols { grid-template-columns: 1fr; }
}
@media (max-width: 420px) {
  .st-bar { grid-template-columns: 2em minmax(0, 1fr) auto; gap: 2px 8px; }
  .st-filters button { padding: 7px 8px; }
}
