/* Phase 8: English salary page blocks. Scoped to .bgsc-en-*; no global overrides. */
.bgsc-en-block { margin: 32px 0 0; }
.bgsc-en-block h2 { margin: 0 0 12px; }
.bgsc-en-block p, .bgsc-en-block li { max-width: 720px; }
.bgsc-en-route { margin: 0 0 16px; padding: 12px 16px; border: 1px solid #d0d5dd; border-radius: 12px; background: #f7f8fa; }
.bgsc-en-table-wrap { width: 100%; border: 1px solid #d0d5dd; border-radius: 12px; overflow: hidden; background: #fff; }
.bgsc-en-table { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; }
.bgsc-en-table th, .bgsc-en-table td { padding: 10px 12px; border-bottom: 1px solid #e4e7ec; text-align: right; font-size: .95rem; }
.bgsc-en-table thead th { background: #f7f8fa; color: #0f1b2d; font-size: .8rem; font-weight: 600; }
.bgsc-en-table tbody th { text-align: left; font-weight: 600; }
.bgsc-en-table tbody tr:last-child > * { border-bottom: 0; }
@media (max-width: 640px) {
  .bgsc-en-block { margin-top: 24px; }
  .bgsc-en-table, .bgsc-en-table tbody, .bgsc-en-table tr, .bgsc-en-table th, .bgsc-en-table td { display: block; width: 100%; box-sizing: border-box; }
  .bgsc-en-table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .bgsc-en-table tr { padding: 8px 0; border-bottom: 1px solid #d0d5dd; }
  .bgsc-en-table tbody tr:last-child { border-bottom: 0; }
  .bgsc-en-table th, .bgsc-en-table td { display: flex; justify-content: space-between; gap: 12px; padding: 4px 12px; border: 0; text-align: right; }
  .bgsc-en-table tbody th { font-weight: 700; }
  .bgsc-en-table th::before, .bgsc-en-table td::before { content: attr(data-label); font-weight: 500; color: #475467; text-align: left; }
}

/* Mobile first screen: H1, one-line intent, direction, amount and the button as high as possible.
   Scoped with :has() to pages that carry the Phase 8 blocks; browsers without :has() keep the old spacing. */
@media (max-width: 640px) {
  .section--page-shell:has(.bgsc-en-block) { padding-top: 8px; }
  .page-shell__main:has(.bgsc-en-block) { padding: 16px; }
  .page-shell__main:has(.bgsc-en-block) > .eyebrow { display: none; }
  .page-shell__main:has(.bgsc-en-block) .page-header { margin-bottom: 8px; }
  .page-shell__main:has(.bgsc-en-block) .entry-content > p:first-child { margin: 0 0 12px; }
  .page-shell__main:has(.bgsc-en-block) .bgsc-form-subtitle { display: none; }
}
.bgsc-en-table-wrap + p { margin-top: 12px; }
@media (min-width: 641px) { .bgsc-en-table tbody th, .bgsc-en-table td { white-space: nowrap; padding: 10px 8px; font-size: .9rem; } .bgsc-en-table-wrap { overflow-x: auto; } }
