/* Salary page in the new navy look, matching the home page (navy.css): navy background, quiet panels with no outlines,
   Inter titles, IBM Plex Mono labels, red only for the headline cost. Loaded last on salary.html; every rule is scoped
   to html:not(.kdc-classic) so the classic look is untouched. The page carries data-styled, so site-chrome.js's
   automatic colour pass leaves it alone and every colour here comes from this file. */

/* Page frame: full width with the same side padding as the header, so content lines up with the site name. */
html:not(.kdc-classic) body.page-salary .page-main { max-width: none; margin: 0; padding: 8px var(--kdc-pad) 6px; color: #d4dde8; }

/* Layout at desktop width: heading across the top, the table on the left, the total and the notes beside it,
   so the whole page fits one 1440x900 screen. */
html:not(.kdc-classic) body.page-salary .section-wrap { display: grid; grid-template-columns: minmax(0, 1fr) 396px; grid-template-rows: auto auto 1fr;
  grid-template-areas: "head head" "table total" "table note"; gap: 10px 16px; align-items: start; }
html:not(.kdc-classic) body.page-salary .section-header { grid-area: head; }
html:not(.kdc-classic) body.page-salary .total-cost-box { grid-area: total; }
html:not(.kdc-classic) body.page-salary .table-scroll { grid-area: table; }
html:not(.kdc-classic) body.page-salary .context-note { grid-area: note; }

/* Heading: mono eyebrow, 28px white title, body-size intro. */
html:not(.kdc-classic) body.page-salary .section-header { text-align: left; margin: 0; }
html:not(.kdc-classic) body.page-salary .page-eyebrow { font: 500 11px/1.4 'IBM Plex Mono', monospace !important; letter-spacing: 0.08em; text-transform: uppercase; color: #8fa1b7; margin: 0 0 4px; }
html:not(.kdc-classic) body.page-salary .page-main .page-title { font: 800 28px/1.1 'Inter', sans-serif !important; letter-spacing: -0.02em; color: #f2f5f9; margin: 0 0 6px; }
html:not(.kdc-classic) body.page-salary .section-header p { max-width: 1180px; font-size: 13.5px; line-height: 1.5; color: #d4dde8; }
html:not(.kdc-classic) body.page-salary .page-main a { color: #7cc4ff !important; text-decoration: none; }
html:not(.kdc-classic) body.page-salary .page-main a:hover { text-decoration: underline; }

/* Headline total: one quiet panel, mono label, the cost in red, the method as a small note. */
html:not(.kdc-classic) body.page-salary .total-cost-box { background: rgba(19, 38, 61, 0.65) !important; border: 0 !important; border-radius: 12px; padding: 13px 16px; margin: 0; text-align: left; }
html:not(.kdc-classic) body.page-salary .total-cost-label { font: 500 11px/1.45 'IBM Plex Mono', monospace !important; letter-spacing: 0.08em; text-transform: uppercase; color: #8fa1b7; margin: 0 0 6px; }
html:not(.kdc-classic) body.page-salary .total-cost-value { font: 800 28px/1.1 'Inter', sans-serif !important; letter-spacing: -0.02em; color: #ef3e4a; margin: 0 0 8px; font-variant-numeric: tabular-nums; }
html:not(.kdc-classic) body.page-salary .total-cost-sub { font-size: 12px; line-height: 1.4; color: #8fa1b7; max-width: none; margin: 0; padding-top: 8px; border-top: 1px solid #243950; }

/* Notes panel beside the table: small print in the quiet note colour. */
html:not(.kdc-classic) body.page-salary .context-note { background: rgba(19, 38, 61, 0.65) !important; border: 0 !important; border-radius: 12px; padding: 13px 16px; margin: 0;
  font-size: 12px; line-height: 1.4; color: #8fa1b7 !important; }

/* Table panel: the site-wide table style (dark header row, mono header labels, thin row lines, numbers right-aligned). */
html:not(.kdc-classic) body.page-salary .page-main .table-scroll { background: rgba(19, 38, 61, 0.65); border: 0; border-radius: 12px; margin: 0; overflow-x: auto; }
html:not(.kdc-classic) body.page-salary .salary-table { min-width: 0; width: 100%; background: transparent !important; border: 0 !important; border-radius: 0; font-variant-numeric: tabular-nums; table-layout: fixed; }
html:not(.kdc-classic) body.page-salary .salary-table thead th:first-child { width: 30%; }
html:not(.kdc-classic) body.page-salary .salary-table thead tr { background: #182f4a; }
html:not(.kdc-classic) body.page-salary .salary-table thead th { background: #182f4a !important; color: #8fa1b7 !important; font: 500 11px/1.3 'IBM Plex Mono', monospace !important;
  letter-spacing: 0.06em !important; text-transform: uppercase !important; padding: 8px 6px !important; text-align: right; vertical-align: bottom; white-space: normal; border: 0 !important; }
html:not(.kdc-classic) body.page-salary .salary-table thead th:first-child { text-align: left; }
html:not(.kdc-classic) body.page-salary .salary-table tbody tr { border: 0; background: transparent !important; }
html:not(.kdc-classic) body.page-salary .salary-table tbody td { background: transparent !important; color: #d4dde8 !important; font-size: 13px !important; line-height: 1.2;
  padding: 8px 6px !important; border: 0 !important; border-bottom: 1px solid #243950 !important; text-align: right; white-space: nowrap; font-weight: 500; }
html:not(.kdc-classic) body.page-salary .salary-table tbody tr:last-child td { border-bottom: 0 !important; }
/* Header and cells share the same side padding so labels sit over their figures; a little more at the panel edges. */
html:not(.kdc-classic) body.page-salary .salary-table :is(th, td):first-child { padding-left: 10px !important; }
html:not(.kdc-classic) body.page-salary .salary-table :is(th, td):last-child { padding-right: 9px !important; }
/* Row labels: white, allowed to wrap; at desktop width the 30% label column keeps each on one line. */
html:not(.kdc-classic) body.page-salary .salary-table tbody td:first-child { text-align: left; white-space: normal; color: #f2f5f9 !important; font-weight: 600; letter-spacing: -0.01em; }
html:not(.kdc-classic) body.page-salary .salary-table tbody td.na { color: #8fa1b7 !important; font-style: normal; }
/* Word entries ("Not specified", the retirement terms) in a slightly smaller size, wrapping if a column is too narrow. */
html:not(.kdc-classic) body.page-salary .salary-table tbody td:not(.val):not(:first-child) { font-size: 12px !important; white-space: normal; }
/* The count row reads as context, in the label style. */
html:not(.kdc-classic) body.page-salary .salary-table tbody tr.row-count td { color: #8fa1b7 !important; font: 500 12px/1.3 'IBM Plex Mono', monospace !important; }
html:not(.kdc-classic) body.page-salary .salary-table tbody tr.row-count td:first-child { text-transform: uppercase; letter-spacing: 0.06em; font-size: 11px !important; }
/* Totals (gross monthly, annual gross pay) in bold white. */
html:not(.kdc-classic) body.page-salary .salary-table tbody tr.row-bold td { color: #f2f5f9 !important; font-weight: 800 !important; }
html:not(.kdc-classic) body.page-salary .salary-table tbody tr:hover td { background: rgba(124, 196, 255, 0.06) !important; }

/* Below desktop width: one column (heading, total, table, notes); the table keeps its width and scrolls sideways
   inside its own panel. */
@media (max-width: 1180px) {
  html:not(.kdc-classic) body.page-salary .section-wrap { grid-template-columns: minmax(0, 1fr); grid-template-rows: none; grid-template-areas: "head" "total" "table" "note"; }
  html:not(.kdc-classic) body.page-salary .salary-table { min-width: 860px; }
}
@media (max-width: 600px) {
  html:not(.kdc-classic) body.page-salary .page-main { padding: 14px 16px 16px; }
  html:not(.kdc-classic) body.page-salary .page-main .page-title { font-size: 26px !important; }
  html:not(.kdc-classic) body.page-salary .section-header p { font-size: 13.5px; }
  html:not(.kdc-classic) body.page-salary .total-cost-value { font-size: 26px !important; }
  /* Phones: a narrower label column (labels wrap) so more of the figures show before the sideways scroll. */
  html:not(.kdc-classic) body.page-salary .salary-table { min-width: 700px; }
  html:not(.kdc-classic) body.page-salary .salary-table thead th:first-child { width: 150px; }
}
