:root {
  --navy: #081a33;
  --navy-2: #102a4d;
  --graphite: #243247;
  --blue: #1677e8;
  --blue-dark: #075bb6;
  --ice: #eef5fb;
  --surface: #f7f9fc;
  --muted: #65748a;
  --line: #d9e2ec;
  --white: #fff;
  --success: #12715b;
  --success-bg: #e2f5ee;
  --danger: #a63a32;
  --danger-bg: #fdebea;
  --shadow: 0 14px 36px rgba(8, 26, 51, .08);
  --radius: 16px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--graphite); background: var(--surface); font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; line-height: 1.55; }
a { color: var(--blue-dark); text-underline-offset: 3px; }
a:hover { color: var(--navy); }
button, input, select, textarea { font: inherit; }
button, a { touch-action: manipulation; }
[hidden] { display: none !important; }
:focus-visible { outline: 3px solid #f5a623; outline-offset: 3px; }
.container { width: min(1240px, calc(100% - 2rem)); margin-inline: auto; }
.narrow { max-width: 840px; }
.skip-link { position: fixed; z-index: 100; top: .6rem; left: .6rem; transform: translateY(-160%); padding: .65rem 1rem; background: var(--white); color: var(--navy); border-radius: 8px; }
.skip-link:focus { transform: none; }
.site-header { position: sticky; z-index: 20; top: 0; color: var(--white); background: rgba(8, 26, 51, .98); border-bottom: 1px solid rgba(255,255,255,.12); }
.header-inner { min-height: 62px; display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; }
.brand { color: var(--white); text-decoration: none; font-weight: 850; font-size: 1.3rem; letter-spacing: -.045em; }
.brand span { color: #63aeff; }
.main-nav { display: flex; align-items: center; gap: 1.3rem; }
.main-nav a, .link-button { color: #e9f4ff; text-decoration: none; font-weight: 700; font-size: .92rem; }
.main-nav a:hover, .link-button:hover { color: var(--white); }
.inline-form { display: inline; margin: 0; }
.link-button { padding: 0; border: 0; background: transparent; cursor: pointer; }
.menu-button { display: none; color: var(--white); background: transparent; border: 1px solid #7990aa; border-radius: 8px; padding: .42rem .72rem; }
.hero { color: var(--white); background: var(--navy); }
.hero-compact { padding: clamp(2.8rem, 5vw, 4.5rem) 0 2.5rem; }
.hero-copy { max-width: 940px; }
.hero h1, .page-header h1, .search-page-head h1 { margin: .45rem 0 1rem; color: inherit; font-size: clamp(2.45rem, 5vw, 4.45rem); letter-spacing: -.055em; line-height: 1.02; }
.lead { max-width: 850px; margin-bottom: 1.25rem; color: #c3d4e8; font-size: clamp(1.02rem, 1.7vw, 1.22rem); }
.eyebrow { margin: 0; color: #3f91ed; font-size: .74rem; font-weight: 850; letter-spacing: .17em; }
.hero .eyebrow, .page-header .eyebrow { color: #63aeff; }
.hero-indicators { display: flex; flex-wrap: wrap; gap: .65rem; }
.hero-indicators span { padding: .36rem .68rem; color: #d8e9fa; border: 1px solid #315476; border-radius: 999px; font-size: .84rem; }
.search-panel { display: grid; grid-template-columns: 1.35fr 1fr .75fr auto; gap: .75rem; align-items: end; margin-top: 1.65rem; padding: 1rem; background: var(--white); border: 1px solid #cbd8e5; border-radius: 14px; box-shadow: var(--shadow); }
.search-field { min-width: 0; }
.search-field label { display: block; margin-bottom: .3rem; color: var(--navy); font-size: .82rem; font-weight: 800; }
.search-panel input, .search-panel select { min-height: 46px; }
.quick-searches { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem; margin-top: .85rem; color: #bfd2e7; font-size: .83rem; }
.quick-searches button { padding: .25rem .58rem; color: #e8f3ff; background: transparent; border: 1px solid #426485; border-radius: 999px; cursor: pointer; }
.quick-searches button:hover { background: #17385e; }
.quick-searches-light { color: var(--muted); }
.quick-searches-light button { color: var(--blue-dark); border-color: #adc9e6; }
.quick-searches-light button:hover { background: #e5f1ff; }
.button { display: inline-flex; justify-content: center; align-items: center; min-height: 46px; padding: .68rem 1.08rem; color: var(--white); background: var(--blue); border: 1px solid var(--blue); border-radius: 9px; text-decoration: none; font-weight: 780; cursor: pointer; }
.button:hover { color: var(--white); background: var(--blue-dark); }
.button:disabled { color: #66778a; background: #dbe4ed; border-color: #cbd5df; cursor: not-allowed; }
.button-secondary { color: var(--navy); background: var(--white); border-color: var(--line); }
.button-secondary:hover { color: var(--navy); background: var(--ice); }
.button-quiet { color: var(--blue-dark); background: #edf5ff; border-color: #c7ddf5; }
.button-quiet:hover, .button-quiet.is-saved { color: #075e4d; background: var(--success-bg); border-color: #a9dfcf; }
.button-small { min-height: 38px; padding: .45rem .78rem; font-size: .88rem; }
.full { width: 100%; margin-top: .75rem; }
.hero-actions, .header-actions, .button-row, .card-actions, .pagination { display: flex; flex-wrap: wrap; align-items: center; gap: .65rem; margin-top: 1.2rem; }
.section { padding: clamp(3rem, 6vw, 5rem) 0; }
.compact-section { padding: clamp(2.6rem, 5vw, 4rem) 0; }
.section-muted { background: var(--ice); }
.section-heading { margin-bottom: 1.5rem; }
.section h2, .panel h2, .sidebar-panel h2 { color: var(--navy); letter-spacing: -.03em; }
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: .9rem; }
.steps article, .panel, .form-card, .analysis-result, .detail-aside, .sidebar-panel { padding: 1.3rem; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }
.steps span { display: inline-flex; align-items: center; justify-content: center; width: 32px; height: 32px; color: var(--blue-dark); background: #e5f1ff; border-radius: 50%; font-weight: 850; }
.steps h3 { margin: .8rem 0 .3rem; color: var(--navy); }
.steps p { margin: 0; color: var(--muted); }
.split { display: grid; grid-template-columns: 1.2fr .8fr; gap: 3rem; align-items: center; }
.analysis-callout .button { margin-top: .65rem; }
.notice { padding: 1.1rem 1.25rem; background: #e5f1ff; border-left: 4px solid var(--blue); border-radius: 8px; }
.notice p { margin-bottom: 0; }
.page-header { color: var(--white); background: var(--navy); padding: 2.7rem 0; }
.page-header h1 { font-size: clamp(2.1rem, 4vw, 3.5rem); }
.page-header p:last-child { color: #c3d4e8; }
.search-page-head { padding: 2.45rem 0 2rem; background: #eaf2f9; border-bottom: 1px solid var(--line); }
.search-page-head h1 { margin-bottom: .55rem; color: var(--navy); font-size: clamp(2.1rem, 4vw, 3.35rem); }
.search-page-head > .container > p { max-width: 760px; }
.search-panel-light { margin-top: 1.25rem; }
.rate-limit-alert { display: flex; flex-wrap: wrap; align-items: center; gap: .65rem 1rem; }
.rate-limit-alert strong { display: block; width: 100%; }
.form-card { padding: clamp(1.2rem, 4vw, 2rem); }
.form-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1rem 1.2rem; }
.field { display: flex; flex-direction: column; gap: .35rem; margin-bottom: .85rem; }
.field-wide { grid-column: 1/-1; }
label { color: var(--navy); font-weight: 700; }
input, select, textarea { width: 100%; color: var(--graphite); background: var(--white); border: 1px solid #aebdce; border-radius: 9px; padding: .68rem .78rem; }
textarea { resize: vertical; }
input:focus, select:focus, textarea:focus { border-color: var(--blue); box-shadow: 0 0 0 3px rgba(22,119,232,.15); outline: none; }
.check { grid-column: 1/-1; display: flex; align-items: center; gap: .55rem; }
.check input { width: 18px; height: 18px; }
.check small { color: var(--muted); font-weight: 400; }
.alert { margin: 1rem 0; padding: .85rem 1rem; color: var(--navy); background: #e5f1ff; border: 1px solid #b4d7ff; border-radius: 10px; }
.alert-error { color: #7a271a; background: #fff0ed; border-color: #f5c6be; }
.alert-success { color: #075e4d; background: #e9f8f3; border-color: #a9dfcf; }
.results-section { padding-top: 2.5rem; }
.results-heading { display: flex; justify-content: space-between; align-items: end; gap: 1.5rem; margin-bottom: 1rem; }
.results-heading h2 { margin: .25rem 0; font-size: 2rem; }
.results-heading p { margin: 0; color: var(--muted); }
.sort-form { display: flex; align-items: center; gap: .55rem; }
.sort-form label { white-space: nowrap; font-size: .84rem; }
.results-summary, .summary-bar { display: flex; flex-wrap: wrap; gap: .55rem; margin-bottom: 1rem; }
.results-summary span, .summary-bar span { padding: .4rem .68rem; background: var(--white); border: 1px solid var(--line); border-radius: 999px; font-size: .84rem; }
.results-layout { display: grid; grid-template-columns: minmax(0, 1fr) 310px; gap: 1.15rem; align-items: start; }
.jobs-list { display: flex; flex-direction: column; gap: .9rem; min-width: 0; }
.job-card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }
.job-card-horizontal { display: grid; grid-template-columns: minmax(0, 1fr) 112px; gap: 1.2rem; padding: 1.35rem; }
.job-card-content { min-width: 0; }
.job-card h3 { margin: .55rem 0 .12rem; color: var(--navy); font-size: 1.3rem; line-height: 1.25; }
.job-top { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.source { color: var(--muted); text-transform: uppercase; font-size: .7rem; font-weight: 850; letter-spacing: .12em; }
.company { margin: 0; font-weight: 750; }
.metadata, .small, .muted { color: var(--muted); }
.metadata { margin: .28rem 0 .8rem; }
.small { font-size: .84rem; }
.chip-groups { display: grid; grid-template-columns: 1fr 1fr; gap: .85rem; margin: .8rem 0; }
.chip-groups strong { display: block; margin-bottom: .38rem; color: var(--navy); font-size: .82rem; }
.chips { display: flex; flex-wrap: wrap; gap: .35rem; }
.chip { padding: .25rem .55rem; border-radius: 999px; font-size: .78rem; font-weight: 700; }
.chip-ok { color: #075e4d; background: var(--success-bg); }
.chip-missing { color: #8b2e28; background: var(--danger-bg); }
.chip-more { color: var(--graphite); background: #e9eef4; }
.compatibility-score { align-self: start; display: flex; flex-direction: column; align-items: center; justify-content: center; width: 104px; height: 104px; color: var(--success); background: #f6fbf9; border: 7px solid #a8dccb; border-radius: 50%; text-align: center; }
.compatibility-score strong { font-size: 1.55rem; line-height: 1; }
.compatibility-score span { margin-top: .2rem; color: var(--muted); font-size: .67rem; }
.attribution { margin-top: 1rem; padding-top: .7rem; color: var(--muted); font-size: .8rem; border-top: 1px solid var(--line); }
.adzuna-mark { display: inline-block; min-width: 116px; min-height: 23px; color: #374151; background: var(--white); border: 1px solid #b8c4d1; border-radius: 5px; padding: 1px 7px; text-decoration: none; }
.search-sidebar { position: sticky; top: 78px; display: grid; gap: .9rem; }
.sidebar-panel h2 { margin-top: 0; font-size: 1.08rem; }
.sidebar-metrics { display: grid; grid-template-columns: 1fr 1fr; gap: .55rem; }
.sidebar-metrics div { padding: .75rem; background: var(--ice); border-radius: 10px; }
.sidebar-metrics span, .sidebar-metrics small { display: block; color: var(--muted); font-size: .72rem; }
.sidebar-metrics strong { display: block; color: var(--navy); font-size: 1.45rem; }
.tech-bar { margin-top: .8rem; }
.tech-bar > div { display: flex; justify-content: space-between; gap: 1rem; font-size: .84rem; }
.tech-bar progress { width: 100%; height: 8px; overflow: hidden; appearance: none; border: 0; border-radius: 999px; background: #e5ebf1; }
.tech-bar progress::-webkit-progress-bar { background: #e5ebf1; border-radius: 999px; }
.tech-bar progress::-webkit-progress-value { background: var(--blue); border-radius: 999px; }
.tech-bar progress::-moz-progress-bar { background: var(--blue); border-radius: 999px; }
.empty { padding: 2.5rem; text-align: center; background: var(--white); border: 1px dashed #9cafc3; border-radius: var(--radius); }
.empty h3 { color: var(--navy); }
.pagination { margin-top: .2rem; }
.detail-grid { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 1.5rem; align-items: start; }
.detail-main { min-width: 0; }
.description { white-space: pre-wrap; overflow-wrap: anywhere; }
.score-panel { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-bottom: 1.4rem; padding: 1rem 1.2rem; color: var(--white); background: var(--navy-2); border-radius: 12px; }
.score-panel strong { font-size: 2rem; }
.tags { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: 1.5rem; }
.tag { padding: .35rem .65rem; background: #f5eae8; border-radius: 999px; font-size: .84rem; }
.tag-ok { color: #075e4d; background: #dff4ed; }
.detail-aside, .analysis-result, .side-empty { position: sticky; top: 78px; }
dl { margin: 0; }
dt { margin-top: .8rem; color: var(--muted); font-size: .78rem; font-weight: 800; text-transform: uppercase; letter-spacing: .08em; }
dd { margin: .1rem 0 0; }
.stack { display: flex; flex-direction: column; gap: .45rem; margin-top: 1.25rem; }
.attribution-box { margin-top: 1.5rem; padding: 1rem; border: 1px solid var(--line); border-radius: 10px; }
.form-result-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; align-items: start; }
.result-block { margin: .9rem 0; padding-bottom: .8rem; border-bottom: 1px solid var(--line); }
.result-block p { margin: .2rem 0; }
.auth-section, .error-page { min-height: 70vh; display: grid; place-items: center; padding: 4rem 0; background: var(--ice); }
.auth-card { width: min(440px, calc(100% - 2rem)); padding: 2rem; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }
.dashboard-cards { display: grid; grid-template-columns: repeat(6, 1fr); gap: .8rem; margin-bottom: 1rem; }
.dashboard-cards article { padding: 1rem; background: var(--navy); color: var(--white); border-radius: 12px; }
.dashboard-cards span { display: block; color: #bbcee2; font-size: .78rem; }
.dashboard-cards strong { display: block; margin-top: .2rem; font-size: 1.7rem; }
.dashboard-grid, .report-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin-bottom: 1rem; }
.panel { margin-bottom: 1rem; }
.panel-heading, .list-row, .bar-row { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.list-row, .bar-row { padding: .65rem 0; border-bottom: 1px solid var(--line); }
.list-row small { display: block; color: var(--muted); }
.table-wrap { width: 100%; overflow-x: auto; }
table { width: 100%; border-collapse: collapse; }
th, td { padding: .75rem; text-align: left; border-bottom: 1px solid var(--line); }
th { color: var(--navy); background: #f1f5f8; font-size: .82rem; }
.candidate { margin-bottom: 1rem; }
.section-title { margin-top: 0; }
.big-number { margin: 0; color: var(--blue-dark); font-size: 3rem; font-weight: 850; }
.danger-zone { margin-top: 1.5rem; padding: 1.25rem; border: 1px solid #efb6ad; border-radius: 12px; }
.movement-list { padding: 0; list-style: none; }
.movement-list li { display: flex; justify-content: space-between; gap: 1rem; padding: .6rem 0; border-bottom: 1px solid var(--line); }
.saved-page-head { padding-bottom: 2.3rem; }
.saved-notice { margin-top: 0; }
.saved-page-heading { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.saved-page-heading h2 { color: var(--navy); }
.saved-jobs-list { display: grid; gap: .8rem; margin-bottom: 1rem; }
.saved-job-card { display: grid; grid-template-columns: minmax(0, 1fr) 100px; gap: .75rem 1.2rem; align-items: center; padding: 1.2rem; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }
.saved-job-card h3 { margin: .18rem 0; color: var(--navy); }
.saved-date { margin: 0; color: var(--muted); font-size: .78rem; }
.saved-score { display: flex; flex-direction: column; align-items: center; justify-content: center; width: 88px; height: 88px; color: var(--success); border: 5px solid #a8dccb; border-radius: 50%; }
.saved-score strong { font-size: 1.3rem; }
.saved-score span { color: var(--muted); font-size: .65rem; }
.saved-job-card .card-actions { grid-column: 1/-1; margin-top: .2rem; }
.site-footer { padding: 2rem 0; color: #c3d4e8; background: #061326; }
.footer-grid { display: grid; grid-template-columns: 1.25fr .8fr 1fr; gap: 2rem; align-items: start; }
.footer-brand strong { color: var(--white); font-size: 1.1rem; }
.footer-brand p, .footer-attribution p { margin: .35rem 0; }
.footer-links { display: flex; flex-direction: column; gap: .38rem; }
.site-footer a { color: #8bc5ff; }
.site-footer .adzuna-mark { color: var(--graphite); }
@media (max-width: 960px) {
  .search-panel { grid-template-columns: 1fr 1fr; }
  .search-field-main { grid-column: 1/-1; }
  .search-submit { width: 100%; }
  .results-layout, .hero-grid, .split, .detail-grid, .form-result-grid { grid-template-columns: 1fr; }
  .search-sidebar { position: static; grid-template-columns: 1fr 1fr; }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .dashboard-cards { grid-template-columns: repeat(3, 1fr); }
  .detail-aside, .analysis-result, .side-empty { position: static; }
}
@media (max-width: 720px) {
  .menu-button { display: inline-flex; }
  .main-nav { display: none; position: absolute; top: 62px; left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 0; padding: .65rem 1rem .9rem; background: var(--navy); border-top: 1px solid #284b72; }
  .main-nav.open { display: flex; }
  .main-nav a, .link-button { display: block; width: 100%; padding: .62rem 0; text-align: left; }
  .hero-compact { padding-top: 2.5rem; }
  .hero h1 { font-size: clamp(2.3rem, 11vw, 3.2rem); }
  .search-panel, .steps, .form-grid, .dashboard-grid, .report-grid, .footer-grid, .search-sidebar { grid-template-columns: 1fr; }
  .search-field-main { grid-column: auto; }
  .results-heading { align-items: stretch; flex-direction: column; }
  .sort-form { align-items: stretch; flex-direction: column; }
  .job-card-horizontal { grid-template-columns: 1fr; }
  .compatibility-score { grid-row: 1; width: 88px; height: 88px; }
  .chip-groups { grid-template-columns: 1fr; }
  .dashboard-cards { grid-template-columns: repeat(2, 1fr); }
  .field-wide, .check { grid-column: auto; }
  .saved-job-card { grid-template-columns: 1fr 88px; }
}
@media (max-width: 400px) {
  .container { width: min(100% - 1.2rem, 1240px); }
  .button { width: 100%; }
  .quick-searches button { flex: 1 1 auto; }
  .dashboard-cards { grid-template-columns: 1fr 1fr; }
  .movement-list li, .saved-job-card { grid-template-columns: 1fr; flex-direction: column; }
  .saved-score { grid-row: 1; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
