/* ==========================================================================
   Urban Forest Park — National Climate, Forestry, ESG & Geospatial
   Career Registry (India)
   styles/jobs.css — institutional design system for index.html

   Light  : cool slate canvas (#F8FAFC), white cards, slate ink,
            deep forest accents (#065F46), 1px structural borders.
   Night  : deep ink canvas (#0B0F17), elevated slate cards
            (#111827), off-white ink, muted steel borders (#1E293B),
            luminous emerald accents (#34D399).
   ========================================================================== */

/* ---------- 1. Design tokens ---------- */
:root {
  color-scheme: light;

  --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-mono: 'IBM Plex Mono', ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;

  --bg: #F8FAFC;
  --bg-2: #F1F5F9;
  --card: #FFFFFF;

  --ink: #0F172A;
  --ink-2: #334155;
  --ink-3: #475569;
  --ink-4: #475569;

  --border: #E2E8F0;
  --border-2: #CBD5E1;
  /* Semantic aliases used by the registry freshness badge. */
  --border-color: var(--border);
  --card-bg: var(--card);

  --accent: #065F46;
  --accent-2: #044637;
  --accent-ink: #FFFFFF;
  --accent-soft: #ECFDF5;
  --accent-soft-2: #D1FAE5;

  --emerald: #10B981;
  --emerald-soft: #D1FAE5;

  --header-bg: rgba(248, 250, 252, 0.88);

  --amber-bg: #FFFBEB;
  --amber-border: #F59E0B;
  --amber-ink: #92400E;

  --shadow-card: 0 1px 2px rgba(15, 23, 42, 0.04), 0 10px 26px -20px rgba(15, 23, 42, 0.22);
  --shadow-pop: 0 18px 44px -18px rgba(15, 23, 42, 0.32);

  --footer-bg: #0D1F17;
  --footer-ink: #E8F0EC;
  --footer-ink-2: #9FB6AB;
  --footer-line: rgba(232, 240, 236, 0.14);

  --r-xs: 4px;
  --r-sm: 6px;
  --r: 10px;
  --r-lg: 14px;

  --maxw: 1240px;
  --maxw-narrow: 900px;

  /* Sector identity (light) */
  --cat-academic-ink: #6D28D9; --cat-academic-bg: #F5F3FF;
  --cat-research-ink: #0F766E; --cat-research-bg: #F0FDFA;
  --cat-forestry-ink: #15803D; --cat-forestry-bg: #F0FDF4;
  --cat-esg-ink: #B45309;      --cat-esg-bg: #FFFBEB;
  --cat-gis-ink: #1D4ED8;      --cat-gis-bg: #EFF6FF;
  --cat-policy-ink: #0E7490;   --cat-policy-bg: #ECFEFF;
}

[data-theme="dark"] {
  color-scheme: dark;

  --bg: #0B0F17;
  --bg-2: #0F1522;
  --card: #111827;

  --ink: #F1F5F9;
  --ink-2: #CBD5E1;
  --ink-3: #94A3B8;
  --ink-4: #64748B;

  --border: #1E293B;
  --border-2: #334155;

  --accent: #34D399;
  --accent-2: #10B981;
  --accent-ink: #052E1F;
  --accent-soft: rgba(16, 185, 129, 0.10);
  --accent-soft-2: rgba(16, 185, 129, 0.20);

  --emerald: #34D399;
  --emerald-soft: rgba(16, 185, 129, 0.16);

  --header-bg: rgba(11, 15, 23, 0.88);

  --amber-bg: rgba(245, 158, 11, 0.10);
  --amber-border: #B45309;
  --amber-ink: #FCD34D;

  --shadow-card: 0 1px 2px rgba(0, 0, 0, 0.35), 0 12px 30px -22px rgba(0, 0, 0, 0.65);
  --shadow-pop: 0 22px 54px -20px rgba(0, 0, 0, 0.7);

  --footer-bg: #0B0F17;
  --footer-ink: #E2E8F0;
  --footer-ink-2: #7E8CA0;
  --footer-line: rgba(148, 163, 184, 0.18);

  /* Sector identity (night) */
  --cat-academic-ink: #C4B5FD; --cat-academic-bg: rgba(124, 58, 237, 0.16);
  --cat-research-ink: #5EEAD4; --cat-research-bg: rgba(13, 148, 136, 0.14);
  --cat-forestry-ink: #86EFAC; --cat-forestry-bg: rgba(22, 163, 74, 0.14);
  --cat-esg-ink: #FCD34D;      --cat-esg-bg: rgba(217, 119, 6, 0.14);
  --cat-gis-ink: #93C5FD;      --cat-gis-bg: rgba(37, 99, 235, 0.16);
  --cat-policy-ink: #67E8F9;   --cat-policy-bg: rgba(8, 145, 178, 0.16);
}

/* ---------- 2. Base ---------- */
*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font);
  font-size: 15px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  transition: background-color 0.25s ease, color 0.25s ease;
}

img, svg { vertical-align: middle; }
a { color: var(--accent); }

.hidden { display: none !important; }

.mono-note {
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.02em;
  color: var(--ink-3);
}

.eyebrow {
  display: inline-block;
  margin: 0 0 6px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--ink-3);
}

/* Smooth theme switching on the surfaces that change colour */
.site-header, .site-footer, .job-card, .filter-card, .tel-card, .hero,
.seg-tabs, .seg-tab, .cat-pill, .range-seg, .range-btn, .detail-card,
.suggest-card, .modal-card, .ad-slot, .seo-directory, input, select,
textarea, .share-btn, .btn {
  transition: background-color 0.22s ease, border-color 0.22s ease, color 0.22s ease;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}

/* ---------- 3. Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 16px;
  border-radius: 8px;
  border: 1px solid transparent;
  font-family: var(--font);
  font-size: 13.5px;
  font-weight: 600;
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
  white-space: nowrap;
}
.btn:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

.btn-primary { background: var(--accent); color: var(--accent-ink); }
.btn-primary:hover { background: var(--accent-2); }

.btn-outline {
  background: transparent;
  border-color: var(--border-2);
  color: var(--ink);
}
.btn-outline:hover { border-color: var(--accent); color: var(--accent); }

.btn-ghost {
  background: transparent;
  border-color: var(--border);
  color: var(--ink-2);
}
.btn-ghost:hover { background: var(--bg-2); border-color: var(--border-2); color: var(--ink); }

/* ---------- 4. Header ---------- */
.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 200;
  background: var(--accent);
  color: var(--accent-ink);
  padding: 10px 16px;
  border-radius: 0 0 8px 0;
  font-weight: 600;
  text-decoration: none;
}
.skip-link:focus { left: 0; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  background: var(--header-bg);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 14px 20px;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 10px;
}
.brand { display: flex; align-items: center; justify-content: center; gap: 10px; text-align: center; }
.site-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  flex-wrap: wrap;
}
.header-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-left: 0;
  flex-wrap: wrap;
}

.brand {
  display: block;
  text-decoration: none;
  flex: 0 1 auto;
  min-width: 0;
  overflow: hidden;
}
.brand-word {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  font-size: 16px;
  font-weight: 800;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--ink);
  line-height: 1.25;
  white-space: nowrap;
}
.brand-sub {
  display: block;
  margin-top: 1px;
  max-width: 420px;
  font-size: 9.5px;
  font-weight: 600;
  letter-spacing: 0.05em;
  color: var(--ink-3);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-left: auto;
}

.theme-toggle {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 8px 12px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--card);
  color: var(--ink-2);
  font-family: var(--font);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
}
.theme-toggle:hover { border-color: var(--accent); color: var(--accent); }
.theme-toggle .theme-label { white-space: nowrap; }
.theme-toggle .icon-sun { display: none; }
[data-theme="dark"] .theme-toggle .icon-sun { display: inline; }
[data-theme="dark"] .theme-toggle .icon-moon { display: none; }

.nav-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  padding: 8px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--card);
  color: var(--ink);
  cursor: pointer;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 2px;
}

.nav-link {
  padding: 7px 10px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
  color: var(--ink-2);
  text-decoration: none;
  white-space: nowrap;
}
.nav-link:hover { color: var(--accent); background: var(--accent-soft); }
.nav-link.active { color: var(--accent); }

.live-tool-badge {
  display: inline-block;
  margin-left: 5px;
  padding: 2px 7px;
  border: 1px solid var(--emerald);
  border-radius: 999px;
  font-family: var(--font-mono);
  font-size: 9.5px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent);
  background: var(--accent-soft);
}

.nav-cta { padding: 8px 13px; font-size: 12.5px; }

/* ---------- 5. Weekly hiring telemetry ---------- */
.telemetry-band {
  background: var(--bg-2);
  border-bottom: 1px solid var(--border);
}
.telemetry-inner {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 18px 20px 20px;
}
.telemetry-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 12px;
}
.telemetry-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}
.tel-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-top: 2px solid var(--accent);
  border-radius: var(--r);
  padding: 13px 15px 12px;
  display: flex;
  flex-direction: column;
  gap: 3px;
  box-shadow: var(--shadow-card);
}
.tel-label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-3);
  line-height: 1.45;
}
.tel-value {
  font-family: var(--font-mono);
  font-size: 27px;
  font-weight: 600;
  color: var(--ink);
  line-height: 1.15;
}
.tel-note { font-size: 11.5px; color: var(--ink-4); }

.pulse {
  flex: none;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--emerald);
  animation: ufp-pulse 2s ease-out infinite;
}
@keyframes ufp-pulse {
  0%   { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.45); }
  70%  { box-shadow: 0 0 0 8px rgba(16, 185, 129, 0); }
  100% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
}

/* ---------- 6. Hero ---------- */
.hero { padding: 46px 0 34px; }
.hero-inner {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 20px;
}
.hero-kicker {
  margin: 0 0 12px;
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--accent);
}
.hero h1 {
  margin: 0;
  max-width: 880px;
  font-size: clamp(29px, 4.4vw, 44px);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.13;
  color: var(--ink);
}
.hero h1 .accent { color: var(--accent); }
.hero-sub {
  margin: 18px 0 0;
  max-width: 780px;
  font-size: 15.5px;
  line-height: 1.7;
  color: var(--ink-2);
}
.hero-sub strong { color: var(--ink); font-weight: 600; }
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 24px;
}

/* ---------- 6b. Hero instant search (right side of the masthead row) ----------
   Neumorphic soft-surface search adapted for the institutional palette:
   gradient frame, recessed field, emerald action button. Searches the whole
   registry live (active + archived, India + Global) and opens the
   recommendations dropdown anchored under the bar. */
