/* Energy Dispatch Jobs, v3 design (design package spec 02). Light theme, forest green and warm ivory. */
:root {
  --forest: #064E3B; --deep: #073C30; --ink: #16372E; --muted: #52675F;
  --canvas: #F5F6F0; --surface: #FFFFFF; --subtle: #EDF3ED; --border: #D4DFD6; --border-strong: #A9BCB0;
  --accent: #D8ED86; --ok: #166346; --caution: #80560D; --caution-bg: #FFF3D6; --error: #A12F35; --error-bg: #FDEDEF;
  --focus: #176D99;
  --r-ctl: 8px; --r-card: 14px; --r-panel: 20px;
  --shadow: 0 8px 30px rgba(7, 60, 48, .14);
  font-family: Inter, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  color: var(--ink); background: var(--canvas);
  -webkit-text-size-adjust: 100%;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; background: var(--canvas); font-size: 15px; line-height: 24px; }
a { color: var(--forest); text-underline-offset: 2px; }
h1, h2, h3 { font-weight: 650; letter-spacing: -0.01em; margin: 0; }
p { margin: 0 0 12px; }
ul, ol { margin: 0; padding: 0; }
img { display: block; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }
.vh { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 8px; top: -60px; background: var(--surface); padding: 8px 12px; border-radius: var(--r-ctl); z-index: 100; }
.skip:focus { top: 8px; }
.wrap { max-width: 1320px; margin: 0 auto; padding: 0 40px; }
.narrow { max-width: 820px; }
.status-report { overflow-wrap: anywhere; }
.status-report .failed { width: 100%; table-layout: fixed; border-collapse: collapse; margin: 16px 0 28px; }
.status-report .failed th, .status-report .failed td { padding: 10px 8px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--border); white-space: normal; }
.status-report .failed th:first-child { width: 30%; }
.quiet { color: var(--muted); }
.small { font-size: 13px; line-height: 20px; }
.num, .count-line, .stage small, .starter small { font-variant-numeric: tabular-nums; }

/* buttons */
.btn { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 10px 16px; border-radius: var(--r-ctl);
  border: 1px solid var(--border-strong); background: var(--surface); color: var(--ink); font-weight: 600; font-size: 14px;
  text-decoration: none; cursor: pointer; line-height: 20px; }
