/* Job search: white, compact, Roboto (served locally, SIL Open Font License, see fonts/OFL.txt). */
@font-face { font-family: "Roboto"; font-weight: 400; font-display: swap;
  src: url("fonts/roboto-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Roboto"; font-weight: 500; font-display: swap;
  src: url("fonts/roboto-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "Roboto"; font-weight: 700; font-display: swap;
  src: url("fonts/roboto-latin-700-normal.woff2") format("woff2"); }

:root {
  --text: #111111;
  --muted: #5f6368;
  --line: #dadce0;
  --soft: #f1f3f4;
  --blue: #1a73e8;
  --blue-dark: #1557b0;
  --good: #137333; --good-bg: #e6f4ea;
  --warn: #8a4b00; --warn-bg: #fef7e0;
  --bad: #b3261e; --bad-bg: #fce8e6;
  --radius: 4px;
  color-scheme: light;
}

* { box-sizing: border-box; }
html, body { background: #ffffff; }
body {
  margin: 0;
  color: var(--text);
  font: 15px/1.45 "Roboto", "Helvetica Neue", Arial, sans-serif;
}
a { color: var(--blue); }
a:hover { color: var(--blue-dark); }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 2px; }
h1, h2, h3 { color: var(--text); font-weight: 700; margin: 0; }
p { margin: 0; }
code { font-size: 0.92em; background: var(--soft); padding: 0 4px; border-radius: 3px; }
[hidden] { display: none !important; }
.visually-hidden {
  position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0);
  white-space: nowrap;
}
.skip { position: absolute; left: -999px; top: 8px; background: #fff; padding: 8px; }
.skip:focus { left: 8px; z-index: 10; }
.muted { color: var(--muted); }
.hint { color: var(--muted); font-size: 13px; margin-top: 6px; }

/* Toolbar */
.toolbar {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 14px 32px; border-bottom: 1px solid var(--line); background: #fff;
}
.eyebrow { color: var(--muted); font-size: 15px; }
.toolbar h1 { font-size: 28px; line-height: 1.2; }

/* Buttons */
.button {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  background: var(--blue); color: #fff; border: 1px solid var(--blue);
  border-radius: var(--radius); padding: 9px 18px; font: inherit; font-weight: 500;
  text-decoration: none; cursor: pointer; min-height: 40px;
}
.button:hover { background: var(--blue-dark); border-color: var(--blue-dark); color: #fff; }
.button.secondary { background: #fff; color: var(--blue); }
.button.secondary:hover { background: var(--soft); color: var(--blue-dark); }
.button.wide { width: 100%; margin-top: 16px; }
.button.small { padding: 6px 14px; min-height: 36px; font-size: 14px; }
.link { display: inline-block; margin-top: 10px; }

/* Banners and status */
.banner { border-radius: var(--radius); padding: 10px 14px; margin: 10px 0; font-size: 14px; }
.banner.good { background: var(--good-bg); }
.banner.warn { background: var(--warn-bg); color: var(--warn); }
.banner.bad { background: var(--bad-bg); color: var(--bad); }
.banner.muted { background: var(--soft); color: var(--muted); }
.status-banner { display: flex; gap: 12px; align-items: flex-start; padding: 14px 18px; margin-top: 16px; }
.status-banner strong { font-weight: 700; color: var(--text); }
.status-banner p { color: var(--muted); margin-top: 2px; }
.status-banner .dot { margin-top: 7px; }
.dot { display: inline-block; width: 10px; height: 10px; border-radius: 50%; background: currentColor; flex: none; }
.banner.good .dot { color: var(--good); }
.banner.warn .dot { color: #e37400; }
.banner.bad .dot { color: var(--bad); }
.banner.muted .dot { color: var(--muted); }
.pill {
  display: inline-flex; align-items: center; gap: 8px; border-radius: 999px;
  padding: 4px 14px; font-weight: 500; margin: 12px 0 4px;
}
.pill.good { background: var(--good-bg); color: var(--good); }
.pill.warn { background: var(--warn-bg); color: var(--warn); }
.pill.bad { background: var(--bad-bg); color: var(--bad); }
.pill.muted { background: var(--soft); color: var(--muted); }
.status { display: inline-block; border-radius: var(--radius); padding: 2px 8px; font-size: 13px; font-weight: 500; white-space: nowrap; }
.status.warn { background: var(--warn-bg); color: var(--warn); }
.status.bad { background: var(--bad-bg); color: var(--bad); }
.status.muted { background: var(--soft); color: var(--muted); }
.tag {
  display: inline-block; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 0 6px; font-size: 12px; color: var(--muted); white-space: nowrap;
}
.tag.warn { border-color: #f9cb80; color: var(--warn); }
.notice { background: var(--soft); border-radius: var(--radius); padding: 14px 18px; margin: 14px 0; }

/* Results page */
.page { padding: 18px 32px 40px; }
.page.narrow { max-width: 760px; }
.searchbar { display: flex; gap: 8px; max-width: 760px; }
.searchbar input, .search-input, .filters input[list] {
  flex: 1; min-width: 0; font: inherit; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 9px 12px; min-height: 40px; background: #fff; color: var(--text);
}
.freshness { color: var(--muted); font-size: 13px; margin: 10px 0 4px; }
.layout { display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: 32px; margin-top: 14px; }
.filters { border-right: 1px solid var(--line); padding-right: 24px; }
.filters summary { font-weight: 700; font-size: 17px; cursor: pointer; margin-bottom: 6px; }
fieldset { border: 0; border-top: 1px solid var(--line); margin: 0; padding: 12px 0; }
/* Floated so the legend sits below the divider instead of on it. */
legend { font-weight: 700; padding: 0; margin-bottom: 6px; float: left; width: 100%; }
legend + * { clear: both; }
.check { display: flex; gap: 8px; align-items: flex-start; padding: 3px 0; cursor: pointer; }
.check input { margin-top: 3px; width: 16px; height: 16px; flex: none; }
.inline { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 6px; }
.filters input[list] { width: 100%; margin-top: 6px; }
.scroll-list { max-height: 220px; overflow-y: auto; padding-right: 4px; }
.filter-actions { display: flex; gap: 16px; align-items: center; margin-top: 12px; }
.filter-actions .link { margin-top: 0; }

.result-bar {
  display: flex; flex-wrap: wrap; align-items: center; gap: 12px 24px;
  padding-bottom: 10px; border-bottom: 1px solid var(--line);
}
.count { margin-right: auto; }
.views { display: flex; gap: 14px; }
.views [aria-current] { font-weight: 700; border-bottom: 2px solid var(--text); }
.sort { display: flex; gap: 8px; align-items: center; color: var(--muted); }
.sort select { font: inherit; border: 1px solid var(--line); border-radius: var(--radius); padding: 6px 8px; background: #fff; color: var(--text); min-height: 36px; }
.loading { color: var(--muted); font-size: 13px; }
.rows { list-style: none; margin: 0; padding: 0; }
.row {
  display: flex; gap: 16px; justify-content: space-between; align-items: flex-start;
  padding: 12px 0; border-bottom: 1px solid var(--line);
}
.row-main { min-width: 0; }
.row-title { font-size: 17px; line-height: 1.3; }
.row-title a { color: var(--text); text-decoration: none; }
.row-title a:hover { color: var(--blue); text-decoration: underline; }
.row-sub { margin-top: 2px; }
.row-meta { color: var(--muted); font-size: 13px; margin-top: 3px; }
.row-unknown { color: var(--muted); font-size: 13px; margin-top: 3px; font-style: italic; }
.row-status { display: flex; flex-direction: column; align-items: flex-end; gap: 4px; flex: none; }
.empty { padding: 24px 0; }
.empty ul { margin: 8px 0 0; padding-left: 20px; }
.pager { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 18px; align-items: center; }
.pager a, .pager span {
  min-width: 36px; min-height: 36px; display: inline-flex; align-items: center; justify-content: center;
  padding: 0 10px; border: 1px solid var(--line); border-radius: var(--radius); text-decoration: none;
}
.pager [aria-current] { background: var(--text); color: #fff; border-color: var(--text); font-weight: 700; }
.pager .gap { border: 0; }

/* Detail page */
.detail {
  display: grid; grid-template-columns: 340px minmax(0, 1fr);
  grid-template-areas: "overview main" "browse main"; grid-template-rows: auto 1fr;
}
.overview { grid-area: overview; padding: 22px 30px 18px; border-right: 1px solid var(--line); }
.browse { grid-area: browse; padding: 18px 30px 30px; border-right: 1px solid var(--line); }
.browse::before { content: ""; display: block; border-top: 1px solid var(--line); margin-bottom: 18px; }
.detail-main { grid-area: main; padding: 22px 26px 40px; min-width: 0; }
.overview h2, .browse h2 { font-size: 24px; }
.facts { margin: 14px 0 0; }
.facts div { margin-bottom: 12px; }
.facts dt { color: var(--muted); }
.facts dd { margin: 1px 0 0; }
.facts.dates { margin-top: 18px; font-size: 14px; }
.browse .search-input { width: 100%; margin: 14px 0 10px; }
.browse-list { list-style: none; padding: 0; margin: 0; }
.browse-list a { display: block; padding: 9px 22px; text-decoration: none; color: var(--text); border-left: 3px solid transparent; }
.browse-list a:hover { background: var(--soft); }
.browse-list a span { display: block; color: var(--muted); }
.browse-list strong { font-weight: 500; }
.browse-list .current a { background: #e8f0fe; border-left-color: var(--blue); }

.tabs { display: grid; grid-template-columns: 1fr 1fr; border: 1px solid var(--line); border-radius: var(--radius) var(--radius) 0 0; }
.tab {
  display: flex; align-items: center; justify-content: center; min-height: 56px;
  font-weight: 500; font-size: 17px; color: var(--text); text-decoration: none; background: var(--soft);
  border-top: 3px solid transparent;
}
.tab[aria-selected="true"] { background: #fff; border-top-color: var(--text); }
.panel { padding-top: 4px; }
.section-title { font-size: 34px; margin-top: 22px; }
.section-title.small { font-size: 22px; margin-top: 28px; }
.subtitle { color: var(--muted); font-size: 18px; margin: 6px 0 16px; }
.section-title.small + .subtitle { font-size: 15px; }
.req-table { border: 1px solid var(--line); border-radius: var(--radius); }
.req-row {
  display: grid; grid-template-columns: 230px minmax(0, 1fr) auto;
  border-top: 1px solid var(--line);
}
.req-row:first-child { border-top: 0; }
.req-label { font-weight: 700; padding: 14px 20px; border-right: 1px solid var(--line); display: flex; align-items: center; }
.req-value { padding: 12px 20px; font-size: 16px; }
.req-note { color: var(--muted); font-size: 15px; margin-top: 2px; }
.req-action { padding: 10px 14px; display: flex; align-items: center; }
.evidence { grid-column: 1 / -1; padding: 4px 20px 14px; background: #fff; border-top: 1px dashed var(--line); }
.evidence blockquote { margin: 10px 0 0; padding: 6px 12px; border-left: 3px solid var(--line); color: var(--text); }
.members { padding-left: 20px; margin: 0; }
.members li { margin: 6px 0; }
.footer-note { color: var(--muted); margin-top: 24px; }
.description { max-width: 820px; font-size: 16px; line-height: 1.55; }
.description h2, .description h3, .description h4 { margin: 18px 0 6px; font-size: 18px; }
.description p { margin: 0 0 10px; }
.description ul, .description ol { margin: 0 0 12px; padding-left: 22px; }
.description li { margin: 3px 0; }

/* Narrow screens: one readable column, no squeezed side panels. */
@media (max-width: 820px) {
  .toolbar { padding: 12px 16px; flex-wrap: wrap; }
  .toolbar h1 { font-size: 22px; }
  .page { padding: 14px 16px 32px; }
  .layout { grid-template-columns: 1fr; gap: 12px; }
  .filters { border-right: 0; padding-right: 0; border: 1px solid var(--line); border-radius: var(--radius); padding: 10px 14px; }
  .row { flex-direction: column; gap: 6px; }
  .row-status { flex-direction: row; flex-wrap: wrap; align-items: flex-start; }
  .detail { grid-template-columns: 1fr; grid-template-areas: "overview" "main" "browse"; }
  .overview, .browse { border-right: 0; padding: 16px; }
  .overview { border-bottom: 1px solid var(--line); }
  .detail-main { padding: 16px; }
  .section-title { font-size: 26px; }
  .subtitle { font-size: 16px; }
  .req-row { grid-template-columns: 1fr; }
  .req-label { border-right: 0; padding: 12px 14px 0; }
  .req-value { padding: 4px 14px 8px; }
  .req-action { padding: 0 14px 12px; }
  .tab { font-size: 15px; min-height: 48px; }
}

/* Account navigation and forms */
.toolbar-actions { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.owner-nav { display: flex; align-items: center; gap: 16px; }
.inline-form { display: inline; margin: 0; }
.link-button { background: none; border: 0; padding: 0; font: inherit; color: var(--blue); cursor: pointer; text-decoration: underline; }
.link-button:hover { color: var(--blue-dark); }
.form { display: grid; gap: 14px; max-width: 420px; margin-top: 12px; }
.field { display: grid; gap: 4px; }
.field > span { font-weight: 500; }
.field input, .field select, .field textarea {
  font: inherit; border: 1px solid var(--line); border-radius: var(--radius); padding: 8px 10px;
  min-height: 40px; background: #fff; color: var(--text);
}
.field-error { color: var(--bad); font-size: 13px; }

/* Private pages */
.owner-nav [aria-current] { font-weight: 700; color: var(--text); text-decoration: none; }
.profile-form section { border-top: 1px solid var(--line); padding: 8px 0 18px; }
.profile-form section:first-of-type { border-top: 0; }
.grid-rows { display: grid; gap: 10px; margin: 10px 0; }
.grid-row { display: grid; gap: 10px 14px; align-items: start; border: 0; margin: 0; padding: 0 0 10px;
  border-bottom: 1px solid var(--soft); }
.grid-row.skills { grid-template-columns: 1fr 1.4fr 1.4fr; }
.grid-row.experience { grid-template-columns: 150px 1.4fr 1.2fr 150px 150px auto; }
.grid-row.education { grid-template-columns: 170px 1.3fr 1.3fr 140px 150px; }
.grid-row .wide { grid-column: span 3; }
.grid-row .check { margin-top: 26px; }
.pref-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }
.pref-grid fieldset { border-top: 0; }
.confirm { display: grid; gap: 12px; justify-items: start; }
.private-panel { border-top: 1px solid var(--line); margin-top: 18px; padding-top: 16px; }
.private-panel h2 { font-size: 20px; }
.history { list-style: none; padding: 0; margin: 10px 0; font-size: 14px; }
.history li { padding: 6px 0; border-bottom: 1px solid var(--soft); }
.history .corrected { color: var(--muted); text-decoration: line-through; }
.tag.new { border-color: var(--text); color: var(--text); font-weight: 500; }
@media (max-width: 820px) {
  .grid-row.skills, .grid-row.experience, .grid-row.education, .pref-grid { grid-template-columns: 1fr; }
  .grid-row .wide { grid-column: auto; }
  .grid-row .check { margin-top: 0; }
  .toolbar-actions { width: 100%; justify-content: space-between; }
  .owner-nav { flex-wrap: wrap; gap: 10px 14px; }
}
.sub-heading { font-size: 16px; margin: 18px 0 6px; }
.private-panel textarea { font: inherit; border: 1px solid var(--line); border-radius: var(--radius); padding: 8px 10px; }
.private-panel details summary { cursor: pointer; color: var(--blue); font-size: 13px; }
.tabs { grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: 1fr; }
.status.good { background: var(--good-bg); color: var(--good); }
.compare-summary { display: flex; gap: 8px; flex-wrap: wrap; margin: 6px 0 14px; }
.req-value .status { margin-right: 8px; }
.statements { padding-left: 0; list-style: none; }
.statements li { padding: 8px 12px; border-left: 3px solid var(--line); margin: 8px 0; }
.statements li.highlight { border-left-color: #e37400; background: var(--warn-bg); }
.statements blockquote { margin: 6px 0 0; color: var(--muted); }

/* Reports page */
.reports section { margin-top: 8px; }
.population { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 4px; }
.population a {
  border: 1px solid var(--line); border-radius: 999px; padding: 5px 14px;
  text-decoration: none; color: var(--text);
}
.population a[aria-current="page"] { background: var(--text); border-color: var(--text); color: #fff; }
.table-wrap { overflow-x: auto; max-width: 100%; }
.table-wrap.scroll { max-height: 520px; overflow-y: auto; border: 1px solid var(--line); border-radius: var(--radius); }
.data-table { border-collapse: collapse; font-size: 14px; min-width: 100%; }
.data-table caption { text-align: left; font-weight: 700; padding: 0 0 6px; }
.data-table th, .data-table td { padding: 7px 12px; border-bottom: 1px solid var(--line); text-align: right; white-space: nowrap; }
.data-table th[scope="row"], .data-table thead th:first-child { text-align: left; font-weight: 500; }
.data-table thead th { color: var(--muted); font-weight: 500; background: #fff; position: sticky; top: 0; }
.report-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 22px 32px; }
.report-grid.wide { grid-template-columns: repeat(auto-fit, minmax(500px, 1fr)); }
@media (max-width: 820px) {
  .report-grid, .report-grid.wide { grid-template-columns: 1fr; }
  .data-table th, .data-table td { padding: 6px 8px; }
  .data-table thead th { white-space: normal; vertical-align: bottom; }
}

/* Market insights */
.insights-prompt {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  max-width: 760px; margin-top: 14px; padding: 12px 16px;
  border: 1px solid var(--line); border-radius: var(--radius); background: var(--soft);
}
.insights-prompt-title { font-weight: 700; }
.insights-prompt .button { white-space: nowrap; }
.objective { margin: 0 0 14px; }
.viz-frame { border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
/* Tableau dashboards have a fixed design size; the frame scrolls on narrow screens. */
.viz-frame iframe { display: block; width: 100%; height: 880px; border: 0; }
.viz-caption { color: var(--muted); font-size: 13px; margin-top: 6px; text-align: right; }
.kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 12px; }
.kpi { border: 1px solid var(--line); border-radius: var(--radius); padding: 12px 14px; }
.kpi-value { display: block; font-size: 28px; font-weight: 700; }
.kpi-label { color: var(--muted); font-size: 13px; }
.dashboard-cards {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 12px;
}
.dashboard-card {
  display: flex; flex-direction: column; gap: 4px; height: 100%; padding: 12px 14px;
  border: 1px solid var(--line); border-radius: var(--radius); text-decoration: none;
}
.dashboard-card:hover { border-color: var(--blue); }
.dashboard-card span { color: var(--muted); font-size: 13px; }
@media (max-width: 820px) {
  .insights-prompt { flex-direction: column; align-items: flex-start; }
  .viz-frame iframe { height: 640px; }
}