.hero-head-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}
.hero-head-copy { flex: 1 1 auto; min-width: 0; }
.hero-search {
  position: relative;
  flex: 0 0 372px;
  width: 372px;
  margin-top: 6px;
}
.hs-form { margin: 0; }
.hs-label {
  display: block;
  margin: 0 0 8px 2px;
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  background: linear-gradient(45deg, var(--accent), var(--ink-3));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: var(--accent);
}
.hs-box {
  display: flex;
  align-items: stretch;
  gap: 6px;
  padding: 4px;
  border-radius: var(--r-lg);
  background: linear-gradient(-67deg, rgba(6, 95, 70, 0.18), rgba(16, 185, 129, 0.10) 46%, rgba(148, 163, 184, 0.26));
  box-shadow: -2px -2px 6px rgba(255, 255, 255, 0.7), 2px 2px 12px rgba(148, 163, 184, 0.35);
  transition: box-shadow 0.24s ease;
}
.hero-search.hs-open .hs-box,
.hs-box:focus-within {
  box-shadow:
    -2px -2px 6px rgba(255, 255, 255, 0.7),
    2px 2px 12px rgba(16, 185, 129, 0.4),
    0 0 0 3px rgba(16, 185, 129, 0.16);
}
.hs-field {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 1 1 auto;
  min-width: 0;
  padding: 0 12px;
  border-radius: var(--r);
  background: var(--card);
  box-shadow: inset 1px 1px 3px rgba(100, 116, 139, 0.28), inset -2px -2px 4px rgba(255, 255, 255, 0.85);
}
.hs-icon { display: inline-flex; flex: 0 0 auto; color: var(--accent); }
.hs-input {
  flex: 1 1 auto;
  min-width: 0;
  padding: 12px 0;
  border: 0;
  background: transparent;
  font-family: var(--font);
  font-size: 13.5px;
  font-weight: 600;
  color: var(--ink);
  -webkit-appearance: none;
  appearance: none;
}
.hs-input::placeholder { color: var(--ink-4); font-weight: 500; }
.hs-input:focus { outline: none; }
.hs-input::-webkit-search-cancel-button { -webkit-appearance: none; }
.hs-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  flex: 0 0 auto;
  padding: 0 15px;
  border: 0;
  border-radius: var(--r);
  background: var(--accent);
  color: var(--accent-ink);
  font-family: var(--font);
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.14), 0 6px 16px -10px rgba(6, 95, 70, 0.7);
  transition: background 0.2s ease, transform 0.12s ease;
}
.hs-btn:hover { background: var(--accent-2); }
.hs-btn:active { transform: translateY(1px); }
.hs-panel {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  right: 0;
  z-index: 1000;
  max-height: 420px;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 8px;
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  background: var(--card);
  box-shadow: var(--shadow-pop);
  scrollbar-width: thin;
}
.hs-panel[hidden] { display: none; }
.hs-group {
  margin: 8px 6px 6px;
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-4);
}
.hs-group:first-child { margin-top: 4px; }
.hs-group-note {
  font-family: var(--font);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0;
  text-transform: none;
  color: var(--ink-4);
}
.hs-row {
  display: block;
  width: 100%;
  padding: 9px 10px;
  border: 1px solid transparent;
  border-radius: var(--r);
  background: transparent;
  text-align: left;
  cursor: pointer;
  font-family: var(--font);
}
.hs-row:hover,
.hs-row.hs-active { border-color: var(--border); background: var(--bg-2); }
.hs-row-top { display: flex; align-items: center; gap: 8px; }
.hs-title {
  flex: 1 1 auto;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 13.5px;
  font-weight: 700;
  color: var(--ink);
}
.hs-badge {
  flex: 0 0 auto;
  padding: 2px 8px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-family: var(--font-mono);
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: 0.08em;
}
.hs-badge.is-active { background: var(--accent-soft); border-color: var(--accent-soft-2); color: var(--accent); }
.hs-badge.is-archived { background: var(--amber-bg); border-color: rgba(245, 158, 11, 0.35); color: var(--amber-ink); }
.hs-row-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 10px;
  margin-top: 3px;
  font-size: 11.5px;
  color: var(--ink-3);
}
.hs-region { font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.06em; color: var(--ink-4); }
.hs-empty { padding: 14px 12px; font-size: 12.5px; color: var(--ink-3); }
.hs-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: 8px;
  padding: 9px 6px 3px;
  border-top: 1px solid var(--border);
  font-size: 12px;
  color: var(--ink-3);
}
.hs-foot-btn {
  border: 1px solid var(--border-2);
  border-radius: 999px;
  background: transparent;
  color: var(--accent);
  font-family: var(--font);
  font-size: 12px;
  font-weight: 700;
  padding: 6px 11px;
  cursor: pointer;
  white-space: nowrap;
}
.hs-foot-btn:hover { border-color: var(--accent); background: var(--accent-soft); }
[data-theme="dark"] .hs-box {
  background: linear-gradient(-67deg, rgba(16, 185, 129, 0.30), rgba(52, 211, 153, 0.12) 46%, rgba(30, 41, 59, 0.9));
  box-shadow: -2px -2px 6px rgba(0, 0, 0, 0.45), 2px 2px 12px rgba(0, 0, 0, 0.5);
}
[data-theme="dark"] .hero-search.hs-open .hs-box,
[data-theme="dark"] .hs-box:focus-within {
  box-shadow:
    -2px -2px 6px rgba(0, 0, 0, 0.45),
    2px 2px 12px rgba(16, 185, 129, 0.35),
    0 0 0 3px rgba(16, 185, 129, 0.2);
}
[data-theme="dark"] .hs-field {
  box-shadow: inset 1px 1px 3px rgba(0, 0, 0, 0.55), inset -2px -2px 4px rgba(255, 255, 255, 0.05);
}
@media (max-width: 980px) {
  .hero-head-row { flex-direction: column; align-items: stretch; gap: 18px; }
  .hero-search { flex: 1 1 auto; width: 100%; margin-top: 2px; }
  .hs-panel { max-height: 380px; }
}
@media (max-width: 640px) {
  .hs-btn span { display: none; }
  .hs-btn { padding: 0 12px; }
}

/* ---------- 7. Active / Archived switcher ---------- */
.tabs-wrap {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 20px;
}
.seg-tabs {
  display: inline-flex;
  border: 1px solid var(--border);
  border-radius: var(--r);
  background: var(--card);
  overflow: hidden;
  box-shadow: var(--shadow-card);
}
.seg-tab {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 18px;
  border: 0;
  border-right: 1px solid var(--border);
  background: transparent;
  color: var(--ink-3);
  font-family: var(--font);
  font-size: 13.5px;
  font-weight: 600;
  cursor: pointer;
}
.seg-tab:last-child { border-right: 0; }
.seg-tab:hover { color: var(--accent); }
.seg-tab.active { background: var(--accent); color: var(--accent-ink); }
.seg-cnt {
  font-family: var(--font-mono);
  font-size: 11.5px;
  font-weight: 600;
  padding: 2px 7px;
  border-radius: 999px;
  background: var(--bg-2);
  color: var(--ink-2);
}
.seg-tab.active .seg-cnt { background: rgba(255, 255, 255, 0.18); color: var(--accent-ink); }
[data-theme="dark"] .seg-tab.active .seg-cnt { background: rgba(5, 46, 31, 0.25); }

/* ---------- 8. Filters ---------- */
.filter-wrap {
  max-width: var(--maxw);
  margin: 16px auto 0;
  padding: 0 20px;
}
#filter-bar, #jobs-feed, #seo-dir-title { scroll-margin-top: 86px; }
.filter-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 18px;
  box-shadow: var(--shadow-card);
}
.filter-row {
  display: grid;
  grid-template-columns: minmax(0, 1.7fr) minmax(0, 0.9fr) minmax(0, 1.25fr) auto;
  gap: 14px;
  align-items: end;
}
.field { min-width: 0; }
.field label {
  display: block;
  margin-bottom: 6px;
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--ink-3);
}
.field input[type="search"],
.field input[type="text"],
.field select,
.form-field input,
.form-field textarea {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--border-2);
  border-radius: 8px;
  background: var(--card);
  color: var(--ink);
  font-family: var(--font);
  font-size: 14px;
}
.field input:focus, .field select:focus,
.form-field input:focus, .form-field textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft-2);
}

.search-box { position: relative; }
.search-box svg {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--ink-4);
  pointer-events: none;
}
.search-box input { padding-left: 37px; }
.search-box input[type="search"] { padding-left: 37px; }

.range-seg {
  display: flex;
  border: 1px solid var(--border-2);
  border-radius: 8px;
  overflow: hidden;
  height: 41px;
}
.range-btn {
  flex: 1;
  padding: 0 10px;
  border: 0;
  border-right: 1px solid var(--border);
  background: transparent;
  color: var(--ink-3);
  font-family: var(--font);
  font-size: 11.5px;
  font-weight: 600;
  cursor: pointer;
}
.range-btn:last-child { border-right: 0; }
.range-btn.active { background: var(--emerald-soft); color: var(--accent); }

.pill-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid var(--border);
}
.cat-pill {
  display: inline-flex;
  align-items: center;
  padding: 7px 13px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--card);
  color: var(--ink-2);
  font-family: var(--font);
  font-size: 12.5px;
  font-weight: 600;
  cursor: pointer;
}
.cat-pill:hover { border-color: var(--accent); color: var(--accent); }
.cat-pill .cnt {
  margin-left: 7px;
  font-family: var(--font-mono);
  font-size: 10.5px;
  color: var(--ink-4);
}
.cat-pill.active { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.cat-pill.active .cnt { color: var(--accent-ink); opacity: 0.8; }

/* Career-track quick filters (position_type based) */
.track-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 7px;
  margin-top: 14px;
  padding-top: 13px;
  border-top: 1px dashed var(--border-2);
}
.track-label {
  margin-right: 3px;
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-4);
}
.track-btn {
  display: inline-flex;
  align-items: center;
  padding: 6px 12px;
  border: 1px solid var(--border-2);
  border-radius: 8px;
  background: var(--bg-2);
  color: var(--ink-2);
  font-family: var(--font);
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
}
.track-btn:hover { border-color: var(--accent); color: var(--accent); }
.track-btn:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.track-btn .cnt { margin-left: 7px; font-family: var(--font-mono); font-size: 10.5px; color: var(--ink-4); }
.track-btn.active { background: var(--ink); border-color: var(--ink); color: var(--bg); }
.track-btn.active .cnt { color: var(--bg); opacity: 0.75; }

/* ---------- 9. Reserved ad slots (no placeholder ever renders) ----------
   The registry shows visitors zero invented sponsorship copy or dashed
   placeholder boxes. If a real AdSense <ins> unit is ever approved, paste
   it inside an .ad-slot container — the wrapper stays collapsed and empty
   by default, and no other styling here paints anything on screen. */
.ad-slot { display: none; }

/* ---------- 10. Feed ---------- */
.feed-wrap {
  max-width: var(--maxw);
  margin: 30px auto 0;
  padding: 0 20px;
}
.feed-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border);
}
.feed-head h2 {
  margin: 0;
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.01em;
  color: var(--ink);
}
.feed-head .eyebrow { margin-bottom: 4px; }
.feed-note { font-family: var(--font-mono); font-size: 11.5px; color: var(--ink-3); }

/* Registry sections (Jobs / Careers portals / Fellowships & programmes).
   Same card language as the rest of the feed; headings span the grid. */
.feed-group-title {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 14px 0 0;
  padding-bottom: 6px;
  border-bottom: 1px solid var(--border);
  font-size: 15px;
  font-weight: 800;
  letter-spacing: 0.01em;
  color: var(--ink);
}
.feed-group-title:first-child { margin-top: 0; }
.feed-group-count {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  color: var(--ink-3);
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 1px 8px;
}

#jobs-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 14px;
}

.job-card {
  display: flex;
  flex-direction: column;
  gap: 9px;
  padding: 18px 18px 14px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-card);
  cursor: pointer;
  content-visibility: auto;
  contain-intrinsic-size: 0 260px;
  transition: border-color 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease,
              background-color 0.22s ease, color 0.22s ease;
}
.job-card:hover {
  border-color: var(--accent);
  box-shadow: var(--shadow-pop);
  transform: translateY(-2px);
}
.job-card:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

.jc-top { display: flex; flex-wrap: wrap; gap: 6px; }

.badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 8px;
  border-radius: var(--r-sm);
  border: 1px solid color-mix(in srgb, currentColor 26%, transparent);
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  white-space: nowrap;
}
.badge-exp { color: var(--ink-2); background: var(--bg-2); }
.badge-state { color: var(--ink-2); background: var(--bg-2); text-transform: none; letter-spacing: 0.01em; font-weight: 600; font-size: 11.5px; }
.badge-archived { color: var(--amber-ink); background: var(--amber-bg); border-color: var(--amber-border); }
.badge-type {
  color: var(--ink-2);
  background: var(--card);
  border: 1px solid var(--border-2);
  text-transform: none;
  letter-spacing: 0.01em;
  font-family: var(--font-mono);
  font-size: 10.5px;
  font-weight: 600;
}

.cat-academic { color: var(--cat-academic-ink); background: var(--cat-academic-bg); }
.cat-research { color: var(--cat-research-ink); background: var(--cat-research-bg); }
.cat-forestry { color: var(--cat-forestry-ink); background: var(--cat-forestry-bg); }
.cat-esg      { color: var(--cat-esg-ink);      background: var(--cat-esg-bg); }
.cat-gis      { color: var(--cat-gis-ink);      background: var(--cat-gis-bg); }
.cat-policy   { color: var(--cat-policy-ink);   background: var(--cat-policy-bg); }
/* Legacy class from before the six-category expansion (old "Climate &
   Sustainability" records merged into the ESG category). */
.cat-climate  { color: var(--cat-esg-ink);      background: var(--cat-esg-bg); }

.jc-title {
  margin: 0;
  font-size: 16.5px;
  font-weight: 700;
  line-height: 1.35;
  color: var(--ink);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.jc-title-link { color: inherit; text-decoration: none; }
.jc-title-link:hover { text-decoration: underline; text-underline-offset: 3px; }
.jc-view { text-decoration: none; }
.jc-org { margin: 0; font-size: 13.5px; font-weight: 600; color: var(--ink-2); }
.jc-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 14px;
  font-size: 12.5px;
  color: var(--ink-3);
}
.jc-meta span { display: inline-flex; align-items: center; gap: 5px; }
.jc-meta svg { color: var(--ink-4); flex: none; }

.jc-eligibility {
  display: flex;
  flex-direction: column;
  gap: 5px;
  padding: 8px 10px;
  border: 1px dashed var(--border-2);
  border-radius: 8px;
  background: var(--bg-2);
}
.jc-elig-item {
  display: block;
  min-width: 0;
  font-size: 12px;
  line-height: 1.5;
  color: var(--ink-3);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.jc-elig-item svg { color: var(--ink-4); margin-right: 6px; vertical-align: -2px; }

.jc-skills { display: flex; flex-wrap: wrap; gap: 6px; }
.skill-chip {
  display: inline-block;
  padding: 3.5px 9px;
  border: 1px solid var(--border);
  border-radius: var(--r-sm);
  background: var(--bg-2);
  color: var(--ink-2);
  font-size: 11.5px;
  font-weight: 500;
}
.skill-chip.more { color: var(--ink-4); background: transparent; border-style: dashed; }

.jc-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: auto;
  padding-top: 11px;
  border-top: 1px solid var(--border);
}
.jc-date { font-family: var(--font-mono); font-size: 11px; color: var(--ink-4); }
.jc-view {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 12.5px;
  font-weight: 700;
  color: var(--accent);
}

.job-card.is-archived .jc-view { color: var(--amber-ink); }

/* Loading & empty states */
.loading-state, .empty-state {
  grid-column: 1 / -1;
  padding: 40px 26px;
  border: 1px dashed var(--border-2);
  border-radius: var(--r-lg);
  background: var(--card);
  text-align: center;
  color: var(--ink-3);
  font-size: 14px;
}
.empty-state h3 { margin: 0 0 8px; font-size: 17px; color: var(--ink); }
.empty-state p { margin: 0 0 6px; }
.empty-state .btn { margin-top: 12px; }
.empty-state code { font-family: var(--font-mono); font-size: 12.5px; }