.btn:hover { border-color: var(--forest); }
.btn.primary { background: var(--forest); border-color: var(--forest); color: #fff; }
.btn.primary:hover { background: var(--deep); }
.btn.icon { min-width: 44px; justify-content: center; padding: 8px; }
.btn[aria-pressed="true"] { background: var(--subtle); border-color: var(--forest); }
.linkbtn { background: none; border: 0; padding: 4px; color: var(--forest); text-decoration: underline; cursor: pointer; font-size: 13px; font-weight: 600; }
.btn.file { position: relative; }

/* header */
.top { background: var(--deep); color: #fff; }
.top-in { display: flex; align-items: center; gap: 32px; min-height: 68px; }
.brand { display: flex; align-items: center; gap: 10px; color: #fff; text-decoration: none; }
.brand img { flex: none; }
.brand span { display: flex; flex-direction: column; line-height: 18px; }
.brand b { font-size: 16px; }
.brand small { font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--accent); font-weight: 600; }
.nav { display: flex; gap: 4px; flex: 1; }
.nav a, .saved-link { color: #E6EFE9; text-decoration: none; padding: 22px 12px; border-bottom: 3px solid transparent; font-weight: 500; }
.nav a[aria-current], .saved-link[aria-current] { color: #fff; border-bottom-color: var(--accent); font-weight: 600; }
.nav a:hover, .saved-link:hover { color: #fff; }
.news-link { margin-left: auto; }
.news-link + .saved-link { margin-left: 0; }
.saved-link .count:not(:empty) { background: var(--accent); color: var(--deep); border-radius: 999px; padding: 1px 8px; font-size: 12px; font-weight: 700; margin-left: 4px; }

/* discover */
.hero { padding: 56px 0 40px; }
.hero-in { position: relative; }
.hero-mark { position: absolute; right: 56px; top: 0; width: 300px; height: 300px; }
.eyebrow { font-size: 12px; letter-spacing: .14em; text-transform: uppercase; font-weight: 600; color: var(--muted); margin-bottom: 12px; }
.hero h1 { font-size: 54px; line-height: 58px; max-width: 16ch; }
.lede { font-size: 17px; line-height: 27px; color: var(--muted); max-width: 64ch; margin-top: 16px; }
.lede.small { font-size: 15px; line-height: 24px; }
.bigsearch { display: flex; gap: 12px; margin-top: 28px; max-width: 820px; }
.bigsearch input, .search input { flex: 1; min-height: 56px; padding: 0 18px; border-radius: 12px; border: 1px solid var(--border-strong);
  background: var(--surface); font-size: 16px; }
.bigsearch .btn { min-height: 56px; padding: 0 24px; }
.scope-note { font-size: 13px; color: var(--muted); margin: 8px 0 0; }
.block { padding: 28px 40px; }
.block h2 { font-size: 24px; line-height: 30px; margin-bottom: 16px; }
.block .sub { color: var(--muted); margin: -8px 0 16px; }
.block-head { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; }
.stages { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.stage, .starter { display: flex; flex-direction: column; gap: 6px; padding: 20px 22px; border: 1px solid var(--border); border-radius: var(--r-card);
  background: var(--surface); text-decoration: none; color: var(--ink); height: 100%; }
.stage:hover, .starter:hover { border-color: var(--forest); }
.stage b { font-size: 19px; line-height: 26px; }
.stage span, .starter span { color: var(--muted); font-size: 14px; line-height: 21px; }
.stage small, .starter small { margin-top: auto; padding-top: 6px; font-weight: 600; color: var(--forest); font-size: 13px; }
.starters { list-style: none; display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.starter b { font-size: 16px; }
.minis { list-style: none; display: grid; gap: 8px; }
.mini a { display: grid; gap: 2px; padding: 14px 18px; background: var(--surface); border: 1px solid var(--border); border-radius: 12px;
  text-decoration: none; color: var(--ink); }
.mini a:hover { border-color: var(--forest); }
.mini b { font-weight: 600; }
.mini span { color: var(--muted); font-size: 14px; }
.mini small { font-size: 13px; color: var(--muted); }
.mini small.soon { color: var(--caution); font-weight: 600; }
.facts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; padding-bottom: 56px; }
.facts div { display: grid; gap: 4px; border-top: 3px solid var(--forest); padding-top: 14px; }
.facts span { color: var(--muted); font-size: 14px; line-height: 21px; }

/* board */
.board { padding-top: 32px; padding-bottom: 48px; }
.board-head h1 { font-size: 38px; line-height: 44px; margin-bottom: 16px; }
.search { display: flex; max-width: 820px; }
.board-grid { display: grid; grid-template-columns: 248px minmax(0, 1fr); gap: 32px; margin-top: 28px; align-items: start; }
.rail { position: sticky; top: 16px; max-height: calc(100vh - 32px); overflow: auto; padding-right: 4px; }
.rail-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; }
.rail-head h2 { font-size: 17px; }
.close-sheet, .sheet-foot, .filters-btn { display: none; }
.facet { border-top: 1px solid var(--border); padding: 12px 0; }
.facet > summary, .facet-title { display: flex; justify-content: space-between; align-items: center; cursor: pointer; font-weight: 600; font-size: 14px;
  list-style: none; padding: 4px 0; }
.facet > summary::-webkit-details-marker { display: none; }
.facet > summary::after { content: "+"; color: var(--muted); font-weight: 400; font-size: 18px; }
.facet[open] > summary::after { content: "−"; }
.facet .sel { font-size: 12px; color: var(--forest); font-weight: 600; margin-left: auto; margin-right: 8px; }
.opts { list-style: none; margin-top: 6px; display: grid; gap: 2px; }
.opt label { display: flex; align-items: flex-start; gap: 8px; padding: 5px 4px; border-radius: 6px; cursor: pointer; font-size: 14px; line-height: 20px; }
.opt label:hover { background: var(--subtle); }
.opt input { margin: 3px 0 0; width: 16px; height: 16px; accent-color: var(--forest); flex: none; }
.opt .n { margin-left: auto; color: var(--muted); font-size: 12px; font-variant-numeric: tabular-nums; }
.opt.zero label { color: var(--muted); }
.opt.zero.on label { color: var(--caution); }
.facet-find { width: 100%; min-height: 36px; margin-top: 6px; padding: 0 10px; border: 1px solid var(--border-strong); border-radius: var(--r-ctl); font-size: 14px; }
.show-all { margin-top: 4px; }
.group-label { font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); font-weight: 600; margin: 20px 0 4px; }
.toggle { display: flex; gap: 8px; align-items: flex-start; font-size: 14px; padding: 6px 4px; cursor: pointer; }
.toggle input { accent-color: var(--forest); width: 16px; height: 16px; margin-top: 3px; }

.results-bar { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.count-line { font-size: 17px; font-weight: 600; flex: 1; }
.sort { display: flex; align-items: center; gap: 8px; font-size: 14px; color: var(--muted); }
.sort select { min-height: 44px; padding: 0 12px; border-radius: var(--r-ctl); border: 1px solid var(--border-strong); background: var(--surface); color: var(--ink); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 12px 0 4px; }
.chip { display: inline-flex; align-items: center; gap: 6px; min-height: 32px; padding: 4px 6px 4px 12px; border-radius: 999px; border: 1px solid var(--forest);
  background: var(--subtle); font-size: 13px; cursor: pointer; }
.chip b { font-weight: 600; }
.chip .x { width: 20px; height: 20px; border-radius: 50%; display: inline-grid; place-items: center; background: var(--surface); }
.chip.conflict { border-color: var(--caution); background: var(--caution-bg); }
.cards { list-style: none; display: grid; gap: 12px; margin-top: 12px; }
.card { position: relative; background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-card); padding: 20px 22px;
  display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 4px 16px; }
.card:hover { border-color: var(--border-strong); }
.card h3 { font-size: 19px; line-height: 26px; }
.card h3 a { color: var(--ink); text-decoration: none; }
.card h3 a:hover { text-decoration: underline; }
.card h3 a:visited { color: #3F5A50; }
.card .who { color: var(--muted); margin: 2px 0 0; font-size: 14px; }
.card .who strong { color: var(--ink); font-weight: 600; }
.card .meta { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 4px 16px; font-size: 13px; color: var(--muted); margin-top: 6px; }
.card .meta .soon { color: var(--caution); font-weight: 600; }
.card .tags { grid-column: 1 / -1; }
.card .side { display: flex; gap: 6px; align-items: flex-start; }
.card .save { min-height: 40px; }
.card.expired { opacity: .75; }
.menu { position: relative; }
.menu > summary { list-style: none; }
.menu > summary::-webkit-details-marker { display: none; }
.menu-pop { position: absolute; right: 0; top: 46px; z-index: 5; background: var(--surface); border: 1px solid var(--border); border-radius: 10px;
  box-shadow: var(--shadow); display: grid; min-width: 190px; padding: 6px; }
.menu-pop button, .menu-pop a { text-align: left; background: none; border: 0; padding: 10px 12px; border-radius: 6px; cursor: pointer; font-size: 14px; color: var(--ink); text-decoration: none; }
.menu-pop button:hover, .menu-pop a:hover { background: var(--subtle); }
.tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.tag { display: inline-block; font-size: 12px; line-height: 18px; padding: 3px 9px; border-radius: 999px; background: var(--subtle); color: var(--ink); border: 1px solid transparent; }
.tag.fn { background: #E8EFF4; }
.tag.caution { background: var(--caution-bg); color: var(--caution); }
.tag.muted { background: transparent; border-color: var(--border); color: var(--muted); }
.tag.net { background: var(--accent); color: var(--deep); font-weight: 600; }
.tag.link { text-decoration: none; border-color: var(--border); background: var(--surface); }
.tag.link:hover { border-color: var(--forest); }
.empty-state { background: var(--surface); border: 1px dashed var(--border-strong); border-radius: var(--r-card); padding: 28px; }
.empty-state h3 { font-size: 17px; margin-bottom: 8px; }
.more-wrap { display: flex; align-items: center; gap: 16px; margin-top: 20px; flex-wrap: wrap; }
.more-wrap p { margin: 0; }

/* drawer */
.drawer { position: fixed; inset: 0; z-index: 50; }
.drawer .scrim { position: absolute; inset: 0; background: rgba(7, 60, 48, .35); }
.drawer .panel { position: absolute; right: 0; top: 0; bottom: 0; width: min(680px, 100%); background: var(--surface); box-shadow: var(--shadow);
  display: flex; flex-direction: column; }
.panel-top { display: flex; align-items: center; gap: 12px; padding: 12px 20px 12px 28px; border-bottom: 1px solid var(--border); font-size: 13px; color: var(--muted); }
.panel-top span { flex: 1; }
.panel-body { overflow: auto; padding: 24px 28px 40px; }

/* job page */
.back { display: inline-block; margin: 24px 0 8px; font-size: 14px; font-weight: 600; }
.job { padding-bottom: 32px; }
.job h1 { font-size: 34px; line-height: 40px; }
.job .who { margin: 8px 0 0; color: var(--muted); }
.job .who strong { color: var(--ink); }
.job .actions, .actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.glance { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 24px; background: var(--subtle); border-radius: var(--r-card);
  padding: 20px 22px; margin: 24px 0 8px; }
.glance dt { font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); font-weight: 600; }
.glance dd { margin: 2px 0 0; font-weight: 600; font-size: 14px; line-height: 21px; }
.glance dd.soon { color: var(--caution); }
.glance dd.quiet { color: var(--muted); font-weight: 500; }
.sec { margin-top: 28px; }
.sec h2 { font-size: 21px; line-height: 28px; margin-bottom: 10px; }
.sec h3 { font-size: 15px; margin: 14px 0 6px; }
.sec ul, .prose ul { padding-left: 20px; display: grid; gap: 6px; }
.sec p, .sec li { max-width: 72ch; }
blockquote { margin: 8px 0; padding: 10px 14px; border-left: 3px solid var(--border-strong); background: var(--canvas); border-radius: 0 8px 8px 0; font-size: 14px; color: var(--ink); }
.elig { display: grid; gap: 10px; margin: 0; }
.elig-row { display: grid; grid-template-columns: 190px minmax(0, 1fr); gap: 12px; }
.elig dt { color: var(--muted); font-size: 14px; }
.elig dd { margin: 0; }
.state { font-weight: 600; font-size: 14px; }
.state.warn { color: var(--caution); }
.state.ok { color: var(--ok); }
details summary { cursor: pointer; font-size: 13px; color: var(--forest); font-weight: 600; }
.note.caution { background: var(--caution-bg); color: var(--caution); padding: 10px 14px; border-radius: 8px; }
.source { border-top: 1px solid var(--border); padding-top: 20px; }

/* saved, about */
.narrow h1 { font-size: 38px; line-height: 44px; margin: 32px 0 8px; }
.h3 { font-size: 21px; margin: 36px 0 6px; }
.plain { list-style: none; display: grid; gap: 8px; }
.plain li { display: flex; gap: 12px; align-items: center; justify-content: space-between; background: var(--surface); border: 1px solid var(--border); border-radius: 10px; padding: 10px 14px; }
.prose h2 { font-size: 22px; margin: 32px 0 10px; }
.prose p, .prose li { max-width: 70ch; }
.prose { padding-bottom: 48px; }

/* dialog, toast */
.dialog { border: 0; border-radius: var(--r-panel); padding: 28px; width: min(520px, calc(100% - 32px)); box-shadow: var(--shadow); color: var(--ink); }
.dialog::backdrop { background: rgba(7, 60, 48, .35); }
.dialog h2 { font-size: 22px; margin-bottom: 6px; }
.dialog label { display: grid; gap: 6px; font-weight: 600; font-size: 14px; margin-top: 14px; }
.dialog select, .dialog textarea { border: 1px solid var(--border-strong); border-radius: var(--r-ctl); padding: 10px 12px; font-weight: 400; background: var(--surface); }
.form-msg { min-height: 20px; margin: 12px 0 0; font-size: 14px; }
.form-msg.err { color: var(--error); }
.form-msg.ok { color: var(--ok); }
.approve-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; margin: 8px 0 16px; }
.approve-actions .form-msg { margin: 0; }
.approve-key { margin: 16px 0; }
.approve-key input { max-width: 100%; padding: 6px 8px; border: 1px solid var(--border-strong); border-radius: 6px; }
.toast { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); background: var(--deep); color: #fff; padding: 12px 16px; border-radius: 10px;
  display: none; align-items: center; gap: 14px; z-index: 60; box-shadow: var(--shadow); font-size: 14px; max-width: calc(100% - 32px); }
.toast.on { display: flex; }
.toast button { background: none; border: 0; color: var(--accent); font-weight: 700; cursor: pointer; text-decoration: underline; }

.foot { border-top: 1px solid var(--border); margin-top: 24px; }
.foot-in { padding-top: 28px; padding-bottom: 40px; color: var(--muted); font-size: 13px; line-height: 20px; }
.foot-in p { max-width: 90ch; }

@media (max-width: 1279px) { .wrap { padding: 0 24px; } .block { padding: 24px; } }
@media (max-width: 1100px) { .hero-mark { display: none; } }
@media (max-width: 1023px) {
  .board-grid { grid-template-columns: minmax(0, 1fr); }
  .filters-btn { display: inline-flex; }
  .rail { display: none; position: fixed; inset: 0; z-index: 40; max-height: none; background: var(--surface); padding: 16px 20px 96px; overflow: auto; top: 0; }
  .rail.sheet-open { display: block; }
  .close-sheet { display: inline-flex; }
  .sheet-foot { display: flex; gap: 10px; position: fixed; left: 0; right: 0; bottom: 0; padding: 12px 20px calc(12px + env(safe-area-inset-bottom));
    background: var(--surface); border-top: 1px solid var(--border); }
  .sheet-foot .btn { flex: 1; justify-content: center; }
  .stages, .starters, .facts { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 767px) {
  body { font-size: 16px; line-height: 25px; }
  .wrap { padding: 0 16px; }
  .block { padding: 20px 16px; }
  .top-in { gap: 12px; min-height: 60px; flex-wrap: wrap; }
  .brand span small { display: none; }
  .nav { order: 3; flex: 1 1 200px; margin: 0 -8px; overflow-x: auto; }
  .saved-link:not(.news-link) { order: 4; }
  .nav a { padding: 10px 8px; }
  .saved-link { padding: 10px 6px; font-size: 14px; }
  .news-link { margin-left: auto; }
  .top-in { column-gap: 4px; }
  .brand b { font-size: 15px; }
  .hero { padding: 32px 0 24px; }
  .hero h1 { font-size: 36px; line-height: 40px; }
  .bigsearch { flex-direction: column; }
  .bigsearch .btn { justify-content: center; }
  .stages, .starters, .facts { grid-template-columns: 1fr; }
  .board-head h1, .narrow h1 { font-size: 30px; line-height: 36px; }
  .card { padding: 16px; }
  .card h3 { font-size: 18px; line-height: 25px; }
  .job h1 { font-size: 28px; line-height: 34px; }
  .glance { grid-template-columns: 1fr; }
  .elig-row { grid-template-columns: 1fr; gap: 2px; }
  .sort { width: 100%; }
  .sort select { flex: 1; }
}
@media (prefers-reduced-motion: no-preference) {
  .btn, .chip, .card, .stage, .starter, .mini a { transition: border-color .15s, background-color .15s; }
}

.no-report .report-link { display: none; }

/* Optional SVG jobs map; every colour follows the site's theme variables. */
.view-toggle { display: inline-flex; align-items: center; gap: 4px; }
.view-toggle .btn { padding: 8px 12px; }
#jobMap { margin-top: 12px; }
.map-controls { display: flex; gap: 8px; margin-bottom: 8px; }
.jobs-map { width: 100%; height: auto; min-height: 280px; display: block; background: var(--subtle);
  border: 1px solid var(--border); border-radius: var(--r-card); touch-action: none; cursor: grab; }
.jobs-map:active { cursor: grabbing; }
.map-country { stroke: var(--border-strong); stroke-width: .8; vector-effect: non-scaling-stroke;
  pointer-events: all; cursor: pointer; }
.map-country:hover, .map-country:focus, .map-country.map-highlight { stroke: var(--focus); stroke-width: 2; outline: none; }
.map-city { fill: var(--accent); stroke: var(--ink); stroke-width: 1; vector-effect: non-scaling-stroke; cursor: pointer; }
.map-city:hover, .map-city:focus, .map-city.map-highlight { fill: var(--surface); stroke: var(--focus); stroke-width: 2; outline: none; }
.map-tooltip { min-height: 52px; padding: 8px 12px; margin: 8px 0; border: 1px solid var(--border);
  border-radius: var(--r-ctl); background: var(--surface); }
.map-tooltip .linkbtn { margin-left: 8px; min-height: 44px; }
@media (max-width: 767px) { .jobs-map { min-height: 0; aspect-ratio: 5 / 3; } }
:root[data-theme="dark"] #jobMap {
  --forest: #8fdcb8; --ink: #e5eee8; --muted: #afc0b5; --surface: #10271f;
  --subtle: #0b1d17; --border: #345246; --border-strong: #5f7e70; --focus: #73bde4;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) #jobMap {
    --forest: #8fdcb8; --ink: #e5eee8; --muted: #afc0b5; --surface: #10271f;
    --subtle: #0b1d17; --border: #345246; --border-strong: #5f7e70; --focus: #73bde4;
  }
}
#jobMap { color: var(--ink); background: var(--surface); padding: 12px;
  border: 1px solid var(--border); border-radius: var(--r-card); }

/* The existing filter rail stays outside the map and results split. */
.board.map-layout { max-width: none; padding-left: 16px; padding-right: 16px; }
.results, .results-list { min-width: 0; }
.map-view .results-body { display: grid; grid-template-columns: minmax(0, 62fr) minmax(0, 38fr);
  gap: 16px; margin-top: 12px; align-items: start; }
.map-view #jobMap { margin: 0; min-height: 480px; height: calc(100vh - var(--map-offset, 300px));
  position: sticky; top: 16px; display: flex; flex-direction: column; }
