/* ===== Salary guide (/salary-guide). Spec: SALARY-GUIDE-SPEC.html, approved 2026-10-20, locked in DECISIONS.md.
   Loaded on salary-guide.html only. Uses the site tokens in site.css. ===== */
.sg-meta { display: flex; flex-wrap: wrap; gap: 6px 20px; margin: 22px 0 28px; font-family: var(--mono); font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: #D6D0C7; }
.sg-meta span + span::before { content: "·"; margin-right: 20px; color: var(--orange); }
.sg-head { max-width: 860px; margin-bottom: 48px; }
.sg-head .h2 { margin-top: 20px; }
.sg-intro { margin-top: 20px; font-size: 17px; line-height: 1.65; color: var(--mute); max-width: 68ch; }

/* range-bar table: one $50k to $150k scale shared by every role */
.sg-table { width: 100%; border-collapse: collapse; table-layout: fixed; }
.sg-table thead th:nth-child(1) { width: 21%; }
.sg-table thead th:nth-child(2) { width: 21%; }
.sg-table thead th:nth-child(4) { width: 26%; }
.sg-table thead th { text-align: left; vertical-align: bottom; padding: 0 20px 12px 0; font: 400 12px/1.3 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--mute); border-bottom: 2px solid var(--ink); }
.sg-table thead th:last-child { padding-right: 0; }
.sg-axis__in { display: flex; justify-content: space-between; }
.sg-axis__in span { width: 0; display: flex; justify-content: center; white-space: nowrap; }
.sg-axis__in span:first-child { justify-content: flex-start; }
.sg-axis__in span:last-child { justify-content: flex-end; }
.sg-group th { padding: 28px 0 10px; font: 400 12px/1 var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--orange-dk); text-align: left; border-bottom: 1px solid var(--line); }
.sg-table tbody tr:not(.sg-group) th, .sg-table tbody td { padding: 20px 20px 20px 0; border-bottom: 1px solid var(--line); vertical-align: middle; text-align: left; font-weight: 400; }
.sg-table tbody td:last-child { padding-right: 0; }
.sg-table tbody tr:not(.sg-group) th.sg-role { font-stretch: var(--wide); font-weight: 600; font-size: 18px; letter-spacing: -0.01em; line-height: 1.3; }
.sg-role a { background: linear-gradient(currentColor, currentColor) 0 100% / 0 1px no-repeat; transition: background-size var(--dur-hover) var(--ease-hover); }
.sg-role a:hover { background-size: 100% 1px; }
.sg-money { font-stretch: var(--wide); font-weight: 700 !important; font-size: 17px; font-variant-numeric: tabular-nums; white-space: nowrap; }
.sg-track { position: relative; display: block; height: 12px; border-radius: var(--r-pill); background: var(--paper-2); }
.sg-fill { position: absolute; top: 0; bottom: 0; border-radius: var(--r-pill); background: var(--orange); transform-origin: left center; }
.sg-tick { position: absolute; top: -7px; bottom: -7px; width: 2px; margin-left: -1px; background: var(--ink); }
.sg-pill { display: inline-block; padding: 6px 10px; border-radius: 6px; background: var(--tile); font: 400 11.5px/1.2 var(--mono); letter-spacing: .06em; text-transform: uppercase; color: var(--ink); }
.sg-pill--cov { background: #FFE3CF; color: #7A3108; }
.sg-sub { display: block; margin-top: 8px; font-size: 14px; line-height: 1.45; color: var(--mute); }
.sg-key { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 20px; font-size: 14px; color: var(--mute); }
.sg-key__bar { width: 28px; height: 10px; border-radius: var(--r-pill); background: var(--orange); }
.sg-key__tick { width: 2px; height: 20px; margin-left: 16px; background: var(--ink); }
.sg-table tbody tr[id] { scroll-margin-top: calc(var(--nav-h) + 24px); }

/* bars grow from their left edge on arrival (transform only), once; already drawn without JS or with reduced motion */
.sg-fill { transition: transform 900ms var(--ease-enter); transition-delay: 120ms; }
.anim tr[data-bar]:not(.is-in) .sg-fill { transform: scaleX(0); } /* each row draws as it scrolls in (Rob, 2026-10-20), js/site.js initBars */

@media (max-width: 1100px) {
  .sg-table thead { display: none; }
  .sg-table, .sg-table tbody, .sg-table tr, .sg-table th, .sg-table td { display: block; width: auto; }
  .sg-table tbody tr:not(.sg-group) { display: grid; grid-template-columns: 1fr auto; gap: 12px 16px; padding: 18px 0; border-bottom: 1px solid var(--line); }
  .sg-table tbody tr:not(.sg-group) th, .sg-table tbody td { padding: 0; border: 0; }
  .sg-barcell, .sg-award { grid-column: 1 / -1; }
  .sg-table tbody tr:not(.sg-group) th.sg-role { font-size: 17px; }
  .sg-money { font-size: 16px; text-align: right; }
}

/* award minimums: the role pages' sticky-intro split, on Stone */
.sg-award-main { grid-column: 5 / 13; }
.sg-min { width: 100%; border-collapse: collapse; table-layout: fixed; background: var(--paper); border-radius: var(--r-card); overflow: hidden; }
.sg-min th, .sg-min td { padding: 18px 20px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line); }
.sg-min tbody tr:last-child th, .sg-min tbody tr:last-child td { border-bottom: 0; }
.sg-min thead th { font: 400 12px/1.35 var(--mono); letter-spacing: .07em; text-transform: uppercase; color: var(--mute); border-bottom: 2px solid var(--ink); vertical-align: bottom; }
.sg-min thead th:first-child { width: 48%; }
.sg-min thead th span, .sg-min tbody th span { display: block; margin-top: 4px; text-transform: none; letter-spacing: 0; font: 400 13px/1.4 var(--font); color: var(--mute); }
.sg-min tbody th { font-weight: 600; font-size: 16px; line-height: 1.35; }
.sg-min tbody td { font-stretch: var(--wide); font-weight: 700; font-size: 18px; font-variant-numeric: tabular-nums; }
.sg-min .sg-na { font-stretch: 100%; font-weight: 400; font-size: 14px; color: var(--mute); }
.sg-example { margin-top: 24px; padding: 32px; border: 2px solid var(--ink); border-radius: var(--r-card); background: var(--paper); }
.sg-example__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; margin-top: 20px; }
.sg-verdict { font-weight: 700; font-size: 16px; margin-bottom: 8px; }
.sg-verdict--yes { color: #2C6B2F; }
.sg-verdict--no { color: var(--orange-dk); }
.sg-example__grid p:not(.sg-verdict) { font-size: 15.5px; line-height: 1.6; color: var(--ink); }
@media (max-width: 1024px) {
  .sg-award-main { grid-column: 1 / -1; margin-top: 40px; }
  .sg-min thead th:first-child { width: 44%; }
}
@media (max-width: 640px) {
  .sg-min th, .sg-min td { padding: 14px 12px; }
  .sg-min tbody td { font-size: 16px; }
  .sg-example { padding: 22px; }
  .sg-example__grid { grid-template-columns: 1fr; gap: 20px; }
}

/* requirements: a ruled 2x2 grid on V Dark Grey, full width */
.sg-reqs { background: var(--panel); color: var(--paper); }
.sg-reqs .eyebrow { color: var(--paper); }
.sg-reqs__grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 20px; align-items: start; }
.sg-reqs__head { grid-column: 1 / 5; padding-right: 32px; }
.sg-reqs__head .h2 { margin-top: 20px; }
.sg-reqs__list { grid-column: 5 / 13; list-style: none; display: grid; grid-template-columns: 1fr 1fr; border-top: 1px solid var(--line-dk); border-left: 1px solid var(--line-dk); }
.sg-reqs__list li { display: flex; flex-direction: column; min-height: 230px; padding: 28px 28px 26px; border-right: 1px solid var(--line-dk); border-bottom: 1px solid var(--line-dk); }
.sg-reqs__n { font-stretch: var(--wide); font-weight: 800; font-size: 40px; line-height: 1; letter-spacing: -0.03em; color: var(--orange); }
.sg-reqs__list .h3 { margin-top: auto; padding-top: 40px; font-size: 20px; color: var(--paper); }
.sg-reqs__list p { margin-top: 8px; font-size: 15.5px; line-height: 1.6; color: rgba(247,245,242,.78); }
@media (max-width: 1024px) { .sg-reqs__head, .sg-reqs__list { grid-column: 1 / -1; } .sg-reqs__list { margin-top: 40px; } }
@media (max-width: 640px) { .sg-reqs__list { grid-template-columns: 1fr; } .sg-reqs__list li { min-height: 0; } .sg-reqs__list .h3 { padding-top: 24px; } }