/* ---------- 11. SEO directory ---------- */
.seo-directory {
  margin-top: 54px;
  padding: 40px 0 46px;
  background: var(--bg-2);
  border-top: 1px solid var(--border);
}
.seo-dir-inner {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 20px;
}
.seo-directory h2 {
  margin: 0 0 8px;
  font-size: 21px;
  font-weight: 800;
  letter-spacing: -0.01em;
  color: var(--ink);
}
.seo-dir-sub { margin: 0 0 22px; max-width: 720px; font-size: 13.5px; color: var(--ink-3); }
.seo-dir-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr);
  gap: 30px;
}
.seo-col h3 {
  margin: 0 0 10px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--border);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-3);
}
.seo-links {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 7px 8px;
}
.seo-links li { display: inline-flex; }
.seo-links a {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 6px 11px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--card);
  color: var(--ink-2);
  font-size: 12.5px;
  font-weight: 600;
  text-decoration: none;
}
.seo-links a:hover { border-color: var(--accent); color: var(--accent); }
.seo-cnt { font-family: var(--font-mono); font-size: 10.5px; color: var(--ink-4); }
.seo-loading { font-size: 13px; color: var(--ink-4); padding: 6px 0; }

/* ---------- 12. Position dossier (detail view) ---------- */
.detail-wrap {
  display: none;
  max-width: var(--maxw-narrow);
  margin: 0 auto;
  padding: 28px 20px 64px;
}
body.view-detail .detail-wrap { display: block; }
body.view-detail #feed-home { display: none; }
body.view-detail .telemetry-band { display: none; }

.detail-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 18px;
}
.back-link {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 13px;
  font-weight: 700;
  color: var(--accent);
  text-decoration: none;
}
.back-link:hover { text-decoration: underline; }

.share-row { display: flex; flex-wrap: wrap; gap: 8px; }
.share-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 8px 13px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--card);
  color: var(--ink-2);
  font-family: var(--font);
  font-size: 12.5px;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
}
.share-btn:hover { border-color: var(--accent); color: var(--accent); }
.share-whatsapp:hover { border-color: #1D9E53; color: #1D9E53; }
.share-linkedin:hover { border-color: #0A66C2; color: #0A66C2; }

.detail-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 30px 32px 28px;
  box-shadow: var(--shadow-card);
}
.detail-kicker { display: flex; flex-wrap: wrap; gap: 7px; margin-bottom: 14px; }
.detail-card h1 {
  margin: 0 0 6px;
  font-size: clamp(22px, 3vw, 28px);
  font-weight: 800;
  letter-spacing: -0.015em;
  line-height: 1.22;
  color: var(--ink);
}
.detail-org { margin: 0 0 14px; font-size: 15px; font-weight: 600; color: var(--ink-2); }
.detail-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--border);
  font-family: var(--font-mono);
  font-size: 11.5px;
  color: var(--ink-3);
}
.detail-meta span { display: inline-flex; align-items: center; gap: 6px; }

.detail-section { margin-top: 24px; }
.detail-section h2 {
  margin: 0 0 10px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-3);
}
.detail-section p { margin: 0; font-size: 15px; line-height: 1.75; color: var(--ink-2); }

.elig-grid { margin: 0; display: grid; gap: 9px; }
.elig-grid > div {
  display: grid;
  grid-template-columns: 190px minmax(0, 1fr);
  gap: 4px 14px;
  padding: 10px 13px;
  border: 1px solid var(--border);
  border-radius: 9px;
  background: var(--bg-2);
}
.elig-grid dt {
  align-self: center;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-4);
}
.elig-grid dd { margin: 0; font-size: 13.5px; line-height: 1.6; color: var(--ink-2); }

.resp-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 9px; }
.resp-list li {
  position: relative;
  padding-left: 21px;
  font-size: 14.5px;
  line-height: 1.65;
  color: var(--ink-2);
}
.resp-list li::before {
  content: "";
  position: absolute;
  left: 3px;
  top: 9px;
  width: 6px;
  height: 6px;
  background: var(--emerald);
  border-radius: 1.5px;
  transform: rotate(45deg);
}

.skills-wrap { display: flex; flex-wrap: wrap; gap: 7px; }
.skills-wrap .skill-chip { font-size: 12.5px; padding: 5px 11px; }

.tip-callout {
  margin-top: 24px;
  padding: 16px 18px;
  border: 1px solid var(--border);
  border-left: 3px solid var(--emerald);
  border-radius: var(--r);
  background: var(--accent-soft);
}
.tip-title {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin-bottom: 6px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
}
.tip-callout p { margin: 0; font-size: 14px; line-height: 1.7; color: var(--ink-2); }

.apply-block { margin-top: 28px; }
.btn-apply {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  padding: 15px 20px;
  border: 1px solid transparent;
  border-radius: var(--r);
  background: var(--accent);
  color: var(--accent-ink);
  font-size: 15px;
  font-weight: 700;
  text-decoration: none;
}
.btn-apply:hover { background: var(--accent-2); }
.btn-apply-closed {
  background: var(--amber-bg);
  border-color: var(--amber-border);
  color: var(--amber-ink);
}
.btn-apply-closed:hover { background: var(--amber-bg); filter: brightness(0.98); }
.apply-note { margin: 10px 0 0; text-align: center; font-size: 12.5px; color: var(--ink-3); }

.detail-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 28px;
  padding-top: 18px;
  border-top: 1px solid var(--border);
}

/* Archived mandate banner */
.archive-banner {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  margin-bottom: 18px;
  padding: 16px 18px;
  border: 1px solid var(--amber-border);
  border-radius: var(--r);
  background: var(--amber-bg);
  color: var(--amber-ink);
}
.archive-flag {
  flex: none;
  padding: 3px 9px;
  border: 1px solid currentColor;
  border-radius: var(--r-xs);
  font-family: var(--font-mono);
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.archive-banner p { margin: 0; font-size: 13.5px; line-height: 1.65; }
.archive-banner strong { font-weight: 700; }

/* Suggestion block: currently active roles in the same sector */
.suggest-block { margin-top: 34px; }
.suggest-block h3 {
  margin: 0 0 12px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-3);
}
.suggest-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 12px;
}
.suggest-card {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 15px 16px;
  border: 1px solid var(--border);
  border-radius: var(--r);
  background: var(--card);
  cursor: pointer;
  box-shadow: var(--shadow-card);
}
.suggest-card:hover { border-color: var(--accent); }
.suggest-card .sc-title { font-size: 14px; font-weight: 700; color: var(--ink); line-height: 1.4; }
.suggest-card .sc-org { font-size: 12.5px; color: var(--ink-3); }
.suggest-card .sc-meta {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--ink-4);
}

/* ---------- 12b. Career pathways band (SEO hub pages) ---------- */
.pathway-band {
  margin-top: 54px;
  padding: 40px 0 44px;
  border-top: 1px solid var(--border);
}
.pathway-inner {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 20px;
}
.pathway-band h2 {
  margin: 0 0 8px;
  font-size: 21px;
  font-weight: 800;
  letter-spacing: -0.01em;
  color: var(--ink);
}
.pathway-sub { margin: 0 0 22px; max-width: 720px; font-size: 13.5px; color: var(--ink-3); }
.pathway-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(212px, 1fr)); gap: 12px; }
.pathway-card {
  display: flex;
  flex-direction: column;
  gap: 7px;
  padding: 16px 16px 14px;
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  background: var(--card);
  text-decoration: none;
  box-shadow: var(--shadow-card);
  transition: border-color 0.18s ease, transform 0.18s ease, box-shadow 0.18s ease;
}
.pathway-card:hover { border-color: var(--accent); transform: translateY(-2px); box-shadow: var(--shadow-pop); }
.pathway-card:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.pathway-kicker {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-4);
}
.pathway-name { font-size: 14.5px; font-weight: 700; line-height: 1.35; color: var(--ink); }
.pathway-desc { font-size: 12.5px; line-height: 1.55; color: var(--ink-3); }
.pathway-go { margin-top: auto; padding-top: 6px; font-size: 12.5px; font-weight: 700; color: var(--accent); }

/* ---------- 12c. Pre-rendered registry snapshot (static SEO block) ---------- */
.seo-prerendered {
  border-top: 1px solid var(--border);
  background: var(--bg-2);
  padding: 40px 0 46px;
}
.seo-pr-inner {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 20px;
}
.seo-prerendered h2 {
  margin: 0 0 8px;
  font-size: 21px;
  font-weight: 800;
  letter-spacing: -0.01em;
  color: var(--ink);
}
.seo-pr-intro { margin: 0 0 20px; max-width: 860px; font-size: 13.5px; line-height: 1.65; color: var(--ink-3); }
.seo-pr-grid { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: 30px; }
.seo-pr-col h3 {
  margin: 0 0 10px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--border);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-3);
}
.seo-pr-list { list-style: none; margin: 0; padding: 0; columns: 2; column-gap: 26px; }
.seo-pr-list li { margin: 0 0 7px; break-inside: avoid; font-size: 12.5px; line-height: 1.5; }
.seo-pr-list a { color: var(--ink-2); text-decoration: none; }
.seo-pr-list a:hover { color: var(--accent); text-decoration: underline; }
.seo-pr-faq-title { margin: 28px 0 0; font-size: 18px; font-weight: 800; letter-spacing: -0.01em; color: var(--ink); }
.seo-pr-faq { margin: 12px 0 0; max-width: 860px; }
.seo-pr-faq dt { margin-top: 14px; font-size: 14px; font-weight: 700; color: var(--ink); }
.seo-pr-faq dt:first-child { margin-top: 0; }
.seo-pr-faq dd { margin: 4px 0 0; font-size: 13px; line-height: 1.65; color: var(--ink-3); }

/* ---------- 13. Footer ---------- */
.site-footer {
  margin-top: 0;
  background: var(--footer-bg);
  color: var(--footer-ink);
}
[data-theme="dark"] .site-footer { border-top: 1px solid var(--border); }

.footer-grid {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 42px 20px 30px;
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) repeat(4, minmax(0, 1fr));
  gap: 28px;
}
.footer-col h3 {
  margin: 0 0 12px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--footer-ink-2);
}
.footer-col p { margin: 0; font-size: 13.5px; line-height: 1.7; color: var(--footer-ink-2); }
.footer-col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.footer-col a {
  color: var(--footer-ink);
  font-size: 13.5px;
  text-decoration: none;
  opacity: 0.92;
}
.footer-col a:hover { color: var(--emerald); opacity: 1; text-decoration: underline; }
.footer-social {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 20px 24px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 18px;
}
.footer-social-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--footer-ink-2);
}
.footer-social-links { display: flex; flex-wrap: wrap; gap: 8px; }
.footer-social-links a {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 7px 12px;
  border: 1px solid var(--footer-line);
  border-radius: 999px;
  color: var(--footer-ink);
  font-size: 12.5px;
  font-weight: 600;
  text-decoration: none;
  transition: border-color 0.12s ease, color 0.12s ease;
}
.footer-social-links a:hover {
  border-color: var(--emerald);
  color: var(--emerald);
  text-decoration: none;
}
.footer-bottom {
  border-top: 1px solid var(--footer-line);
  padding: 16px 20px 22px;
  text-align: center;
  font-size: 12.5px;
  color: var(--footer-ink-2);
}
.footer-bottom .dot { margin: 0 9px; opacity: 0.6; }

/* ---------- 14. Modal & toast ---------- */
.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 90;
  background: rgba(4, 10, 18, 0.55);
  backdrop-filter: blur(3px);
  -webkit-backdrop-filter: blur(3px);
  overflow-y: auto;
  padding: 24px;
}
.modal-card {
  position: relative;
  max-width: 480px;
  margin: 7vh auto 24px;
  padding: 26px 26px 22px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-pop);
}
.modal-card h2 {
  margin: 4px 0 8px;
  font-size: 20px;
  font-weight: 800;
  letter-spacing: -0.01em;
  color: var(--ink);
}
.modal-sub { margin: 0 0 18px; font-size: 13.5px; line-height: 1.65; color: var(--ink-3); }
.modal-close {
  position: absolute;
  top: 12px;
  right: 14px;
  width: 32px;
  height: 32px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: transparent;
  color: var(--ink-3);
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
}
.modal-close:hover { color: var(--ink); border-color: var(--border-2); }

.form-field { margin-bottom: 13px; }
.form-field label {
  display: block;
  margin-bottom: 5px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--ink-3);
}
.form-field textarea { resize: vertical; min-height: 92px; }
.modal-mailto-note { margin: 12px 0 0; font-size: 12.5px; color: var(--ink-3); line-height: 1.6; }

.toast {
  position: fixed;
  left: 50%;
  bottom: 24px;
  transform: translate(-50%, 12px);
  z-index: 120;
  max-width: min(92vw, 420px);
  padding: 11px 17px;
  border-radius: 9px;
  background: var(--ink);
  color: var(--bg);
  font-size: 13.5px;
  font-weight: 600;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.22s ease, transform 0.22s ease;
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* ---------- 15. Responsive ---------- */
@media (max-width: 1080px) {
  .telemetry-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .filter-row { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .filter-row .field-search { grid-column: 1 / -1; }
  .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .seo-pr-grid { grid-template-columns: minmax(0, 1fr); gap: 22px; }
}

@media (max-width: 1279px) {
  .nav-toggle { display: inline-flex; }
  .site-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
    padding: 10px 14px 14px;
    background: var(--card);
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow-pop);
  }
  .site-nav.open { display: flex; }
  .nav-link { padding: 11px 12px; font-size: 14px; }
  .header-inner { position: relative; }
}

