/* Energy Jobs Board – site styles
   Palette: North Sea navy, HV-sign yellow, turbine white, steel, live green.
   Type: IBM Plex Sans (self-hosted). Colour carries meaning (sector, status) – not decoration. */

@font-face { font-family: "Plex"; src: url("../fonts/plex-400.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Plex"; src: url("../fonts/plex-400i.woff2") format("woff2"); font-weight: 400; font-style: italic; font-display: swap; }
@font-face { font-family: "Plex"; src: url("../fonts/plex-500.woff2") format("woff2"); font-weight: 500; font-style: normal; font-display: swap; }
@font-face { font-family: "Plex"; src: url("../fonts/plex-600.woff2") format("woff2"); font-weight: 600; font-style: normal; font-display: swap; }
@font-face { font-family: "Plex"; src: url("../fonts/plex-700.woff2") format("woff2"); font-weight: 700; font-style: normal; font-display: swap; }

:root {
  --navy: #0E2A3F;
  --navy-2: #163B57;
  --navy-3: #22506F;
  --ink: #13232F;
  --steel: #53646F;
  --line: #D6E0E7;
  --line-2: #8796A3;
  --paper: #F5F8FA;
  --white: #FFFFFF;
  --hv: #FFC72C;
  --hv-dark: #E8AE00;
  --link: #0B5CAD;
  --live: #187A4F;
  --live-bg: #E3F4EB;
  --warn: #7A5300;
  --warn-bg: #FFF3CF;
  --bad: #B42318;
  --bad-bg: #FDE8E6;
  --radius: 10px;
  --radius-s: 6px;
  --wrap: 1200px;
  --gut: 16px;
  --shadow: 0 1px 0 rgba(14, 42, 63, .06), 0 6px 18px -10px rgba(14, 42, 63, .25);
  --font: "Plex", "IBM Plex Sans", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
}
@media (min-width: 700px) { :root { --gut: 24px; } }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: 90px; }
body { margin: 0; font-family: var(--font); font-size: 1.0625rem; line-height: 1.6; color: var(--ink); background: var(--white); font-feature-settings: "kern"; }
img, svg { max-width: 100%; height: auto; }
a { color: var(--link); text-underline-offset: .18em; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--link); outline-offset: 2px; border-radius: 2px; }
.on-navy :focus-visible, .site-footer :focus-visible, .hero :focus-visible { outline-color: var(--hv); }
h1, h2, h3, h4 { line-height: 1.18; margin: 0 0 .5em; color: var(--navy); }
h1 { font-size: clamp(2rem, 1.4rem + 2.6vw, 3.1rem); font-weight: 700; letter-spacing: -0.022em; }
h2 { font-size: clamp(1.45rem, 1.2rem + 1vw, 1.9rem); font-weight: 700; letter-spacing: -0.012em; }
h3 { font-size: 1.2rem; font-weight: 600; }
h4 { font-size: 1.05rem; font-weight: 600; }
p { margin: 0 0 1em; }
ul, ol { padding-left: 1.3em; margin: 0 0 1em; }
li { margin-bottom: .3em; }
small, .small { font-size: .875rem; }
hr { border: 0; border-top: 1px solid var(--line); margin: 2rem 0; }
table { border-collapse: collapse; width: 100%; }
.num, .sal { font-variant-numeric: tabular-nums; }

.skip { position: absolute; left: -999px; top: 8px; background: var(--hv); color: var(--navy); padding: 10px 16px; z-index: 100; font-weight: 600; border-radius: var(--radius-s); }
.skip:focus { left: 8px; }
.vh { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gut); }
.prose { max-width: 70ch; }
.prose h2 { margin-top: 1.8em; }
.prose > :first-child { margin-top: 0; }
.prose h3 { margin-top: 1.4em; }
.prose table { margin: 1em 0 1.5em; font-size: .95rem; }
.prose th, .prose td { border: 1px solid var(--line); padding: 8px 10px; text-align: left; vertical-align: top; }
.prose th { background: var(--paper); }
.prose blockquote { margin: 1.2em 0; padding: .2em 0 .2em 1em; border-left: 4px solid var(--hv); color: var(--steel); }
.lead { font-size: 1.18rem; color: var(--steel); max-width: 62ch; }
.muted { color: var(--steel); }
.i { width: 1em; height: 1em; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; vertical-align: -0.14em; flex: none; }

