/* GST public service page (/public-service/). Builds on gst_v2.css. Governments are shaded with neutral greys only. */
.ps-h1 { font-size: clamp(36px, 9vw, 92px); line-height: .92; margin-bottom: 16px; overflow-wrap: anywhere; }
.ps-h2 { font-size: clamp(24px, 5vw, 40px); margin: 10px 0 6px; }
.ps-h3 { font-family: var(--body); font-weight: 800; text-transform: none; font-size: 18px; margin: 28px 0 4px; }
.ps-ctx { margin: 30px 0 4px; border: 2px solid var(--g3); border-left: 10px solid var(--white); background: var(--g1); padding: 16px 18px 6px; }
.ps-ctx h2 { font-size: clamp(20px, 4vw, 26px); margin-bottom: 8px; }
.ps-ctx ul { margin: 0; padding-left: 20px; }
.ps-ctx li { margin-bottom: 8px; color: #e6e6e6; }

.ps-legend { display: flex; flex-wrap: wrap; gap: 6px 16px; margin-top: 12px; color: var(--g5); }
.ps-legend i { display: inline-block; width: 18px; height: 0; vertical-align: middle; margin-right: 6px; border-top: 3px solid var(--white); }
.ps-legend i.k-ong { border-top: 2px dashed var(--g4); }
.ps-legend i.k-era { height: 12px; border: 1px solid var(--g3); background: #1d1d1d; }

.ps-chart { margin-top: 10px; position: relative; }
.ps-chart svg { display: block; width: 100%; height: auto; overflow: visible; }
.ps-chart .gl { stroke: var(--g2); stroke-width: 1; }
.ps-chart text { fill: var(--g4); font: 600 11px var(--body); }
.ps-chart .ln { fill: none; stroke: var(--white); stroke-width: 2.5; }
.ps-chart .ln.ong { stroke: var(--g4); stroke-width: 1.6; stroke-dasharray: 5 4; }
.ps-chart .pt { fill: var(--white); }
.ps-chart .pt.last { fill: var(--orange); stroke: var(--black); stroke-width: 2; }
.ps-chart .era { fill: #121212; }
.ps-chart .era.alt { fill: #1d1d1d; }
.ps-chart .eralbl { fill: var(--g5); font-weight: 800; }
.ps-chart .lastlbl { fill: var(--white); font-weight: 800; font-size: 13px; }
.ps-chart .hit { fill: transparent; cursor: default; }
.ps-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; z-index: 2; }
.ps-details { margin-top: 12px; }
.ps-details summary { cursor: pointer; font-weight: 800; }

.ps-tbl td.r, .ps-tbl th.r { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.ps-tbl td.r { font-weight: 700; }
.ps-tbl tr.tot td { border-top: 2px solid var(--g4); font-weight: 800; }
.ps-tbl .sub { display: block; font-weight: 600; font-size: 12px; color: var(--g4); }

.ps-govs { margin-top: 16px; display: grid; gap: 0; }
.ps-gov { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 4px 12px; padding: 14px 0; border-bottom: 1px solid var(--g2); }
.ps-gov .who b { display: block; font-size: 18px; font-weight: 800; }
.ps-gov .ch { font: 900 clamp(24px, 5vw, 36px)/1 var(--body); text-align: right; white-space: nowrap; }
.ps-gov .ch .pc { display: block; font-size: 14px; font-weight: 700; color: var(--g5); margin-top: 4px; }
.ps-gov .axis { grid-column: 1 / -1; height: 14px; background: var(--g1); position: relative; }
.ps-gov .axis::after { content: ""; position: absolute; left: 50%; top: -3px; bottom: -3px; width: 2px; background: var(--g4); }
.ps-gov .axis i { position: absolute; top: 0; bottom: 0; background: var(--white); }
.ps-gov .axis i.neg { background: transparent; border: 2px solid var(--g5); }
.ps-gov .span { grid-column: 1 / -1; color: var(--g5); }

.ps-bars { margin-top: 6px; }
.ps-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; }
.ps-bar .rk { font: 800 13px var(--body); color: var(--g4); font-variant-numeric: tabular-nums; }
.ps-bar .who { min-width: 0; }
.ps-bar .who b { font-weight: 800; font-size: 16px; overflow-wrap: anywhere; }
.ps-bar .who .off { display: block; font-size: 13px; color: var(--g5); }
.ps-bar .v { font: 900 clamp(20px, 5vw, 28px)/1 var(--body); font-variant-numeric: tabular-nums; text-align: right; }
.ps-bar .v .chg { display: block; font: 600 12px/1.3 var(--body); color: var(--g5); margin-top: 4px; white-space: nowrap; }
.ps-bar .track { grid-column: 2 / -1; height: 14px; background: var(--g1); position: relative; margin-top: 6px; }
.ps-bar .fill { position: absolute; left: 0; top: 0; bottom: 0; background: var(--white); border-radius: 0 4px 4px 0; }
.ps-more { margin-top: 14px; 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; }
.ps-more:hover { border-color: var(--orange); }

.ps-stack { display: flex; height: 34px; margin-top: 16px; background: var(--g1); }
.ps-stack i, .ps-keys i { display: block; }
.s0 { background: var(--white); }
.s1 { background: #a8a8a8; }
.s2 { background: #6b6b6b; }
.s3 { background: transparent; box-shadow: inset 0 0 0 2px #a8a8a8; }
.ps-keys { list-style: none; padding: 0; margin: 12px 0 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 4px 18px; }
.ps-keys li { display: grid; grid-template-columns: 14px minmax(0, 1fr) auto auto; gap: 8px; align-items: center; padding: 6px 0; border-bottom: 1px solid var(--g2); font-size: 14px; }
.ps-keys li i { width: 14px; height: 14px; }
.ps-keys b { font-weight: 800; }

.ps-audits { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; margin-top: 16px; }
.ps-audit { border: 2px solid var(--g3); padding: 14px; background: var(--g1); min-width: 0; }
.ps-audit h3 { font-family: var(--body); font-weight: 800; text-transform: uppercase; letter-spacing: .1em; font-size: 13px; color: var(--g5); }
.ps-audit .big { font: 900 clamp(36px, 8vw, 56px)/1 var(--body); margin: 8px 0 4px; }
.ps-audit .cost { margin: 8px 0; }
.ps-audit ul { list-style: none; padding: 0; margin: 8px 0; font-size: 14px; }
.ps-audit li { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 2px 8px; padding: 5px 0; border-top: 1px solid var(--g2); }
.ps-audit li i { grid-column: 1 / -1; height: 6px; background: var(--g5); display: block; }
.ps-srcs li { margin-bottom: 8px; overflow-wrap: anywhere; }

@media (max-width: 760px) {
  .ps-audits { grid-template-columns: 1fr; }
}
@media (max-width: 520px) {
  .ps-tbl .hide-s { display: none; }
  .ps-bar { grid-template-columns: 2em minmax(0, 1fr) auto; gap: 2px 8px; }
  .ps-bar .v .chg { white-space: normal; max-width: 9em; }
  .ps-chart .eralbl { font-size: 14px; }
}