@media (max-width: 760px) {
  .hero { padding: 34px 0 26px; }
  .hero-sub { font-size: 14.5px; }
  .filter-row { grid-template-columns: minmax(0, 1fr); }
  #jobs-grid { grid-template-columns: minmax(0, 1fr); }
  .seo-dir-grid { grid-template-columns: minmax(0, 1fr); gap: 24px; }
  .detail-card { padding: 22px 18px 20px; }
  .seg-tabs { display: flex; width: 100%; }
  .seg-tab { flex: 1; justify-content: center; padding: 12px 10px; font-size: 12.5px; }
  .brand-sub { display: none; }
  .telemetry-inner { padding: 14px 20px 18px; }
  .tel-value { font-size: 24px; }
  .footer-grid { grid-template-columns: minmax(0, 1fr); gap: 22px; }
  .elig-grid > div { grid-template-columns: minmax(0, 1fr); }
  .seo-pr-list { columns: 1; }
}

@media (max-width: 560px) {
  .nav-cta { display: none; }
}

@media (max-width: 520px) {
  .telemetry-grid { grid-template-columns: minmax(0, 1fr); }
  .header-inner { padding: 11px 14px; }
  .brand-word { font-size: 14.5px; letter-spacing: 0.13em; }
  .feed-head h2 { font-size: 19px; }
  .detail-topbar { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 430px) {
  .theme-label { display: none; }
}

/* ==========================================================================
   15. Official institution figures, verification card & community blocks
   ========================================================================== */

/* ---------- 15a. Square topic / institution-logo figure ---------- */
.job-figure {
  display: flex;
  flex-direction: column;
  margin: 0;
  flex: none;
  border: 1px solid var(--border-2);
  border-radius: 12px;
  overflow: hidden;
  background: var(--card);
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.06), 0 10px 22px -18px rgba(15, 23, 42, 0.35);
}
.job-figure--card { width: 56px; height: 56px; }
.job-figure--detail { width: 116px; height: 116px; }

.fig-media {
  position: relative;
  flex: 1;
  min-height: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-2);
  padding: 3px;
}
.job-figure .fig-logo {
  width: 80%;
  height: 80%;
  object-fit: contain;
  display: block;
}
.job-figure .fig-emblem {
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  line-height: 1;
  color: var(--cat-policy-ink);
}
.job-figure.fig-fallback .fig-emblem { display: flex; }
.job-figure.fig-fallback .fig-logo { display: none; }
.job-figure--card .fig-emblem svg { width: 20px; height: 20px; }
.job-figure--detail .fig-emblem svg { width: 44px; height: 44px; }
.job-figure--card .fig-emblem { gap: 1px; }
.fig-monogram {
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.job-figure--card .fig-monogram { font-size: 7px; }
.job-figure--detail .fig-monogram { font-size: 12px; margin-top: 3px; }

.fig-strip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 4px;
  padding: 3px 5px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  line-height: 1.2;
  background: var(--cat-policy-ink);
  color: #FFFFFF;
}
.job-figure--card .fig-strip { padding: 1.5px 3px; font-size: 6.5px; letter-spacing: 0.04em; }
.job-figure--detail .fig-strip { padding: 4px 7px; font-size: 8.5px; }
.fig-topic { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fig-domain {
  font-family: var(--font-mono);
  font-weight: 700;
  letter-spacing: 0;
  text-transform: none;
  opacity: 0.85;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 0.92em;
}
.job-figure--card .fig-domain { display: none; }

/* Sector tinting of the media area + solid topic strip */
.job-figure.fig-academic .fig-media { background: var(--cat-academic-bg); }
.job-figure.fig-research .fig-media { background: var(--cat-research-bg); }
.job-figure.fig-forestry .fig-media { background: var(--cat-forestry-bg); }
.job-figure.fig-esg .fig-media { background: var(--cat-esg-bg); }
.job-figure.fig-gis .fig-media { background: var(--cat-gis-bg); }
.job-figure.fig-policy .fig-media { background: var(--cat-policy-bg); }
.job-figure.fig-academic .fig-emblem { color: var(--cat-academic-ink); }
.job-figure.fig-research .fig-emblem { color: var(--cat-research-ink); }
.job-figure.fig-forestry .fig-emblem { color: var(--cat-forestry-ink); }
.job-figure.fig-esg .fig-emblem { color: var(--cat-esg-ink); }
.job-figure.fig-gis .fig-emblem { color: var(--cat-gis-ink); }
.job-figure.fig-policy .fig-emblem { color: var(--cat-policy-ink); }
.job-figure.fig-academic .fig-strip { background: var(--cat-academic-ink); }
.job-figure.fig-research .fig-strip { background: var(--cat-research-ink); }
.job-figure.fig-forestry .fig-strip { background: var(--cat-forestry-ink); }
.job-figure.fig-esg .fig-strip { background: var(--cat-esg-ink); }
.job-figure.fig-gis .fig-strip { background: var(--cat-gis-ink); }
.job-figure.fig-policy .fig-strip { background: var(--cat-policy-ink); }

[data-theme="dark"] .job-figure { box-shadow: none; }
[data-theme="dark"] .job-figure .fig-strip { color: inherit; }
[data-theme="dark"] .job-figure.fig-academic .fig-strip { background: var(--cat-academic-bg); color: var(--cat-academic-ink); }
[data-theme="dark"] .job-figure.fig-research .fig-strip { background: var(--cat-research-bg); color: var(--cat-research-ink); }
[data-theme="dark"] .job-figure.fig-forestry .fig-strip { background: var(--cat-forestry-bg); color: var(--cat-forestry-ink); }
[data-theme="dark"] .job-figure.fig-esg .fig-strip { background: var(--cat-esg-bg); color: var(--cat-esg-ink); }
[data-theme="dark"] .job-figure.fig-gis .fig-strip { background: var(--cat-gis-bg); color: var(--cat-gis-ink); }
[data-theme="dark"] .job-figure.fig-policy .fig-strip { background: var(--cat-policy-bg); color: var(--cat-policy-ink); }

/* ---------- 15b. Feed-card layout with the figure on the right ---------- */
.jc-main { display: flex; align-items: flex-start; gap: 12px; }
.jc-main-text { flex: 1; min-width: 0; }

/* ---------- 15c. Dossier header with the figure on the right ---------- */
.detail-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 20px;
  align-items: start;
}
.detail-head-main { min-width: 0; }

@media (max-width: 720px) {
  .detail-head { gap: 14px; }
  .job-figure--detail { width: 84px; height: 84px; }
  .job-figure--detail .fig-emblem svg { width: 30px; height: 30px; }
  .job-figure--detail .fig-monogram { font-size: 9.5px; }
  .job-figure--detail .fig-strip { font-size: 7px; padding: 3px 4px; }
}

