/* ==========================================================================
   SpellJob design system — "Wayfinding"
   UK direction-sign language: route green panels with a white inset border,
   a signal-yellow accent used sparingly, highly legible type.
   Display: Bricolage Grotesque · Body: Atkinson Hyperlegible (both self-hosted, OFL)
   ========================================================================== */

@font-face { font-family: "Bricolage Grotesque"; font-style: normal; font-display: swap; font-weight: 200 800; src: url("../fonts/bricolage-grotesque-latin-wght-normal.woff2") format("woff2-variations"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Bricolage Grotesque"; font-style: normal; font-display: swap; font-weight: 200 800; src: url("../fonts/bricolage-grotesque-latin-ext-wght-normal.woff2") format("woff2-variations"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1E00-1E9F, U+20A0-20AB, U+20AD-20C0, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Atkinson Hyperlegible"; font-style: normal; font-display: swap; font-weight: 400; src: url("../fonts/atkinson-hyperlegible-latin-400-normal.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Atkinson Hyperlegible"; font-style: normal; font-display: swap; font-weight: 700; src: url("../fonts/atkinson-hyperlegible-latin-700-normal.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Atkinson Hyperlegible"; font-style: italic; font-display: swap; font-weight: 400; src: url("../fonts/atkinson-hyperlegible-latin-400-italic.woff2") format("woff2"); unicode-range: U+0000-00FF, U+2000-206F, U+20AC; }
@font-face { font-family: "Atkinson Hyperlegible"; font-style: italic; font-display: swap; font-weight: 700; src: url("../fonts/atkinson-hyperlegible-latin-700-italic.woff2") format("woff2"); unicode-range: U+0000-00FF, U+2000-206F, U+20AC; }
@font-face { font-family: "Atkinson Hyperlegible"; font-style: normal; font-display: swap; font-weight: 400; src: url("../fonts/atkinson-hyperlegible-latin-ext-400-normal.woff2") format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1E00-1E9F, U+A720-A7FF; }
@font-face { font-family: "Atkinson Hyperlegible"; font-style: normal; font-display: swap; font-weight: 700; src: url("../fonts/atkinson-hyperlegible-latin-ext-700-normal.woff2") format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1E00-1E9F, U+A720-A7FF; }

:root {
  /* Route green: brand, dark panels, footer */
  --green-950: #06261E;
  --green-900: #0B4A3A;
  --green-800: #0F5A47;
  --green-700: #176B55;
  --green-100: #D6E7DF;
  --green-50: #EAF2EE;
  /* Fern: actions and links on light surfaces (AA on white) */
  --fern-700: #0D5E45;
  --fern-600: #137A5C;
  --fern-500: #1A9470;
  --fern-100: #D3EDE2;
  --fern-50: #EAF6F0;
  /* Signal yellow: the single accent, used sparingly */
  --signal: #F5C443;
  --signal-600: #DDA51C;
  --signal-50: #FEF6DC;
  --charcoal: #24302B;
  --ink: #16211D;
  --muted: #4D5B55;
  --subtle: #64726C;
  --line: #DCE5E0;
  --line-strong: #C2D0C9;
  --surface: #ffffff;
  --canvas: #EEF3F0;
  --success: #15734A;
  --success-bg: #E5F4EC;
  --warning: #7A5300;
  --warning-bg: #FEF6DC;
  --danger: #B3261E;
  --danger-bg: #FCEBEA;
  --info-bg: #E4EFEA;
  --radius-sm: 8px;
  --radius: 12px;
  --radius-lg: 18px;
  --shadow-sm: 0 1px 2px rgba(6, 38, 30, .06);
  --shadow: 0 1px 2px rgba(6, 38, 30, .05), 0 8px 24px -8px rgba(6, 38, 30, .14);
  --shadow-lg: 0 24px 48px -16px rgba(6, 38, 30, .28);
  --focus: 0 0 0 2px #fff, 0 0 0 4px var(--fern-600);
  --container: 1220px;
  --header-h: 72px;
  --font: "Atkinson Hyperlegible", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --font-display: "Bricolage Grotesque", "Atkinson Hyperlegible", system-ui, sans-serif;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { transition: none !important; animation: none !important; } }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--ink);
  background: var(--canvas);
  font-feature-settings: "cv11", "ss01";
  -webkit-font-smoothing: antialiased;
}
img, svg { max-width: 100%; height: auto; display: block; }
a { color: var(--fern-700); text-decoration-thickness: 1px; text-underline-offset: 2px; }
a:hover { color: var(--green-900); }
:focus-visible { outline: none; box-shadow: var(--focus); border-radius: 4px; }
h1, h2, h3, h4 { color: var(--green-900); line-height: 1.2; margin: 0 0 .6em; letter-spacing: -0.015em; font-weight: 700; }
h1 { font-size: clamp(1.75rem, 1.2rem + 2vw, 2.5rem); }
h2 { font-size: clamp(1.35rem, 1.1rem + 1vw, 1.75rem); }
h3 { font-size: 1.15rem; }
h4 { font-size: 1rem; }
p { margin: 0 0 1em; }
ul, ol { padding-left: 1.25rem; }
hr { border: 0; border-top: 1px solid var(--line); margin: 2rem 0; }
mark.placeholder { background: #fff1b8; color: #6b4e00; padding: 0 .25em; border-radius: 3px; font-weight: 600; }
.icon { width: 1.15em; height: 1.15em; flex-shrink: 0; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip-link { position: absolute; left: 1rem; top: -100px; z-index: 1000; background: var(--green-900); color: #fff; padding: .6rem 1rem; border-radius: var(--radius-sm); }
.skip-link:focus { top: 1rem; color: #fff; }
.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 1.25rem; }
.container-narrow { max-width: 820px; }
.section { padding-top: 4rem; padding-bottom: 4rem; }
.section-sm { padding-top: 2.5rem; padding-bottom: 2.5rem; }
.section-white { background: var(--surface); }
.section-head { display: flex; justify-content: space-between; align-items: end; gap: 1rem; margin-bottom: 1.75rem; flex-wrap: wrap; }
.section-head h2 { margin: 0; }
.section-head p { margin: .35rem 0 0; color: var(--muted); }
.eyebrow { display: inline-block; font-size: .78rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--fern-600); margin-bottom: .6rem; }
.lead { font-size: 1.125rem; color: var(--muted); }
.muted { color: var(--muted); }
.small { font-size: .875rem; }
.text-center { text-align: center; }
.stack > * + * { margin-top: 1rem; }
.flex { display: flex; gap: .75rem; align-items: center; flex-wrap: wrap; }
.between { justify-content: space-between; }
.grid { display: grid; gap: 1.25rem; }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@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; } .section { padding-top: 2.75rem; padding-bottom: 2.75rem; } }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  min-height: 44px; padding: .65rem 1.2rem; border-radius: var(--radius-sm);
  font: 600 .95rem/1.2 var(--font); text-decoration: none; cursor: pointer;
  border: 1px solid transparent; transition: background .15s, color .15s, border-color .15s, box-shadow .15s;
  white-space: nowrap;
}
.btn-primary { background: var(--fern-600); color: #fff; }
.btn-primary:hover { background: var(--fern-700); color: #fff; }
.btn-navy { background: var(--green-900); color: #fff; }
.btn-navy:hover { background: var(--green-800); color: #fff; }
.btn-outline { background: var(--surface); color: var(--green-900); border-color: var(--line-strong); }
.btn-outline:hover { border-color: var(--green-900); color: var(--green-900); }
.btn-ghost { background: transparent; color: var(--green-900); }
.btn-ghost:hover { background: var(--green-50); color: var(--green-900); }
.btn-light { background: #fff; color: var(--green-900); }
.btn-light:hover { background: var(--green-50); color: var(--green-900); }
.btn-danger { background: var(--danger); color: #fff; }
.btn-danger:hover { background: #8f1b12; color: #fff; }
.btn-sm { min-height: 36px; padding: .4rem .8rem; font-size: .875rem; }
.btn-lg { min-height: 52px; padding: .8rem 1.6rem; font-size: 1rem; }
.btn-block { width: 100%; }
.btn[disabled] { opacity: .6; cursor: not-allowed; }
.link-btn { background: none; border: 0; padding: 0; font: inherit; color: var(--fern-700); cursor: pointer; text-decoration: underline; text-underline-offset: 2px; }

/* ---------- Header ---------- */
.site-header { position: sticky; top: 0; z-index: 50; background: #fff; border-bottom: 1px solid var(--line); }
.header-inner { display: flex; align-items: center; gap: 1.5rem; height: var(--header-h); }
.brand { display: inline-flex; align-items: center; gap: .55rem; text-decoration: none; color: var(--green-900); font-weight: 800; font-size: 1.3rem; letter-spacing: -.02em; }
.brand:hover { color: var(--green-900); }
.main-nav { flex: 1; }
.main-nav > ul { display: flex; align-items: center; gap: .15rem; list-style: none; margin: 0; padding: 0; }
.main-nav a { display: block; padding: .55rem .7rem; border-radius: var(--radius-sm); color: var(--charcoal); text-decoration: none; font-weight: 500; font-size: .94rem; white-space: nowrap; }
.main-nav a:hover, .main-nav a[aria-current="page"] { background: var(--green-50); color: var(--green-900); }
.main-nav a[aria-current="page"] { font-weight: 600; }
.header-actions { display: flex; align-items: center; gap: .5rem; margin-left: auto; }
.nav-toggle { display: none; margin-left: auto; background: none; border: 1px solid var(--line-strong); border-radius: var(--radius-sm); width: 44px; height: 44px; align-items: center; justify-content: center; color: var(--green-900); cursor: pointer; }
.nav-toggle .icon { width: 22px; height: 22px; }
.mobile-only { display: none; }
@media (max-width: 1180px) {
  .main-nav a { padding: .5rem .5rem; font-size: .9rem; }
}
@media (max-width: 1060px) {
  .nav-toggle { display: inline-flex; }
  .header-actions { display: none; }
  .main-nav { position: absolute; left: 0; right: 0; top: 100%; height: calc(100vh - var(--header-h)); height: calc(100dvh - var(--header-h)); background: #fff; padding: 1rem 1.25rem 2rem; overflow-y: auto; display: none; z-index: 49; border-top: 1px solid var(--line); }
  .main-nav.open { display: block; }
  .main-nav > ul { flex-direction: column; align-items: stretch; gap: 0; }
  .main-nav a { padding: .9rem .5rem; font-size: 1.05rem; border-bottom: 1px solid var(--line); border-radius: 0; }
  .mobile-only { display: block; }
  .main-nav .mobile-actions { display: grid; gap: .6rem; margin-top: 1.25rem; }
  .main-nav .mobile-actions a, .main-nav .mobile-actions button { border-bottom: 0; text-align: center; }
  body.nav-open { overflow: hidden; }
}
.user-menu { position: relative; }
.user-menu summary { list-style: none; cursor: pointer; }
.user-menu summary::-webkit-details-marker { display: none; }
.user-menu .menu { position: absolute; right: 0; top: calc(100% + 8px); min-width: 220px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-lg); padding: .4rem; z-index: 60; }
.user-menu .menu a, .user-menu .menu button { display: flex; gap: .6rem; align-items: center; width: 100%; padding: .55rem .7rem; border-radius: var(--radius-sm); color: var(--charcoal); text-decoration: none; background: none; border: 0; font: inherit; font-size: .92rem; cursor: pointer; text-align: left; }
.user-menu .menu a:hover, .user-menu .menu button:hover { background: var(--green-50); }
.avatar { width: 34px; height: 34px; border-radius: 50%; background: var(--green-900); color: #fff; display: inline-flex; align-items: center; justify-content: center; font-weight: 700; font-size: .85rem; }

.announcement { background: var(--green-900); color: #e3efe9; font-size: .875rem; text-align: center; padding: .5rem 1rem; }
.sample-banner { background: var(--warning-bg); color: var(--warning); border-bottom: 1px solid #f1d9a0; font-size: .875rem; padding: .55rem 0; }
.sample-banner .container { display: flex; gap: .5rem; align-items: center; }

/* ---------- Flash / notices ---------- */
.flash-wrap { margin-top: 1.25rem; }
.notice { display: flex; gap: .75rem; align-items: flex-start; padding: .9rem 1rem; border-radius: var(--radius); border: 1px solid; font-size: .95rem; margin-bottom: 1rem; }
.notice .icon { margin-top: .15rem; }
.notice p:last-child { margin-bottom: 0; }
.notice-success { background: var(--success-bg); border-color: #b9e0c9; color: #0f5132; }
.notice-error { background: var(--danger-bg); border-color: #f5c2bd; color: #8a1c13; }
.notice-info { background: var(--info-bg); border-color: #cfe0d8; color: var(--green-800); }
.notice-warning { background: var(--warning-bg); border-color: #f1d9a0; color: #6b4600; }

/* ---------- Hero ---------- */
.hero { position: relative; color: #fff; background: var(--green-900); overflow: hidden; }
.hero-media { position: absolute; inset: 0; }
.hero-media img { width: 100%; height: 100%; object-fit: cover; object-position: center 35%; }
.hero-media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(100deg, rgba(6,38,30,.95) 0%, rgba(8,52,41,.84) 42%, rgba(8,52,41,.30) 100%); }
.hero-inner { position: relative; padding: 5.5rem 0 4.5rem; max-width: 880px; }
.hero h1 { color: #fff; font-size: clamp(2rem, 1.3rem + 3vw, 3.25rem); margin-bottom: 1rem; letter-spacing: -.025em; }
.hero p.lead { color: #d6e6df; font-size: clamp(1.05rem, 1rem + .3vw, 1.25rem); max-width: 600px; margin-bottom: 2rem; }
.hero-trust { display: flex; flex-wrap: wrap; gap: 1.25rem; margin-top: 1.5rem; color: #c5dbd1; font-size: .9rem; }
.hero-trust span { display: inline-flex; align-items: center; gap: .4rem; }
.hero-trust .icon { color: #F5C443; }

/* Search bar */
.search-bar { display: grid; grid-template-columns: 1.4fr 1fr minmax(200px, .95fr) auto; gap: .5rem; background: #fff; padding: .5rem; border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); }
.search-field { position: relative; display: flex; align-items: center; }
.search-field .icon { position: absolute; left: .9rem; color: var(--subtle); pointer-events: none; }
.search-bar .search-field input, .search-bar .search-field select { width: 100%; height: 52px; border: 0; border-radius: var(--radius); padding: 0 1rem 0 2.6rem; font: 500 1rem var(--font); color: var(--ink); background: var(--canvas); }
.search-bar .search-field select { padding-left: 2.6rem; appearance: none; cursor: pointer; padding-right: 2rem; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23566272' stroke-width='1.6' fill='none'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right .9rem center; }
.search-bar .search-field input:focus, .search-bar .search-field select:focus { box-shadow: var(--focus); outline: none; background-color: #fff; }
.search-bar .btn { height: 52px; padding: 0 1.6rem; }
.search-compact { grid-template-columns: 1.3fr 1fr .8fr auto; box-shadow: var(--shadow); border: 1px solid var(--line); }
@media (max-width: 860px) {
  .search-bar, .search-compact { grid-template-columns: 1fr 1fr; }
  .search-bar .btn { grid-column: 1 / -1; }
}
@media (max-width: 560px) { .search-bar, .search-compact { grid-template-columns: 1fr; } }

/* ---------- Cards ---------- */
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 1.5rem; box-shadow: var(--shadow-sm); }
.card-hover { transition: box-shadow .15s, border-color .15s, transform .15s; }
.card-hover:hover { box-shadow: var(--shadow); border-color: var(--line-strong); }
.card h3 { margin-bottom: .4rem; }
.card-title-link { color: var(--green-900); text-decoration: none; }
.card-title-link:hover { color: var(--fern-700); text-decoration: underline; }
.card-pad-lg { padding: 2rem; }
@media (max-width: 640px) { .card { padding: 1.15rem; } .card-pad-lg { padding: 1.35rem; } }

/* Category tiles */
.cat-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1rem; }
@media (max-width: 960px) { .cat-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 720px) { .cat-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 400px) { .cat-grid { grid-template-columns: 1fr; } }
.cat-tile { display: flex; align-items: center; gap: .85rem; padding: 1rem 1.1rem; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); text-decoration: none; color: var(--green-900); font-weight: 600; font-size: .95rem; transition: border-color .15s, box-shadow .15s; }
.cat-tile:hover { border-color: var(--fern-500); box-shadow: var(--shadow); color: var(--green-900); }
.cat-icon { width: 42px; height: 42px; border-radius: 10px; background: var(--fern-50); color: var(--fern-600); display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; }
.cat-icon .icon { width: 22px; height: 22px; }
.cat-tile small { display: block; color: var(--muted); font-weight: 400; font-size: .8rem; }

/* Job cards */
.job-list { display: grid; gap: .9rem; }
.job-card { position: relative; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.25rem 1.35rem; transition: border-color .15s, box-shadow .15s; }
.job-card:hover { border-color: var(--line-strong); box-shadow: var(--shadow); }
.job-card-head { display: flex; gap: 1rem; align-items: flex-start; justify-content: space-between; }
.job-card h2, .job-card h3 { font-size: 1.1rem; margin: 0 0 .25rem; letter-spacing: -.01em; }
.job-card h2 a, .job-card h3 a { color: var(--green-900); text-decoration: none; }
.job-card h2 a::after, .job-card h3 a::after { content: ""; position: absolute; inset: 0; border-radius: var(--radius); }
.job-card h2 a:hover, .job-card h3 a:hover { color: var(--fern-700); }
.job-card h2 a:focus-visible, .job-card h3 a:focus-visible { box-shadow: none; }
.job-card h2 a:focus-visible::after, .job-card h3 a:focus-visible::after { box-shadow: var(--focus); }
.job-company { color: var(--charcoal); font-weight: 500; font-size: .95rem; }
.job-meta { display: flex; flex-wrap: wrap; gap: .4rem 1.1rem; margin: .7rem 0 .2rem; color: var(--muted); font-size: .9rem; }
.job-meta span { display: inline-flex; align-items: center; gap: .35rem; }
.job-meta .icon { width: 1rem; height: 1rem; color: var(--subtle); }
.job-snippet { color: var(--muted); font-size: .92rem; margin: .6rem 0 0; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.job-card-foot { display: flex; justify-content: space-between; align-items: center; gap: .75rem; margin-top: .85rem; font-size: .82rem; color: var(--subtle); }
.save-btn { position: relative; z-index: 2; display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--line); background: #fff; color: var(--green-700); cursor: pointer; flex-shrink: 0; }
.save-btn:hover { border-color: var(--green-900); }
.save-btn[aria-pressed="true"] { color: var(--fern-600); border-color: var(--fern-500); background: var(--fern-50); }
.badge { display: inline-flex; align-items: center; gap: .3rem; padding: .18rem .55rem; border-radius: 999px; font-size: .76rem; font-weight: 600; background: var(--green-50); color: var(--green-800); white-space: nowrap; }
.badge-teal { background: var(--fern-50); color: var(--fern-700); }
.badge-warn { background: var(--warning-bg); color: var(--warning); }
.badge-success { background: var(--success-bg); color: var(--success); }
.badge-danger { background: var(--danger-bg); color: var(--danger); }
.badge-muted { background: #eef0f3; color: var(--muted); }
.badges { display: flex; flex-wrap: wrap; gap: .4rem; }

/* ---------- Search results layout ---------- */
.results-layout { display: grid; grid-template-columns: 280px minmax(0, 1fr); gap: 2rem; align-items: start; }
@media (max-width: 960px) { .results-layout { grid-template-columns: 1fr; } }
.filters { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 1.25rem; position: sticky; top: calc(var(--header-h) + 1rem); }
.filters h2 { font-size: 1.05rem; margin-bottom: 1rem; display: flex; justify-content: space-between; align-items: center; }
.filter-group { border-top: 1px solid var(--line); padding: 1rem 0 .25rem; }
.filter-group:first-of-type { border-top: 0; padding-top: 0; }
.filter-group legend, .filter-group > label.group-label { font-weight: 600; font-size: .9rem; color: var(--green-900); margin-bottom: .5rem; display: block; padding: 0; }
.filter-group fieldset { border: 0; margin: 0; padding: 0; }
.filters-toggle { display: none; }
@media (max-width: 960px) {
  .filters { position: static; display: none; }
  .filters.open { display: block; }
  .filters-toggle { display: inline-flex; }
}
.results-head { display: flex; justify-content: space-between; align-items: center; gap: 1rem; flex-wrap: wrap; margin-bottom: 1rem; }
.results-head h1 { font-size: 1.5rem; margin: 0; }
.results-count { color: var(--muted); font-size: .95rem; }
.sort-form { white-space: nowrap; display: flex; gap: .5rem; align-items: center; font-size: .9rem; }
.sort-form select { min-height: 40px; }
.active-filters { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: 1rem; }
.chip { display: inline-flex; align-items: center; gap: .35rem; padding: .3rem .7rem; border-radius: 999px; background: var(--green-50); border: 1px solid var(--green-100); color: var(--green-800); font-size: .85rem; text-decoration: none; }
.chip:hover { border-color: var(--green-700); color: var(--green-900); }
.chip .icon { width: .9rem; height: .9rem; }

/* Pagination */
.pagination { display: flex; justify-content: center; gap: .35rem; margin: 2rem 0 0; flex-wrap: wrap; list-style: none; padding: 0; }
.pagination a, .pagination span { display: inline-flex; min-width: 42px; height: 42px; align-items: center; justify-content: center; padding: 0 .75rem; border-radius: var(--radius-sm); border: 1px solid var(--line); background: #fff; color: var(--green-900); text-decoration: none; font-weight: 500; }
.pagination a:hover { border-color: var(--green-900); }
.pagination [aria-current="page"] { background: var(--green-900); color: #fff; border-color: var(--green-900); }
.pagination .gap { border: 0; background: none; }

/* Empty / error states */
.empty-state { text-align: center; padding: 3rem 1.5rem; background: var(--surface); border: 1px dashed var(--line-strong); border-radius: var(--radius-lg); }
.empty-state .icon-wrap { width: 64px; height: 64px; border-radius: 50%; background: var(--green-50); color: var(--green-700); display: inline-flex; align-items: center; justify-content: center; margin-bottom: 1rem; }
.empty-state .icon-wrap .icon { width: 28px; height: 28px; }
.empty-state h2, .empty-state h3 { margin-bottom: .5rem; }
.empty-state p { color: var(--muted); max-width: 520px; margin-left: auto; margin-right: auto; }

/* ---------- Job detail ---------- */
.job-hero { background: var(--surface); border-bottom: 1px solid var(--line); padding: 2rem 0 1.75rem; }
.job-hero h1 { margin-bottom: .4rem; }
.job-hero .job-company { font-size: 1.1rem; }
.job-layout { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 2rem; align-items: start; }
@media (max-width: 960px) { .job-layout { grid-template-columns: 1fr; } }
.job-actions { display: flex; flex-wrap: wrap; gap: .6rem; margin-top: 1.25rem; }
.job-body { font-size: 1.02rem; }
.job-body h2 { font-size: 1.25rem; margin-top: 2rem; }
.job-body h3 { font-size: 1.05rem; margin-top: 1.5rem; }
.job-body li { margin-bottom: .35rem; }
.facts { list-style: none; padding: 0; margin: 0; display: grid; gap: .9rem; }
.facts li { display: grid; grid-template-columns: 22px 1fr; gap: .65rem; }
.facts .icon { color: var(--fern-600); margin-top: .2rem; }
.facts dt, .facts .label { font-size: .8rem; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; font-weight: 600; }
.facts .value { font-weight: 500; color: var(--ink); }
.sticky-side { position: sticky; top: calc(var(--header-h) + 1rem); display: grid; gap: 1rem; }
@media (max-width: 960px) { .sticky-side { position: static; } }
.source-note { font-size: .85rem; color: var(--muted); background: var(--green-50); border-radius: var(--radius); padding: .9rem 1rem; }
.share-row { display: flex; gap: .5rem; flex-wrap: wrap; }
.attribution { font-size: .82rem; color: var(--muted); }
.attribution a { color: var(--muted); }

/* ---------- Breadcrumbs ---------- */
.breadcrumbs { font-size: .85rem; color: var(--muted); padding: 1rem 0 0; }
.breadcrumbs ol { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: .35rem; align-items: center; }
.breadcrumbs li { display: inline-flex; align-items: center; gap: .35rem; }
.breadcrumbs li + li::before { content: "/"; color: var(--line-strong); }
.breadcrumbs a { color: var(--muted); text-decoration: none; }
.breadcrumbs a:hover { color: var(--green-900); text-decoration: underline; }
.breadcrumbs [aria-current] { color: var(--charcoal); max-width: 40ch; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* Page header */
.page-head { background: var(--surface); border-bottom: 1px solid var(--line); padding: 1.5rem 0 2.25rem; }
.page-head h1 { margin: .75rem 0 .4rem; }
.page-head p { color: var(--muted); max-width: 720px; margin: 0; font-size: 1.05rem; }
.page-head-navy { background: var(--green-900); border: 0; color: #d6e6df; }
.page-head-navy h1 { color: #fff; }
.page-head-navy p { color: #c5dbd1; }
.page-head-navy .breadcrumbs, .page-head-navy .breadcrumbs a { color: #a3bdb1; }
.page-head-navy .breadcrumbs [aria-current] { color: #fff; }

/* ---------- Forms ---------- */
.form { display: grid; gap: 1.15rem; }
.form-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.15rem; }
@media (max-width: 640px) { .form-row { grid-template-columns: 1fr; } }
.field { display: grid; gap: .35rem; }
.field > label, .label { font-weight: 600; font-size: .92rem; color: var(--green-900); }
.field .hint { font-size: .84rem; color: var(--muted); margin: 0; }
.optional { font-weight: 400; color: var(--subtle); font-size: .85rem; }
input[type="text"], input[type="email"], input[type="password"], input[type="tel"], input[type="url"], input[type="number"], input[type="search"], select, textarea {
  width: 100%; min-height: 46px; padding: .6rem .85rem; border: 1px solid var(--line-strong); border-radius: var(--radius-sm);
  font: 400 1rem/1.4 var(--font); color: var(--ink); background: #fff; transition: border-color .15s, box-shadow .15s;
}
textarea { min-height: 120px; resize: vertical; }
select { appearance: none; padding-right: 2.25rem; background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23566272' stroke-width='1.6' fill='none'/%3E%3C/svg%3E") no-repeat right .85rem center; cursor: pointer; }
input:focus, select:focus, textarea:focus { border-color: var(--fern-500); box-shadow: var(--focus); outline: none; }
input::placeholder, textarea::placeholder { color: #8a94a3; }
.field.has-error input, .field.has-error select, .field.has-error textarea { border-color: var(--danger); }
.field-error { color: var(--danger); font-size: .86rem; font-weight: 500; display: flex; gap: .35rem; align-items: center; margin: 0; }
.check { display: flex; gap: .65rem; align-items: flex-start; font-size: .94rem; cursor: pointer; }
.check input { width: 20px; height: 20px; margin: .15rem 0 0; accent-color: var(--fern-600); flex-shrink: 0; cursor: pointer; }
.radio-list, .check-list { display: grid; gap: .5rem; }
.radio-pills { display: flex; flex-wrap: wrap; gap: .5rem; }
.radio-pills label { position: relative; }
.radio-pills input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.radio-pills span { display: inline-block; padding: .5rem .9rem; border: 1px solid var(--line-strong); border-radius: 999px; font-size: .9rem; background: #fff; cursor: pointer; }
.radio-pills input:checked + span { background: var(--green-900); color: #fff; border-color: var(--green-900); }
.radio-pills input:focus-visible + span { box-shadow: var(--focus); }
.fieldset { border: 1px solid var(--line); border-radius: var(--radius); padding: 1.25rem; margin: 0; }
.fieldset legend { font-weight: 700; color: var(--green-900); padding: 0 .4rem; }
.hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }
.form-actions { display: flex; gap: .75rem; flex-wrap: wrap; align-items: center; }

/* File drop */
.file-drop { position: relative; border: 2px dashed var(--line-strong); border-radius: var(--radius); padding: 1.75rem 1rem; text-align: center; background: var(--canvas); transition: border-color .15s, background .15s; }
.file-drop:hover, .file-drop.dragover { border-color: var(--fern-500); background: var(--fern-50); }
.file-drop input[type="file"] { position: absolute; inset: 0; opacity: 0; cursor: pointer; width: 100%; }
.file-drop input[type="file"]:focus-visible + .file-drop-ui { box-shadow: var(--focus); border-radius: var(--radius-sm); }
.file-drop .icon { width: 32px; height: 32px; color: var(--fern-600); margin: 0 auto .5rem; }
.file-drop strong { color: var(--green-900); }
.file-drop .file-name { margin-top: .5rem; font-weight: 600; color: var(--fern-700); }

/* Consent / privacy boxes */
.privacy-box { background: var(--green-50); border: 1px solid var(--green-100); border-radius: var(--radius); padding: 1rem 1.15rem; font-size: .9rem; color: var(--green-800); }
.privacy-box h3 { font-size: .95rem; margin-bottom: .35rem; display: flex; gap: .4rem; align-items: center; }
.privacy-box ul { margin: .4rem 0 0; padding-left: 1.1rem; }
.privacy-box p:last-child, .privacy-box ul:last-child { margin-bottom: 0; }

/* Auth pages */
.auth-wrap { min-height: calc(100vh - var(--header-h) - 200px); display: grid; place-items: center; padding: 3rem 1.25rem; }
.auth-card { width: 100%; max-width: 460px; }
.auth-card h1 { font-size: 1.6rem; }
.auth-switch { display: grid; grid-template-columns: 1fr 1fr; background: var(--green-50); border-radius: var(--radius); padding: 4px; margin-bottom: 1.5rem; }
.auth-switch a { text-align: center; padding: .55rem; border-radius: 8px; text-decoration: none; color: var(--muted); font-weight: 600; font-size: .92rem; }
.auth-switch a[aria-current="page"] { background: #fff; color: var(--green-900); box-shadow: var(--shadow-sm); }
.divider-text { display: flex; align-items: center; gap: .75rem; color: var(--subtle); font-size: .85rem; margin: .5rem 0; }
.divider-text::before, .divider-text::after { content: ""; flex: 1; border-top: 1px solid var(--line); }
.pw-wrap { position: relative; }
.pw-wrap input { padding-right: 4.5rem; }
.pw-toggle { position: absolute; right: .4rem; top: 50%; transform: translateY(-50%); background: none; border: 0; color: var(--fern-700); font: 600 .85rem var(--font); padding: .4rem .5rem; cursor: pointer; border-radius: 4px; }

/* ---------- Dashboard layout ---------- */
.dash { display: grid; grid-template-columns: 250px minmax(0, 1fr); gap: 2rem; padding: 2rem 0 4rem; align-items: start; }
@media (max-width: 900px) { .dash { grid-template-columns: 1fr; gap: 1.25rem; } }
.dash-nav { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: .6rem; position: sticky; top: calc(var(--header-h) + 1rem); }
.dash-nav .who { padding: .75rem .75rem 1rem; border-bottom: 1px solid var(--line); margin-bottom: .4rem; display: flex; gap: .75rem; align-items: center; }
.dash-nav .who strong { display: block; color: var(--green-900); font-size: .95rem; line-height: 1.3; }
.dash-nav .who small { color: var(--muted); font-size: .8rem; word-break: break-all; }
.dash-nav ul { list-style: none; margin: 0; padding: 0; }
.dash-nav a { display: flex; gap: .65rem; align-items: center; padding: .6rem .75rem; border-radius: var(--radius-sm); color: var(--charcoal); text-decoration: none; font-size: .93rem; font-weight: 500; }
.dash-nav a:hover { background: var(--green-50); color: var(--green-900); }
.dash-nav a[aria-current="page"] { background: var(--green-900); color: #fff; }
.dash-nav a[aria-current="page"] .icon { color: #F5C443; }
.dash-nav .icon { color: var(--subtle); }
.dash-nav .nav-heading { font-size: .72rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--subtle); padding: .9rem .75rem .35rem; }
@media (max-width: 900px) {
  .dash-nav { position: static; }
  .dash-nav ul { display: flex; overflow-x: auto; gap: .25rem; scrollbar-width: thin; }
  .dash-nav li { flex-shrink: 0; }
  .dash-nav .who, .dash-nav .nav-heading { display: none; }
}
.dash-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 1rem; margin-bottom: 1.5rem; flex-wrap: wrap; }
.dash-head h1 { font-size: 1.6rem; margin: 0 0 .25rem; }
.dash-head p { margin: 0; color: var(--muted); }
.stat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 1rem; margin-bottom: 1.5rem; }
.stat { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.1rem 1.2rem; }
.stat .num { font-size: 1.75rem; font-weight: 700; color: var(--green-900); line-height: 1.1; font-variant-numeric: tabular-nums; }
.stat .lbl { color: var(--muted); font-size: .85rem; margin-top: .3rem; }
.stat a { font-size: .85rem; }

/* Tables */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; }
table.table { width: 100%; border-collapse: collapse; font-size: .9rem; }
.table th, .table td { padding: .7rem .9rem; text-align: left; border-bottom: 1px solid var(--line); vertical-align: top; }
.table th { background: var(--canvas); font-weight: 600; color: var(--green-900); font-size: .82rem; text-transform: uppercase; letter-spacing: .03em; white-space: nowrap; }
.table tr:last-child td { border-bottom: 0; }
.table td.num, .table th.num { text-align: right; font-variant-numeric: tabular-nums; }
.table .mono { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: .82rem; }
.list-plain { list-style: none; padding: 0; margin: 0; }
.list-rows li { display: flex; justify-content: space-between; gap: 1rem; padding: .8rem 0; border-bottom: 1px solid var(--line); align-items: center; }
.list-rows li:last-child { border-bottom: 0; }
.list-rows a { font-weight: 600; text-decoration: none; color: var(--green-900); }
.list-rows a:hover { text-decoration: underline; }

/* ---------- Feature / marketing blocks ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; align-items: center; }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; gap: 2rem; } }
.split-media { border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-lg); aspect-ratio: 4 / 3; }
.split-media img { width: 100%; height: 100%; object-fit: cover; }
.check-points { list-style: none; padding: 0; margin: 1.25rem 0; display: grid; gap: .7rem; }
.check-points li { display: grid; grid-template-columns: 24px 1fr; gap: .6rem; }
.check-points .icon { color: var(--fern-600); margin-top: .2rem; }
.feature { padding: 1.5rem; background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); }
.feature .cat-icon { margin-bottom: 1rem; }
.feature h3 { font-size: 1.05rem; }
.feature p { color: var(--muted); font-size: .94rem; margin: 0; }
.cta-band { background: var(--green-900); color: #d6e6df; border-radius: var(--radius-lg); padding: 2.5rem; display: flex; justify-content: space-between; gap: 2rem; align-items: center; flex-wrap: wrap; position: relative; overflow: hidden; }
.cta-band::after { content: ""; position: absolute; right: -80px; top: -80px; width: 260px; height: 260px; border-radius: 50%; background: radial-gradient(circle, rgba(245,196,67,.30), transparent 70%); }
.cta-band h2 { color: #fff; margin-bottom: .35rem; }
.cta-band p { margin: 0; max-width: 560px; }
.cta-band > * { position: relative; z-index: 1; }
.tile-link { display: block; text-decoration: none; color: inherit; }
.article-card { overflow: hidden; padding: 0; display: flex; flex-direction: column; }
.article-card .thumb { aspect-ratio: 16 / 9; overflow: hidden; background: var(--green-50); }
.article-card .thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s; }
.article-card:hover .thumb img { transform: scale(1.03); }
.article-card .body { padding: 1.25rem 1.35rem 1.4rem; }
.article-card h3 { font-size: 1.08rem; }
.article-card p { color: var(--muted); font-size: .93rem; margin: 0; }
.prose { font-size: 1.05rem; line-height: 1.75; }
.prose h2 { margin-top: 2.25rem; font-size: 1.4rem; }
.prose h3 { margin-top: 1.75rem; }
.prose li { margin-bottom: .45rem; }
.prose blockquote { margin: 1.5rem 0; padding: 1rem 1.25rem; border-left: 4px solid var(--fern-500); background: var(--fern-50); border-radius: 0 var(--radius) var(--radius) 0; }
.article-hero { aspect-ratio: 21 / 9; border-radius: var(--radius-lg); overflow: hidden; margin: 1.5rem 0 2rem; }
.article-hero img { width: 100%; height: 100%; object-fit: cover; }
.pill-links { display: flex; flex-wrap: wrap; gap: .5rem; }
.pill-links a { padding: .45rem .9rem; border-radius: 999px; background: #fff; border: 1px solid var(--line); color: var(--green-900); text-decoration: none; font-size: .9rem; }
.pill-links a:hover { border-color: var(--fern-500); color: var(--fern-700); }
.country-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 1rem; }
.country-card { display: flex; gap: .85rem; align-items: center; padding: 1rem 1.15rem; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); text-decoration: none; color: var(--green-900); font-weight: 600; }
.country-card:hover { border-color: var(--fern-500); box-shadow: var(--shadow); color: var(--green-900); }
.flag { width: 28px; height: 21px; border-radius: 3px; box-shadow: 0 0 0 1px rgba(0,0,0,.08); object-fit: cover; flex-shrink: 0; }

/* Legal */
.legal-layout { display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: 2.5rem; padding: 2rem 0 4rem; align-items: start; }
@media (max-width: 900px) { .legal-layout { grid-template-columns: 1fr; } .legal-nav { display: none; } }
.legal-nav { position: sticky; top: calc(var(--header-h) + 1rem); font-size: .9rem; }
.legal-nav ul { list-style: none; padding: 0; margin: 0; border-left: 2px solid var(--line); }
.legal-nav a { display: block; padding: .4rem .9rem; color: var(--muted); text-decoration: none; margin-left: -2px; border-left: 2px solid transparent; }
.legal-nav a:hover { color: var(--green-900); }
.legal-nav a[aria-current="page"] { color: var(--green-900); border-left-color: var(--fern-600); font-weight: 600; }
.legal-doc { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 2.5rem; }
@media (max-width: 640px) { .legal-doc { padding: 1.35rem; } }
.legal-doc h1 { font-size: 1.9rem; }
.legal-doc h2 { font-size: 1.25rem; margin-top: 2rem; padding-top: .5rem; }
.legal-doc h3 { font-size: 1.05rem; margin-top: 1.4rem; }
.legal-doc table { width: 100%; border-collapse: collapse; margin: 1rem 0 1.5rem; font-size: .92rem; }
.legal-doc th, .legal-doc td { border: 1px solid var(--line); padding: .6rem .75rem; text-align: left; vertical-align: top; }
.legal-doc th { background: var(--canvas); }
.legal-meta { color: var(--muted); font-size: .9rem; border-bottom: 1px solid var(--line); padding-bottom: 1rem; margin-bottom: 1.5rem; }
.review-banner { display: flex; gap: .75rem; background: var(--warning-bg); border: 1px solid #f1d9a0; color: #6b4600; border-radius: var(--radius); padding: .9rem 1rem; font-size: .9rem; margin-bottom: 1.5rem; }
.toc { background: var(--canvas); border-radius: var(--radius); padding: 1rem 1.25rem; margin-bottom: 1.5rem; font-size: .92rem; }
.toc ol { margin: .4rem 0 0; }

/* ---------- Footer ---------- */
.site-footer { background: var(--green-950); color: #b4cbc0; margin-top: 4rem; font-size: .92rem; }
.footer-top { display: grid; grid-template-columns: 1.4fr repeat(4, 1fr); gap: 2rem; padding: 3.5rem 0 2.5rem; }
@media (max-width: 960px) { .footer-top { grid-template-columns: 1fr 1fr; } .footer-brand { grid-column: 1 / -1; } }
@media (max-width: 520px) { .footer-top { grid-template-columns: 1fr; } }
.site-footer h2 { color: #fff; font-size: .82rem; text-transform: uppercase; letter-spacing: .08em; margin-bottom: 1rem; }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: .55rem; }
.site-footer a { color: #b4cbc0; text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.footer-brand .brand { color: #fff; }
.footer-brand p { margin: 1rem 0; max-width: 340px; }
.flag-list { display: flex; flex-wrap: wrap; gap: .5rem .9rem; }
.flag-list a { display: inline-flex; align-items: center; gap: .5rem; font-size: .88rem; }
.flag-list .flag { width: 22px; height: 16px; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.08); padding: 1.25rem 0 1.75rem; display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; font-size: .83rem; color: #9bb4a8; }

/* ---------- Cookie consent ---------- */
.cookie-banner { position: fixed; left: 1rem; right: 1rem; bottom: 1rem; z-index: 100; max-width: 720px; margin: 0 auto; background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); padding: 1.25rem 1.35rem; }
.cookie-banner[hidden] { display: none; }
.cookie-banner h2 { font-size: 1.05rem; margin-bottom: .35rem; }
.cookie-banner p { font-size: .9rem; color: var(--muted); margin-bottom: 1rem; }
.cookie-banner .form-actions .btn { flex: 1 1 auto; }

/* ---------- Admin ---------- */
.admin-body { background: #EEF3F0; }
.status-dot { display: inline-block; width: 9px; height: 9px; border-radius: 50%; margin-right: .4rem; vertical-align: middle; background: var(--subtle); }
.status-ok { background: var(--success); }
.status-warn { background: #d99000; }
.status-bad { background: var(--danger); }
.kv { display: grid; grid-template-columns: max-content 1fr; gap: .4rem 1.25rem; font-size: .9rem; margin: 0; }
.kv dt { color: var(--muted); }
.kv dd { margin: 0; font-weight: 500; }
pre.log { background: var(--green-950); color: #d0e2d9; padding: 1rem; border-radius: var(--radius); overflow-x: auto; font-size: .78rem; line-height: 1.5; max-height: 460px; }

/* ---------- Print ---------- */
@media print {
  .site-header, .site-footer, .cookie-banner, .job-actions, .sticky-side .share-row, .filters { display: none !important; }
  body { background: #fff; }
}

/* ---------- Utilities ---------- */
.mt { margin-top: 1.5rem; }
.mt-sm { margin-top: .75rem; }
.mt-lg { margin-top: 2.5rem; }
.mb { margin-bottom: 1.5rem; }
.h3 { font-size: 1.15rem; }
.flex-center { justify-content: center; }
.empty-state .flex { justify-content: center; margin-top: 1rem; }
.pre-wrap { white-space: pre-wrap; }
.small-num { font-size: 1.15rem !important; padding: .35rem 0; }
.input-sm { width: auto !important; min-height: 36px !important; padding: .35rem .6rem !important; font-size: .9rem !important; }
input.input-sm[type="number"] { width: 6rem !important; }
.results-layout-single { grid-template-columns: minmax(0, 1fr); }
.steps { padding-left: 1.2rem; margin: 0; display: grid; gap: .6rem; font-size: .94rem; }
.cat-icon-lg { width: 64px; height: 64px; border-radius: 50%; margin: 0 auto 1rem; }
.cat-icon-lg .icon { width: 32px; height: 32px; }
.empty-state-icon { display: flex; justify-content: center; }
.pill-links a.pill-active, .pill-links a[aria-current="page"] { background: var(--green-900); color: #fff; border-color: var(--green-900); }
.hero-sm .hero-inner { padding: 2rem 0 4rem; }
.hero .breadcrumbs, .hero .breadcrumbs a { color: #a3bdb1; }
.hero .breadcrumbs [aria-current] { color: #fff; }
.card > h2:first-child, .card > .flex:first-child h2 { margin-bottom: .75rem; }
.job-card-head form { margin: 0; }
.job-actions form { margin: 0; }
.sticky-side .split-media { aspect-ratio: 16 / 10; box-shadow: var(--shadow); }
details summary { cursor: pointer; }
code { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: .88em; background: var(--green-50); padding: .1em .35em; border-radius: 4px; }
.legal-layout > *, .job-layout > *, .results-layout > *, .dash > * { min-width: 0; }
.legal-doc table { display: block; overflow-x: auto; }
.legal-doc td, .legal-doc th { min-width: 140px; }
.legal-doc, .prose { overflow-wrap: anywhere; }
@media (max-width: 1060px) {
  .main-nav .mobile-actions a.btn { border: 1px solid transparent; padding: .75rem 1rem; border-radius: var(--radius-sm); }
  .main-nav .mobile-actions a.btn-navy { color: #fff; background: var(--green-900); }
  .main-nav .mobile-actions a.btn-outline { border-color: var(--line-strong); color: var(--green-900); }
  .main-nav .mobile-actions a.btn-ghost { color: var(--fern-700); }
}
.landing-intro { max-width: 820px; font-size: 1.05rem; color: var(--charcoal); margin-bottom: 1.75rem; }
.landing-count { color: #c5dbd1; }
.landing-count strong { color: #fff; }
.h1-sub { font-weight: 500; font-size: .6em; color: #a3bdb1; }
.apply-note { margin: .75rem 0 0; color: var(--muted); display: flex; gap: .4rem; align-items: center; }
.apply-note .icon { color: var(--fern-600); }

/* ---------- Footer: jobs around the world ---------- */

/* ==========================================================================
   WAYFINDING IDENTITY LAYER
   ========================================================================== */
body { font-size: 1.0625rem; font-feature-settings: normal; }
h1, h2, h3, h4, .brand, .stat .num, .landing-count strong, .h3 { font-family: var(--font-display); }
h1, h2, h3, h4 { font-weight: 700; letter-spacing: -.022em; line-height: 1.12; color: var(--green-900); }
h1 { font-size: clamp(2rem, 1.35rem + 2.4vw, 3rem); letter-spacing: -.03em; }
h2 { font-size: clamp(1.45rem, 1.15rem + 1.1vw, 2rem); }
h3, .h3 { font-size: 1.2rem; letter-spacing: -.012em; }
a { color: var(--fern-700); }
a:hover { color: var(--green-900); }
::selection { background: var(--signal); color: var(--ink); }

/* Sign-panel frame: the white inset border of a UK direction sign */
.hero, .page-head-navy, .cta-band { position: relative; isolation: isolate; }
.hero::after, .page-head-navy::after, .cta-band::before {
  content: ""; position: absolute; pointer-events: none; z-index: 2;
  border: 2px solid rgba(255, 255, 255, .55); border-radius: 16px;
}
.hero::after { inset: 14px; border-radius: 22px; }
.page-head-navy::after { inset: 10px; }
.cta-band::before { inset: 8px; border-radius: 12px; border-color: rgba(255, 255, 255, .35); }
@media (max-width: 640px) { .hero::after { inset: 8px; border-radius: 16px; } .page-head-navy::after { inset: 6px; border-radius: 12px; } }

/* Labels: sentence case with a signal chevron instead of tracked capitals */
.eyebrow {
  display: inline-flex; align-items: center; gap: .5rem;
  font-family: var(--font-display); font-size: .95rem; font-weight: 650;
  letter-spacing: 0; text-transform: none; color: var(--fern-700); margin-bottom: .7rem;
}
.eyebrow::before {
  content: ""; width: .5em; height: .5em; flex-shrink: 0;
  border-top: 3px solid var(--signal-600); border-right: 3px solid var(--signal-600);
  transform: rotate(45deg); margin-right: .1rem;
}
.hero .eyebrow, .page-head-navy .eyebrow { color: var(--signal); }
.hero .eyebrow::before { border-color: var(--signal); }

/* ---------- Header ---------- */
.site-header { border-bottom: 1px solid var(--line); }
.brand { font-weight: 760; font-size: 1.5rem; letter-spacing: -.035em; gap: .6rem; color: var(--green-900); }
.main-nav a { position: relative; font-weight: 700; font-size: .97rem; color: var(--charcoal); padding: .55rem .75rem; border-radius: var(--radius-sm); }
.main-nav a:hover { background: var(--green-50); color: var(--green-900); }
.main-nav a[aria-current="page"] { background: transparent; color: var(--green-900); }
@media (min-width: 1061px) {
  .main-nav a[aria-current="page"]::after { content: ""; position: absolute; left: .75rem; right: .75rem; bottom: -15px; height: 4px; border-radius: 4px 4px 0 0; background: var(--signal); }
}
@media (max-width: 1060px) {
  .main-nav a[aria-current="page"] { background: var(--green-50); box-shadow: inset 4px 0 0 var(--signal); }
}
.avatar { background: var(--green-900); color: var(--signal); font-family: var(--font-display); }

/* ---------- Buttons ---------- */
.btn { border-radius: 10px; font-family: var(--font-display); font-weight: 650; letter-spacing: -.005em; font-size: 1rem; }
.btn-sm { font-size: .9rem; border-radius: 8px; }
.btn-primary { background: var(--fern-600); color: #fff; box-shadow: inset 0 -2px 0 rgba(0, 0, 0, .14); }
.btn-primary:hover { background: var(--green-900); }
.btn-navy { background: var(--green-900); }
.btn-navy:hover { background: var(--green-800); }
.btn-outline { border-color: var(--line-strong); color: var(--green-900); }
.btn-outline:hover { border-color: var(--green-900); background: var(--green-50); }
.btn-light { background: #fff; color: var(--green-900); }
.btn-light:hover { background: var(--signal-50); color: var(--green-900); }
/* Signal button: the strongest call to action, on green panels only */
.hero .btn-primary, .cta-band .btn-primary, .page-head-navy .btn-primary { background: var(--signal); color: var(--ink); box-shadow: inset 0 -3px 0 rgba(0, 0, 0, .14); }
.hero .btn-primary:hover, .cta-band .btn-primary:hover, .page-head-navy .btn-primary:hover { background: #FFD465; color: var(--ink); }

/* ---------- Hero: the direction sign ---------- */
.hero { background: var(--green-900); }
.hero-media::after { background: linear-gradient(100deg, rgba(8, 52, 41, .97) 0%, rgba(11, 74, 58, .9) 46%, rgba(11, 74, 58, .38) 100%); }
.hero-media img { filter: saturate(.85) contrast(1.05); }
.hero-inner { padding: 6rem 0 5rem; max-width: 900px; }
.hero h1 { font-size: clamp(2.3rem, 1.4rem + 3.8vw, 4rem); line-height: 1.02; letter-spacing: -.038em; font-weight: 760; max-width: 15ch; }
.hero p.lead { color: #E3EEE8; font-size: clamp(1.08rem, 1rem + .35vw, 1.25rem); }
.hero-trust { color: #D6E7DF; }
.hero-trust .icon { color: var(--signal); }
.hero-sm .hero-inner { padding: 2.5rem 0 4.5rem; }
.search-bar { border-radius: 16px; padding: .55rem; box-shadow: 0 24px 50px -18px rgba(0, 0, 0, .45); }
.search-bar .search-field input, .search-bar .search-field select { border-radius: 10px; background: var(--canvas); font-family: var(--font); }
.search-bar .btn { border-radius: 10px; }
.search-compact { box-shadow: var(--shadow); border-color: var(--line); }

/* ---------- Sections ---------- */
.section-head { margin-bottom: 2rem; }
.section-head h2 { max-width: 22ch; }
.section-white { background: #fff; }
.page-head { background: #fff; border-bottom: 1px solid var(--line); }
.page-head-navy { background: var(--green-900); padding-top: 1.75rem; padding-bottom: 2.75rem; }
.page-head-navy h1 { color: #fff; }
.page-head-navy p, .landing-count { color: #D6E7DF; }
.page-head-navy .breadcrumbs, .page-head-navy .breadcrumbs a { color: #B4CBC0; }

/* Page header with a photograph */
.page-head-media .container { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 2.5rem; align-items: center; }
.page-head-media .head-photo { position: relative; border-radius: var(--radius-lg); overflow: hidden; aspect-ratio: 16 / 10; box-shadow: var(--shadow-lg); }
.page-head-media .head-photo img { width: 100%; height: 100%; object-fit: cover; }
.page-head-media .head-photo::after { content: ""; position: absolute; inset: 8px; border: 2px solid rgba(255, 255, 255, .6); border-radius: 12px; pointer-events: none; }
@media (max-width: 860px) { .page-head-media .container { grid-template-columns: 1fr; gap: 1.5rem; } .page-head-media .head-photo { aspect-ratio: 21 / 9; } }

/* ---------- Cards and listings ---------- */
.card { border-radius: var(--radius-lg); border-color: var(--line); box-shadow: none; }
.card-hover:hover { border-color: var(--fern-500); box-shadow: var(--shadow); }
.job-card { border-radius: var(--radius); border-color: var(--line); box-shadow: none; overflow: hidden; }
.job-card::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 4px; background: transparent; transition: background .15s; }
.job-card:hover { border-color: var(--line-strong); box-shadow: var(--shadow); }
.job-card:hover::before, .job-card:focus-within::before { background: var(--signal); }
.job-card h2, .job-card h3 { font-weight: 680; font-size: 1.16rem; }
.job-company { font-weight: 700; color: var(--charcoal); }
.save-btn { border-color: var(--line-strong); }
.save-btn[aria-pressed="true"] { background: var(--signal-50); border-color: var(--signal-600); color: var(--green-900); }
.badge { font-family: var(--font); font-weight: 700; background: var(--green-50); color: var(--green-800); }
.badge-teal { background: var(--fern-50); color: var(--fern-700); }
.badge-warn { background: var(--signal-50); color: #6B4A00; }

.cat-tile { border-radius: var(--radius); font-family: var(--font-display); font-weight: 650; font-size: 1rem; }
.cat-icon { border-radius: 10px; background: var(--green-50); color: var(--green-900); }
.cat-tile:hover { border-color: var(--green-900); box-shadow: var(--shadow); }
.cat-tile:hover .cat-icon { background: var(--green-900); color: var(--signal); }
.feature { border-radius: var(--radius-lg); }
.feature .cat-icon { background: var(--signal-50); color: var(--green-900); }
.country-card { border-radius: var(--radius); font-family: var(--font-display); font-weight: 650; }
.country-card:hover { border-color: var(--green-900); }
.pill-links a { font-weight: 700; font-size: .92rem; border-color: var(--line-strong); }
.pill-links a:hover { border-color: var(--green-900); color: var(--green-900); background: var(--green-50); }
.chip { background: var(--signal-50); border-color: #F1D990; color: var(--green-900); font-weight: 700; }

/* Call-to-action band */
.cta-band { background: var(--green-900); border-radius: var(--radius-lg); }
.cta-band::after { background: radial-gradient(circle, rgba(245, 196, 67, .22), transparent 70%); }
.cta-band h2 { color: #fff; }
.cta-band p { color: #D6E7DF; }

/* Imagery */
.split-media { border-radius: var(--radius-lg); position: relative; }
.split-media::after { content: ""; position: absolute; inset: 10px; border: 2px solid rgba(255, 255, 255, .6); border-radius: 12px; pointer-events: none; }
.split-media img { filter: saturate(.92); }
.landing-photo { position: relative; border-radius: var(--radius-lg); overflow: hidden; aspect-ratio: 21 / 7; margin: 0 0 1.75rem; }
.landing-photo img { width: 100%; height: 100%; object-fit: cover; }
.landing-photo::after { content: ""; position: absolute; inset: 8px; border: 2px solid rgba(255, 255, 255, .6); border-radius: 12px; pointer-events: none; }
@media (max-width: 640px) { .landing-photo { aspect-ratio: 16 / 9; } }

/* ---------- Search and job detail ---------- */
.filters { border-radius: var(--radius-lg); }
.filters h2 { font-size: 1.15rem; }
.results-head h1 { font-size: clamp(1.5rem, 1.2rem + 1vw, 2rem); }
.pagination [aria-current="page"] { background: var(--green-900); border-color: var(--green-900); }
.pagination a, .pagination span { border-radius: 10px; font-weight: 700; }
.job-hero h1 { font-size: clamp(1.9rem, 1.3rem + 2vw, 2.75rem); }
.facts .icon { color: var(--fern-600); }
.source-note { background: var(--green-50); border-radius: var(--radius); }

/* ---------- Forms ---------- */
input[type="text"], input[type="email"], input[type="password"], input[type="tel"], input[type="url"], input[type="number"], input[type="search"], select, textarea { border-radius: 10px; font-size: 1rem; }
input:focus, select:focus, textarea:focus { border-color: var(--fern-600); }
.field > label, .label, .fieldset legend { font-family: var(--font-display); font-weight: 650; }
.check input { accent-color: var(--fern-600); }
.radio-pills input:checked + span { background: var(--green-900); border-color: var(--green-900); }
.file-drop { border-radius: var(--radius); background: var(--canvas); }
.file-drop:hover, .file-drop.dragover { border-color: var(--fern-600); background: var(--fern-50); }
.privacy-box { background: var(--green-50); border-color: var(--green-100); color: var(--green-900); border-radius: var(--radius); }
.auth-switch a[aria-current="page"] { color: var(--green-900); box-shadow: inset 0 -3px 0 var(--signal), var(--shadow-sm); }

/* Sign-in / register with a photograph */

/* ---------- Dashboards ---------- */
.dash-nav { border-radius: var(--radius-lg); }
.dash-nav a[aria-current="page"] { background: var(--green-900); }
.stat { border-radius: var(--radius); border-top: 4px solid var(--green-900); }
.stat .num { font-weight: 760; }

/* ---------- Footer ---------- */
.site-footer { background: var(--green-950); color: #B4CBC0; }
.site-footer h2 { font-family: var(--font-display); text-transform: none; letter-spacing: -.005em; font-size: 1.02rem; font-weight: 700; color: #fff; }
.site-footer a:hover { color: var(--signal); }
.footer-top { border-top: 4px solid var(--signal); }
.head-photo picture, .landing-photo picture { display: block; width: 100%; height: 100%; }
.field .flex > label { font-family: var(--font-display); font-weight: 650; font-size: .92rem; color: var(--green-900); }
@media (max-width: 640px) { .btn { white-space: normal; text-align: center; } }
/* Footer countries: a single row of six on desktop */

/* ---------- Homepage hero: three-photo backdrop, centred content ---------- */
.hero-triptych { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 3px; background: var(--green-950); }
.hero-panel { position: relative; overflow: hidden; min-height: 0; }
.hero-panel picture { display: block; width: 100%; height: 100%; }
.hero-triptych .hero-panel img { width: 100%; height: 100%; object-fit: cover; object-position: center 30%; }
.hero-triptych::after {
  background:
    radial-gradient(ellipse 60% 70% at 50% 50%, rgba(6, 38, 30, .55), rgba(6, 38, 30, 0) 75%),
    linear-gradient(180deg, rgba(8, 52, 41, .80) 0%, rgba(11, 74, 58, .74) 50%, rgba(8, 52, 41, .88) 100%);
}
.hero-centered .hero-inner { margin: 0 auto; max-width: 940px; text-align: center; padding: 6.5rem 0 5.5rem; }
.hero-centered .eyebrow { justify-content: center; }
.hero-centered h1 { max-width: 16ch; margin-left: auto; margin-right: auto; }
.hero-centered p.lead { margin-left: auto; margin-right: auto; max-width: 640px; }
.hero-centered .search-bar { max-width: 920px; margin: 0 auto; text-align: left; }
.hero-centered .hero-trust { justify-content: center; }
@media (max-width: 760px) {
  .hero-triptych { grid-template-columns: 1fr; grid-template-rows: repeat(3, minmax(0, 1fr)); }
  .hero-centered .hero-inner { padding: 4.5rem 0 4rem; }
}

/* ---------- Homepage: categories as photo direction tiles ---------- */
.section-categories { background: var(--canvas); }
.cat-photo-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1rem; }
@media (max-width: 960px) { .cat-photo-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 640px) { .cat-photo-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .65rem; } }
.cat-photo {
  position: relative; isolation: isolate; display: block; overflow: hidden;
  aspect-ratio: 4 / 3; border-radius: 14px; background: var(--green-900);
  color: #fff; text-decoration: none;
}
.cat-photo-img, .cat-photo-img picture { position: absolute; inset: 0; display: block; }
.cat-photo-img img { width: 100%; height: 100%; object-fit: cover; filter: saturate(.9); transition: transform .45s ease; }
.cat-photo::before {
  content: ""; position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(180deg, rgba(6, 38, 30, .08) 20%, rgba(6, 38, 30, .55) 55%, rgba(6, 38, 30, .94) 100%);
}
.cat-photo::after {
  content: ""; position: absolute; inset: 7px; z-index: 2; pointer-events: none;
  border: 1.5px solid rgba(255, 255, 255, .38); border-radius: 10px; transition: border-color .2s;
}
.cat-photo-body { position: absolute; left: 16px; right: 14px; bottom: 14px; z-index: 3; display: flex; align-items: center; gap: .65rem; }
.cat-photo .cat-icon { width: 38px; height: 38px; border-radius: 9px; background: var(--signal); color: var(--green-900); flex-shrink: 0; }
.cat-photo .cat-icon .icon { width: 20px; height: 20px; }
.cat-photo-name { font-family: var(--font-display); font-weight: 700; font-size: 1.05rem; line-height: 1.2; letter-spacing: -.01em; text-shadow: 0 1px 2px rgba(0, 0, 0, .3); }
.cat-photo-go {
  margin-left: auto; flex-shrink: 0; width: 32px; height: 32px; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  background: rgba(255, 255, 255, .16); color: #fff; transition: background .2s, color .2s;
}
.cat-photo-go .icon { width: 18px; height: 18px; }
.cat-photo:hover { color: #fff; }
.cat-photo:hover .cat-photo-img img { transform: scale(1.05); }
.cat-photo:hover::after { border-color: rgba(255, 255, 255, .8); }
.cat-photo:hover .cat-photo-go, .cat-photo:focus-visible .cat-photo-go { background: var(--signal); color: var(--ink); }
.cat-photo:focus-visible { box-shadow: 0 0 0 3px var(--canvas), 0 0 0 6px var(--fern-600); }
@media (max-width: 640px) {
  .cat-photo { aspect-ratio: 1 / 1; }
  .cat-photo-body { left: 12px; right: 10px; bottom: 11px; gap: .5rem; flex-wrap: wrap; }
  .cat-photo-name { font-size: .95rem; flex-basis: 100%; order: 2; }
  .cat-photo .cat-icon { width: 32px; height: 32px; }
  .cat-photo-go { display: none; }
}

/* ---------- Homepage: "Why SpellJob" as a direction-sign panel ---------- */
.section-why { position: relative; isolation: isolate; background: var(--green-900); }
.section-why::after {
  content: ""; position: absolute; inset: 14px; pointer-events: none; z-index: 0;
  border: 2px solid rgba(255, 255, 255, .5); border-radius: 22px;
}
.section-why .container { position: relative; z-index: 1; }
.section-why .eyebrow { color: var(--signal); }
.section-why .eyebrow::before { border-color: var(--signal); }
.section-why h2 { color: #fff; }
.why-grid {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr));
  border-top: 1px solid rgba(255, 255, 255, .2);
}
.why-grid .feature {
  background: transparent; border: 0; border-radius: 0; padding: 1.9rem 1.6rem 0.5rem;
  border-left: 1px solid rgba(255, 255, 255, .14);
}
.why-grid .feature:first-child { border-left: 0; padding-left: 0; }
.why-grid .feature .cat-icon { width: 48px; height: 48px; border-radius: 12px; background: var(--signal); color: var(--green-900); margin-bottom: 1.1rem; }
.why-grid .feature .cat-icon .icon { width: 24px; height: 24px; }
.why-grid .feature h3 { color: #fff; font-size: 1.22rem; margin-bottom: .5rem; }
.why-grid .feature p { color: #CFE0D8; font-size: 1rem; line-height: 1.6; }
@media (max-width: 960px) {
  .why-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .why-grid .feature { padding: 1.6rem 1.25rem .75rem; }
  .why-grid .feature:nth-child(odd) { border-left: 0; padding-left: 0; }
  .why-grid .feature:nth-child(n+3) { border-top: 1px solid rgba(255, 255, 255, .14); }
}
@media (max-width: 640px) {
  .section-why::after { inset: 8px; border-radius: 16px; }
  .why-grid { grid-template-columns: 1fr; }
  .why-grid .feature { border-left: 0; padding-left: 0; }
  .why-grid .feature + .feature { border-top: 1px solid rgba(255, 255, 255, .14); }
}
@media (max-width: 960px) { .section-why .container { padding-inline: 2.25rem; } }
@media (max-width: 640px) { .section-why .container { padding-inline: 1.6rem; } }


/* ---------- Logo lockup ---------- */
.brand { line-height: 0; }
.brand .logo { display: block; height: 52px; width: auto; aspect-ratio: 166 / 54; overflow: visible; }
.logo-word { font-family: var(--font-display); }
.logo-tag { font-family: var(--font); }
.footer-brand .brand .logo { height: 58px; }
@media (max-width: 640px) { .brand .logo { height: 46px; } }

/* ---------- Footer end: company details + legal bar ---------- */
.footer-company { border-top: 1px solid rgba(255, 255, 255, .08); padding: 1.6rem 0 1.4rem; text-align: center; font-size: .8rem; line-height: 1.6; color: #9bb4a8; }
.footer-company p { margin: 0 auto; max-width: 90ch; }
.footer-company p + p { margin-top: .3rem; }
.footer-company .footer-badges { color: #CFE0D8; margin-bottom: .55rem; }
.footer-company:not(:has(p)) { display: none; }
.footer-bottom { align-items: center; padding: 1.1rem 0 1.5rem; border-top-color: rgba(245, 196, 67, .18); }
.footer-bottom-links { display: flex; flex-wrap: wrap; align-items: center; gap: .4rem 1.4rem; font-size: .84rem; }
.footer-bottom-links .link-btn { font-size: inherit; color: #b4cbc0; }
.footer-bottom-links .link-btn:hover { color: var(--signal); }
.footer-copy { margin: 0; font-size: .8rem; color: #9bb4a8; }
@media (max-width: 760px) {
  .footer-bottom { flex-direction: column; align-items: center; text-align: center; }
  .footer-bottom-links { justify-content: center; gap: .4rem 1.1rem; }
}

/* ---------- Centred section headings (homepage) ---------- */
.section-head.section-head-center { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 0; max-width: 46rem; margin: 0 auto 2.5rem; }
.section-head-center .eyebrow {
  margin-bottom: .9rem; padding: .32rem .85rem .32rem .75rem; border-radius: 999px;
  background: var(--fern-50, #E3F0EA); border: 1px solid rgba(19, 122, 92, .18); font-size: .88rem;
}
.section-head-center h2 { max-width: 24ch; font-size: clamp(1.7rem, 1.2rem + 1.7vw, 2.35rem); line-height: 1.15; letter-spacing: -.02em; }
.section-head-center h2::after { content: ""; display: block; width: 56px; height: 4px; margin: 1rem auto 0; border-radius: 4px; background: var(--signal); }
.section-head-center p { margin: 1rem auto 0; max-width: 56ch; font-size: 1.05rem; line-height: 1.6; }
.section-why .section-head-center .eyebrow { background: rgba(245, 196, 67, .1); border-color: rgba(245, 196, 67, .35); }
.section-foot { display: flex; justify-content: center; margin-top: 2.25rem; }
@media (max-width: 640px) { .section-head.section-head-center { margin-bottom: 1.75rem; } .section-foot { margin-top: 1.5rem; } }

/* ---------- Homepage: locations ---------- */
.section-locations { padding-top: 3.5rem; padding-bottom: 3.5rem; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-locations .section-head-center { margin-bottom: 2rem; }
.section-locations .country-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1rem; }
.section-locations .country-card {
  gap: .9rem; padding: 1rem 1.1rem; background: var(--canvas); border: 1px solid transparent; border-radius: 14px;
  transition: background .2s, border-color .2s, box-shadow .2s, transform .2s;
}
.country-card-flag { flex-shrink: 0; width: 44px; height: 44px; border-radius: 50%; background: #fff; display: grid; place-items: center; box-shadow: 0 1px 3px rgba(6, 38, 30, .12); }
.country-card-flag .flag { width: 26px; height: 19.5px; border-radius: 3px; box-shadow: 0 0 0 1px rgba(6, 38, 30, .08); }
.country-card-text { display: flex; flex-direction: column; min-width: 0; line-height: 1.25; }
.country-card-name { font-size: 1.02rem; color: var(--green-900); }
.country-card-sub { font-family: var(--font); font-weight: 400; font-size: .85rem; color: var(--muted); margin-top: .15rem; }
.country-card-go { margin-left: auto; flex-shrink: 0; width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; color: var(--green-900); background: #fff; transition: background .2s, color .2s, transform .2s; }
.country-card-go .icon { width: 16px; height: 16px; }
.section-locations .country-card:hover { background: #fff; border-color: var(--fern-500); box-shadow: 0 6px 18px rgba(6, 38, 30, .08); transform: translateY(-2px); }
.section-locations .country-card:hover .country-card-go { background: var(--signal); color: var(--ink); transform: translateX(2px); }
.section-locations .section-foot { margin-top: 1.75rem; }
.section-cta { padding-top: 3.5rem; }
@media (max-width: 1024px) { .section-locations .country-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 520px) { .section-locations .country-grid { grid-template-columns: 1fr; gap: .65rem; } .section-locations, .section-cta { padding-top: 2.5rem; padding-bottom: 2.5rem; } }
@media (prefers-reduced-motion: reduce) { .section-locations .country-card, .country-card-go { transition: none; } .section-locations .country-card:hover { transform: none; } }

/* ---------- Sign in / register / password pages: single centred card ---------- */
.auth-wrap {
  min-height: calc(100vh - var(--header-h) - 120px); padding: 3.5rem 1.25rem 4rem; align-items: start;
  background: radial-gradient(1200px 380px at 50% -120px, rgba(19, 122, 92, .10), transparent 70%), var(--canvas);
}
.auth-card { position: relative; overflow: hidden; max-width: 480px; padding-top: 4.4rem; border: 1px solid var(--line); box-shadow: 0 18px 48px -18px rgba(6, 38, 30, .22), 0 2px 6px rgba(6, 38, 30, .05); }
.auth-card::before { content: ""; position: absolute; inset: 0 0 auto; height: 4px; background: linear-gradient(90deg, var(--green-900), var(--fern-600) 55%, var(--signal)); }
.auth-card::after { content: ""; position: absolute; top: 1.6rem; left: 50%; width: 30px; height: 30px; transform: translateX(-50%); background: url("/favicon.svg") center / contain no-repeat; }
.auth-card h1 { text-align: center; font-size: 1.65rem; letter-spacing: -.015em; margin-bottom: .5rem; }
.auth-card h1 + .muted { text-align: center; margin-bottom: 1.6rem; }
.auth-card .auth-switch { margin-bottom: 1.4rem; }
.auth-card .divider-text { margin: 1.4rem 0 1rem; }
.auth-card form .btn-block { margin-top: .4rem; }
@media (max-width: 520px) { .auth-wrap { padding: 1.5rem .75rem 2.5rem; } .auth-card { padding-top: 4rem; } }

/* ---------- Single-column form pages (job alerts, upload CV) ---------- */
.form-page { max-width: 820px; margin: 0 auto; }
.form-page > .card, .form-page > div > .card { box-shadow: 0 14px 40px -20px rgba(6, 38, 30, .2); }
fieldset.field { border: 0; margin: 0; padding: 0; min-width: 0; }
fieldset.field > legend { padding: 0; margin-bottom: .45rem; color: var(--green-900); }

/* ---------- Contact page: email only ---------- */
.contact-page { max-width: 820px; margin: 0 auto; }
.contact-email { position: relative; overflow: hidden; text-align: center; padding: 2.75rem 2rem 2.25rem; box-shadow: 0 14px 40px -20px rgba(6, 38, 30, .22); }
.contact-email::before { content: ""; position: absolute; inset: 0 0 auto; height: 4px; background: linear-gradient(90deg, var(--green-900), var(--fern-600) 55%, var(--signal)); }
.contact-email-icon { width: 56px; height: 56px; margin: 0 auto 1rem; border-radius: 50%; display: grid; place-items: center; background: var(--fern-50); color: var(--green-900); }
.contact-email-icon .icon { width: 26px; height: 26px; }
.contact-email h2 { font-size: clamp(1.4rem, 1.2rem + .8vw, 1.75rem); margin-bottom: .5rem; }
.contact-email > p.muted { max-width: 52ch; margin: 0 auto; }
.contact-email-address { display: inline-block; margin: 1.25rem 0 1.4rem; font-family: var(--font-display); font-weight: 700; font-size: clamp(1.35rem, 1.1rem + 1.2vw, 1.9rem); color: var(--green-900); text-decoration: none; letter-spacing: -.01em; border-bottom: 3px solid var(--signal); padding-bottom: .1rem; overflow-wrap: anywhere; }
.contact-email-address:hover { color: var(--fern-700); }
.contact-email-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: .75rem; }
.contact-email-note { margin: 1.4rem auto 0; max-width: 60ch; }
@media (max-width: 520px) { .contact-email { padding: 2.25rem 1.25rem 1.75rem; } .contact-email-actions .btn { width: 100%; justify-content: center; } }
.contact-email p.contact-email-note { margin-top: 1.5rem; }

/* Footer brand column */
.footer-brand p.footer-tagline { margin: 1.25rem 0 .35rem; font-family: var(--font-display); font-weight: 700; font-size: 1.04rem; line-height: 1.3; letter-spacing: -.01em; color: #fff; text-wrap: balance; }
.footer-brand p.footer-intro { margin: 0; font-size: .92rem; line-height: 1.55; color: #9bb4a8; }
.footer-brand p.footer-contact { display: flex; flex-direction: column; gap: .1rem; margin: 1.15rem 0 0; padding-top: 1rem; border-top: 1px solid rgba(255, 255, 255, .1); }
.footer-contact-label { font-family: var(--font-display); font-weight: 650; font-size: .85rem; color: var(--signal); }

/* ---------- Confirmation pop-up (auto-closes after 5 seconds) ---------- */
.popup { position: fixed; z-index: 1000; top: calc(var(--header-h) + 1rem); left: 50%; width: min(460px, calc(100vw - 2rem)); transform: translateX(-50%); animation: popup-life 5.3s ease forwards; }
.popup.popup-js { animation: popup-in .3s ease; }
.popup.is-closing { opacity: 0; transform: translate(-50%, -8px); transition: opacity .25s, transform .25s; }
.popup-card { position: relative; overflow: hidden; display: flex; gap: .85rem; align-items: flex-start; padding: 1.05rem 1.1rem 1.2rem; background: #fff; border: 1px solid var(--line); border-left: 4px solid var(--fern-600); border-radius: 14px; box-shadow: 0 22px 48px -16px rgba(6, 38, 30, .35), 0 2px 6px rgba(6, 38, 30, .08); }
.popup-icon { flex-shrink: 0; width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; background: var(--fern-50); color: var(--fern-600); }
.popup-icon .icon { width: 22px; height: 22px; }
.popup-text { min-width: 0; padding-top: .1rem; }
.popup-title { margin: 0; font-family: var(--font-display); font-weight: 700; font-size: 1.05rem; color: var(--green-900); }
.popup-message { margin: .25rem 0 0; font-size: .92rem; line-height: 1.5; color: var(--muted); overflow-wrap: anywhere; }
.popup-close { flex-shrink: 0; margin: -.25rem -.35rem 0 auto; width: 32px; height: 32px; border: 0; border-radius: 50%; background: transparent; color: var(--muted); display: grid; place-items: center; cursor: pointer; }
.popup-close:hover { background: var(--canvas); color: var(--green-900); }
.popup-close .icon { width: 18px; height: 18px; }
.popup-timer { position: absolute; left: 0; bottom: 0; height: 3px; width: 100%; background: linear-gradient(90deg, var(--fern-600), var(--signal)); transform-origin: left; animation: popup-timer 5s linear forwards; }
.popup:hover .popup-timer, .popup:focus-within .popup-timer { animation-play-state: paused; }
@keyframes popup-in { from { opacity: 0; transform: translate(-50%, -10px); } to { opacity: 1; transform: translate(-50%, 0); } }
@keyframes popup-timer { from { transform: scaleX(1); } to { transform: scaleX(0); } }
/* Without JavaScript: show for 5 seconds, then fade away */
@keyframes popup-life { 0% { opacity: 0; transform: translate(-50%, -10px); } 6%, 94% { opacity: 1; transform: translate(-50%, 0); } 100% { opacity: 0; visibility: hidden; transform: translate(-50%, -8px); } }
.footer-brand p.footer-tagline { font-size: 1.22rem; line-height: 1.25; margin-bottom: .55rem; }
.footer-brand p.footer-tagline span, .footer-brand p.footer-intro span { display: block; }
/* Description and contact share the description's width, so the divider matches the text */
.footer-brand-text { width: max-content; max-width: 100%; margin-top: 1.25rem; }

/* Desktop header: logo left, menu centred on the page, account buttons right */
@media (min-width: 1061px) {
  .header-inner { display: grid; grid-template-columns: 1fr auto 1fr; gap: 1.5rem; }
  .header-inner > .brand { justify-self: start; }
  .header-inner > .main-nav { flex: none; justify-self: center; }
  .header-inner > .header-actions { justify-self: end; margin-left: 0; }
}
