/* Public Sector Calculators – calculator UI (rounded rectangle styling) */
:root {
  --psc-radius: 0.75rem;
  --psc-radius-lg: 1rem;
}

.psc-assumptions {
  margin-bottom: 1.5rem;
  padding: 1.25rem;
  background: #f1f5f9;
  border-radius: var(--psc-radius-lg);
  font-size: 0.9375rem;
}

.psc-assumptions h2,
.psc-faq h2,
.psc-related h2,
.psc-disclaimer h2 {
  margin: 0 0 0.5rem;
  font-size: 1.125rem;
  font-family: var(--psc-font-heading, 'Plus Jakarta Sans', system-ui, sans-serif);
  font-weight: 700;
  color: var(--psc-text, #1e293b);
}

.psc-assumptions .psc-data-source {
  margin: 0 0 0.75rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid #e2e8f0;
  color: var(--psc-text, #1e293b);
}

.psc-assumptions ul {
  margin: 0;
  padding-left: 1.25rem;
}

.psc-tool {
  margin-bottom: 1.5rem;
  padding: 1.5rem;
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: var(--psc-radius-lg);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

.psc-calculator {
  min-height: 120px;
}

.psc-form {
  display: grid;
  gap: 1rem;
  max-width: 28rem;
  margin-bottom: 1.5rem;
}

.psc-form label {
  display: block;
  font-weight: 500;
  margin-bottom: 0.25rem;
  font-size: 0.9375rem;
}

.psc-form input[type="number"],
.psc-form input[type="text"],
.psc-form select {
  width: 100%;
  padding: 0.5rem 0.75rem;
  border: 1px solid #cbd5e1;
  border-radius: var(--psc-radius);
  font-size: 1rem;
}

.psc-form input:focus,
.psc-form select:focus {
  outline: none;
  border-color: var(--psc-accent, #0f766e);
  box-shadow: 0 0 0 3px rgba(15, 118, 110, 0.15);
}

.psc-form input:focus-visible,
.psc-form select:focus-visible {
  outline: none;
  border-color: var(--psc-accent, #0f766e);
  box-shadow: 0 0 0 3px rgba(15, 118, 110, 0.2);
}

.psc-form .hint,
.psc-form-hint {
  font-size: 0.8125rem;
  color: var(--psc-muted, #64748b);
  margin: -0.25rem 0 0;
  line-height: 1.4;
}

.psc-form .hint + label,
.psc-form-hint + label {
  margin-top: 0.75rem;
}

.psc-btn {
  padding: 0.625rem 1.25rem;
  background: var(--psc-accent, #0f766e);
  color: #fff;
  border: none;
  border-radius: var(--psc-radius);
  font-size: 1rem;
  font-weight: 500;
  cursor: pointer;
}

.psc-btn:hover {
  background: var(--psc-accent-hover, #0d9488);
}

.psc-btn:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px rgba(15, 118, 110, 0.35);
}

.psc-btn-secondary {
  background: #fff;
  color: var(--psc-accent, #0f766e);
  border: 1px solid var(--psc-accent, #0f766e);
}

.psc-btn-secondary:hover {
  background: rgba(15, 118, 110, 0.08);
}

.psc-download-wrap {
  margin: 1.25rem 0 0;
  padding-top: 1rem;
  border-top: 1px solid rgba(15, 118, 110, 0.2);
}

.psc-chart-wrap {
  margin-bottom: 1.25rem;
  padding: 1rem;
  background: #fff;
  border-radius: var(--psc-radius);
  border: 1px solid rgba(15, 118, 110, 0.2);
}

.psc-chart-svg {
  display: block;
  max-height: 220px;
}

.psc-results {
  margin-top: 1.5rem;
  padding: 1.5rem 1.5rem;
  background: #f0fdfa;
  border: 1px solid #99f6e4;
  border-radius: var(--psc-radius-lg);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.psc-results h2,
.psc-results .psc-results-title {
  margin: 0 0 1rem;
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--psc-text, #1e293b);
  padding-bottom: 0.5rem;
  border-bottom: 1px solid rgba(15, 118, 110, 0.2);
}

.psc-results-key {
  font-weight: 700;
  color: var(--psc-accent, #0f766e);
}

.psc-results-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9375rem;
}

.psc-results-table th,
.psc-results-table td {
  text-align: left;
  padding: 0.6rem 0.75rem;
  border-bottom: 1px solid #e2e8f0;
}

.psc-results-table tbody tr:last-child th,
.psc-results-table tbody tr:last-child td {
  border-bottom: none;
}

.psc-results-table th {
  font-weight: 500;
  color: var(--psc-muted, #64748b);
}

.psc-results-table .number {
  text-align: right;
  font-variant-numeric: tabular-nums;
}

.psc-results-summary {
  font-size: 1rem;
  font-weight: 500;
  margin-top: 1rem;
  line-height: 1.5;
}

.psc-results-summary + .psc-results-summary {
  margin-top: 0.5rem;
}

.psc-results-note {
  font-size: 0.9375rem;
  color: var(--psc-muted);
  margin: 0 0 1rem;
  line-height: 1.5;
}

.psc-results-note + .psc-results-note {
  margin-top: 0.5rem;
}

/* ========== Pay progression – key figures and table ========== */
.psc-results--pay-progression .psc-results-title {
  margin-bottom: 1.25rem;
}

.psc-progression-note {
  margin-bottom: 1.25rem;
  padding: 1rem 1.25rem;
  background: rgba(255, 255, 255, 0.7);
  border-radius: var(--psc-radius);
  border-left: 4px solid var(--psc-accent, #0f766e);
  font-size: 0.9375rem;
  color: var(--psc-text, #1e293b);
  line-height: 1.5;
}

.psc-progression-note p {
  margin: 0;
}

.psc-progression-note--flat {
  border-left-color: var(--psc-muted, #64748b);
  background: rgba(248, 250, 252, 0.9);
}

.psc-pay-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin-bottom: 1.5rem;
}

@media (max-width: 640px) {
  .psc-pay-stats {
    grid-template-columns: 1fr;
  }
}

.psc-pay-stat {
  padding: 1.25rem 1rem;
  background: #fff;
  border-radius: var(--psc-radius);
  border: 1px solid rgba(15, 118, 110, 0.2);
  text-align: center;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
}

.psc-pay-stat--total {
  background: linear-gradient(135deg, rgba(15, 118, 110, 0.08) 0%, rgba(13, 148, 136, 0.06) 100%);
  border-color: rgba(15, 118, 110, 0.35);
  font-weight: 600;
}

.psc-pay-stat-label {
  display: block;
  font-size: 0.8125rem;
  color: var(--psc-muted, #64748b);
  text-transform: uppercase;
  letter-spacing: 0.03em;
  margin-bottom: 0.35rem;
}

.psc-pay-stat-value {
  display: block;
  font-size: 1.375rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  color: var(--psc-accent, #0f766e);
  line-height: 1.2;
}

.psc-pay-stat--total .psc-pay-stat-value {
  font-size: 1.5rem;
  color: var(--psc-text, #1e293b);
}

.psc-pay-stat-meta {
  display: block;
  font-size: 0.75rem;
  color: var(--psc-muted, #64748b);
  margin-top: 0.25rem;
}

.psc-pay-table-wrap {
  overflow-x: auto;
  border-radius: var(--psc-radius);
  border: 1px solid rgba(15, 118, 110, 0.2);
  background: #fff;
  margin-bottom: 1rem;
}

.psc-pay-table {
  margin: 0;
  min-width: 100%;
}

.psc-pay-table thead {
  background: rgba(15, 118, 110, 0.08);
}

.psc-pay-table th {
  padding: 0.75rem 1rem;
  font-size: 0.8125rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  color: var(--psc-text, #1e293b);
  border-bottom: 2px solid rgba(15, 118, 110, 0.2);
}

.psc-pay-table td {
  padding: 0.75rem 1rem;
  border-bottom: 1px solid #e2e8f0;
  font-size: 1rem;
}

.psc-pay-table tbody tr:last-child td {
  border-bottom: none;
}

.psc-pay-table tbody tr:nth-child(even) {
  background: rgba(248, 250, 252, 0.6);
}

.psc-pay-table tbody tr:hover {
  background: rgba(15, 118, 110, 0.05);
}

.psc-pay-table .psc-pay-step {
  background: rgba(15, 118, 110, 0.06) !important;
}

.psc-pay-table .psc-pay-step td {
  border-top: 1px dashed rgba(15, 118, 110, 0.3);
}

.psc-pay-table .psc-pay-amount {
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  color: var(--psc-text, #1e293b);
}

.psc-pay-table .psc-pay-year {
  font-weight: 500;
  color: var(--psc-text, #1e293b);
}

.psc-pay-uplift-cell {
  font-size: 0.9375rem;
  font-variant-numeric: tabular-nums;
}

.psc-pay-uplift {
  display: inline-block;
  padding: 0.2em 0.4em;
  border-radius: 4px;
  font-weight: 600;
}

.psc-pay-uplift--base {
  color: var(--psc-muted, #64748b);
  font-weight: 500;
}

.psc-pay-uplift--up {
  color: #0d9488;
  background: rgba(13, 148, 136, 0.1);
}

.psc-pay-uplift--down {
  color: #b91c1c;
  background: rgba(185, 28, 28, 0.08);
}

/* Work Patterns: frameworks explanation */
.psc-work-frameworks {
  margin-bottom: 1.5rem;
  padding: 1rem 1.25rem;
  background: #eff6ff;
  border: 1px solid #bfdbfe;
  border-radius: var(--psc-radius-lg);
  font-size: 0.9375rem;
}

.psc-work-frameworks-heading {
  margin: 0 0 0.5rem;
  font-size: 1rem;
  font-weight: 700;
  color: var(--psc-text, #1e293b);
}

.psc-work-frameworks-list {
  margin: 0;
  padding-left: 1.25rem;
}

.psc-work-frameworks-list li {
  margin-bottom: 0.35rem;
}

.psc-work-frameworks-list li:last-child {
  margin-bottom: 0;
}

/* Work Patterns: side-by-side comparison cards */
.psc-results-work .psc-work-compare {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-bottom: 1.25rem;
}

@media (max-width: 640px) {
  .psc-results-work .psc-work-compare {
    grid-template-columns: 1fr;
  }
}

.psc-work-card {
  padding: 1rem 1.25rem;
  border-radius: var(--psc-radius);
  border: 1px solid #e2e8f0;
}

.psc-work-card h3 {
  margin: 0 0 0.5rem;
  font-size: 1rem;
  font-weight: 700;
  color: var(--psc-text, #1e293b);
}

.psc-work-full {
  background: #f0fdfa;
  border-color: #99f6e4;
}

.psc-work-part {
  background: #f8fafc;
  border-color: #cbd5e1;
}

.psc-work-hours {
  margin: 0 0 0.25rem;
  font-size: 0.8125rem;
  color: var(--psc-muted, #64748b);
}

.psc-work-pay {
  margin: 0;
  font-size: 1.25rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

.psc-work-period {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--psc-muted, #64748b);
}

.psc-work-pay-month {
  margin: 0.25rem 0 0;
  font-size: 0.875rem;
  color: var(--psc-muted, #64748b);
}

/* Work Patterns: visual bar comparison */
.psc-work-bar-wrap {
  margin-bottom: 1.25rem;
}

.psc-work-bar-row {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.5rem;
}

.psc-work-bar-row:last-child {
  margin-bottom: 0;
}

.psc-work-bar-label {
  flex: 0 0 7rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--psc-text, #1e293b);
}

.psc-work-bar-track {
  flex: 1;
  min-width: 0;
  height: 1.5rem;
  background: #e2e8f0;
  border-radius: var(--psc-radius);
  overflow: hidden;
}

.psc-work-bar-fill {
  height: 100%;
  border-radius: inherit;
  min-width: 2px;
}

.psc-work-bar-full {
  background: var(--psc-accent, #0f766e);
}

.psc-work-bar-part {
  background: #64748b;
}

.psc-work-bar-amount {
  flex: 0 0 5rem;
  font-size: 0.875rem;
  font-weight: 600;
  text-align: right;
  font-variant-numeric: tabular-nums;
}

.psc-noscript {
  padding: 1rem;
  background: #fef3c7;
  border: 1px solid #fcd34d;
  border-radius: var(--psc-radius-lg);
}

/* FAQ */
.psc-faq {
  margin-top: 2rem;
}

.psc-faq h2 {
  margin: 0 0 1rem;
  font-size: 1.25rem;
}

.psc-faq-list {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.psc-faq-item {
  border: 1px solid #e2e8f0;
  border-radius: var(--psc-radius);
  overflow: hidden;
}

.psc-faq-q {
  width: 100%;
  padding: 0.75rem 1rem;
  text-align: left;
  font-weight: 500;
  font-size: 0.9375rem;
  background: #f8fafc;
  border: none;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.psc-faq-q:hover {
  background: #f1f5f9;
}

.psc-faq-q[aria-expanded="true"] {
  background: #f0fdfa;
  border-bottom: 1px solid #e2e8f0;
}

.psc-faq-a {
  padding: 0.75rem 1rem;
  font-size: 0.9375rem;
  color: var(--psc-muted, #64748b);
  line-height: 1.5;
}

/* Progression note (pay progression pages) */
.psc-progression-note-wrap {
  margin-bottom: 1.5rem;
}

.psc-progression-note {
  margin: 0;
  padding: 0.75rem 1rem;
  background: #eff6ff;
  border: 1px solid #bfdbfe;
  border-radius: var(--psc-radius);
  font-size: 0.9375rem;
  color: var(--psc-text, #1e293b);
}

/* Related */
.psc-related {
  margin-top: 2rem;
  padding: 1.25rem;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: var(--psc-radius-lg);
}

.psc-related h2 {
  margin: 0 0 0.25rem;
  font-size: 1.25rem;
}

.psc-related-desc {
  margin: 0 0 0.75rem;
  font-size: 0.9375rem;
  color: var(--psc-muted, #64748b);
}

.psc-related-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.psc-related-list li {
  margin-bottom: 0.5rem;
}

.psc-related-list a {
  color: var(--psc-accent, #0f766e);
  text-decoration: none;
}

.psc-related-list a:hover {
  text-decoration: underline;
}

/* Disclaimer */
.psc-disclaimer {
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid #e2e8f0;
  font-size: 0.875rem;
  color: var(--psc-muted, #64748b);
}

.psc-disclaimer h2 {
  margin: 0 0 0.5rem;
  font-size: 1rem;
  color: var(--psc-text, #1e293b);
}