/* ---------- 15d. "Get Daily Alerts" community callout (in every dossier) ---------- */
.community-callout {
  margin-top: 24px;
  padding: 16px 18px;
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  background: linear-gradient(135deg, var(--accent-soft) 0%, var(--bg-2) 100%);
  display: grid;
  gap: 12px;
}
.cc-copy { display: grid; gap: 3px; }
.cc-title {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 800;
  color: var(--ink);
  letter-spacing: -0.01em;
}
.cc-title svg { color: var(--accent); flex: none; }
.cc-sub { font-size: 12.5px; line-height: 1.55; color: var(--ink-3); }
.cc-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.cc-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 9px 14px;
  border: 1px solid var(--border-2);
  border-radius: 999px;
  background: var(--card);
  color: var(--ink-2);
  font-size: 12.5px;
  font-weight: 700;
  text-decoration: none;
  transition: transform 0.12s ease, border-color 0.12s ease, background 0.12s ease, color 0.12s ease;
}
.cc-btn svg { flex: none; }
.cc-btn:hover { transform: translateY(-1px); border-color: var(--accent); color: var(--accent); }
.cc-wa { background: #25D366; border-color: #1FB959; color: #073B1E; }
.cc-wa:hover { background: #1FC65C; border-color: #178A44; color: #073B1E; }
.cc-tg { background: #1565c0; border-color: #1255a0; color: #FFFFFF; }
.cc-tg:hover { background: #1357a0; border-color: #1255a0; color: #FFFFFF; }
.cc-li { background: #0A66C2; border-color: #084F96; color: #FFFFFF; }
.cc-li:hover { background: #084F96; border-color: #063D74; color: #FFFFFF; }
.cc-fb { background: #166fe5; border-color: #1460c4; color: #FFFFFF; }
.cc-fb:hover { background: #1460c4; border-color: #1250a0; color: #FFFFFF; }

/* ---------- 15e. Official Verification & Application Portal card ---------- */
.verify-card {
  margin-top: 28px;
  padding: 16px 18px 12px;
  border: 1px solid var(--border-2);
  border-radius: var(--r-lg);
  background: var(--card);
  box-shadow: var(--shadow-card);
}
.verify-card.is-archived { background: var(--amber-bg); border-color: var(--amber-border); }
.verify-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 4px 14px;
  margin-bottom: 12px;
}
.verify-kicker {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-3);
}
.verify-source { font-size: 12px; color: var(--ink-3); }
.verify-source strong { color: var(--accent); font-weight: 800; }
.verify-actions { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 10px; }
.verify-btn {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 3px;
  min-width: 0;
  padding: 13px 16px;
  border: 1px solid transparent;
  border-radius: var(--r);
  text-decoration: none;
  transition: transform 0.12s ease, background 0.12s ease, border-color 0.12s ease;
}
.verify-btn .vb-label {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 14.5px;
  font-weight: 800;
  letter-spacing: -0.01em;
}
.verify-btn .vb-sub {
  font-family: var(--font-mono);
  font-size: 11px;
  opacity: 0.85;
  overflow-wrap: anywhere;
}
.verify-btn-apply { background: var(--accent); color: var(--accent-ink); }
.verify-btn-apply:hover { background: var(--accent-2); transform: translateY(-1px); }
.verify-btn-apply.is-closed { background: var(--amber-bg); border-color: var(--amber-border); color: var(--amber-ink); }
.verify-btn-apply.is-closed:hover { background: var(--amber-bg); filter: brightness(0.98); }
.verify-btn-org { background: var(--bg-2); border-color: var(--border-2); color: var(--ink); }
.verify-btn-org:hover { border-color: var(--accent); color: var(--accent); transform: translateY(-1px); }
.verify-btn-org.is-empty { opacity: 0.72; cursor: default; }
.verify-card .apply-note { margin: 10px 0 0; text-align: left; }
.verify-trust { margin: 10px 0 0; font-size: 12.5px; font-weight: 600; color: var(--ink-2); }
.verify-report { color: var(--accent); text-decoration: underline; }
.verify-report:hover { color: var(--accent-2); }

/* ---------- 15f. Readable inline URL pills inside dossier copy ---------- */
.inline-doc-link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 1px 9px;
  margin: 0 1px;
  border: 1px solid var(--border-2);
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 0.86em;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
  vertical-align: baseline;
}
.inline-doc-link:hover { border-color: var(--accent); background: var(--accent-soft-2); }
[data-theme="dark"] .inline-doc-link { border-color: var(--accent); }

/* ---------- 15g. Top community strip (homepage) ---------- */
.community-strip { padding: 12px 24px 0; }
.cs-inner {
  max-width: var(--maxw);
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 13px 18px;
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  background: linear-gradient(135deg, var(--accent-soft) 0%, var(--bg-2) 100%);
  box-shadow: var(--shadow-card);
}
.cs-copy { display: grid; gap: 2px; min-width: 0; }
.cs-copy strong { font-size: 14.5px; font-weight: 800; letter-spacing: -0.01em; color: var(--ink); }
.cs-copy span { font-size: 12.5px; color: var(--ink-3); }
.cs-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.cs-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 9px 15px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-size: 12.5px;
  font-weight: 700;
  text-decoration: none;
  transition: transform 0.12s ease, filter 0.12s ease;
}
.cs-btn:hover { transform: translateY(-1px); }
.cs-btn svg { flex: none; }
.cs-wa { background: #25D366; color: #073B1E; }
.cs-wa:hover { background: #1FC65C; color: #073B1E; }
.cs-tg { background: #1565c0; color: #FFFFFF; }
.cs-tg:hover { background: #1357a0; color: #FFFFFF; }
.cs-li { background: #0A66C2; color: #FFFFFF; }
.cs-li:hover { background: #084F96; color: #FFFFFF; }
.cs-fb { background: #166fe5; color: #FFFFFF; }
.cs-fb:hover { background: #1460c4; color: #FFFFFF; }

/* ---------- 15h. (footer broadcast copy row removed — moved to the
   discreet internal Syndication Desk drawer, js/syndication-drawer.js) ---------- */

@media (max-width: 720px) {
  .cs-inner { flex-direction: column; align-items: flex-start; }
  .cs-actions { width: 100%; }
}

/* ================= 16. MANDATE DISPATCH (72-HOUR EMAIL BRIEFING) ================= */

/* ---------- 16a. Homepage dispatch band ---------- */
[hidden] { display: none !important; }

.dispatch-band { padding: 34px 24px 10px; }
.dispatch-inner {
  max-width: var(--maxw);
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr);
  gap: 30px;
  align-items: start;
  padding: 30px 30px 28px;
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  background: linear-gradient(140deg, var(--accent-soft) 0%, var(--card) 55%, var(--bg-2) 100%);
  box-shadow: var(--shadow-card);
}
.dispatch-copy, .dispatch-form { min-width: 0; }
.dispatch-copy h2 {
  margin: 6px 0 10px;
  font-size: 26px;
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.2;
  color: var(--ink);
}
.dispatch-sub {
  margin: 0 0 14px;
  max-width: 58ch;
  font-size: 14px;
  line-height: 1.65;
  color: var(--ink-2);
}
.dispatch-points { margin: 0 0 14px; padding-left: 18px; display: grid; gap: 7px; }
.dispatch-points li { font-size: 13px; line-height: 1.55; color: var(--ink-2); }
.dispatch-ledger { margin: 0; font-size: 12.5px; color: var(--ink-3); }
.dispatch-ledger a { color: var(--accent); font-weight: 600; }

.dispatch-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 14px;
  padding: 22px;
  border: 1px solid var(--border);
  border-radius: var(--r);
  background: var(--card);
  box-shadow: var(--shadow-card);
}
.dispatch-form > * { min-width: 0; }
.dispatch-form .df-title {
  margin: 0;
  font-size: 15.5px;
  font-weight: 800;
  letter-spacing: -0.01em;
  color: var(--ink);
}
.dispatch-form .form-field { margin-bottom: 0; }
.dispatch-form .form-field label {
  display: block;
  margin-bottom: 5px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--ink-3);
}
.dispatch-form .form-field input,
.dispatch-form .form-field select {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--border-2);
  border-radius: var(--r-sm);
  background: var(--bg);
  color: var(--ink);
  font: inherit;
  font-size: 13.5px;
}
.dispatch-form .form-field input:focus-visible,
.dispatch-form .form-field select:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 1px;
}
.field-hint {
  display: block;
  margin-top: 5px;
  font-size: 11.5px;
  line-height: 1.45;
  color: var(--ink-3);
}
.df-fieldset { margin: 0; padding: 0; border: 0; min-width: 0; }
.df-fieldset legend {
  padding: 0 0 7px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--ink-3);
}
.df-pills { display: grid; gap: 8px; }
.df-pill {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 10px 12px;
  border: 1px solid var(--border-2);
  border-radius: var(--r-sm);
  font-size: 12.8px;
  font-weight: 600;
  color: var(--ink-2);
  cursor: pointer;
  transition: border-color 0.12s ease, background 0.12s ease, color 0.12s ease;
}
.df-pill:hover { border-color: var(--accent); }
.df-pill input { margin: 0; accent-color: var(--accent); flex: none; }
.df-pill:has(input:checked) { border-color: var(--accent); background: var(--accent-soft); color: var(--accent); }
.dispatch-submit { width: 100%; justify-content: center; white-space: normal; text-align: center; }
.dispatch-micro { margin: 0; font-size: 11.8px; line-height: 1.6; color: var(--ink-3); }
.dispatch-micro a { color: var(--accent); font-weight: 600; }
.dispatch-status { margin: 0; font-size: 12.6px; line-height: 1.55; color: var(--ink-3); }
.dispatch-status:empty { display: none; }
.dispatch-status.is-ok { color: var(--emerald); font-weight: 600; }
.dispatch-status.is-error { color: #DC2626; font-weight: 600; }
[data-theme="dark"] .dispatch-status.is-error { color: #F87171; }

/* Confirmation state (after successful submit or on return visits) */
.dispatch-done {
  display: grid;
  gap: 12px;
  padding: 22px;
  border: 1px solid var(--border);
  border-left: 3px solid var(--emerald);
  border-radius: var(--r);
  background: var(--card);
  box-shadow: var(--shadow-card);
}
.dd-title { margin: 0; font-size: 15px; font-weight: 800; color: var(--ink); }
.dd-meta { margin: 0; display: grid; gap: 8px; }
.dd-meta > div { display: flex; gap: 10px; align-items: baseline; }
.dd-meta dt {
  min-width: 84px;
  font-size: 10.6px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-4);
}
.dd-meta dd { margin: 0; font-size: 13px; font-weight: 600; color: var(--ink-2); overflow-wrap: anywhere; }
.dd-note { margin: 0; font-size: 12.4px; line-height: 1.6; color: var(--ink-3); }
.dd-actions { margin: 0; font-size: 12.6px; color: var(--ink-3); }
.dd-actions a { color: var(--accent); font-weight: 600; }
.dd-sep { color: var(--ink-4); margin: 0 2px; }
.dd-update {
  padding: 0;
  border: 0;
  background: none;
  color: var(--accent);
  font: inherit;
  font-size: 12.6px;
  font-weight: 600;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 2px;
}

/* ---------- 16b. Compact dispatch widget (filter area) ---------- */
.dispatch-mini {
  margin-top: 14px;
  padding: 13px 15px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  border: 1px dashed var(--border-2);
  border-radius: var(--r-sm);
  background: var(--bg-2);
}
.dm-copy { display: grid; gap: 2px; min-width: 0; }
.dm-copy strong { font-size: 12.8px; font-weight: 800; color: var(--ink); }
.dm-copy span { font-size: 11.6px; color: var(--ink-3); }
.dm-form { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.dm-form input {
  min-width: 210px;
  padding: 8px 11px;
  border: 1px solid var(--border-2);
  border-radius: var(--r-sm);
  background: var(--card);
  color: var(--ink);
  font: inherit;
  font-size: 12.6px;
}
.dm-form input:focus-visible { outline: 2px solid var(--accent); outline-offset: 1px; }
.dm-btn { padding: 8px 16px; font-size: 12.4px; }
.dm-status { flex-basis: 100%; }
.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  margin: -1px; padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

@media (max-width: 980px) {
  .dispatch-inner { grid-template-columns: minmax(0, 1fr); padding: 22px; }
}
@media (max-width: 720px) {
  .dispatch-band { padding: 24px 14px 6px; }
  .dm-form { width: 100%; }
  .dm-form input { flex: 1 1 100%; min-width: 0; }
}

/* ================= 17. EXECUTIVE FAQ (PLATFORM GOVERNANCE) ================= */
.exec-faq { padding: 42px 24px 8px; }
.exec-faq-inner { max-width: var(--maxw-narrow); margin: 0 auto; }
.exec-faq-inner h2 {
  margin: 8px 0;
  font-size: 27px;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--ink);
}
.exec-faq-sub {
  margin: 0 0 22px;
  max-width: 74ch;
  font-size: 14px;
  line-height: 1.65;
  color: var(--ink-2);
}
.exec-faq-list { display: grid; gap: 10px; }
.faq-item {
  border: 1px solid var(--border);
  border-radius: var(--r);
  background: var(--card);
  box-shadow: var(--shadow-card);
  overflow: hidden;
}
.faq-item summary {
  display: flex;
  align-items: center;
  gap: 13px;
  padding: 16px 18px;
  cursor: pointer;
  list-style: none;
  font-size: 14.6px;
  font-weight: 700;
  letter-spacing: -0.005em;
  line-height: 1.45;
  color: var(--ink);
  transition: background 0.12s ease;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary:hover { background: var(--bg-2); }
.faq-item summary:focus-visible { outline: 2px solid var(--accent); outline-offset: -2px; }
.faq-num {
  flex: none;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.1em;
  color: var(--accent);
}
.faq-q { flex: 1 1 auto; min-width: 0; }
.faq-chevron { flex: none; color: var(--ink-3); transition: transform 0.18s ease; }
.faq-item[open] .faq-chevron { transform: rotate(180deg); }
.faq-item[open] summary { border-bottom: 1px solid var(--border); background: var(--bg-2); }
.faq-body { padding: 15px 18px 17px 52px; }
.faq-body p { margin: 0; font-size: 13.6px; line-height: 1.72; color: var(--ink-2); }
.faq-body a { color: var(--accent); font-weight: 600; }
.exec-faq-note { margin: 18px 0 0; font-size: 12.4px; line-height: 1.65; color: var(--ink-3); }
.exec-faq-note a { color: var(--accent); font-weight: 600; }
@media (max-width: 720px) {
  .exec-faq { padding: 30px 14px 6px; }
  .faq-body { padding-left: 18px; }
}

/* ================= 18. FOOTER COOKIE-PREFERENCES CONTROL ================= */
.footer-col .footer-link-btn {
  padding: 0;
  border: 0;
  background: none;
  color: var(--footer-ink);
  font-family: inherit;
  font-size: 13.5px;
  font-weight: 400;
  text-align: left;
  text-decoration: none;
  opacity: 0.92;
  cursor: pointer;
  transition: color 0.12s ease, opacity 0.12s ease;
}
.footer-col .footer-link-btn:hover {
  color: var(--emerald);
  opacity: 1;
  text-decoration: underline;
}
.footer-col .footer-link-btn:focus-visible { outline: 2px solid var(--emerald); outline-offset: 2px; }

/* ===================== Bilingual interface (EN | हिंदी) ===================== */
.lang-toggle {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  padding: 3px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--bg-2);
}
.lang-btn {
  appearance: none;
  border: 0;
  background: transparent;
  color: var(--ink-3);
  font-family: var(--font);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  line-height: 1;
  padding: 7px 12px;
  border-radius: 999px;
  cursor: pointer;
  transition: color 0.16s ease, background 0.16s ease, box-shadow 0.16s ease;
}
.lang-btn[lang="hi"] { font-size: 12px; font-weight: 600; letter-spacing: 0; }
.lang-btn:hover:not(.active) { color: var(--ink); background: var(--card); }
.lang-btn.active {
  background: var(--accent);
  color: var(--accent-ink);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.16), 0 1px 2px rgba(15, 23, 42, 0.1);
}
html[data-theme="dark"] .lang-btn.active { box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08); }
.lang-btn:focus-visible { outline: 2px solid var(--accent); outline-offset: 1px; }
html[data-lang="hi"] body,
html[data-lang="hi"] .brand-sub,
html[data-lang="hi"] button,
html[data-lang="hi"] input,
html[data-lang="hi"] select,
html[data-lang="hi"] textarea {
  font-family: 'Inter', 'Noto Sans Devanagari', system-ui, -apple-system, 'Segoe UI', sans-serif;
}
.detail-title-en,
.jc-title-en {
  margin: 2px 0 0;
  font-size: 12.5px;
  font-weight: 500;
  color: #475569;
}
html[data-theme="dark"] .detail-title-en,
html[data-theme="dark"] .jc-title-en {
  color: #94a3b8;
}
.detail-section-hi {
  border-left: 3px solid #14532d;
  padding-left: 14px;
}
html[data-theme="dark"] .detail-section-hi {
  border-left-color: #34d399;
}
@media (max-width: 640px) {
  .lang-btn { padding: 6px 10px; }
}
/* end ufp-i18n-bilingual */

/* ==========================================================================
   Urban Forest Park upgrade block
   : red emblem logo, jurisdiction switcher, opportunity-kind badges &
   deadlines, PWA app/alert widget, LinkedIn roundup button.
   ========================================================================== */

/* ---------- Circular brand emblem (soothing red, cream tree) ---------- */
.ufp-header-logo {
  display: inline-block;
  vertical-align: middle;
  float: left;
  width: 48px;
  height: 48px;
  min-width: 48px;
  min-height: 48px;
  margin-right: 10px;
  border-radius: 50%;
  object-fit: cover;
  border: 1.5px solid rgba(16, 185, 129, 0.35);
  background: #FFFDF9;
}
@media (max-width: 640px) {
  .ufp-header-logo { width: 40px; height: 40px; min-width: 40px; min-height: 40px; margin-right: 10px; }
}

/* ---------- Jurisdiction switcher (header + hero) ---------- */
.jurisdiction-switch {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: stretch;
}
.js-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border: 1px solid var(--border-2);
  border-radius: 999px;
  background: var(--card);
  color: var(--ink-2);
  font-family: var(--font);
  font-size: 12.5px;
  font-weight: 700;
  line-height: 1.25;
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s, color 0.15s, box-shadow 0.15s;
}
.js-pill:hover { border-color: var(--accent); color: var(--ink); }
.js-pill.active {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--accent-ink);
  box-shadow: 0 8px 22px -12px rgba(6, 95, 70, 0.6);
}
.js-pill .js-flag { font-size: 15px; line-height: 1; }

.jurisdiction-switch.hero-js { margin: 20px 0 6px; }
.jurisdiction-switch.hero-js .js-pill {
  padding: 11px 18px;
  border-radius: 14px;
  text-align: left;
}
.js-text { display: grid; gap: 1px; text-align: left; }
.js-text strong { font-size: 13.5px; font-weight: 800; letter-spacing: 0.01em; }
.js-text .js-sub { font-size: 11px; font-weight: 600; opacity: 0.74; }
.js-pill.active .js-text .js-sub { opacity: 0.92; }

/* ---------- Opportunity-kind & global region badges ---------- */
.badge-kind {
  color: #9A3412;
  background: #FFF7ED;
  border-color: #FDBA74;
  text-transform: none;
  letter-spacing: 0.02em;
}
[data-theme="dark"] .badge-kind {
  color: #FDBA74;
  background: rgba(251, 146, 60, 0.12);
  border-color: rgba(251, 146, 60, 0.38);
}
.badge-region {
  color: #0E7490;
  background: #ECFEFF;
  border-color: #A5F3FC;
  text-transform: none;
  letter-spacing: 0.02em;
}
[data-theme="dark"] .badge-region {
  color: #67E8F9;
  background: rgba(34, 211, 238, 0.12);
  border-color: rgba(34, 211, 238, 0.34);
}

/* ---------- Deadline / application window chip on cards ---------- */
.jc-meta .jc-deadline { color: #B45309; font-weight: 700; }
.jc-meta .jc-deadline svg { color: currentColor; }
[data-theme="dark"] .jc-meta .jc-deadline { color: #FBBF24; }

/* ---------- New sector identity colours (grants / scholarships / ...) ---------- */
.cat-grants      { color: #B45309; background: #FFF7ED; }
.cat-scholarship { color: #7C3AED; background: #F5F3FF; }
.cat-fellowship  { color: #BE185D; background: #FDF2F8; }
.cat-internship  { color: #0369A1; background: #F0F9FF; }
.cat-competition { color: #4338CA; background: #EEF2FF; }
[data-theme="dark"] .cat-grants      { color: #FDBA74; background: rgba(251, 146, 60, 0.14); }
[data-theme="dark"] .cat-scholarship { color: #C4B5FD; background: rgba(124, 58, 237, 0.16); }
[data-theme="dark"] .cat-fellowship  { color: #F9A8D4; background: rgba(219, 39, 119, 0.14); }
[data-theme="dark"] .cat-internship  { color: #7DD3FC; background: rgba(3, 105, 161, 0.18); }
[data-theme="dark"] .cat-competition { color: #A5B4FC; background: rgba(67, 56, 202, 0.18); }

/* ---------- (LinkedIn weekly roundup button moved to the internal
   Syndication Desk drawer — see js/syndication-drawer.js) ---------- */

/* ---------- PWA app & instant-alert widget (above the cookie bar) ---------- */
.ufp-app-widget {
  position: fixed;
  right: 18px;
  bottom: 96px;
  z-index: 640;
  width: 334px;
  max-width: calc(100vw - 32px);
  padding: 16px 16px 13px;
  border: 1px solid var(--border-2);
  border-radius: 16px;
  background: var(--card);
  box-shadow: 0 26px 64px -20px rgba(2, 6, 23, 0.5);
  animation: ufpWidgetIn 0.35s ease both;
}
.ufp-app-widget[hidden] { display: none; }
@keyframes ufpWidgetIn {
  from { opacity: 0; transform: translateY(14px); }
  to   { opacity: 1; transform: none; }
}
.uaw-close {
  position: absolute;
  top: 8px;
  right: 10px;
  width: 26px;
  height: 26px;
  border: 0;
  border-radius: 50%;
  background: var(--bg-2);
  color: var(--ink-3);
  font-size: 16px;
  line-height: 1;
  cursor: pointer;
}
.uaw-close:hover { background: var(--border); color: var(--ink); }
.uaw-head { display: flex; gap: 10px; align-items: flex-start; padding-right: 22px; }
.uaw-logo {
  width: 34px;
  height: 34px;
  flex: none;
  border-radius: 50%;
  object-fit: cover;
  border: 1.5px solid rgba(16, 185, 129, 0.35);
  background: #FFFDF9;
}
.uaw-copy { display: grid; gap: 4px; }
.uaw-copy strong { font-size: 13.5px; line-height: 1.3; color: var(--ink); }
.uaw-copy span { font-size: 11.5px; line-height: 1.45; color: var(--ink-3); }
.uaw-actions { display: grid; gap: 8px; margin-top: 12px; }
.uaw-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 10px 12px;
  border: 1px solid transparent;
  border-radius: 10px;
  font-family: var(--font);
  font-size: 12.5px;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.12s, box-shadow 0.12s, background 0.15s, color 0.15s, border-color 0.15s;
}
.uaw-btn:active { transform: translateY(1px); }
.uaw-install { background: var(--accent); color: var(--accent-ink); }
.uaw-install:hover { box-shadow: 0 12px 28px -14px rgba(6, 95, 70, 0.65); }
.uaw-notify { background: var(--card); border-color: var(--border-2); color: var(--ink-2); }
.uaw-notify:hover { border-color: var(--accent); color: var(--accent); }
.uaw-notify.is-on { background: var(--accent-soft); border-color: var(--accent); color: var(--accent); }
.uaw-note { margin: 9px 2px 0; font-size: 11px; line-height: 1.45; color: var(--ink-3); }
.uaw-note:empty { display: none; }

.ufp-app-pill {
  position: fixed;
  right: 18px;
  bottom: 96px;
  z-index: 640;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 10px 15px;
  border: 1px solid var(--border-2);
  border-radius: 999px;
  background: var(--card);
  color: var(--ink-2);
  font-family: var(--font);
  font-size: 12px;
  font-weight: 700;
  box-shadow: 0 14px 34px -16px rgba(2, 6, 23, 0.45);
  cursor: pointer;
}
.ufp-app-pill[hidden] { display: none; }
.ufp-app-pill:hover { border-color: var(--accent); color: var(--accent); }

html.ufp-consent-open .ufp-app-widget,
html.ufp-consent-open .ufp-app-pill { bottom: 112px; }

@media (max-width: 720px) {
  .ufp-app-widget { right: 12px; left: 12px; width: auto; max-width: none; }
  .ufp-app-pill { right: 12px; }
  html.ufp-consent-open .ufp-app-widget,
  html.ufp-consent-open .ufp-app-pill { bottom: 244px; }
}
/* end ufp-upgrade-block */

/* ==========================================================================
   23. INSTITUTIONAL REFINEMENT — executive polish layer
   --------------------------------------------------------------------------
   Appended last on purpose so it layers over the component rules above:
   23a. editorial serif titles + tabular numeric readouts
   23b. refined tabs / pills / buttons (inset light, hover lift)
   23c. arrow micro-interactions on portal, state and footer links
   23d. SVG micro-badges on kind / experience / skill chips
   ========================================================================== */

/* ---------- 23a. Editorial serif titles & numeric readouts ---------- */
:root {
  --font-serif: 'Spectral', 'Iowan Old Style', 'Palatino Linotype', Georgia,
                'Times New Roman', 'Noto Sans Devanagari', serif;
}

.hero h1,
main h1,
main h2 {
  font-family: var(--font-serif);
  letter-spacing: -0.01em;
}
.hero h1 { font-weight: 700; }
main h1, main h2 { font-weight: 600; }

/* Tabular figures for counts, dates and stipend readouts. */
.tel-value,
.tel-note,
.mono-note,
.jc-date,
.jc-deadline,
.seg-cnt,
.cat-pill .cnt,
.hub-stats dd,
.hub-stats dt,
.hub-other-cnt,
.region-cnt,
.region-total,
.jc-meta {
  font-variant-numeric: tabular-nums lining-nums;
}
.tel-value { letter-spacing: -0.025em; }

/* Micro SVG icon beside telemetry labels (markup in index.html). */
.tel-icon {
  flex: none;
  width: 14px;
  height: 14px;
  color: var(--accent);
}

/* ---------- 23b. Refined tabs, pills and buttons ---------- */
.btn {
  transition: transform 0.16s ease, box-shadow 0.16s ease,
              background-color 0.22s ease, border-color 0.22s ease, color 0.22s ease;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.5);
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn-primary {
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.14), 0 4px 14px -9px rgba(6, 95, 70, 0.65);
}
.btn-primary:hover {
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.14), 0 9px 22px -11px rgba(6, 95, 70, 0.75);
}
.btn-outline { background-image: linear-gradient(180deg, rgba(255, 255, 255, 0.6), rgba(255, 255, 255, 0)); }
[data-theme="dark"] .btn { box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06); }
[data-theme="dark"] .btn-primary {
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12), 0 4px 16px -10px rgba(16, 185, 129, 0.7);
}
[data-theme="dark"] .btn-outline {
  background-image: linear-gradient(180deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0));
}

/* Segmented tabs — inset light + soft inner shadow on the active side. */
.seg-tabs { box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.55), var(--shadow-card); }
.seg-tab { transition: color 0.16s ease, background-color 0.2s ease; }
.seg-tab.active { box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.16); }
[data-theme="dark"] .seg-tabs { box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04), var(--shadow-card); }

/* Sector pills — inset light, diamond micro-dot, refined hover. */
.cat-pill {
  padding: 7px 14px 7px 12px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.55);
}
.cat-pill::before {
  content: '';
  flex: none;
  width: 6px;
  height: 6px;
  margin-right: 8px;
  border-radius: 1.5px;
  background: currentColor;
  opacity: 0.38;
  transform: rotate(45deg);
}
.cat-pill:hover::before { opacity: 0.75; }
.cat-pill.active {
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.14), 0 6px 16px -10px rgba(6, 95, 70, 0.55);
}
.cat-pill.active::before { opacity: 1; }
[data-theme="dark"] .cat-pill { box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05); }
[data-theme="dark"] .cat-pill.active { box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.1); }

/* Jurisdiction pills — hover lift + a floating arrow that slides in. */
.js-pill { transition: border-color 0.15s, background 0.15s, color 0.15s, box-shadow 0.15s, transform 0.15s; }
.js-pill:hover { transform: translateY(-1px); }
.js-pill.active:hover { transform: none; }
.jurisdiction-switch .js-pill::after {
  content: '\2192';
  font-size: 11px;
  line-height: 1;
  opacity: 0;
  transform: translateX(-3px);
  transition: opacity 0.16s ease, transform 0.16s ease;
}
.jurisdiction-switch .js-pill:hover::after { opacity: 0.8; transform: translateX(0); }
.jurisdiction-switch .js-pill.active::after { content: none; }

/* Theme toggle — subtle inset light. */
.theme-toggle { box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.5); }
[data-theme="dark"] .theme-toggle { box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05); }

