/* PK Jobs Hub Salary Calculator — standalone stylesheet (no dependency on the main site) */
*, *::before, *::after { box-sizing: border-box; }
:root { --brand: #0f9d8a; --brand-dark: #0b7a6b; --ink: #111827; --muted: #6b7280; --line: #e5e7eb; --soft: #f6f8f9; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Noto Sans", Arial, sans-serif; color: var(--ink); background: #fafbfc; line-height: 1.55; }
a { color: var(--brand-dark); }
a:focus-visible, button:focus-visible, select:focus-visible, input:focus-visible, summary:focus-visible { outline: 3px solid var(--brand); outline-offset: 2px; }
img { max-width: 100%; height: auto; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 0; background: var(--ink); color: #fff; padding: .6rem 1rem; z-index: 10; }
.skip:focus { left: 1rem; }

/* Header / footer */
.sc-header { background: #fff; border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 5; }
.sc-header-in { max-width: 980px; margin: 0 auto; padding: .5rem 16px; display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }
.sc-brand { display: flex; align-items: center; gap: .6rem; text-decoration: none; color: var(--ink); font-weight: 700; }
.sc-brand span { border-left: 1px solid var(--line); padding-left: .6rem; font-size: .95rem; }
.sc-nav { display: flex; gap: .25rem; flex-wrap: wrap; }
.sc-nav a { text-decoration: none; color: #374151; padding: .55rem .75rem; border-radius: 8px; font-weight: 600; font-size: .92rem; min-height: 40px; display: inline-flex; align-items: center; }
.sc-nav a:hover, .sc-nav a[aria-current] { background: #f0fdfa; color: var(--brand-dark); }
.sc-nav .sc-jobs { border: 1px solid var(--line); }
.sc-footer { background: #fff; border-top: 1px solid var(--line); margin-top: 2rem; }
.sc-footer-in { max-width: 980px; margin: 0 auto; padding: 1.5rem 16px; font-size: .88rem; color: var(--muted); }
.sc-footer-links a { color: #374151; }

/* Buttons */
.btn-primary, .btn-secondary, .btn-search, .share-btn { display: inline-flex; align-items: center; justify-content: center; gap: .45rem; min-height: 44px; padding: 0 1.1rem; border-radius: 10px; font-weight: 600; font-size: .95rem; text-decoration: none; cursor: pointer; border: 1px solid transparent; font-family: inherit; }
.btn-primary, .btn-search { background: var(--brand); color: #fff; }
.btn-primary:hover, .btn-search:hover { background: var(--brand-dark); color: #fff; }
.btn-secondary { background: #fff; color: var(--ink); border-color: #d1d5db; }
.btn-secondary:hover { border-color: var(--brand); color: var(--brand-dark); }
.share-whatsapp { background: #25d366; color: #fff; }

/* Govt / private switch */
.sc-switch { display: grid; grid-template-columns: 1fr 1fr; gap: .5rem; margin: 1rem 0 0; }
.sc-switch a { display: flex; flex-direction: column; gap: .1rem; padding: .7rem .9rem; border: 1px solid var(--line); border-radius: 12px; background: #fff; text-decoration: none; color: var(--ink); }
.sc-switch a span { font-size: .8rem; color: var(--muted); }
.sc-switch a[aria-current] { border-color: var(--brand); background: #f0fdfa; box-shadow: inset 0 0 0 1px var(--brand); }
.sc-switch a[aria-current] strong { color: var(--brand-dark); }

/* Breadcrumbs */
.crumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: .25rem; padding: 0; margin: 1rem 0 0; font-size: .85rem; color: var(--muted); }
.crumbs li + li::before { content: "›"; margin-right: .25rem; color: #9ca3af; }
.crumbs a { color: #4b5563; text-decoration: none; }

/* Ads: labelled, height reserved (no layout shift) */
.ad-wrap { margin: 1.75rem 0; text-align: center; }
.ad-label { display: block; font-size: .7rem; letter-spacing: .06em; text-transform: uppercase; color: #9ca3af; margin-bottom: .35rem; }
.ad-display { min-height: 120px; }
.ad-multiplex { min-height: 320px; }

/* Salary & pension calculator pages */
.sal-wrap { max-width: 980px; margin: 0 auto; padding: 0 16px 1rem; display: block; }
.sal-hero { margin: 1rem 0 1.25rem; }
.sal-hero h1 { font-size: clamp(1.5rem, 4.5vw, 2.2rem); line-height: 1.2; margin: 0 0 .6rem; }
.sal-lead { font-size: 1.05rem; line-height: 1.65; color: #1f2937; margin: 0 0 .5rem; }
.sal-meta { font-size: .88rem; color: #6b7280; margin: 0; }
.sal-meta i { color: #0f9d8a; }

.sal-tool { background: #fff; border: 1px solid #e5e7eb; border-radius: 14px; padding: 1.25rem; box-shadow: 0 4px 18px rgba(0,0,0,.04); }
.sal-form label { display: flex; flex-direction: column; gap: .35rem; font-weight: 600; font-size: .92rem; color: #111827; }
.sal-form small { font-weight: 400; color: #6b7280; font-size: .8rem; }
.sal-form select, .sal-form input[inputmode] { min-height: 48px; border: 1px solid #d1d5db; border-radius: 10px; padding: 0 .75rem; font-size: 16px; background: #fff; width: 100%; }
.sal-form select:focus, .sal-form input:focus { border-color: #0f9d8a; outline: 3px solid rgba(15,157,138,.18); }
.sal-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.sal-grid .span2 { grid-column: 1 / -1; }
.sal-form label.check { flex-direction: row; align-items: center; font-weight: 400; }
.sal-form label.check input { width: 20px; height: 20px; accent-color: #0f9d8a; }
.sal-adv { margin: 1rem 0; border-top: 1px dashed #e5e7eb; padding-top: .75rem; }
.sal-adv summary { cursor: pointer; font-weight: 600; color: #0b7a6b; min-height: 40px; display: flex; align-items: center; }
.sal-form .btn-search { width: 100%; min-height: 50px; border-radius: 10px; font-size: 1.05rem; margin-top: .5rem; }

.sal-result { margin-top: 1.25rem; scroll-margin-top: 80px; }
.sal-headline, .sal-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: .75rem; }
.sal-stats { grid-template-columns: repeat(4, 1fr); }
.sal-headline > div, .sal-stats > div { background: #f0fdfa; border: 1px solid #ccfbf1; border-radius: 12px; padding: .9rem; text-align: center; }
.sal-headline > div:first-child { background: #0f9d8a; border-color: #0f9d8a; color: #fff; }
.sal-headline .lbl, .sal-stats .lbl { display: block; font-size: .78rem; text-transform: uppercase; letter-spacing: .04em; opacity: .85; }
.sal-headline strong, .sal-stats strong { display: block; font-size: 1.45rem; margin: .2rem 0; font-variant-numeric: tabular-nums; }
.sal-headline .sub, .sal-stats .sub { font-size: .85rem; opacity: .85; }

.sal-verify { display: flex; gap: .6rem; align-items: flex-start; background: #fff7ed; border: 1px solid #fed7aa; color: #7c2d12; border-radius: 10px; padding: .75rem .9rem; margin: 1rem 0 0; font-size: .92rem; }
.table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; margin: 1rem 0 .5rem; }
.sal-table { width: 100%; border-collapse: collapse; font-size: .95rem; font-variant-numeric: tabular-nums; }
.sal-table th, .sal-table td { padding: .6rem .7rem; border-bottom: 1px solid #eef0f2; text-align: left; white-space: nowrap; }
.sal-table thead th { background: #f6f8f9; font-size: .8rem; text-transform: uppercase; letter-spacing: .03em; color: #4b5563; }
.sal-table tbody th { font-weight: 600; }
.sal-table tr.total th, .sal-table tr.total td { font-weight: 700; border-top: 2px solid #d1d5db; }
.sal-chart td, .sal-stage td { text-align: right; }
.sal-table .ok { color: #047857; font-weight: 600; }
.sal-table .warn { color: #c2410c; font-weight: 600; }
.sal-note { font-size: .85rem; color: #6b7280; line-height: 1.6; }
.sal-dec { background: #eff6ff; border: 1px solid #bfdbfe; border-radius: 10px; padding: .75rem .9rem; font-size: .95rem; }
.sal-actions, .sal-cta { display: flex; flex-wrap: wrap; gap: .6rem; margin-top: 1rem; }

.sal-section { margin: 2.25rem 0; line-height: 1.7; color: #1f2937; }
.sal-section h2 { font-size: 1.3rem; margin: 0 0 .6rem; }
.sal-points { padding-left: 1.1rem; } .sal-points li { margin-bottom: .4rem; }
.sal-faq details { border: 1px solid #e5e7eb; border-radius: 10px; padding: .1rem 1rem; margin-bottom: .5rem; background: #fff; }
.sal-faq summary { cursor: pointer; font-weight: 600; padding: .8rem 0; min-height: 44px; }
.sal-faq details p { margin: 0 0 .9rem; }
.sal-sources li { margin-bottom: .35rem; }
.bps-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(88px, 1fr)); gap: .5rem; }
.bps-grid a { display: block; text-align: center; padding: .6rem .3rem; border: 1px solid #e5e7eb; border-radius: 8px; text-decoration: none; color: #111827; font-weight: 600; background: #fff; }
.bps-grid a:hover, .bps-grid a.current { border-color: #0f9d8a; color: #0b7a6b; background: #f0fdfa; }

.sal-break th[scope=row] { white-space: normal; }
.sal-break th small { display: block; font-weight: 400; color: #6b7280; font-size: .78rem; }
.sal-break td { text-align: right; }

@media (max-width: 640px) {
  .sal-break { font-size: .86rem; }
  .sal-break th, .sal-break td { padding: .5rem .35rem; }
  .sal-grid, .sal-headline { grid-template-columns: 1fr; }
  .sal-stats { grid-template-columns: 1fr 1fr; }
  .sal-headline > div { display: flex; justify-content: space-between; align-items: baseline; text-align: left; flex-wrap: wrap; }
  .sal-headline strong { font-size: 1.3rem; }
  .sal-tool { padding: 1rem; border-radius: 12px; }
}

@media (max-width: 640px) {
  .sc-header { position: static; }
  .sc-brand img { width: 110px; }
  .sc-brand span { font-size: .85rem; }
  .sc-nav { width: 100%; justify-content: space-between; }
  .sc-nav a { padding: .5rem .6rem; font-size: .88rem; }
  .crumbs ol { flex-wrap: nowrap; overflow-x: auto; white-space: nowrap; }
}