/* ---------- buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .45em; padding: .72em 1.25em; border-radius: 8px; border: 2px solid var(--navy); background: var(--navy); color: #fff; font: 600 1rem/1.2 var(--font); text-decoration: none; cursor: pointer; min-height: 46px; }
.btn:hover { background: var(--navy-2); border-color: var(--navy-2); }
.btn-hv { background: var(--hv); border-color: var(--hv); color: var(--navy); }
.btn-hv:hover { background: var(--hv-dark); border-color: var(--hv-dark); }
.btn-ghost { background: transparent; color: var(--navy); }
.btn-ghost:hover { background: var(--paper); }
.on-navy .btn-ghost { color: #fff; border-color: rgba(255,255,255,.6); }
.on-navy .btn-ghost:hover { background: rgba(255,255,255,.08); }
.btn-bad { background: var(--bad); border-color: var(--bad); }
.btn-small { padding: .45em .9em; min-height: 38px; font-size: .92rem; }
.btn-link { background: none; border: 0; padding: 0; color: var(--link); font: inherit; text-decoration: underline; cursor: pointer; min-height: 0; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }

/* ---------- header ---------- */
.site-header { background: #fff; border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 40; }
.hdr { display: flex; align-items: center; gap: 20px; min-height: 70px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--navy); font-weight: 700; font-size: 1.12rem; letter-spacing: -0.01em; white-space: nowrap; }
.brand img { max-height: 44px; width: auto; }
.logo-mark { flex: none; }
.nav { display: flex; flex-wrap: wrap; justify-content: flex-end; align-items: center; gap: 4px; margin-left: auto; }
.nav a { color: var(--ink); text-decoration: none; white-space: nowrap; padding: 8px 10px; border-radius: var(--radius-s); font-weight: 500; font-size: .98rem; }
.nav a:hover, .nav a[aria-current="page"] { background: var(--paper); color: var(--navy); }
.nav a[aria-current="page"] { box-shadow: inset 0 -3px 0 var(--hv); border-radius: var(--radius-s) var(--radius-s) 0 0; }
.hdr-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; white-space: nowrap; }
.hdr-actions .signin { color: var(--navy); font-weight: 600; text-decoration: none; padding: 8px 6px; }
.menu-btn { display: none; margin-left: auto; background: none; border: 1px solid var(--line); border-radius: 8px; width: 46px; height: 46px; align-items: center; justify-content: center; cursor: pointer; color: var(--navy); }
.menu-btn .i { width: 22px; height: 22px; }
@media (max-width: 70em) {
  .menu-btn { display: inline-flex; }
  .nav-wrap { display: none; position: absolute; left: 0; right: 0; top: 100%; background: #fff; border-bottom: 1px solid var(--line); box-shadow: var(--shadow); padding: 8px var(--gut) 18px; }
  .nav-wrap.open { display: block; }
  .nav { flex-direction: column; align-items: stretch; margin: 0; }
  .nav a { padding: 12px 10px; font-size: 1.05rem; }
  .nav a[aria-current="page"] { box-shadow: inset 4px 0 0 var(--hv); border-radius: 0; }
  .hdr-actions { margin-top: 10px; flex-wrap: wrap; }
}
@media (min-width: 70.0625em) { .nav-wrap { display: flex; align-items: center; gap: 18px; margin-left: auto; min-width: 0; } .hdr { min-width: 0; } }

/* ---------- hero (home) ---------- */
.hero { background: var(--navy); color: #fff; position: relative; overflow: hidden; }
.hero::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 6px; background: repeating-linear-gradient(-45deg, var(--hv) 0 14px, var(--navy) 14px 28px); opacity: .9; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 40px; align-items: center; padding: 56px 0 64px; }
.hero h1 { color: #fff; max-width: 17ch; }
.hero .lead { color: #C9D6E0; }
.hero-count { color: var(--hv); font-weight: 600; margin: 0 0 .6em; font-variant-numeric: tabular-nums; }
.search { display: grid; grid-template-columns: 1.3fr 1fr auto; gap: 8px; background: #fff; padding: 8px; border-radius: 12px; margin: 26px 0 18px; box-shadow: 0 10px 30px -12px rgba(0,0,0,.45); }
.search label { display: flex; flex-direction: column; gap: 2px; padding: 6px 10px; border-radius: 8px; color: var(--steel); font-size: .8rem; font-weight: 600; }
.search label:focus-within { background: var(--paper); }
.search input[type=search], .search input[type=text] { border: 0; padding: 2px 0 4px; min-height: 0; font: 500 1.05rem var(--font); color: var(--ink); background: transparent; min-width: 0; border-radius: 0; }
.search input[type=search]:focus, .search input[type=text]:focus { outline: none; }
.search .btn { min-height: 54px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; padding: 0; margin: 0; }
.chips a { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: 999px; border: 1px solid rgba(255,255,255,.35); color: #fff; text-decoration: none; font-size: .92rem; }
.chips a:hover { border-color: var(--hv); background: rgba(255,199,44,.08); }
.chips .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--sc, var(--hv)); }
@media (max-width: 880px) {
  .hero-grid { grid-template-columns: 1fr; gap: 10px; padding: 36px 0 44px; }
  .search { grid-template-columns: 1fr; }
}

/* UK map */
.ukmap { width: 100%; max-height: 560px; display: block; }
.ukmap-uk { fill: var(--navy-2); stroke: #2F5F82; stroke-width: 1; }
.ukmap-ie { fill: #12324A; stroke: #234C6A; stroke-width: .8; }
.ukmap-sea { fill: #5E819C; font: italic 400 12px var(--font); letter-spacing: .04em; }
.ukmap-grid line { stroke: var(--hv); stroke-opacity: .55; stroke-width: 1.4; stroke-dasharray: 4 5; }
.ukmap .hub { fill: var(--hv); stroke: var(--navy); stroke-width: 2; }
.ukmap .hub-halo { fill: var(--hv); fill-opacity: .16; }
.ukmap .hub-label { fill: #fff; font: 600 13px var(--font); paint-order: stroke; stroke: var(--navy); stroke-width: 4px; opacity: 0; transition: opacity .15s; pointer-events: none; }
.ukmap a:hover .hub-label, .ukmap a:focus .hub-label { opacity: 1; }
.ukmap a:hover .hub, .ukmap a:focus .hub { fill: #fff; }
.ukmap a:focus { outline: none; }
.ukmap a:focus .hub-halo { fill-opacity: .5; }
.map-wrap { position: relative; }
.map-note { color: #9FB4C4; font-size: .85rem; margin: 6px 0 0; }
@media (prefers-reduced-motion: no-preference) {
  .js .ukmap-grid line { stroke-dashoffset: 120; animation: grid-on 1.8s ease-out .2s both; }
  .js .ukmap .hub-halo { animation: halo 1.2s ease-out both; animation-delay: calc(var(--d, 0) * 60ms + .4s); }
}
@keyframes grid-on { from { stroke-dashoffset: 120; stroke-opacity: 0; } to { stroke-dashoffset: 0; } }
@keyframes halo { from { fill-opacity: 0; } 60% { fill-opacity: .45; } to { fill-opacity: .16; } }
@media (max-width: 880px) { .ukmap { max-height: 380px; } .map-wrap { max-width: 360px; margin: 0 auto; } }

/* ---------- sections ---------- */
.section { padding-top: 56px; padding-bottom: 56px; }
.section-tight { padding-top: 36px; padding-bottom: 36px; }
.band { background: var(--paper); }
.band-navy { background: var(--navy); color: #fff; }
.band-navy h2, .band-navy h3 { color: #fff; }
.band-navy p { color: #C9D6E0; }
.sec-head { display: flex; align-items: end; justify-content: space-between; gap: 16px; margin-bottom: 22px; flex-wrap: wrap; }
.sec-head h2 { margin: 0; }
.sec-head p { margin: 0; }
.grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
@media (max-width: 960px) { .grid-3, .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; } }

.page-head { background: var(--paper); border-bottom: 1px solid var(--line); padding: 26px 0 30px; }
.page-head h1 { margin-bottom: .25em; }
.page-head .lead { margin: 0; }
.crumbs ol { list-style: none; padding: 0; margin: 0 0 14px; display: flex; flex-wrap: wrap; gap: 4px 0; font-size: .9rem; color: var(--steel); }
.crumbs li { margin: 0; }
.crumbs li + li::before { content: "/"; margin: 0 8px; color: var(--line-2); }
.crumbs a { color: var(--steel); }
.layout-side > * { min-width: 0; }
.layout-side { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 40px; align-items: start; }
@media (max-width: 960px) { .layout-side { grid-template-columns: minmax(0, 1fr); } }
.side-box { border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; background: #fff; }
.side-box + .side-box { margin-top: 18px; }
.side-box h2, .side-box h3 { font-size: 1.1rem; }
.sticky { position: sticky; top: 90px; }

/* ---------- job cards ---------- */
.job-list { display: grid; gap: 12px; }
.job-card { display: grid; grid-template-columns: 48px minmax(0, 1fr) auto; gap: 16px; align-items: start; background: #fff; border: 1px solid var(--line); border-left: 5px solid var(--sc, var(--line-2)); border-radius: var(--radius); padding: 16px 18px; position: relative; }
.job-card:hover { border-color: var(--line-2); border-left-color: var(--sc, var(--line-2)); }
.job-card.is-featured { background: linear-gradient(90deg, #FFFBEA, #fff 60%); }
.jc-title { font-size: 1.13rem; margin: 0 0 2px; }
.jc-title a { color: var(--navy); text-decoration: none; }
.jc-title a::after { content: ""; position: absolute; inset: 0; border-radius: var(--radius); }
.jc-title a:hover { text-decoration: underline; }
.jc-co { margin: 0 0 6px; color: var(--steel); font-weight: 500; }
.jc-facts { display: flex; flex-wrap: wrap; gap: 4px 16px; margin: 0; font-size: .93rem; color: var(--ink); }
.jc-facts span { display: inline-flex; align-items: center; gap: 5px; }
.jc-facts .sal { font-weight: 600; color: var(--navy); }
.jc-side { display: flex; flex-direction: column; align-items: flex-end; gap: 6px; font-size: .85rem; color: var(--steel); text-align: right; }
.jc-sector { font-weight: 500; }
.co-logo { width: 48px; height: 48px; border-radius: 8px; object-fit: contain; background: #fff; border: 1px solid var(--line); }
.co-initials { display: inline-flex; align-items: center; justify-content: center; background: var(--navy); color: var(--hv); font-weight: 700; font-size: .95rem; border: 0; letter-spacing: .02em; }
@media (max-width: 640px) {
  .job-card { grid-template-columns: 40px minmax(0, 1fr); padding: 14px; gap: 12px; }
  .job-card .co-logo { width: 40px !important; height: 40px !important; }
  .jc-side { grid-column: 2; flex-direction: row; align-items: center; justify-content: flex-start; flex-wrap: wrap; text-align: left; }
}
.tag { display: inline-block; padding: 2px 8px; border-radius: 4px; font-size: .78rem; font-weight: 600; }
.tag-featured { background: var(--hv); color: var(--navy); }
.badge { display: inline-block; padding: 2px 9px; border-radius: 999px; font-size: .8rem; font-weight: 600; white-space: nowrap; }
.badge-ok { background: var(--live-bg); color: var(--live); }
.badge-warn { background: var(--warn-bg); color: var(--warn); }
.badge-bad { background: var(--bad-bg); color: var(--bad); }
.badge-muted { background: #EBEFF2; color: #44535E; }
.sector-chip { display: inline-flex; align-items: center; gap: 7px; font-size: .9rem; font-weight: 500; color: var(--ink); text-decoration: none; }
.sector-chip .dot { width: 10px; height: 10px; border-radius: 3px; background: var(--sc, var(--navy)); }

/* ---------- jobs search page ---------- */
.jobs-layout { display: grid; grid-template-columns: 280px minmax(0, 1fr); gap: 32px; align-items: start; }
.filters { border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; background: #fff; position: sticky; top: 90px; }
.filters h2 { font-size: 1.1rem; }
.filters .field { margin-bottom: 14px; }
.filters-toggle { display: none; }
.results-bar { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 14px; }
.results-bar p { margin: 0; font-weight: 600; }
.results-bar select { width: auto; }
.active-filters { display: flex; flex-wrap: wrap; gap: 6px; margin: -4px 0 14px; padding: 0; list-style: none; }
.active-filters a { display: inline-flex; gap: 6px; align-items: center; padding: 4px 10px; background: var(--paper); border: 1px solid var(--line); border-radius: 999px; font-size: .88rem; color: var(--ink); text-decoration: none; }
.active-filters a:hover { border-color: var(--bad); }
@media (max-width: 900px) {
  .jobs-layout { grid-template-columns: 1fr; }
  .filters { position: static; display: none; }
  .filters.open { display: block; }
  .filters-toggle { display: inline-flex; }
}

/* ---------- job page ---------- */
.job-head { background: var(--paper); border-bottom: 1px solid var(--line); padding: 26px 0 30px; border-top: 5px solid var(--sc, var(--navy)); }
.job-head-grid { display: grid; grid-template-columns: 64px minmax(0, 1fr); gap: 18px; align-items: start; }
.job-head .co-logo { width: 64px; height: 64px; }
.job-head h1 { font-size: clamp(1.7rem, 1.3rem + 1.8vw, 2.5rem); margin-bottom: .2em; }
.job-co { font-size: 1.1rem; margin: 0 0 12px; }
.facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; margin: 0; padding: 0; }
.facts div { background: #fff; border: 1px solid var(--line); border-radius: 8px; padding: 10px 12px; }
.facts dt { font-size: .8rem; color: var(--steel); font-weight: 600; }
.facts dd { margin: 0; font-weight: 600; color: var(--navy); }
.closed-note { background: var(--warn-bg); color: var(--warn); border: 1px solid #F0D58A; padding: 12px 16px; border-radius: 8px; margin: 18px 0 0; font-weight: 500; }
.apply-box .btn { width: 100%; }
.apply-box p { font-size: .92rem; color: var(--steel); }
.share-row { display: flex; gap: 10px; flex-wrap: wrap; }

/* ---------- forms ---------- */
.form { max-width: 720px; }
.form-narrow { max-width: 460px; }
.field { margin-bottom: 18px; }
.field > label, .choice legend { display: block; font-weight: 600; margin-bottom: 4px; color: var(--ink); }
.opt { font-weight: 400; color: var(--steel); font-size: .92em; }
.hint { margin: 0 0 6px; color: var(--steel); font-size: .92rem; }
.err { margin: 0 0 6px; color: var(--bad); font-weight: 600; font-size: .95rem; }
.has-err input, .has-err select, .has-err textarea { border-color: var(--bad); border-width: 2px; }
.has-err { border-left: 4px solid var(--bad); padding-left: 12px; }
input[type=text], input[type=email], input[type=tel], input[type=url], input[type=password], input[type=number], input[type=date], input[type=search], select, textarea {
  width: 100%; font: 400 1rem/1.4 var(--font); color: var(--ink); background: #fff; border: 1px solid var(--line-2); border-radius: var(--radius-s); padding: 11px 12px; min-height: 46px;
}
textarea { min-height: 120px; resize: vertical; }
select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%230E2A3F' stroke-width='2'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 12px center; padding-right: 34px; }
input:focus, select:focus, textarea:focus { outline: 3px solid rgba(11, 92, 173, .35); outline-offset: 0; border-color: var(--link); }
input[type=file] { font: inherit; max-width: 100%; }
.field-check { display: flex; flex-wrap: wrap; gap: 10px; align-items: flex-start; }
.field-check input { width: 22px; height: 22px; margin: 2px 0 0; accent-color: var(--navy); flex: none; }
.field-check label { font-weight: 500; flex: 1; min-width: 0; }
.field-check .hint, .field-check .err { flex-basis: 100%; padding-left: 32px; }
.choice { border: 0; padding: 0; margin: 0 0 18px; min-width: 0; }
.choices { display: grid; gap: 6px; }
.choices.cols { grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); }
.choice-item { display: flex; gap: 10px; align-items: center; padding: 8px 10px; border: 1px solid var(--line); border-radius: 8px; cursor: pointer; font-weight: 500; }
.choice-item:hover { border-color: var(--line-2); }
.choice-item input { width: 20px; height: 20px; accent-color: var(--navy); flex: none; margin: 0; }
.choice-item:has(input:checked) { border-color: var(--navy); background: var(--paper); }
.form-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 18px; }
.form-row-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 18px; }
@media (max-width: 640px) { .form-row, .form-row-3 { grid-template-columns: 1fr; } }
.form-section { border-top: 1px solid var(--line); padding-top: 22px; margin-top: 10px; }
.form-section > h2 { font-size: 1.25rem; }
.error-summary { border: 3px solid var(--bad); border-radius: 8px; padding: 14px 18px; margin-bottom: 22px; background: #fff; }
.error-summary h2 { font-size: 1.1rem; color: var(--bad); margin-bottom: .3em; }
.error-summary ul { margin: 0; }
.error-summary a { color: var(--bad); font-weight: 600; }
.note { background: var(--paper); border-left: 4px solid var(--navy-3); padding: 12px 16px; border-radius: 0 8px 8px 0; margin: 0 0 18px; }
.note-hv { border-left-color: var(--hv-dark); background: #FFF9E5; }
.stars { display: inline-flex; gap: 2px; font-size: 1.1rem; letter-spacing: 0; }
.stars .on { color: #C98A00; }
.stars .off { color: #C7D1D8; }
.star-input { display: flex; flex-direction: row-reverse; justify-content: flex-end; gap: 2px; border: 0; padding: 0; margin: 0 0 18px; }
.star-input legend { float: left; width: 100%; font-weight: 600; margin-bottom: 4px; }
.star-input input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.star-input label { font-size: 2rem; line-height: 1; color: #C7D1D8; cursor: pointer; padding: 0 2px; }
.star-input input:checked ~ label, .star-input label:hover, .star-input label:hover ~ label { color: #C98A00; }
.star-input input:focus-visible + label { outline: 3px solid var(--link); border-radius: 4px; }

/* ---------- flash ---------- */
.flash { padding: 12px 16px; border-radius: 8px; margin: 16px 0; font-weight: 500; border: 1px solid; }
.flash-success { background: var(--live-bg); color: #10563A; border-color: #A8D9BF; }
.flash-error { background: var(--bad-bg); color: var(--bad); border-color: #F3B7B0; }
.flash-info { background: #E8F1FB; color: #0A4A8C; border-color: #B9D3F0; }
.flash-wrap { padding-top: 4px; }

/* ---------- cards / posts / sectors ---------- */
.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; }
.card h3 { margin-top: 0; }
.post-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; }
.pc-img img { display: block; width: 100%; aspect-ratio: 3 / 1; object-fit: cover; }
.pc-body { padding: 16px 18px 18px; display: flex; flex-direction: column; flex: 1; }
.pc-cat { margin: 0 0 4px; font-size: .85rem; font-weight: 600; color: var(--steel); }
.pc-title { font-size: 1.12rem; margin: 0 0 8px; }
.pc-title a { color: var(--navy); text-decoration: none; }
.pc-title a:hover { text-decoration: underline; }
.pc-ex { color: var(--ink); font-size: .96rem; flex: 1; }
.pc-meta { margin: 0; font-size: .85rem; color: var(--steel); }
.sector-tile { display: grid; grid-template-columns: 6px minmax(0, 1fr); gap: 14px; padding: 16px 18px 16px 0; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; text-decoration: none; color: var(--ink); overflow: hidden; }
.sector-tile::before { content: ""; background: var(--sc, var(--navy)); }
.sector-tile h3 { margin: 0 0 4px; font-size: 1.08rem; }
.sector-tile p { margin: 0; font-size: .93rem; color: var(--steel); }
.sector-tile .count { display: block; margin-top: 8px; font-weight: 600; color: var(--navy); font-size: .9rem; }
.sector-tile:hover { border-color: var(--line-2); }
.sector-tile:hover h3 { text-decoration: underline; }
.loc-list { columns: 3 220px; column-gap: 28px; list-style: none; padding: 0; }
.loc-list li { break-inside: avoid; padding: 6px 0; border-bottom: 1px solid var(--line); display: flex; justify-content: space-between; gap: 8px; }
.loc-list .n { color: var(--steel); font-size: .9rem; font-variant-numeric: tabular-nums; }
.region-h { font-size: 1rem; color: var(--steel); margin: 1.4em 0 .4em; }

.steps { counter-reset: s; list-style: none; padding: 0; display: grid; gap: 14px; }
.steps li { counter-increment: s; display: grid; grid-template-columns: 40px minmax(0, 1fr); gap: 12px; margin: 0; }
.steps li::before { content: counter(s); width: 36px; height: 36px; border-radius: 8px; background: var(--hv); color: var(--navy); font-weight: 700; display: flex; align-items: center; justify-content: center; }
.steps strong { display: block; color: var(--navy); }
.band-navy .steps strong { color: #fff; }
.audience { border-radius: 14px; padding: 28px; }
.audience-cand { background: var(--paper); }
.audience-emp { background: var(--navy); color: #fff; }
.audience-emp h2, .audience-emp strong { color: #fff; }
.audience-emp p, .audience-emp li { color: #D5E0E8; }
.founding { display: grid; grid-template-columns: 56px minmax(0, 1fr) auto; gap: 18px; align-items: center; background: #FFF9E5; border: 1px solid #F2D27A; border-radius: 14px; padding: 22px; }
.founding h2 { font-size: 1.3rem; margin: 0 0 4px; }
.founding p { margin: 0; }
@media (max-width: 760px) { .founding { grid-template-columns: 1fr; } }
.co-strip { display: flex; flex-wrap: wrap; gap: 12px; list-style: none; padding: 0; margin: 0; }
.co-strip a { display: flex; align-items: center; gap: 10px; padding: 8px 14px 8px 8px; border: 1px solid var(--line); border-radius: 10px; text-decoration: none; color: var(--ink); font-weight: 500; background: #fff; }

/* testimonials */
.testimonial { margin: 0; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; display: flex; flex-direction: column; gap: 8px; }
.testimonial blockquote { margin: 0; }
.testimonial blockquote p { margin: 0; }
.testimonial figcaption { font-size: .93rem; color: var(--steel); display: flex; flex-direction: column; }
.testimonial figcaption strong { color: var(--ink); }

/* FAQ */
.faqs details { border-bottom: 1px solid var(--line); }
.faqs summary { cursor: pointer; padding: 14px 32px 14px 0; position: relative; list-style: none; }
.faqs summary::-webkit-details-marker { display: none; }
.faqs summary::after { content: "+"; position: absolute; right: 4px; top: 10px; font-size: 1.5rem; color: var(--navy); font-weight: 400; }
.faqs details[open] summary::after { content: "–"; }
.faqs summary h3, .faqs summary h4 { display: inline; font-size: 1.05rem; margin: 0; color: var(--navy); }
.faq-a { padding: 0 0 12px; max-width: 70ch; }
.qa { display: grid; gap: 14px; }
.qa div { border-left: 4px solid var(--hv); padding: 4px 0 4px 14px; }
.qa h3 { font-size: 1.05rem; margin-bottom: .3em; }
.qa p { margin: 0; }

/* location page */
.map-embed { border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: var(--paper); }
.map-embed iframe { display: block; width: 100%; height: 300px; border: 0; }
.map-embed p { margin: 0; padding: 8px 12px; font-size: .85rem; }
.nearby { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; padding: 0; }
.nearby li { margin: 0; padding: 5px 12px; border: 1px solid var(--line); border-radius: 999px; font-size: .92rem; background: #fff; }
.services { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
@media (max-width: 640px) { .services { grid-template-columns: 1fr; } }
.svc { border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; background: #fff; }
.svc h3 { font-size: 1.05rem; margin: 0 0 4px; }
.svc p { margin: 0; font-size: .95rem; }
.svc.is-local { border-color: var(--navy-3); box-shadow: inset 4px 0 0 var(--sc, var(--hv)); }

/* blog */
.post-hero img { display: block; width: 100%; height: auto; border-radius: var(--radius); }
.post-meta { color: var(--steel); font-size: .95rem; display: flex; flex-wrap: wrap; gap: 4px 16px; margin: 10px 0 0; }
.toc { border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 20px; background: var(--paper); }
.toc h2 { font-size: 1rem; margin-bottom: .5em; }
.toc ol { margin: 0; padding-left: 1.2em; font-size: .95rem; }
.cta-box { background: var(--navy); color: #fff; border-radius: 14px; padding: 28px; margin: 36px 0; border-top: 6px solid var(--hv); }
.cta-box h2 { color: #fff; margin-bottom: .3em; }
.cta-box p { color: #D5E0E8; }
.cta-box a:not(.btn) { color: var(--hv); }
.author-box { display: flex; gap: 14px; align-items: flex-start; border-top: 1px solid var(--line); padding-top: 18px; margin-top: 28px; font-size: .95rem; }

/* pricing */
.price-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 16px; }
.price { border: 1px solid var(--line); border-radius: 14px; padding: 22px; background: #fff; display: flex; flex-direction: column; }
.price.is-highlight { border: 2px solid var(--navy); box-shadow: inset 0 6px 0 var(--hv); }
.price h3 { margin: 0 0 6px; }
.price .amt { font-size: 2rem; font-weight: 700; color: var(--navy); letter-spacing: -0.02em; margin: 0; font-variant-numeric: tabular-nums; }
.price .per { color: var(--steel); margin: 0 0 12px; }
.price ul { padding-left: 1.1em; font-size: .95rem; flex: 1; }
.price form { margin-top: 12px; }

/* pager */
.pager ul { display: flex; flex-wrap: wrap; gap: 6px; list-style: none; padding: 0; margin: 28px 0 0; }
.pager a, .pager span { display: inline-flex; min-width: 44px; min-height: 44px; align-items: center; justify-content: center; padding: 0 12px; border: 1px solid var(--line); border-radius: 8px; text-decoration: none; color: var(--navy); font-weight: 500; }
.pager [aria-current] { background: var(--navy); color: #fff; border-color: var(--navy); }
.pager .gap { align-self: center; color: var(--steel); }

.empty { border: 2px dashed var(--line); border-radius: var(--radius); padding: 28px; text-align: center; background: #fff; }
.empty h3 { margin-bottom: .3em; }

/* ---------- dashboards ---------- */
.dash > * { min-width: 0; }
.dash { display: grid; grid-template-columns: 230px minmax(0, 1fr); gap: 32px; padding: 28px 0 56px; align-items: start; }
.dash-nav { position: sticky; top: 90px; }
.dash-nav ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 2px; }
.dash-nav a { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 10px 12px; border-radius: 8px; color: var(--ink); text-decoration: none; font-weight: 500; }
.dash-nav a:hover { background: var(--paper); }
.dash-nav a[aria-current="page"] { background: var(--navy); color: #fff; }
.dash-nav .count { background: var(--hv); color: var(--navy); border-radius: 999px; padding: 0 8px; font-size: .8rem; font-weight: 700; }
.dash-who { margin: 0 0 14px; padding: 0 12px; font-size: .9rem; color: var(--steel); }
.dash-who strong { display: block; color: var(--ink); }
.dash h1 { font-size: clamp(1.6rem, 1.3rem + 1.2vw, 2.1rem); }
@media (max-width: 860px) {
  .dash { grid-template-columns: minmax(0, 1fr); gap: 16px; padding-top: 16px; }
  .dash-nav { position: static; }
  .dash-nav ul { position: relative; display: flex; overflow-x: auto; gap: 6px; padding-bottom: 6px; }
  .dash-nav a { white-space: nowrap; border: 1px solid var(--line); }
  .dash-who { display: none; }
}
.stat-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; margin-bottom: 24px; }
.stat { border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 16px; background: #fff; text-decoration: none; color: var(--ink); display: block; }
.stat b { display: block; font-size: 1.7rem; color: var(--navy); font-variant-numeric: tabular-nums; line-height: 1.1; }
.stat span { font-size: .9rem; color: var(--steel); }
a.stat:hover { border-color: var(--line-2); }
.meter { height: 10px; background: #E3E9EE; border-radius: 999px; overflow: hidden; margin: 6px 0 4px; }
.meter i { display: block; height: 100%; background: var(--live); border-radius: 999px; }
.tbl-wrap { position: relative; overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; }
.tbl { width: 100%; font-size: .95rem; }
.tbl th, .tbl td { padding: 10px 12px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.tbl th { background: var(--paper); font-weight: 600; font-size: .85rem; color: var(--steel); white-space: nowrap; }
.tbl tr:last-child td { border-bottom: 0; }
.tbl .actions { white-space: nowrap; text-align: right; }
.tbl .actions form { display: inline; }
.inline-form { display: inline; }
.kv { display: grid; grid-template-columns: 180px minmax(0, 1fr); gap: 8px 16px; margin: 0 0 18px; }
.kv dt { color: var(--steel); font-weight: 600; font-size: .92rem; }
.kv dd { margin: 0; }
@media (max-width: 560px) { .kv { grid-template-columns: 1fr; gap: 0; } .kv dd { margin-bottom: 10px; } }
.tags { display: flex; flex-wrap: wrap; gap: 6px; list-style: none; padding: 0; margin: 0 0 12px; }
.tags li { margin: 0; padding: 3px 10px; background: var(--paper); border: 1px solid var(--line); border-radius: 999px; font-size: .88rem; }
.cand-card { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 12px; border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; background: #fff; }
.cand-card h3 { margin: 0 0 4px; font-size: 1.1rem; }
.cand-card p { margin: 0 0 6px; font-size: .95rem; }

/* ---------- footer ---------- */
.site-footer { background: var(--navy); color: #C9D6E0; margin-top: 0; }
.site-footer a { color: #fff; text-decoration: none; }
.site-footer a:hover { text-decoration: underline; }
.ftr { display: grid; grid-template-columns: 1.4fr repeat(4, 1fr); gap: 28px; padding: 48px 0 32px; }
.ftr h2 { color: #fff; font-size: 1rem; margin-bottom: .8em; }
.ftr ul { list-style: none; padding: 0; margin: 0; }
.ftr li { margin-bottom: 8px; font-size: .95rem; }
.ftr .brand { color: #fff; margin-bottom: 12px; }
.ftr-about p { font-size: .95rem; max-width: 36ch; }
.ftr-base { border-top: 1px solid #24506F; padding: 18px 0 26px; font-size: .88rem; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px; }
.ftr-base p { margin: 0; }
.social { display: flex; gap: 10px; list-style: none; padding: 0; margin: 14px 0 0; }
.social a { display: inline-flex; padding: 6px 10px; border: 1px solid #34607F; border-radius: 6px; font-size: .88rem; }
@media (max-width: 960px) { .ftr { grid-template-columns: repeat(2, minmax(0, 1fr)); } .ftr-about { grid-column: 1 / -1; } }
@media (max-width: 480px) { .ftr { grid-template-columns: 1fr; } }

/* print */
@media print {
  .site-header, .site-footer, .filters, .apply-box form, .share-row, .cta-box { display: none !important; }
  body { font-size: 11pt; }
  a { color: inherit; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; } }
.empty-h { font-size: 1.2rem; }

/* job page on small screens: facts full width, sticky apply bar */
.apply-bar { display: none; }
@media (max-width: 640px) {
  .job-head-grid { display: block; }
  .job-head .co-logo { width: 48px !important; height: 48px !important; margin-bottom: 10px; }
  .facts { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .facts div { padding: 8px 10px; }
}
@media (max-width: 960px) {
  .apply-bar { display: flex; gap: 10px; align-items: center; position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; background: #fff; border-top: 1px solid var(--line); padding: 10px var(--gut) calc(10px + env(safe-area-inset-bottom)); box-shadow: 0 -6px 18px -12px rgba(14, 42, 63, .35); }
  .apply-bar .btn { flex: 1; }
  .apply-bar p { margin: 0; font-size: .85rem; color: var(--steel); flex: 1; }
  body.has-apply-bar { padding-bottom: 76px; }
}