/* ---------- 23c. Arrow micro-interactions ---------- */
/* Registry card CTA: the arrow slides right on card hover / focus. */
.jc-view { transition: color 0.15s ease; }
.jc-view svg { transition: transform 0.18s ease; }
.job-card:hover .jc-view svg,
.job-card:focus-visible .jc-view svg { transform: translateX(4px); }

/* Footer + state + pathway links: a clean arrow etches in on hover. */
.footer-col a,
.region-states a,
.hub-card-foot a {
  display: inline-block;
  transition: transform 0.16s ease, color 0.16s ease;
}
.footer-col a::after,
.region-states a::after {
  content: '\2192';
  display: inline-block;
  margin-left: 6px;
  font-weight: 600;
  opacity: 0;
  transform: translateX(-4px);
  transition: opacity 0.16s ease, transform 0.16s ease;
}
.footer-col a:hover::after,
.region-states a:hover::after { opacity: 0.85; transform: translateX(0); }
.hub-card-foot a:hover { transform: translateX(2px); }

/* ---------- 23d. SVG micro-badges ---------- */
/* Opportunity-kind badge: institutional medal micro-icon. */
.badge-kind::before {
  content: '';
  flex: none;
  width: 10px;
  height: 10px;
  background: currentColor;
  opacity: 0.8;
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='9' r='5.6'/%3E%3Cpath d='M8.7 13.8 7.2 21.5l4.8-2.8 4.8 2.8-1.5-7.7'/%3E%3C/svg%3E");
  -webkit-mask-size: contain;
  -webkit-mask-position: center;
  -webkit-mask-repeat: no-repeat;
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='9' r='5.6'/%3E%3Cpath d='M8.7 13.8 7.2 21.5l4.8-2.8 4.8 2.8-1.5-7.7'/%3E%3C/svg%3E");
  mask-size: contain;
  mask-position: center;
  mask-repeat: no-repeat;
}

/* Experience / qualification badge: verified-shield micro-icon. */
.badge-exp::before {
  content: '';
  flex: none;
  width: 10px;
  height: 10px;
  background: currentColor;
  opacity: 0.7;
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 2.5 20 6v5.2c0 4.9-3.4 8.7-8 10.3-4.6-1.6-8-5.4-8-10.3V6z'/%3E%3Cpath d='m8.6 11.6 2.3 2.3 4.5-4.6'/%3E%3C/svg%3E");
  -webkit-mask-size: contain;
  -webkit-mask-position: center;
  -webkit-mask-repeat: no-repeat;
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 2.5 20 6v5.2c0 4.9-3.4 8.7-8 10.3-4.6-1.6-8-5.4-8-10.3V6z'/%3E%3Cpath d='m8.6 11.6 2.3 2.3 4.5-4.6'/%3E%3C/svg%3E");
  mask-size: contain;
  mask-position: center;
  mask-repeat: no-repeat;
}

/* Skill / qualification chips: a small institutional dot marker. */
.skill-chip::before {
  content: '';
  display: inline-block;
  width: 5px;
  height: 5px;
  margin-right: 6px;
  border-radius: 50%;
  background: var(--accent);
  opacity: 0.45;
  vertical-align: 1px;
}
.skill-chip.more::before { background: var(--ink-4); }
/* end ufp-institutional-refinement */

/* ==========================================================================
   24. MOBILE PHONE OPTIMISATION (360px - 430px)
   --------------------------------------------------------------------------
   A compact, native-feeling phone layout: two-row header, 2x2 telemetry,
   swipeable filter strips, tighter cards and dossier, and room for the
   floating app / cookie / back-to-top controls.
   ========================================================================== */

