/* Job-family directory: quiet surfaces, generous targets, distinct hierarchy. */
.job-titles-page {
  --bg: #181818;
  --panel: #212326;
  --text: #f5f6f7;
  --muted: #a8adb5;
  --border: #34383e;
  --accent: #339cff;
  --accent-text: #0d0d0d;
  --focus: #83c3ff;
  --jt-link: #91caff;
  --jt-icon-bg: #263543;
  --jt-hover: #282e35;
  --jt-secondary: #1d1e20;
  background: var(--bg);
  color: var(--text);
}
html[data-theme=light] .job-titles-page {
  --bg: #e8edf3;
  --panel: #f3f6fa;
  --text: #172333;
  --muted: #596575;
  --border: #dbe1e8;
  --accent: #0285ff;
  --accent-text: #0d0d0d;
  --focus: #006ac7;
  --jt-link: #086cba;
  --jt-icon-bg: #e7f0fa;
  --jt-hover: #edf4fc;
  --jt-secondary: #edf2f7;
}
.job-titles-page .site-header,
.job-titles-page .site-footer { background: var(--bg); }
.job-titles-page .nav-jobs.active { background: var(--accent); color: var(--accent-text); }
.job-titles-shell { width: min(1320px, calc(100% - 64px)); margin: 0 auto; padding: 48px 0 72px; flex: 1; }
.family-highlights { margin-bottom: 48px; }
.family-highlights-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: 30px; }
.directory-eyebrow { margin: 0 0 12px; color: var(--muted); font-size: .7rem; line-height: 1.4; letter-spacing: .15em; text-transform: uppercase; font-weight: 650; }
.family-highlights h1 { margin: 0; color: var(--text); font-size: clamp(2rem, 3.6vw, 3rem); font-weight: 730; letter-spacing: -.045em; line-height: 1.13; text-wrap: balance; }
.family-highlights h1 span { color: var(--jt-link); }
.directory-intro { margin: 14px 0 0; color: var(--muted); font-size: .95rem; line-height: 1.6; }
.family-signal { display: block; margin-bottom: 9px; color: var(--jt-link); font-size: .67rem; font-weight: 650; letter-spacing: .05em; text-transform: uppercase; }
.family-highlights-grid .family-card { min-height: 180px; align-items: flex-start; }
.family-highlights-grid .family-arrow { align-self: center; }
.job-titles-page .directory-jump { display: flex; align-items: center; gap: 12px; flex-shrink: 0; min-height: 44px; color: var(--muted); font-size: .82rem; text-decoration: none; }
.directory-jump span { color: var(--jt-link); font-size: 1.1rem; }
.job-titles-page .directory-jump:hover { color: var(--text); }
.titles-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.family-highlights-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.title-group { min-width: 0; border: 1px solid var(--border); border-radius: 14px; background: var(--panel); transition: background .16s ease, border-color .16s ease; }
.title-group:hover { background: var(--jt-hover); border-color: var(--jt-link); }
.job-titles-page .family-card { display: flex; align-items: center; gap: 16px; height: 100%; min-height: 120px; padding: 22px; border-radius: inherit; color: var(--text); text-decoration: none; }
.family-icon { display: grid; place-items: center; width: 42px; height: 42px; flex: 0 0 42px; border-radius: 12px; color: var(--jt-link); background: var(--jt-icon-bg); }
.family-icon svg { width: 23px; height: 23px; }
.family-copy { min-width: 0; flex: 1; }
.title-group h2 { margin: 0 0 7px; color: var(--text); font-size: .96rem; font-weight: 650; letter-spacing: -.012em; line-height: 1.4; }
.family-examples { display: block; color: var(--muted); font-size: .78rem; line-height: 1.55; }
.family-arrow { flex: 0 0 auto; margin-left: auto; color: var(--jt-link); font-size: 1.1rem; transition: transform .16s ease; }
.family-card:hover .family-arrow { transform: translateX(3px); }
.job-titles-page .family-card:focus-visible,
.job-titles-page .directory-jump:focus-visible { outline: 2px solid var(--focus); outline-offset: 4px; }
.other-families { border-top: 1px solid var(--border); padding-top: 28px; }
.directory-section-heading { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin-bottom: 20px; }
.directory-section-heading h2 { margin: 0; color: var(--text); font-size: 1.35rem; font-weight: 650; letter-spacing: -.025em; scroll-margin-top: 24px; }
.directory-section-heading>span { color: var(--muted); font-size: .75rem; white-space: nowrap; }
.other-families .title-group { background: var(--jt-secondary); border-radius: 10px; }
.other-families .title-group:hover { background: var(--jt-hover); }
.other-families h3 { height: 100%; margin: 0; font-size: .86rem; font-weight: 550; line-height: 1.45; }
.other-families .family-card { min-height: 66px; padding: 18px 20px; }
.other-families .family-arrow { font-size: 1rem; color: var(--muted); }
@media(max-width:1100px) {
  .family-highlights-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media(max-width:820px) {
  .job-titles-shell { width: calc(100% - 40px); padding-top: 32px; }
  .family-highlights-heading { align-items: flex-start; flex-direction: column; gap: 12px; margin-bottom: 22px; }
  .titles-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .job-titles-page .family-card { padding: 18px; gap: 12px; }
}
@media(max-width:600px) {
  .job-titles-shell { width: calc(100% - 32px); padding: 28px 0 48px; }
  .family-highlights { margin-bottom: 32px; }
  .directory-eyebrow { font-size: .65rem; margin-bottom: 10px; }
  .family-highlights h1 { max-width: 14ch; font-size: 2.15rem; }
  .family-highlights-heading { margin-bottom: 18px; gap: 8px; }
  .titles-grid { grid-template-columns: 1fr; gap: 10px; }
  .family-highlights-grid { grid-template-columns: 1fr; }
  .job-titles-page .family-card { min-height: 104px; }
  .family-icon { width: 40px; height: 40px; flex-basis: 40px; }
  .directory-section-heading { align-items: flex-start; flex-direction: column; gap: 6px; margin-bottom: 16px; }
  .other-families { padding-top: 24px; }
  .other-families .family-card { min-height: 60px; }
}
@media(prefers-reduced-motion:reduce) {
  .title-group, .family-arrow { transition: none; }
  .family-card:hover .family-arrow { transform: none; }
}
