/* Job portraits use the first frame of the official 152 x 136 menu sprites. */
.jobs-page { max-width: 1440px; margin: 0 auto; }
.jobs-page .job-group, .jobs-page .job-family { padding: 0; }
.jobs-heading { padding-bottom: 28px; }
.jobs-heading h1 { display: flex; align-items: baseline; flex-wrap: wrap; gap: 12px 28px; }
.jobs-heading h1 span { font-size: 16px; font-weight: 500; color: var(--muted); letter-spacing: .03em; }
.jobs-jump { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 26px; }
.jobs-jump a { display: flex; align-items: center; gap: 18px; border: 1px solid #ffffff24; border-radius: 6px; padding: 10px 16px; font-size: 12px; }
.jobs-jump a:hover { background: #b7d6ff12; border-color: #b7d6ff; }
.jobs-jump b { color: var(--accent); }
.directory-hint, .jobs-note { color: var(--muted); font-size: 12px; line-height: 1.9; }
.directory-hint { margin-bottom: 24px; }
.job-group { margin-bottom: 32px; scroll-margin-top: 110px; }
.job-group-heading { display: flex; align-items: center; justify-content: space-between; margin-bottom: 20px; padding-bottom: 12px; border-bottom: 1px solid #ffffff20; }
.job-group-heading h2 { display: flex; align-items: baseline; gap: 15px; margin: 0; font-size: 24px; }
.job-group-heading h2 small { color: var(--muted); font-size: 10px; font-weight: 500; letter-spacing: .16em; }
.job-group-heading > span { color: var(--muted); font-size: 12px; }
.job-columns { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 16px; }
.job-family { --family-color: #e8bc65; min-width: 0; }
.family-magician { --family-color: #c2a0f0; }
.family-bowman { --family-color: #90ce83; }
.family-thief { --family-color: #ed969e; }
.family-pirate { --family-color: #7db7ed; }
.job-family h3 { display: flex; align-items: center; gap: 8px; margin: 0 0 12px; color: var(--family-color); font-size: 13px; }
.job-family h3 > span { width: 6px; height: 6px; border-radius: 50%; background: var(--family-color); }
.job-family h3 small { margin-left: auto; color: var(--muted); font-size: 10px; font-weight: 400; }
.job-family ul { display: grid; gap: 10px; list-style: none; margin: 0; padding: 0; }
.job-card { display: flex; position: relative; align-items: center; gap: 10px; min-height: 88px; height: 100%; padding: 12px 9px; background: #151e2d; border: 1px solid #ffffff12; border-radius: 9px; transition: background .18s, border-color .18s, transform .18s; }
.job-card:hover { background: #1d293b; border-color: var(--family-color); transform: translateY(-2px); }
.job-portrait { width: 62px; height: 62px; flex: 0 0 62px; position: relative; overflow: hidden; border: 1px solid #ffffff38; border-radius: 8px; }
.job-portrait img { position: absolute; left: -3px; top: -3px; width: 152px; height: 136px; max-width: none; }
.job-copy { display: flex; flex-direction: column; align-items: flex-start; gap: 9px; min-width: 0; }
.job-copy strong { font-size: 13px; font-weight: 700; line-height: 1.65; overflow-wrap: anywhere; }
.theme-heavy { --theme-color: #edb58d; --theme-tint: #edb58d13; }
.theme-power { --theme-color: #f1cf7d; --theme-tint: #f1cf7d13; }
.theme-balance { --theme-color: #9ad2b6; --theme-tint: #9ad2b613; }
.theme-sharp { --theme-color: #a1c6fc; --theme-tint: #a1c6fc13; }
.theme-rapid { --theme-color: #c5aff3; --theme-tint: #c5aff313; }
.theme-pending { --theme-color: #a4afc1; --theme-tint: #a4afc113; }
.theme-badge { display: inline-flex; align-items: center; gap: 5px; color: var(--theme-color); background: var(--theme-tint); border-radius: 4px; padding: 3px 7px; font-size: 10px; font-weight: 600; white-space: nowrap; line-height: 1.5; }
.theme-badge::before { content: ''; width: 4px; height: 4px; background: currentColor; border-radius: 50%; }
.critical-section { margin-top: 58px; padding: 40px 0 0; border-top: 1px solid #ffffff20; scroll-margin-top: 100px; }
.critical-section h2 { margin: 14px 0 18px; font-size: clamp(22px, 2.8vw, 32px); letter-spacing: .02em; }
.critical-section > p { font-size: 14px; color: #b9c3d3; line-height: 1.95; }
.critical-themes { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 14px; margin: 30px 0 46px; }
.critical-theme { padding: 21px 20px; border: 1px solid #ffffff12; border-top: 2px solid var(--theme-color); background: var(--theme-tint); border-radius: 0 0 8px 8px; }
.theme-english { color: var(--theme-color); font-size: 9px; letter-spacing: .18em; }
.critical-theme h3 { font-size: 19px; margin: 6px 0 22px; }
.critical-theme dl, .critical-theme dd { margin: 0; }
.critical-theme dl { display: grid; gap: 16px; }
.critical-theme dt { color: var(--muted); font-size: 10px; margin-bottom: 3px; }
.critical-theme dd { font-size: 29px; font-weight: 600; line-height: 1.2; font-variant-numeric: tabular-nums; }
.critical-theme dd small { margin-left: 4px; font-size: 14px; color: var(--theme-color); }
.critical-table-heading { display: flex; align-items: baseline; justify-content: space-between; flex-wrap: wrap; gap: 8px; }
.critical-table-heading h3 { margin: 0; font-size: 20px; }
.critical-table-heading > span { color: var(--muted); font-size: 9px; letter-spacing: .15em; }
.critical-section > .jobs-note { font-size: 12px; }
.critical-table-scroll { margin-top: 20px; overflow-x: auto; border: 1px solid #ffffff18; border-radius: 9px; }
.critical-table { width: 100%; border-collapse: collapse; font-size: 13px; text-align: left; }
.critical-table th, .critical-table td { padding: 14px 22px; border-bottom: 1px solid #ffffff0e; }
.critical-table thead th { color: #b9c3d3; background: #182233; font-size: 11px; white-space: nowrap; font-weight: 500; }
.critical-table tbody th[scope="row"] { font-weight: 500; }
.critical-table tbody tr:not(.job-table-group):nth-child(odd) { background: #ffffff02; }
.critical-table tbody tr:target { background: #b7d6ff15 !important; outline: 2px solid #b7d6ff; outline-offset: -2px; }
.critical-table tr { scroll-margin-top: 120px; }
.critical-table .job-table-group th { color: #cbd9eb; background: #111a28; font-size: 12px; padding-block: 10px; }
.job-table-group span { margin-left: 12px; color: var(--muted); font-size: 10px; font-weight: 400; }
.critical-value { font-variant-numeric: tabular-nums; white-space: nowrap; font-weight: 600; }
.critical-value small { font-size: 11px; color: var(--muted); font-weight: 400; }
.critical-table .theme-badge { font-size: 11px; }
.jobs-footer { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; padding: 24px 0 45px; }
.jobs-page a:focus-visible, .critical-table-scroll:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }
.visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
@media (max-width: 1200px) and (min-width: 901px) {
  .job-columns { gap: 10px; }
  .job-card { gap: 8px; padding: 12px 8px; }
  .job-portrait { width: 50px; height: 54px; flex-basis: 50px; }
}
@media (max-width: 900px) {
  .job-columns { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px 16px; }
  .job-copy strong { font-size: 13px; }
  .critical-themes { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .desktop-break { display: none; }
}
@media (max-width: 540px) {
  .jobs-heading h1 { gap: 8px; }
  .jobs-heading h1 span { width: 100%; font-size: 12px; }
  .jobs-heading p { font-size: 12px; }
  .jobs-jump { gap: 7px; }
  .jobs-jump a { padding: 9px 11px; font-size: 11px; gap: 10px; }
  .job-columns { grid-template-columns: 1fr; gap: 23px; }
  .job-card { min-height: 79px; padding: 9px 14px; gap: 17px; }
  .job-copy { flex-direction: row; align-items: center; justify-content: space-between; flex: 1; gap: 10px; }
  .job-copy strong { font-size: 12px; }
  .job-portrait { width: 56px; height: 58px; flex-basis: 56px; }
  .job-group-heading h2 { font-size: 21px; }
  .critical-section { margin-top: 35px; padding-top: 28px; }
  .critical-section > p { font-size: 12px; }
  .critical-themes { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin-bottom: 32px; }
  .critical-theme { padding: 16px; }
  .critical-theme h3 { margin-bottom: 17px; }
  .critical-theme dd { font-size: 26px; }
  .critical-table { min-width: 580px; }
  .critical-table th, .critical-table td { padding: 13px 16px; }
  .critical-table-scroll { border-radius: 6px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .job-card { transition: none; }
}
