/* The light theme: a warm white product register for onet-light.html.
 *
 * Self-contained, so it does not load app.css: white ground, warm ink, deep teal
 * for headings and the active state, one gold primary per page, hairline cards,
 * Geist for text and Geist Mono for numbers, codes and tags. Every colour is a
 * token below; nothing further down names a literal colour.
 */

@font-face { font-family: 'Geist'; font-style: normal; font-weight: 300 700; font-display: swap; src: url('fonts/geist-latin.woff2') format('woff2'); }
@font-face { font-family: 'Geist Mono'; font-style: normal; font-weight: 400 600; font-display: swap; src: url('fonts/geist-mono-latin.woff2') format('woff2'); }

:root {
  --ground: #FFFFFF;
  --ground-50: #FAF8F5;
  --cream: #F7F3E5;
  --ink: #2F2B23;
  --ink-muted: #656054;
  --ink-placeholder: #837D70;
  --ink-700: #49453A;
  --teal: #075056;
  --teal-dark: #00353A;
  --teal-bright: #12B8BD;
  --teal-100: #CCF0EB;
  --gold: #DDAE2A;
  --gold-hover: #E7BC42;
  --gold-600: #B18800;
  --gold-tag: #F1E6C5;
  --danger: #A33A22;
  --danger-tint: #F6E3DE;
  --line: #DBD7CF;
  --line-soft: #EDEBE6;
  --input-line: #C2BDB2;
  --on-dark: #FFFFFF;

  /* The four task classes */
  --class-s: var(--danger);
  --class-a: var(--teal-bright);
  --class-m: var(--gold-600);
  --class-i: var(--teal);

  --sans: 'Geist', 'Helvetica Neue', Arial, sans-serif;
  --mono: 'Geist Mono', ui-monospace, 'SFMono-Regular', Menlo, monospace;
  --r4: 4px;
  --r8: 8px;
  --r12: 12px;
  --pill: 999px;
  --card-shadow: 0 1px 2px -1px rgba(0, 0, 0, .10), 0 1px 3px rgba(0, 0, 0, .10);
  --input-shadow: 0 1px 2px rgba(18, 18, 23, .05);
  --halo: color-mix(in srgb, var(--gold-600) 28%, transparent);
  --nav-h: 64px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

/* ---------------------------------------------------------------- base */
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--nav-h) + 16px); }
body {
  margin: 0; font-family: var(--sans); font-size: 16px; line-height: 24px; letter-spacing: .02em;
  color: var(--ink); background: var(--ground); -webkit-font-smoothing: antialiased;
}
::selection { background: var(--teal-100); color: var(--teal); }
a { color: var(--teal); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }
h1, h2, h3, h4 { margin: 0; color: var(--ink); text-wrap: balance; }
p { margin: 0 0 12px; }
button { font: inherit; letter-spacing: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--gold-600); outline-offset: 2px; box-shadow: 0 0 0 6px var(--halo); border-radius: var(--r4); }
.muted { color: var(--ink-muted); }
.small { font-size: 14px; line-height: 22px; }
.xs { font-size: 13px; line-height: 20px; }
.sr-only, .visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.icon { width: 20px; height: 20px; flex: none; stroke: currentColor; fill: none; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.skip-link { position: absolute; left: -9999px; }
.skip-link:focus { left: 16px; top: 8px; z-index: 200; background: var(--ground); padding: 4px 8px; }
.loading { color: var(--ink-muted); }
.error { color: var(--danger); }

/* ---------------------------------------------------------------- top nav */
.topnav {
  position: sticky; top: 0; z-index: 100; height: var(--nav-h); display: flex; align-items: center; gap: 24px;
  padding: 0 32px; background: var(--ground); border-bottom: 1px solid var(--line-soft);
}
.brand { display: flex; align-items: center; gap: 12px; flex: none; color: var(--ink); }
.brand:hover { text-decoration: none; }
.brand-mark { font-size: 22px; font-weight: 600; letter-spacing: -.01em; color: var(--teal); }
.brand .product { padding-left: 12px; border-left: 1px solid var(--line); font-size: 15px; font-weight: 600; white-space: nowrap; }
.nav-links { display: flex; gap: 4px; flex: 1; min-width: 0; }
.nav-links a { position: relative; padding: 8px 10px; font-size: 15px; color: var(--ink); border-radius: var(--r8); white-space: nowrap; }
.nav-links a:hover { color: var(--teal); text-decoration: none; background: var(--ground-50); }
.nav-links a.active { color: var(--teal); }
.nav-links a.active::after { content: ""; position: absolute; left: 10px; right: 10px; bottom: -13px; height: 2px; background: var(--gold); }
.nav-side { display: flex; align-items: center; gap: 8px; flex: none; }

/* ---------------------------------------------------------------- page */
.page { max-width: 1376px; margin: 0 auto; padding: 24px 32px 96px; }
.crumbs { display: flex; gap: 6px; font-size: 14px; line-height: 22px; color: var(--ink-muted); margin-bottom: 8px; }
.page-head { display: flex; align-items: flex-start; gap: 16px; margin-bottom: 24px; }
.page-head > div:first-child { flex: 1; min-width: 0; }
.page-head h1 { font-size: 26px; line-height: 34px; font-weight: 500; letter-spacing: -.01em; }
.page-head .meta { margin: 4px 0 0; font-size: 14px; line-height: 22px; color: var(--ink-muted); display: flex; flex-wrap: wrap; gap: 4px 16px; }
.page-head .actions { margin-left: auto; display: flex; gap: 8px; }

/* ---------------------------------------------------------------- controls */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 8px 14px; border: 1px solid transparent;
  border-radius: var(--r8); background: var(--gold); color: var(--teal-dark); font: 600 14px/22px var(--sans); letter-spacing: .04em;
  cursor: pointer; white-space: nowrap; transition: background 150ms var(--ease);
}
.btn:hover { background: var(--gold-hover); text-decoration: none; }
.btn:active { background: var(--gold-600); }
.btn[disabled] { opacity: .6; cursor: not-allowed; background: var(--gold); }
.btn-text { background: transparent; color: var(--teal); padding: 6px 8px; }
.btn-text:hover { background: var(--teal-100); }
.tag { display: inline-flex; align-items: center; gap: 4px; padding: 2px 8px; border-radius: var(--r4); background: var(--gold-tag); color: var(--ink-700); font: 500 12px/20px var(--mono); letter-spacing: 0; white-space: nowrap; }
.tag-secondary { background: var(--line-soft); }
.label { font-size: 14px; line-height: 20px; font-weight: 600; color: var(--ink); }
.input, .select {
  width: 100%; padding: 9px 12px; border: 1px solid var(--input-line); border-radius: var(--r8); background: var(--ground);
  font: 400 15px/22px var(--sans); letter-spacing: .02em; color: var(--ink); box-shadow: var(--input-shadow);
}
.input:hover, .select:hover { border-color: var(--ink-placeholder); }
.input:focus, .select:focus { outline: none; border-color: var(--gold-600); box-shadow: 0 0 0 4px var(--halo); }
.input::placeholder { color: var(--ink-placeholder); }
.select {
  appearance: none; padding-right: 32px; background-repeat: no-repeat; background-size: 5px 5px;
  background-image: linear-gradient(45deg, transparent 50%, var(--ink-muted) 50%), linear-gradient(135deg, var(--ink-muted) 50%, transparent 50%);
  background-position: calc(100% - 18px) 50%, calc(100% - 13px) 50%;
}
.search { position: relative; }
.search .icon { position: absolute; left: 10px; top: 11px; color: var(--ink-placeholder); }
.search .input { padding-left: 38px; }

