/* Malta Debt Clock · Salaries page */

.sl-calc { display: flex; flex-wrap: wrap; gap: 20px; align-items: stretch; }
.sl-in { flex: 1 1 360px; min-width: 0; padding: 22px; display: flex; flex-direction: column; gap: 22px; }
.sl-out { flex: 1.4 1 520px; min-width: 0; padding: 22px; display: flex; flex-direction: column; gap: 18px; }
.sl-field { margin: 0; padding: 0; border: 0; min-width: 0; display: flex; flex-direction: column; gap: 10px; }
.sl-field legend { padding: 0; margin-bottom: 10px; }
.sl-field[hidden] { display: none; }
.sl-money { display: flex; align-items: center; gap: 10px; min-height: 60px; padding: 0 16px; border: 1px solid var(--line-strong); border-radius: 6px; background: var(--panel-2); }
.sl-money:focus-within { border-color: var(--gold); }
.sl-money span { font-size: 26px; font-weight: 600; color: var(--gold); }
.sl-money input { flex: 1; min-width: 0; border: 0; background: transparent; color: var(--text); font: 600 28px/1 var(--sans); font-variant-numeric: tabular-nums; outline: none; }
.sl-seg .tab { flex: 1 1 auto; }
.sl-check { display: flex; align-items: center; gap: 10px; min-height: 44px; font-size: 14px; color: var(--text-soft); cursor: pointer; }
.sl-check input { width: 20px; height: 20px; accent-color: #C9A96E; }

.sl-big { display: flex; flex-direction: column; gap: 10px; }
.sl-big .tiles { font-size: clamp(30px, 5vw, 52px); }
.sl-bar { display: flex; height: 16px; border-radius: 4px; overflow: hidden; gap: 2px; background: var(--panel-2); }
.sl-bar i { display: block; min-width: 0; transition: width 0.25s; }
.b-net, .k-net { background: #C9A96E; }
.b-tax, .k-tax { background: #E07A3E; }
.b-ssc, .k-ssc { background: #6E7D8F; }
.sl-legend { display: flex; flex-wrap: wrap; gap: 6px 20px; font-size: 12px; font-weight: 600; color: #B4BAC2; }
.sl-legend span { display: inline-flex; align-items: center; gap: 8px; }
.sl-legend i { width: 14px; height: 10px; border-radius: 2px; }

.sl-table { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; }
.sl-table th, .sl-table td { padding: 10px 8px; border-bottom: 1px solid var(--line-soft); text-align: right; font-size: 15px; }
.sl-table thead th { font-size: 11px; font-weight: 700; letter-spacing: 0.16em; color: var(--muted); text-transform: uppercase; }
.sl-table tbody th { text-align: left; font-weight: 600; color: var(--text-soft); }
.sl-table tr.neg td { color: #E9A27A; }
.sl-table tr.net th, .sl-table tr.net td { border-bottom: 0; font-weight: 700; color: #F0D59C; }
.sl-facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; padding-top: 6px; border-top: 1px solid var(--line); }
.sl-facts div { display: flex; flex-direction: column; gap: 4px; padding-top: 10px; }
.sl-facts strong { font-family: var(--serif); font-size: 24px; font-weight: 600; letter-spacing: 0.03em; }
.sl-facts span:last-child { font-size: 12px; color: var(--muted); }

.sl-growth { padding: 20px; display: flex; flex-direction: column; gap: 12px; }
.sl-chart svg { display: block; width: 100%; height: auto; }
.sl-chart .ax { font: 600 12px var(--sans); fill: #8A9099; }
.sl-chart .lab { font: 700 14px var(--sans); fill: #ECEEF1; }
.sl-chart .pt { cursor: default; outline: none; }
.sl-chart .pt:focus circle:first-child, .sl-chart .pt:hover circle:first-child { r: 7; }

.sl-eu { display: flex; flex-direction: column; gap: 16px; }
.sl-h2 { margin: 0; font-family: var(--serif); font-size: clamp(24px, 3vw, 36px); font-weight: 600; letter-spacing: 0.05em; }
.sl-eu-panel { padding: 20px; display: flex; flex-direction: column; gap: 14px; }
.sl-eu-head { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; font-size: 13px; font-weight: 600; color: var(--text-soft); }
.sl-rank { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 4px; }
.sl-rank li { display: grid; grid-template-columns: 28px 120px 1fr 86px; align-items: center; gap: 12px; padding: 4px 8px; border-radius: 4px; font-size: 13px; }
.sl-rank .n { color: #6E747D; font-weight: 700; text-align: right; }
.sl-rank .c { color: var(--text-soft); font-weight: 600; }
.sl-rank .b { height: 12px; border-radius: 0 3px 3px 0; background: transparent; }
.sl-rank .b i { display: block; height: 100%; border-radius: 0 3px 3px 0; background: #4B525B; }
.sl-rank .v { text-align: right; font-variant-numeric: tabular-nums; color: var(--text-soft); }
.sl-rank li.mt { background: rgba(201, 169, 110, 0.10); box-shadow: inset 2px 0 0 var(--gold); }
.sl-rank li.mt .c, .sl-rank li.mt .v { color: #F0D59C; font-weight: 700; }
.sl-rank li.mt .b i { background: #C9A96E; }

@media (max-width: 640px) {
  .sl-in, .sl-out, .sl-growth, .sl-eu-panel { padding: 14px; }
  .sl-rank li { grid-template-columns: 22px 92px 1fr 72px; gap: 8px; font-size: 12px; }
  .sl-table th, .sl-table td { padding: 8px 4px; font-size: 13px; }
}