.map-view .jobs-map { flex: 1; min-height: 0; height: 0; aspect-ratio: auto; }
.map-view .map-notes { max-height: 30%; overflow-y: auto; flex-shrink: 0; }
.map-view .results-list { overflow-y: auto; min-height: 480px; height: calc(100vh - var(--map-offset, 300px));
  padding: 0 4px 4px; }
.map-view .map-city.map-selected { stroke: var(--focus); stroke-width: 3; }
.map-view .chips { margin-top: 0; }
.map-view .card { padding: 16px; gap: 4px 8px; }
.map-view .card .side { grid-column: 1 / -1; grid-row: 2; margin-top: 4px; }
.map-view .card.map-highlight { border-color: var(--focus); box-shadow: inset 0 0 0 1px var(--focus); }
@media (min-width: 900px) and (max-width: 1023px) {
  .map-layout .board-grid { grid-template-columns: 248px minmax(0, 1fr); }
  .map-layout .rail { display: block; position: sticky; inset: auto; top: 16px;
    max-height: calc(100vh - 32px); padding: 0 4px 0 0; background: transparent; z-index: auto; }
  .map-layout .filters-btn, .map-layout .close-sheet, .map-layout .sheet-foot { display: none; }
}
@media (max-width: 899px) {
  .map-view .results-body { grid-template-columns: minmax(0, 1fr); }
  .map-view #jobMap { position: static; min-height: 0; height: 55vh; }
  .map-view .results-list { min-height: 0; height: auto; overflow: visible; }
}

.before-apply { margin-top: 18px; padding: 14px 16px; background: var(--subtle); border: 1px solid var(--border); border-radius: 10px; }
.before-apply h2 { font-size: 16px; line-height: 24px; margin: 0 0 4px; }
.before-apply p { font-size: 14px; margin: 0; }
.apply-provenance { margin: 12px 0 0; font-size: 13px; color: var(--muted); }
html { scroll-padding-block: 96px; }
:where(a, button, input, select, textarea, [tabindex]) { scroll-margin-block: 96px; }
.rail { scroll-padding-block: 80px 120px; }