/* ---------------------------------------------------------------- surfaces */
.card { background: var(--ground); border: 1px solid var(--line); border-radius: var(--r12); box-shadow: var(--card-shadow); padding: 20px; }

/* ---------------------------------------------------------------- the browser */
.onet-layout { display: grid; grid-template-columns: 300px minmax(0, 1fr); gap: 32px; align-items: start; }
.onet-browser {
  position: sticky; top: calc(var(--nav-h) + 16px); display: flex; flex-direction: column; gap: 8px;
  max-height: calc(100vh - var(--nav-h) - 32px);
}
.onet-browser > :not(.onet-list) { flex-shrink: 0; }
.onet-filters { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.onet-filters .select { font-size: 14px; padding-top: 7px; padding-bottom: 7px; }
.onet-list { list-style: none; margin: 0; padding: 0; overflow-y: auto; border-top: 1px solid var(--line-soft); scrollbar-width: thin; scrollbar-color: var(--input-line) transparent; }
.onet-row { display: block; padding: 10px 8px; color: var(--ink); border-bottom: 1px solid var(--line-soft); }
.onet-row:hover { background: var(--ground-50); text-decoration: none; }
.onet-row[aria-current] { background: var(--ground-50); box-shadow: inset 3px 0 0 var(--gold); }
.onet-row[aria-current] .onet-row-title { color: var(--teal); font-weight: 600; }
.onet-row-top { display: flex; justify-content: space-between; gap: 8px; }
.onet-row-title { font-size: 14px; line-height: 20px; }
.onet-row-code { font: 400 12px/20px var(--mono); color: var(--ink-muted); white-space: nowrap; }
.onet-row-note { display: block; margin-top: 2px; font-size: 12px; color: var(--ink-placeholder); }
.onet-mini { display: flex; height: 6px; margin-top: 6px; overflow: hidden; border-radius: 3px; background: var(--line-soft); gap: 1px; }
.shares-seg { display: block; height: 100%; }
.shares-seg[data-class='S'] { background: var(--class-s); }
.shares-seg[data-class='A'] { background: var(--class-a); }
.shares-seg[data-class='M'] { background: var(--class-m); }
.shares-seg[data-class='I'] { background: var(--class-i); }

/* ---------------------------------------------------------------- one role */
.onet-detail { min-width: 0; display: flex; flex-direction: column; gap: 16px; }
.onet-head h2 { font-size: 26px; line-height: 34px; font-weight: 500; letter-spacing: -.01em; color: var(--teal); }
.onet-head .small { margin: 4px 0 0; }
.onet-description { margin: 12px 0; font-size: 17px; line-height: 26px; max-width: 80ch; }
.onet-detail h3 { font-size: 20px; line-height: 28px; font-weight: 500; letter-spacing: -.01em; margin-bottom: 4px; }
.onet-type {
  display: inline-flex; padding: 2px 8px; border-radius: var(--r4); background: var(--teal-100); color: var(--teal);
  font: 500 12px/20px var(--mono); white-space: nowrap; vertical-align: 1px;
}
.onet-summary-line { margin: 8px 0 16px; }
.onet-compare { margin: 16px 0 0; padding: 12px 16px; border-radius: var(--r8); background: var(--gold-tag); color: var(--ink-700); }

.onet-stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.onet-stats + p { margin-top: 12px; }
.onet-stat {
  display: flex; flex-direction: column; align-items: flex-start; gap: 2px; padding: 14px 16px; text-align: left;
  background: var(--ground); border: 1px solid var(--line); border-radius: var(--r12); cursor: pointer;
  transition: border-color 150ms var(--ease), background 150ms var(--ease);
}
.onet-stat:hover { background: var(--ground-50); }
.onet-stat[aria-pressed='true'] { border: 2px solid var(--teal); padding: 13px 15px; }
.onet-stat-label { display: flex; align-items: center; gap: 8px; font-size: 14px; line-height: 22px; }
.onet-swatch { width: 10px; height: 10px; border-radius: 2px; background: var(--box-color); }
.onet-stat[data-class='S'] { --box-color: var(--class-s); }
.onet-stat[data-class='A'] { --box-color: var(--class-a); }
.onet-stat[data-class='M'] { --box-color: var(--class-m); }
.onet-stat[data-class='I'] { --box-color: var(--class-i); }
.onet-stat-value { font: 400 28px/36px var(--mono); color: var(--ink); }
.onet-stat-note { font-size: 13px; line-height: 20px; color: var(--ink-muted); }

/* the four boxes */
.onet-quad { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 12px; align-items: start; }
.onet-quad[data-focus] .onet-box { display: none; }
.onet-quad[data-focus='S'] .onet-box[data-class='S'],
.onet-quad[data-focus='A'] .onet-box[data-class='A'],
.onet-quad[data-focus='M'] .onet-box[data-class='M'],
.onet-quad[data-focus='I'] .onet-box[data-class='I'] { display: block; grid-column: 1 / -1; }
.onet-box { padding: 14px 16px; background: var(--ground-50); border-radius: var(--r12); border-top: 3px solid var(--box-color); }
.onet-box[data-class='S'] { --box-color: var(--class-s); }
.onet-box[data-class='A'] { --box-color: var(--class-a); }
.onet-box[data-class='M'] { --box-color: var(--class-m); }
.onet-box[data-class='I'] { --box-color: var(--class-i); }
.onet-box-head h4 { font-size: 16px; line-height: 24px; font-weight: 600; }
.onet-box-head p { margin: 2px 0 8px; }
.onet-task { border-top: 1px solid var(--line); }
.onet-task summary { display: flex; flex-direction: column; gap: 2px; padding: 10px 0; cursor: pointer; list-style: none; }
.onet-task summary::-webkit-details-marker { display: none; }
.onet-task-text { font-size: 15px; line-height: 22px; }
.onet-task summary:hover .onet-task-text { color: var(--teal); }
.onet-task[open] .onet-task-text { font-weight: 600; }
.onet-task-facts { font-size: 13px; color: var(--ink-muted); }
.onet-task-body { padding: 0 0 12px; }
.onet-meter { display: grid; grid-template-columns: minmax(0, 1fr) 96px 44px; gap: 8px; align-items: center; font-size: 13px; line-height: 20px; max-width: 520px; }
.onet-meter-label { color: var(--ink-muted); }
.onet-meter-bar { display: block; height: 6px; border-radius: 3px; background: var(--line-soft); overflow: hidden; }
.onet-meter-fill { display: block; height: 100%; background: var(--box-color, var(--teal)); }
.onet-meter-value { font: 400 12px/20px var(--mono); text-align: right; }
.onet-task-body p { margin: 8px 0 0; }

/* skills */
.table-scroll { overflow-x: auto; }
.onet-table { width: 100%; border-collapse: collapse; font-size: 14px; line-height: 22px; margin-top: 8px; }
.onet-table th { text-align: left; font-size: 13px; font-weight: 600; color: var(--ink-muted); background: var(--ground-50); padding: 8px 12px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.onet-table th:first-child { border-top-left-radius: var(--r8); }
.onet-table th:last-child { border-top-right-radius: var(--r8); }
.onet-table td { padding: 8px 12px; border-bottom: 1px solid var(--line-soft); }
.onet-cell-meter { display: grid; grid-template-columns: 96px 36px; gap: 8px; align-items: center; }
.onet-cell-meter .onet-meter-fill { background: var(--teal); }

.onet-esco { margin: 8px 0 0; padding-left: 20px; font-size: 15px; }
.onet-esco li { margin: 4px 0; }

/* search modes, filters and the list's extras */
.onet-mode { display: grid; grid-template-columns: 1fr 1fr; padding: 3px; background: var(--line-soft); border-radius: var(--r8); }
.onet-mode label { position: relative; cursor: pointer; }
.onet-mode input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.onet-mode span { display: block; padding: 5px 8px; border-radius: 6px; text-align: center; font-size: 14px; line-height: 20px; color: var(--ink-muted); }
.onet-mode input:checked + span { background: var(--ground); color: var(--teal); font-weight: 600; box-shadow: var(--card-shadow); }
.onet-mode input:focus-visible + span { outline: 2px solid var(--gold-600); outline-offset: 1px; }
.onet-check { display: flex; align-items: center; gap: 8px; font-size: 14px; line-height: 20px; color: var(--ink-700); cursor: pointer; }
.onet-check input { accent-color: var(--teal); width: 16px; height: 16px; margin: 0; }
.onet-search-note { margin: 0; min-height: 0; color: var(--teal); }
.onet-search-note:empty { display: none; }
.onet-ip-open { align-self: flex-start; padding-left: 0; }
.onet-rank { display: inline-block; min-width: 22px; margin-right: 6px; font: 500 12px/20px var(--mono); color: var(--gold-600); }
.onet-row-meta { display: block; margin-top: 4px; font: 400 12px/18px var(--mono); color: var(--ink-muted); letter-spacing: 0; }

/* pay and jobs */
.onet-figs { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin: 12px 0; }
.onet-fig { display: flex; flex-direction: column; gap: 2px; padding: 14px 16px; border: 1px solid var(--line); border-radius: var(--r12); }
.onet-fig-label { font-size: 14px; line-height: 22px; color: var(--ink-700); }
.onet-fig-value { font: 400 24px/32px var(--mono); color: var(--ink); letter-spacing: 0; }
.onet-fig-note { font-size: 13px; line-height: 20px; color: var(--ink-muted); }
.onet-sub { margin: 20px 0 8px; font-size: 15px; line-height: 22px; font-weight: 600; color: var(--ink); }
.onet-detail .onet-meter { max-width: 640px; grid-template-columns: minmax(0, 1fr) 140px 52px; }
.onet-states { display: flex; flex-wrap: wrap; align-items: center; gap: 4px; margin: 0 0 6px; }
.onet-states-label { min-width: 120px; font-size: 13px; color: var(--ink-muted); }
.onet-state { padding: 0 6px; border-radius: var(--r4); background: var(--line-soft); font: 500 12px/20px var(--mono); text-decoration: none; cursor: help; letter-spacing: 0; }
.onet-states[data-outlook='above'] .onet-state { background: var(--teal-100); color: var(--teal); }
.onet-states[data-outlook='below'] .onet-state { color: var(--ink-muted); }
.onet-source { margin-top: 16px; }
.onet-ws { display: flex; align-items: center; gap: 16px; margin-top: 8px; padding: 12px 16px; border-radius: var(--r8); background: var(--ground-50); }
.onet-ws img { display: block; flex: none; }
.onet-ws p { margin: 0; }

/* computer skills */
.onet-legend { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 16px 0 4px; }
.onet-tech-group { border-top: 1px solid var(--line-soft); }
.onet-tech-group summary { padding: 8px 0; cursor: pointer; font-size: 15px; }
.onet-tech-group summary:hover { color: var(--teal); }
.onet-chips { display: flex; flex-wrap: wrap; gap: 6px; list-style: none; margin: 0; padding: 0 0 12px; }
.onet-chip { display: inline-block; padding: 2px 8px; border-radius: var(--r4); background: var(--line-soft); color: var(--ink-700); font-size: 13px; line-height: 20px; }
.onet-chip.is-hot { background: var(--gold-tag); }
.onet-chip.is-demand { background: var(--teal); color: var(--on-dark); }

/* interests, way in, related roles */
.onet-cols { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 32px; }
.onet-cols .onet-sub:first-child { margin-top: 8px; }
.onet-cols .onet-meter { grid-template-columns: 110px minmax(0, 1fr) 44px; }
.onet-links { margin: 0; padding-left: 18px; font-size: 14px; line-height: 22px; }
.onet-bar-cell { min-width: 120px; }
.onet-bar-cell .onet-mini { margin-top: 0; }
.onet-num { font-family: var(--mono); letter-spacing: 0; white-space: nowrap; }

/* tasks: other roles, and hits of a "what I do" search */
.onet-linkbtn { margin-top: 8px; padding-left: 0; font-size: 13px; }
.onet-also { margin-top: 8px; }
.onet-task-hit > summary { box-shadow: inset 3px 0 0 var(--gold); padding-left: 10px; background: var(--cream); }

/* the interest profiler */
.onet-dialog { width: min(760px, calc(100vw - 32px)); max-height: calc(100vh - 64px); padding: 24px; border: 1px solid var(--line); border-radius: var(--r12); background: var(--ground); color: var(--ink); box-shadow: 0 16px 48px color-mix(in srgb, var(--ink) 18%, transparent); }
.onet-dialog::backdrop { background: color-mix(in srgb, var(--ink) 35%, transparent); }
.onet-dialog-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 12px; }
.onet-dialog-head h2 { font-size: 22px; line-height: 30px; font-weight: 500; color: var(--teal); }
.onet-ip-q { margin: 0; padding: 10px 0; border: 0; border-top: 1px solid var(--line-soft); }
.onet-ip-q legend { float: left; width: 100%; padding: 0 0 6px; font-size: 15px; }
.onet-ip-options { clear: both; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 4px; }
.onet-ip-options label { position: relative; }
.onet-ip-options input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.onet-ip-options span { display: block; padding: 4px 6px; border: 1px solid var(--line); border-radius: var(--r8); text-align: center; font-size: 12px; line-height: 18px; color: var(--ink-muted); }
.onet-ip-options input:checked + span { background: var(--teal); border-color: var(--teal); color: var(--on-dark); }
.onet-ip-options input:focus-visible + span { outline: 2px solid var(--gold-600); outline-offset: 1px; }
.onet-ip-foot { position: sticky; bottom: -24px; display: flex; align-items: center; justify-content: space-between; gap: 16px; margin: 12px -24px -24px; padding: 12px 24px; background: var(--ground); border-top: 1px solid var(--line); }
.onet-ip-foot p { margin: 0; }
.onet-ip-scores .onet-meter { max-width: none; grid-template-columns: 120px minmax(0, 1fr) 52px; }
.onet-ip-careers { list-style: none; margin: 0; padding: 0; columns: 2; column-gap: 24px; }
.onet-ip-careers li { break-inside: avoid; }

/* footers */
.onet-attribution, .site-attribution { max-width: 1376px; margin: 48px auto 0; padding: 16px 32px 0; border-top: 1px solid var(--line-soft); font-size: 13px; line-height: 20px; color: var(--ink-muted); }
.onet-attribution { margin-top: 64px; padding-left: 0; padding-right: 0; }
.site-attribution { margin-top: 0; padding-bottom: 48px; border-top: 0; }
.site-attribution p { margin: 0 0 8px; }

@media (max-width: 960px) {
  .topnav { padding: 0 16px; gap: 12px; }
  .nav-links, .brand .product, .nav-side .tag { display: none; }
  .nav-side { margin-left: auto; }
  .page { padding: 16px 16px 64px; }
  .page-head { flex-direction: column; }
  .page-head .actions { margin-left: 0; }
  .onet-layout { grid-template-columns: 1fr; gap: 16px; }
  .onet-browser { position: static; max-height: none; }
  .onet-list { max-height: 45vh; }
  .onet-stats { grid-template-columns: 1fr 1fr; }
  .onet-figs { grid-template-columns: 1fr 1fr; }
  .onet-cols { grid-template-columns: 1fr; gap: 8px; }
  .onet-ws { flex-wrap: wrap; }
  .onet-ip-options { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .onet-ip-careers { columns: 1; }
  .onet-detail .onet-meter { grid-template-columns: minmax(0, 1fr) 80px 44px; }
  .onet-quad { grid-template-columns: 1fr; }
  .site-attribution { padding: 0 16px 32px; }
}