/* Zero horizontal overflow. `clip` keeps position: sticky working, while
   older engines fall back to hidden. */
html, body { overflow-x: hidden; }
@supports (overflow-x: clip) {
  html, body { overflow-x: clip; }
}

@media (max-width: 768px) {
  /* ---------- 24a. Compact two-row header ---------- */
  .header-inner {
    position: relative;
    flex-wrap: wrap;
    align-items: center;
    padding: 8px 12px;
    gap: 6px;
    row-gap: 6px;
  }
  .brand { flex: 1 1 100%; padding-right: 46px; }
  .ufp-header-logo {
    width: 36px;
    height: 36px;
    min-width: 36px;
    min-height: 36px;
    margin-right: 8px;
    border-width: 1px;
  }
  .brand-word { font-size: 15px; letter-spacing: 0.12em; line-height: 1.2; }
  .brand-sub { display: none; }
  .header-actions {
    flex: 1 1 100%;
    margin-left: 0;
    gap: 6px;
    justify-content: flex-end;
    flex-wrap: wrap;
  }
  .lang-toggle { display: inline-flex; gap: 0; }
  .lang-btn { min-height: 36px; padding: 7px 10px; font-size: 12px; }
  .theme-toggle { min-height: 36px; padding: 7px 11px; font-size: 11px; gap: 5px; }
  .saved-header-btn { min-height: 36px; }
  .nav-cta { display: none; }
  .nav-toggle {
    position: absolute;
    top: 6px;
    right: 10px;
    width: 40px;
    height: 40px;
    padding: 0;
    z-index: 2;
  }
  .site-nav.open { max-height: calc(100vh - 60px); overflow-y: auto; }
  .site-nav .nav-link { min-height: 44px; display: flex; align-items: center; }

  /* ---------- 24b. 2x2 telemetry ribbon ---------- */
  .telemetry-inner { padding: 10px 12px 12px; }
  .telemetry-head { margin-bottom: 8px; gap: 6px; }
  .telemetry-head .eyebrow,
  .telemetry-head .mono-note { font-size: 10px; }
  .telemetry-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .tel-card { padding: 6px 9px; gap: 0; border-radius: 10px; }
  .tel-label { font-size: 11px; line-height: 1.1; letter-spacing: 0.02em; gap: 4px; }
  .tel-icon,
  .tel-card .pulse { display: none; }
  .tel-value { font-size: 18px; line-height: 1.05; }
  .tel-note { display: none; }

  /* ---------- 24c. Single-row swipeable filter strips ---------- */
  .filter-wrap { margin-top: 12px; }
  .filter-card { padding: 12px; border-radius: 12px; }
  .filter-row { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .filter-row .field-search,
  .filter-row .field-wide,
  #archive-range-field { grid-column: 1 / -1; }
  .filter-row .field label { margin-bottom: 4px; font-size: 9.5px; letter-spacing: 0.06em; }
  .filter-row .field input[type="search"] { padding: 9px 10px 9px 36px; font-size: 13px; }
  .filter-row .field select { padding: 9px 10px; font-size: 13px; }
  #clear-filters { width: 100%; }

  /* ---------- 24c-2. Compact hero, jurisdiction cards & community strip ---------- */
  .hero { padding: 22px 0 18px; }
  .hero-inner { padding: 0 12px; }
  .hero-kicker { margin-bottom: 8px; font-size: 10px; letter-spacing: 0.1em; }
  .hero h1 { font-size: 26px; line-height: 1.16; }
  .hero-sub { margin-top: 12px; font-size: 13.5px; line-height: 1.55; }
  .hero-actions {
    margin-top: 14px;
    padding-bottom: 2px;
    gap: 6px;
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }
  .hero-actions::-webkit-scrollbar { display: none; }
  .hero-actions .btn { flex-shrink: 0; padding: 9px 12px; font-size: 12.5px; }
  .jurisdiction-switch.hero-js {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 6px;
    margin: 14px 0 4px;
  }
  .jurisdiction-switch.hero-js .js-pill {
    width: 100%;
    min-height: 40px;
    padding: 8px 10px;
    border-radius: 10px;
    gap: 6px;
  }
  .jurisdiction-switch.hero-js .js-text strong { font-size: 12px; }
  .jurisdiction-switch.hero-js .js-text .js-sub { display: none; }
  .jurisdiction-switch.hero-js .js-flag { font-size: 14px; }

  .community-strip { padding: 8px 12px 0; }
  .cs-inner { padding: 10px 12px; gap: 8px; }
  .cs-copy { gap: 1px; }
  .cs-copy strong { font-size: 13.5px; }
  .cs-copy span { font-size: 11.5px; line-height: 1.4; }
  .cs-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 6px;
    width: 100%;
  }
  .cs-btn { justify-content: center; padding: 7px 10px; font-size: 11.5px; min-height: 44px; }

  .pill-row,
  .track-row {
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    gap: 6px;
    padding-bottom: 4px;
  }
  .pill-row::-webkit-scrollbar,
  .track-row::-webkit-scrollbar { display: none; }
  .pill-row { margin-top: 12px; padding-top: 12px; }
  .track-row { margin-top: 10px; padding-top: 10px; }
  .cat-pill { flex-shrink: 0; padding: 6px 11px 6px 10px; font-size: 12px; }
  .cat-pill::before { width: 5px; height: 5px; margin-right: 6px; }
  .cat-pill .cnt { margin-left: 5px; font-size: 10px; }
  .track-btn { flex-shrink: 0; padding: 6px 11px; font-size: 12px; }
  .track-label { flex-shrink: 0; }

  /* ---------- 24d. Compact feed cards ---------- */
  .feed-wrap { margin-top: 20px; padding: 0 12px; }
  .feed-head { margin-bottom: 12px; padding-bottom: 10px; }
  .feed-head h2 { font-size: 19px; }
  .feed-note { font-size: 10px; }
  #jobs-grid { gap: 10px; }
  .job-card { padding: 12px 14px 10px; gap: 7px; border-radius: 12px; }
  .jc-main { gap: 9px; }
  .jc-title { font-size: 15px; line-height: 1.32; }
  .jc-org { font-size: 12.5px; }
  .jc-top { gap: 4px; }
  .badge { padding: 3px 6px; font-size: 10px; gap: 4px; }
  .badge-state { font-size: 10.5px; }
  .job-card .badge-exp { display: none; }
  .jc-meta { font-size: 11px; gap: 4px 10px; }
  .jc-meta svg { width: 12px; height: 12px; }
  /* The posted date is repeated in the card footer; keeping it in the meta
     row forces a second line on narrow phones. */
  .jc-meta > span:nth-child(2) { display: none; }
  .jc-eligibility { display: none; }
  .jc-skills { max-height: 25px; overflow: hidden; gap: 5px; }
  .skill-chip { padding: 3px 7px; font-size: 10.5px; }
  .jc-foot { padding-top: 8px; }
  .jc-date { font-size: 10px; }
  .jc-view { font-size: 11.5px; }
  .job-figure--card { width: 46px; height: 46px; border-radius: 9px; }
  .job-figure--card .fig-emblem svg { width: 16px; height: 16px; }
  .job-figure--card .fig-monogram { font-size: 5.8px; }
  .job-figure--card .fig-strip { display: none; }

  /* ---------- 24e. Compact dossier ---------- */
  .detail-wrap { padding: 14px 12px 40px; }
  .detail-card { padding: 14px; border-radius: 12px; }
  .detail-topbar { gap: 8px; margin-bottom: 12px; }
  .back-link { font-size: 12.5px; }
  .share-btn { padding: 6px 9px; font-size: 11px; }
  .detail-head { grid-template-columns: minmax(0, 1fr) 64px; gap: 10px; }
  .detail-card h1 { font-size: 20px; line-height: 1.24; }
  .detail-org { margin-bottom: 10px; font-size: 13.5px; }
  .detail-meta { padding-bottom: 14px; font-size: 10.5px; gap: 6px 12px; }
  .detail-head-main,
  .detail-kicker { min-width: 0; }
  .detail-kicker { margin-bottom: 10px; gap: 5px; }
  .detail-kicker .badge { max-width: 100%; white-space: normal; overflow-wrap: anywhere; }
  .detail-section { margin-top: 20px; }
  .detail-section p { font-size: 14px; line-height: 1.65; }
  .job-figure--detail { width: 64px; height: 64px; border-radius: 10px; }
  .job-figure--detail .fig-emblem svg { width: 24px; height: 24px; }
  .job-figure--detail .fig-monogram { margin-top: 2px; font-size: 8px; }
  .job-figure--detail .fig-strip { display: none; }
  .elig-grid > div { padding: 8px 10px; }
  .elig-grid dt { font-size: 10px; }
  .elig-grid dd { font-size: 12.5px; overflow-wrap: anywhere; }
  .verify-card { margin-top: 20px; padding: 12px; }
  .verify-actions { grid-template-columns: minmax(0, 1fr); gap: 8px; }
  .verify-btn {
    width: 100%;
    min-height: 42px;
    padding: 10px 12px;
    justify-content: center;
  }
  .verify-btn .vb-label { font-size: 13.5px; }
  .btn-apply { min-height: 42px; padding: 11px 14px; font-size: 13.5px; }
  .community-callout { padding: 12px; }
  .cc-btn { flex: 1 1 auto; justify-content: center; }

  /* ---------- 24f. PWA widget: mini-pill docks at bottom-right ---------- */
  .ufp-app-widget {
    right: 12px;
    left: auto;
    bottom: 14px;
    width: 300px;
    max-width: calc(100vw - 24px);
    padding: 12px 14px 11px;
    border-radius: 14px;
  }
  .ufp-app-pill {
    right: 12px;
    bottom: 14px;
    height: 34px;
    padding: 6px 12px;
    gap: 6px;
    border-radius: 999px;
    font-size: 12px;
  }
  .uaw-close { top: 6px; right: 6px; width: 30px; height: 30px; font-size: 18px; }
  .uaw-head { gap: 8px; padding-right: 26px; }
  .uaw-logo { width: 28px; height: 28px; }
  .uaw-copy { gap: 2px; }
  .uaw-copy strong { font-size: 13px; line-height: 1.25; }
  .uaw-copy span {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    overflow: hidden;
    font-size: 10.5px;
    line-height: 1.35;
  }
  .uaw-actions { gap: 7px; margin-top: 10px; }
  .uaw-btn { min-height: 34px; padding: 5px 10px; border-radius: 9px; font-size: 12px; }
  .uaw-note { margin-top: 6px; max-height: 2.7em; overflow: auto; font-size: 10.5px; line-height: 1.35; }

  html.ufp-consent-open .ufp-app-widget,
  html.ufp-consent-open .ufp-app-pill { bottom: 126px; }
  /* The consent sheet owns the bottom of small screens; defer the install
     pill until consent is resolved so it never covers page content. */
  html.ufp-consent-open .ufp-app-pill { display: none; }
  .uaw-close { width: 34px; height: 34px; }
}
/* end ufp-mobile-optimisation */
/* Position dossier breadcrumbs (matches hub breadcrumbs) */
.job-crumbs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  margin: 0 0 14px;
  font-size: 12.5px;
  line-height: 1.5;
  color: var(--ink-3, #64748b);
}
.job-crumbs a { color: var(--accent, #065f46); text-decoration: none; }
.job-crumbs a:hover { text-decoration: underline; }
.job-crumbs span[aria-current="page"] {
  color: var(--ink-2, #334155);
  max-width: 52ch;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
html[data-theme="dark"] .job-crumbs { color: #94a3b8; }
html[data-theme="dark"] .job-crumbs a { color: #6ee7b7; }
html[data-theme="dark"] .job-crumbs span[aria-current="page"] { color: #e2e8f0; }
@media (max-width: 640px) {
  .job-crumbs span[aria-current="page"] { max-width: 100%; white-space: normal; }
}
/* end ufp-job-crumbs */

/* ==========================================================================
   Phase 4 upgrade: saved shortlist, quick filters, skeleton, sticky dossier
   bar, share actions and tablet/mobile polish.
   ========================================================================== */

.saved-header-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 38px;
  padding: 7px 11px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--card);
  color: var(--ink-2);
  font-family: var(--font);
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.04em;
  cursor: pointer;
}
.saved-header-btn:hover,
.saved-header-btn[aria-expanded="true"] { border-color: var(--accent); color: var(--accent); background: var(--accent-soft); }
.saved-count {
  min-width: 20px;
  padding: 1px 6px;
  border-radius: 999px;
  background: var(--accent);
  color: var(--accent-ink);
  font-family: var(--font-mono);
  font-size: 10px;
  line-height: 1.6;
}

.search-kbd {
  position: absolute;
  right: 9px;
  top: 50%;
  transform: translateY(-50%);
  padding: 3px 7px;
  border: 1px solid var(--border);
  border-radius: 6px;
  background: var(--bg-2);
  color: var(--ink-4);
  font-family: var(--font-mono);
  font-size: 9.5px;
  font-weight: 600;
  letter-spacing: 0.02em;
  pointer-events: none;
  white-space: nowrap;
}
.search-box input { padding-right: 104px; }

.quick-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 7px;
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px dashed var(--border-2);
}
.quick-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  min-height: 36px;
  padding: 7px 12px;
  border: 1px solid var(--border-2);
  border-radius: 999px;
  background: var(--card);
  color: var(--ink-2);
  font-family: var(--font);
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
}
.quick-btn:hover { border-color: var(--accent); color: var(--accent); }
.quick-btn:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.quick-btn.active { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.quick-saved { margin-left: auto; border-color: var(--accent); color: var(--accent); }
.quick-saved.active { color: var(--accent-ink); }

.jc-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  margin-top: 2px;
  padding-top: 9px;
  border-top: 1px dashed var(--border);
}
.jc-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  min-height: 36px;
  padding: 6px 10px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--bg-2);
  color: var(--ink-2);
  font-family: var(--font);
  font-size: 11.5px;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
}
.jc-action:hover { border-color: var(--accent); color: var(--accent); }
.jc-save.is-saved,
.share-save.is-saved,
.mab-save.is-saved { background: var(--accent-soft); border-color: var(--accent); color: var(--accent); }
.jc-wa { color: #0f766e; }
.jc-wa:hover { color: #0b6b5f; border-color: #0f766e; }

.jc-academic-badges { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 7px; }
.jc-academic-badge {
  display: inline-flex;
  align-items: center;
  padding: 3px 8px;
  border: 1px solid var(--emerald, #10b981);
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent);
  font-family: var(--font-mono);
  font-size: 9.5px;
  font-weight: 600;
  letter-spacing: 0.02em;
}

/* Skeleton shimmer */
.skeleton-grid {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 14px;
}
.skeleton-card { pointer-events: none; cursor: default; }
.skeleton-card:hover { transform: none; border-color: var(--border); box-shadow: var(--shadow-card); }
.sk-line {
  border-radius: 7px;
  background: linear-gradient(90deg, var(--bg-2) 20%, var(--border) 40%, var(--bg-2) 60%);
  background-size: 220% 100%;
  animation: ufp-shimmer 1.35s ease-in-out infinite;
}
.sk-badge { width: 38%; height: 15px; }
.sk-title { width: 88%; height: 22px; margin-top: 3px; }
.sk-sub { width: 55%; height: 14px; }
.sk-meta { width: 72%; height: 12px; }
.sk-meta.short { width: 44%; }
.sk-bar { width: 100%; height: 34px; margin-top: 8px; }
@keyframes ufp-shimmer {
  0% { background-position: 120% 0; }
  100% { background-position: -120% 0; }
}
@media (prefers-reduced-motion: reduce) {
  .sk-line { animation: none; }
}

/* Saved drawer */
body.saved-open { overflow: hidden; }
.saved-backdrop {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: rgba(8, 20, 16, 0.45);
  opacity: 0;
  transition: opacity 0.2s ease;
}
.saved-backdrop.open { opacity: 1; }
.saved-drawer {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  z-index: 110;
  display: flex;
  flex-direction: column;
  width: min(430px, 94vw);
  padding: 18px;
  background: var(--card);
  border-left: 1px solid var(--border);
  box-shadow: -18px 0 50px -24px rgba(15, 23, 42, 0.5);
  transform: translateX(104%);
  transition: transform 0.24s ease;
}
.saved-drawer.open { transform: translateX(0); }
.saved-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; padding-bottom: 12px; border-bottom: 1px solid var(--border); }
.saved-head h2 { margin: 0; font-size: 20px; }
.saved-close { width: 38px; height: 38px; border: 1px solid var(--border); border-radius: 50%; background: var(--bg-2); color: var(--ink); font-size: 24px; line-height: 1; cursor: pointer; }
.saved-list { flex: 1; overflow-y: auto; padding: 12px 0; display: grid; align-content: start; gap: 8px; }
.saved-empty { margin: 18px 0; color: var(--ink-3); font-size: 13.5px; line-height: 1.6; }
.saved-item { display: flex; align-items: stretch; gap: 6px; border: 1px solid var(--border); border-radius: 10px; overflow: hidden; background: var(--bg-2); }
.saved-item-open { flex: 1; min-width: 0; display: grid; gap: 3px; padding: 11px 12px; border: 0; background: transparent; text-align: left; cursor: pointer; }
.saved-item-title { color: var(--ink); font-size: 13px; font-weight: 700; line-height: 1.4; }
.saved-item-org { color: var(--ink-3); font-size: 11.5px; }
.saved-item-remove { width: 38px; border: 0; border-left: 1px solid var(--border); background: transparent; color: var(--ink-3); font-size: 20px; cursor: pointer; }
.saved-item-remove:hover { color: #b91c1c; background: #fef2f2; }
.saved-foot { display: grid; gap: 8px; padding-top: 12px; border-top: 1px solid var(--border); }
.saved-foot .btn { min-height: 42px; }

/* Mobile sticky dossier action bar */
.mobile-action-bar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 95;
  display: none;
  align-items: center;
  gap: 7px;
  padding: 9px 10px calc(9px + env(safe-area-inset-bottom, 0px));
  background: color-mix(in srgb, var(--card) 94%, transparent);
  border-top: 1px solid var(--border);
  box-shadow: 0 -12px 30px -22px rgba(15, 23, 42, 0.55);
  backdrop-filter: blur(12px);
}
.mab-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 8px 10px;
  border: 1px solid var(--border-2);
  border-radius: 9px;
  background: var(--card);
  color: var(--ink-2);
  font-family: var(--font);
  font-size: 11.5px;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
}
.mab-save { min-width: 66px; }
.mab-apply {
  flex: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 8px 12px;
  border-radius: 9px;
  background: var(--accent);
  color: var(--accent-ink);
  font-size: 12.5px;
  font-weight: 800;
  text-decoration: none;
  white-space: nowrap;
}

@media (min-width: 768px) and (max-width: 1024px) {
  .header-inner { padding: 10px 18px; gap: 10px; flex-wrap: nowrap; }
  .brand-sub { max-width: 300px; }
  .header-actions { flex-wrap: nowrap; gap: 6px; }
  .saved-header-label { display: none; }
  .telemetry-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .filter-row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .filter-row .field-search { grid-column: 1 / -1; }
  .filter-card { padding: 18px; }
  .job-card { padding: 18px; }
  .jc-action, .quick-btn, .track-btn, .cat-pill { min-height: 44px; }
  .saved-drawer { width: min(400px, 72vw); }
}

@media (max-width: 767px) {
  body { overflow-x: hidden; }
  .filter-card { padding: 14px; }
  .quick-row, .pill-row, .track-row {
    flex-wrap: nowrap;
    overflow-x: auto;
    overscroll-behavior-x: contain;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    padding-bottom: 3px;
  }
  .quick-row::-webkit-scrollbar, .pill-row::-webkit-scrollbar, .track-row::-webkit-scrollbar { display: none; }
  .quick-row .track-label, .track-row .track-label { flex: none; }
  .quick-btn, .track-btn, .cat-pill { flex: none; min-height: 42px; }
  .quick-saved { margin-left: 0; }
  .search-kbd { display: none; }
  .search-box input { padding-right: 12px; }
  .jc-actions { gap: 5px; }
  .jc-action { min-height: 42px; flex: 1 1 auto; }
  .saved-drawer { width: 100%; max-width: none; border-left: 0; padding: 16px; }
  .saved-header-btn { min-height: 36px; padding: 6px 9px; }
  .saved-header-label { display: none; }
  .mobile-action-bar { display: flex; }
  .mobile-action-bar[hidden] { display: none; }
  body.view-detail .detail-wrap { padding-bottom: 100px; }
  /* Stack the three fixed bottom elements so nothing covers anything:
     cookie banner (bottom: 0, max z) -> mobile action bar above it ->
     app pill/widget above the action bar. */
  .ufp-app-pill { bottom: calc(72px + env(safe-area-inset-bottom, 0px)); }
  .ufp-app-widget { bottom: calc(72px + env(safe-area-inset-bottom, 0px)); }
  html.ufp-consent-open .mobile-action-bar {
    bottom: 128px; /* sit directly above the consent banner */
  }
  html.ufp-consent-open .ufp-app-widget { bottom: 204px; }
  /* Beat the consent.js injected sheet (same specificity) so the page
     keeps room for both the banner and the action bar. */
  html.ufp-consent-open body,
  html.ufp-consent-open body.view-detail { padding-bottom: 208px; }
  body.view-detail { padding-bottom: calc(72px + env(safe-area-inset-bottom, 0px)); }
  /* Toast must clear the sticky action bar + floating controls on phones. */
  .toast { bottom: calc(140px + env(safe-area-inset-bottom, 0px)); }
  #jobs-grid, .skeleton-grid { grid-template-columns: minmax(0, 1fr); }
  .job-card { padding: 16px; }
}

@media (max-width: 430px) {
  .mobile-action-bar { gap: 5px; padding-left: 7px; padding-right: 7px; }
  .mab-btn { padding: 8px; font-size: 11px; }
  .mab-apply { font-size: 12px; }
}
/* end phase-4-upgrade */

/* City / state search gateways */
.city-band { padding: 54px 0; background: var(--bg-2); border-top: 1px solid var(--border); }
.city-band-inner { width: min(1180px, calc(100% - 40px)); margin: 0 auto; }
.city-band h2 { margin: 6px 0 10px; font-size: clamp(24px, 3vw, 34px); line-height: 1.18; }
.city-band-sub { max-width: 760px; margin: 0 0 24px; color: var(--ink-3); font-size: 14.5px; line-height: 1.65; }
.city-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; margin: 0; padding: 0; list-style: none; }
.city-grid a { display: flex; flex-direction: column; gap: 4px; padding: 14px 15px; border: 1px solid var(--border); border-radius: 11px; background: var(--card); color: inherit; text-decoration: none; transition: border-color .15s ease, transform .15s ease; }
.city-grid a:hover { border-color: var(--accent); transform: translateY(-2px); }
.city-grid strong { font-size: 14px; color: var(--ink); }
.city-grid span { font-size: 11.5px; line-height: 1.45; color: var(--ink-4); }
@media (max-width: 900px) { .city-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 620px) { .city-band-inner { width: min(100% - 28px, 1180px); } .city-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* --------------------------------------------------------------------------
   Static SEO hub summary + card link cleanup
   -------------------------------------------------------------------------- */
.badge-sep {
  display: inline-flex;
  align-items: center;
  color: var(--ink-4);
  font-size: 11px;
  font-weight: 700;
  line-height: 1;
  padding: 0 1px;
}
.hub-summary-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 10px;
  list-style: none;
  margin: 18px 0 0;
  padding: 0;
}
.hub-summary-grid li { margin: 0; }
.hub-summary-grid a {
  display: flex;
  align-items: center;
  min-height: 54px;
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  background: var(--card);
  color: var(--ink);
  font-size: 13.5px;
  font-weight: 700;
  line-height: 1.4;
  text-decoration: none;
  box-shadow: var(--shadow-card);
  transition: border-color 0.18s ease, transform 0.18s ease;
}
.hub-summary-grid a:hover {
  border-color: var(--accent);
  transform: translateY(-2px);
}
.related-card strong a {
  color: inherit;
  text-decoration: none;
}
.related-card strong a:hover { text-decoration: underline; }
.hub-card-foot span { color: var(--ink-4); font-size: 11.5px; font-weight: 600; }

