/* ═══════════════════════════════════════════════════════════════
   DIRECTION A, GUIDES (2026-10-07)
   The salary guides and the compensation benchmark keep their lifted
   markup (tables, regions, flags, factors) and take the light design
   from here. Same tokens as a.css.
═══════════════════════════════════════════════════════════════ */
.pg-guide .g-sec, .pg-guide .bm-section { padding: clamp(56px, 7vw, 96px) 0; }
.pg-guide .g-sec.alt, .pg-guide .bm-section.bm-warm { background: var(--grey); }
.pg-guide .g-wrap, .pg-guide .container { max-width: 940px; margin: 0 auto; padding: 0 var(--gutter); }
.pg-guide h2 { margin: 0 0 14px; font-size: clamp(1.8rem, 3.2vw, 2.6rem); font-weight: 500; line-height: 1.1; letter-spacing: -0.025em; color: var(--text); text-wrap: balance; }
.pg-guide h2 em { font-style: normal; color: inherit; }
.pg-guide .lead, .pg-guide .section-intro { margin: 0 0 28px; max-width: 760px; font-size: clamp(1.05rem, 1.35vw, 1.2rem); line-height: 1.6; color: var(--text-2); }
.pg-guide .lead a, .pg-guide .section-intro a { color: var(--accent-ink); text-decoration: underline; text-underline-offset: 3px; }
.pg-guide .tbl-wrap, .pg-guide .comp-table-wrap { overflow-x: auto; margin: 0 0 24px; padding: 6px; border-radius: 16px; background: var(--grey); }
.pg-guide .alt .tbl-wrap, .pg-guide .bm-warm .comp-table-wrap { background: #FFFFFF; }
.pg-guide table { width: 100%; min-width: 520px; border-collapse: collapse; font-size: 0.98rem; line-height: 1.4; }
.pg-guide th, .pg-guide td { padding: 14px 16px; text-align: left; vertical-align: top; border-bottom: 1px solid rgba(29,29,31,0.08); }
.pg-guide th { font-size: 0.82rem; font-weight: 600; letter-spacing: 0.02em; color: var(--text-3); }
.pg-guide tr:last-child td { border-bottom: 0; }
.pg-guide td.role-cell, .pg-guide td.role { font-weight: 600; color: var(--text); }
.pg-guide th.num, .pg-guide td.num, .pg-guide td.total { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.pg-guide td.total { font-weight: 600; color: var(--text); }
.pg-guide .g-links { margin-top: 12px; }
.pg-guide .g-links a, .pg-guide .g-qa a { display: inline-flex; align-items: center; gap: 6px; font-size: 1.02rem; font-weight: 500; color: var(--accent-ink); }
.pg-guide .g-links a:hover { text-decoration: underline; text-underline-offset: 4px; }
.pg-guide .g-regions, .pg-guide .regions-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; margin: 28px 0; }
.pg-guide .g-region, .pg-guide .region { padding: 24px 22px; border-radius: 20px; background: var(--grey); }
.pg-guide .alt .g-region, .pg-guide .bm-warm .region { background: #FFFFFF; }
.pg-guide .g-region b, .pg-guide .region-delta { display: block; margin-bottom: 6px; font-size: clamp(1.6rem, 2.4vw, 2rem); font-weight: 600; letter-spacing: -0.03em; line-height: 1.1; color: var(--text); }
.pg-guide .g-region h4, .pg-guide .region-name { margin: 0 0 4px; font-size: 1.05rem; font-weight: 600; color: var(--text); }
.pg-guide .g-region span, .pg-guide .region-desc { display: block; font-size: 0.92rem; line-height: 1.4; color: var(--text-3); }
.pg-guide .g-method, .pg-guide .callout { margin: 28px 0 0; padding: 24px 26px; border-radius: 20px; background: var(--grey); font-size: 1rem; line-height: 1.6; color: var(--text-2); }
.pg-guide .alt .g-method, .pg-guide .bm-warm .callout { background: #FFFFFF; }
.pg-guide .g-method b, .pg-guide .callout-label { display: block; margin-bottom: 8px; font-size: 0.9rem; font-weight: 600; color: var(--accent-ink); }
.pg-guide .callout h3 { margin: 0 0 8px; font-size: 1.2rem; font-weight: 600; line-height: 1.3; color: var(--text); }
.pg-guide .callout p { margin: 0; }
.pg-guide .g-qa { margin-top: 28px; }
.pg-guide .g-qa h3 { margin: 24px 0 8px; font-size: 1.2rem; font-weight: 600; line-height: 1.3; color: var(--text); }
.pg-guide .g-qa p { margin: 0 0 12px; font-size: 1.02rem; line-height: 1.6; color: var(--text-2); }
.pg-guide .g-byline { margin-top: 28px; font-size: 0.95rem; color: var(--text-3); }
.pg-guide .g-byline b { color: var(--text); font-weight: 600; }
/* benchmark extras */
.pg-guide .insights-bar { padding: clamp(40px, 5vw, 64px) 0 0; }
.pg-guide .insights-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.pg-guide .insight { padding: 24px 22px; border-radius: 20px; background: var(--grey); text-align: left; }
.pg-guide .insight-num { display: block; margin-bottom: 6px; font-size: clamp(1.7rem, 2.6vw, 2.2rem); font-weight: 600; letter-spacing: -0.03em; line-height: 1.1; color: var(--text); }
.pg-guide .insight-label { font-size: 0.92rem; line-height: 1.35; color: var(--text-3); }
.pg-guide .cat-nav { padding: 28px 0 0; }
.pg-guide .cat-nav-inner { display: flex; flex-wrap: wrap; gap: 8px; }
.pg-guide .cat-nav a { padding: 9px 16px; border-radius: 999px; background: var(--grey); font-size: 0.92rem; font-weight: 500; color: var(--text); white-space: nowrap; }
.pg-guide .cat-nav a:hover { background: #E8E8EC; }
.pg-guide .flags-list, .pg-guide .factors-list { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 8px; }
.pg-guide .flag, .pg-guide .factor { display: flex; gap: 14px; align-items: flex-start; padding: 20px 22px; border-radius: 20px; background: var(--grey); }
.pg-guide .bm-warm .flag, .pg-guide .bm-warm .factor { background: #FFFFFF; }
.pg-guide .flag-icon, .pg-guide .factor-num { flex: none; width: 30px; height: 30px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 0.85rem; font-weight: 700; }
.pg-guide .flag-icon { background: rgba(180,35,24,0.1); color: #B42318; }
.pg-guide .factor-num { background: rgba(45,212,191,0.18); color: var(--accent-ink); }
.pg-guide .flag-text, .pg-guide .factor-text { font-size: 0.98rem; line-height: 1.5; color: var(--text-2); }
.pg-guide .flag-text strong, .pg-guide .factor-text strong { display: block; margin-bottom: 3px; font-weight: 600; color: var(--text); }
@media (max-width: 980px) { .pg-guide .g-regions, .pg-guide .regions-grid, .pg-guide .insights-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) {
  .pg-guide .g-regions, .pg-guide .regions-grid, .pg-guide .insights-grid, .pg-guide .flags-list, .pg-guide .factors-list { grid-template-columns: 1fr; }
  /* Phone tables (2026-10-07): the role column stays put while the numbers
     scroll under it, the cells tighten, and a shadow on the right edge shows
     there is more. The shadow layers scroll with the content (local) so they
     cover the edge marks (scroll) once the end is reached. */
  .pg-guide .tbl-wrap, .pg-guide .comp-table-wrap { --tbg: var(--grey); margin-left: calc(var(--gutter) * -1); margin-right: calc(var(--gutter) * -1); border-radius: 0; padding: 0;
    background: linear-gradient(90deg, var(--tbg) 40%, rgba(245,245,247,0)) left / 32px 100% no-repeat local, linear-gradient(270deg, var(--tbg) 40%, rgba(245,245,247,0)) right / 32px 100% no-repeat local, radial-gradient(farthest-side at 0 50%, rgba(29,29,31,0.14), rgba(29,29,31,0)) left / 14px 100% no-repeat scroll, radial-gradient(farthest-side at 100% 50%, rgba(29,29,31,0.14), rgba(29,29,31,0)) right / 14px 100% no-repeat scroll; background-color: var(--tbg); }
  .pg-guide .alt .tbl-wrap, .pg-guide .bm-warm .comp-table-wrap { --tbg: #FFFFFF; }
  .pg-guide th, .pg-guide td { padding: 12px 12px; font-size: 0.92rem; }
  .pg-guide th:first-child, .pg-guide td:first-child { position: sticky; left: 0; z-index: 1; background: var(--tbg); box-shadow: 1px 0 0 rgba(29,29,31,0.08); max-width: 46vw; }
}