/* download with the PDF cover */
.sg-dl { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 20px; align-items: center; }
.sg-dl__cover { grid-column: 2 / 5; display: block; border-radius: 6px; overflow: hidden; box-shadow: 0 30px 60px -30px rgba(14,13,12,.45), 0 0 0 1px var(--line); transition: transform var(--dur-hover) var(--ease-hover); }
.sg-dl__cover:hover { transform: translateY(-4px); }
.sg-dl__cover img { display: block; width: 100%; height: auto; }
.sg-dl__body { grid-column: 6 / 12; }
.sg-dl__body .h2 { margin-top: 20px; }
.sg-dl__line { margin: 16px 0 28px; font-size: 17px; color: var(--mute); }
.sg-sources { margin-top: 48px; padding-top: 20px; border-top: 1px solid var(--line); }
.sg-sources p { font-size: 13.5px; line-height: 1.55; color: var(--mute); max-width: 70ch; }
.sg-sources p + p { margin-top: 8px; }
.sg-sources a { text-decoration: underline; text-underline-offset: 2px; }
@media (max-width: 900px) {
  .sg-dl__cover { grid-column: 1 / -1; width: min(300px, 70%); }
  .sg-dl__body { grid-column: 1 / -1; margin-top: 36px; }
}
@media (prefers-reduced-motion: reduce) { .sg-dl__cover:hover { transform: none; } }

/* phones (Rob, 2026-10-20): meta items stack without separators; the award table becomes one card per classification */
@media (max-width: 640px) {
  .sg-meta { flex-direction: column; gap: 8px; }
  .sg-meta span + span::before { display: none; }
  .sg-min thead { display: none; }
  .sg-min, .sg-min tbody { display: block; }
  .sg-min tbody tr { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 16px; padding: 18px 18px 20px; border-bottom: 1px solid var(--line); }
  .sg-min tbody tr:last-child { border-bottom: 0; }
  .sg-min tbody th, .sg-min tbody td { padding: 0; border: 0; }
  .sg-min tbody th { grid-column: 1 / -1; }
  .sg-min tbody td { display: flex; flex-direction: column; gap: 4px; }
  .sg-min tbody td::before { content: attr(data-label); font: 500 12.5px/1.3 var(--font); font-stretch: 100%; letter-spacing: 0; color: var(--mute); }
}