/* ==========================================================================
   Registry freshness badge - homepage and every static hub.
   Date and counts are pre-rendered at build time, then hydrated from
   stats.json by jobs.js / hub.js.
   ========================================================================== */
.registry-refresh-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin: 0 0 14px;
  padding: 6px 14px;
  border: 1px solid var(--border-color);
  border-radius: 9999px;
  background: var(--card-bg);
  color: var(--ink-3);
  font-size: 0.82rem;
  line-height: 1.45;
  box-shadow: var(--shadow-card);
}
.registry-refresh-badge strong {
  color: var(--ink);
  font-weight: 700;
}
.registry-refresh-dot {
  width: 7px;
  height: 7px;
  flex: 0 0 auto;
  border-radius: 50%;
  background: var(--emerald);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--emerald) 16%, transparent);
}
.registry-stats-summary {
  padding-left: 10px;
  border-left: 1px solid var(--border-color);
  color: var(--ink-2);
  font-weight: 600;
}
.registry-stats-summary .registry-count-number {
  font-variant-numeric: tabular-nums;
}
html[data-theme="dark"] .registry-refresh-badge {
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.02);
}
html[data-theme="dark"] .registry-refresh-dot {
  background: #34D399;
  box-shadow: 0 0 0 3px rgba(52, 211, 153, 0.16);
}
@media (max-width: 640px) {
  .registry-refresh-badge {
    align-items: flex-start;
    gap: 6px;
    padding: 7px 12px;
    font-size: 0.78rem;
  }
  .registry-stats-summary {
    flex-basis: 100%;
    padding-left: 18px;
    border-left: 0;
  }
}

/* Canonical header layout (all pages): centered two-row header on wide
   screens — brand on row 1, nav on row 2, Night/Saved/Publish actions
   pinned to row 2 on the right. This matches public/index.html exactly;
   page templates must not override it. Mobile/tablet keep the compact
   header rules above. */
@media (min-width: 1280px) {
  .header-inner{display:flex;flex-wrap:wrap;justify-content:center;align-items:flex-start;text-align:center;position:relative;}
  .brand{flex-basis:100%;text-align:center;display:flex;align-items:center;justify-content:center;gap:10px;}
  .site-nav{flex:1 1 auto;justify-content:center;flex-wrap:wrap;padding-right:260px;}
  .header-actions{position:absolute;right:20px;top:62px;justify-content:flex-end;flex:0 0 auto;}
}
