:root {
  --ink: #17211d;
  --muted: #61706a;
  --forest: #174d3a;
  --forest-dark: #10382a;
  --moss: #dbe7df;
  --cream: #f7f4ec;
  --paper: #fffef9;
  --ochre: #d99a2b;
  --line: #d8ded9;
  --shadow: 0 14px 40px rgba(23, 77, 58, 0.08);
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: "DM Sans", sans-serif;
  font-size: 16px;
  line-height: 1.55;
}
a { color: inherit; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  gap: 32px;
  min-height: 72px;
  padding: 12px clamp(20px, 5vw, 72px);
  background: rgba(255, 254, 249, 0.96);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(12px);
}
.brand { display: flex; align-items: center; gap: 11px; font-weight: 700; text-decoration: none; }
.brand-mark { display: grid; place-items: center; width: 36px; height: 36px; color: white; background: var(--forest); border-radius: 10px; font-size: 13px; letter-spacing: .04em; }
nav { display: flex; gap: 24px; margin-left: auto; }
nav a { color: var(--muted); text-decoration: none; font-size: 14px; font-weight: 600; }
nav a:hover { color: var(--forest); }
.country-pill { padding: 7px 12px; color: var(--forest-dark); background: var(--moss); border-radius: 999px; font-size: 13px; font-weight: 700; }

main { overflow: hidden; }
.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(280px, .7fr);
  gap: clamp(36px, 8vw, 110px);
  align-items: end;
  padding: 96px clamp(20px, 7vw, 108px) 88px;
  background-color: var(--cream);
  border-bottom: 1px solid var(--line);
}
.eyebrow { margin: 0 0 12px; color: var(--forest); font-size: 12px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; }
h1, h2 { margin: 0; font-family: "Newsreader", serif; font-weight: 600; line-height: .98; letter-spacing: -.025em; }
h1 { max-width: 820px; font-size: clamp(52px, 7.1vw, 92px); }
h2 { font-size: clamp(37px, 4.5vw, 58px); }
h3 { line-height: 1.25; }
.hero-text { max-width: 690px; margin: 28px 0; color: #405049; font-size: clamp(18px, 2vw, 22px); }
.trust-line { display: flex; flex-wrap: wrap; gap: 12px 26px; color: var(--muted); font-size: 14px; }
.trust-line b { color: var(--ink); }
.hero-panel { padding: 26px; background: var(--forest); color: white; border-radius: 20px 20px 4px 20px; box-shadow: var(--shadow); }
.hero-panel p { margin: 0 0 28px; color: #bfd1c8; font-size: 12px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }
.hero-panel strong { display: block; font-family: "Newsreader", serif; font-size: 34px; line-height: 1.1; }
.hero-panel > span { display: block; margin-top: 8px; color: #bfd1c8; font-size: 14px; }
.status-row { display: flex; align-items: center; gap: 8px; margin-top: 26px; padding-top: 18px; border-top: 1px solid rgba(255,255,255,.18); font-size: 14px; }
.status-row i { width: 9px; height: 9px; background: #74cc8c; border-radius: 50%; box-shadow: 0 0 0 4px rgba(116,204,140,.15); }

.directory, .intelligence, .about { padding: 84px clamp(20px, 7vw, 108px); }
.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 28px; margin-bottom: 34px; }
.section-heading > p { max-width: 480px; margin: 0; color: var(--muted); }
.result-count { color: var(--muted); font-size: 14px; }
.filters { display: grid; grid-template-columns: minmax(260px, 1fr) 190px 190px auto; gap: 12px; align-items: end; padding: 18px; margin-bottom: 24px; background: #f2f5f2; border: 1px solid var(--line); border-radius: 14px; }
.filters label { display: grid; gap: 6px; }
.filters label > span { color: var(--muted); font-size: 12px; font-weight: 700; }
input, select, button { min-height: 44px; font: inherit; border-radius: 9px; }
input, select { width: 100%; padding: 9px 12px; color: var(--ink); background: white; border: 1px solid #c9d2cc; }
input:focus, select:focus { outline: 3px solid rgba(217,154,43,.24); border-color: var(--ochre); }
.reset-button { padding: 9px 18px; color: var(--forest); background: transparent; border: 1px solid #9fb1a7; cursor: pointer; font-weight: 700; }
.reset-button:hover { background: white; }
.opportunity-list { display: grid; gap: 14px; }
.opportunity-card { display: grid; grid-template-columns: 1fr auto; gap: 28px; align-items: center; padding: 28px; background: white; border: 1px solid var(--line); border-left: 5px solid var(--forest); border-radius: 12px; box-shadow: 0 6px 20px rgba(23,33,29,.04); }
.card-meta { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; color: var(--muted); font-size: 13px; }
.tag { padding: 4px 9px; border-radius: 999px; font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; }
.tag-job { color: #684100; background: #f8e6bf; }
.tag-public { color: var(--forest-dark); background: var(--moss); }
.opportunity-card h3 { margin: 16px 0 4px; font-size: 24px; }
.organisation { margin: 0 0 12px; color: var(--forest); font-weight: 700; }
.opportunity-card .card-main > p:last-of-type { max-width: 680px; margin: 0; color: var(--muted); }
.deadline { display: flex; gap: 12px; margin-top: 20px; font-size: 14px; }
.deadline span { color: var(--muted); }
.apply-link { padding: 12px 17px; color: white; background: var(--forest); border-radius: 9px; text-decoration: none; font-weight: 700; white-space: nowrap; }
.apply-link:hover { background: var(--forest-dark); }
.empty-state { padding: 50px 20px; text-align: center; background: var(--cream); border: 1px dashed #aebbb4; border-radius: 12px; }
.empty-state h3, .empty-state p { margin: 0; }
.empty-state p { margin-top: 6px; color: var(--muted); }

.intelligence { background: var(--forest-dark); color: white; }
.intelligence .eyebrow { color: #e7b95f; }
.intelligence .section-heading > p { color: #b7c8c0; }
.signal-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.signal-grid article { display: flex; flex-direction: column; min-height: 286px; padding: 26px; background: #194a39; border: 1px solid rgba(255,255,255,.14); border-radius: 14px; }
.signal-label { align-self: flex-start; padding: 5px 9px; color: #f7d89c; background: rgba(217,154,43,.14); border-radius: 999px; font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; }
.signal-grid h3 { margin: 24px 0 10px; font-size: 24px; }
.signal-grid p { margin: 0; color: #c4d2cc; }
.signal-grid a { margin-top: auto; padding-top: 24px; color: #f4c96f; font-weight: 700; text-decoration: none; }

.about { background: var(--cream); }
.about > div:first-child { max-width: 700px; }
.rule-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px; margin-top: 48px; }
.rule-grid span { color: var(--ochre); font-size: 13px; font-weight: 700; }
.rule-grid h3 { margin: 12px 0 8px; font-size: 20px; }
.rule-grid p { margin: 0; color: var(--muted); }

footer { display: flex; justify-content: space-between; gap: 30px; padding: 36px clamp(20px, 7vw, 108px); color: #c9d5d0; background: #0b241b; font-size: 13px; }
footer div { display: grid; gap: 3px; }
footer strong { color: white; font-size: 16px; }
footer p { max-width: 440px; margin: 0; text-align: right; }

@media (max-width: 900px) {
  nav { display: none; }
  .hero { grid-template-columns: 1fr; padding-top: 68px; }
  .hero-panel { max-width: 440px; }
  .filters { grid-template-columns: 1fr 1fr; }
  .search-field { grid-column: 1 / -1; }
  .signal-grid, .rule-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 620px) {
  .brand > span:last-child { display: none; }
  .site-header { min-height: 64px; }
  .country-pill { margin-left: auto; }
  .hero { padding-top: 56px; padding-bottom: 60px; }
  h1 { font-size: 50px; }
  .directory, .intelligence, .about { padding-top: 62px; padding-bottom: 62px; }
  .section-heading, .opportunity-card, footer { display: block; }
  .result-count { margin-top: 12px; }
  .filters, .signal-grid, .rule-grid { grid-template-columns: 1fr; }
  .search-field { grid-column: auto; }
  .apply-link { display: block; margin-top: 24px; text-align: center; }
  .rule-grid { gap: 30px; }
  footer p { margin-top: 18px; text-align: left; }
}

/* Editorial safari palette and compact, image-led introduction. */
:root { --forest: #163e32; --forest-dark: #102c25; --ochre: #b48a49; --paper: #fcfcf9; --cream: #f2f1eb; }
.site-header { min-height: 76px; }
.brand-mark { border-radius: 50%; color: #ead9b6; border: 1px solid #b48a49; }
.country-pill { background: transparent; border: 1px solid #b48a4960; border-radius: 3px; letter-spacing: .04em; }
.hero { position: relative; grid-template-columns: 1.05fr 1fr; align-items: center; gap: 28px 48px; padding: 38px clamp(20px, 6vw, 88px) 24px; }
h1 { font-size: clamp(38px, 4.1vw, 60px); line-height: 1.04; max-width: 640px; }
.hero-text { font-size: 18px; margin: 20px 0; max-width: 540px; }
.hero-visual { position: relative; align-self: stretch; min-height: 290px; overflow: hidden; border-radius: 3px 52px 3px 3px; background: #163e32; }
.hero-visual img { display: block; width: 100%; height: 100%; max-height: 360px; object-fit: cover; }
.image-caption { position: absolute; bottom: 0; left: 0; right: 0; padding: 30px 22px 16px; color: white; background: linear-gradient(transparent, #0b241bd9); font-size: 14px; }
.image-caption small { display: block; margin-top: 4px; color: #e7e9df; font-size: 12px; }
.hero-panel { grid-column: 1 / -1; display: flex; align-items: center; gap: 24px; padding: 16px 0 0; border-top: 1px solid #b48a4970; border-radius: 0; box-shadow: none; color: var(--ink); background: transparent; }
.hero-panel p { display: none; }
.hero-panel strong { font-family: "DM Sans", sans-serif; font-size: 16px; }
.hero-panel > span { margin: 0; color: var(--muted); }
.status-row { margin: 0 0 0 auto; padding: 0; border: 0; }
.directory { padding: 38px clamp(20px, 6vw, 88px) 64px; }
h2 { font-size: clamp(34px, 3.2vw, 46px); }
.section-heading { margin-bottom: 24px; }
.filters { background: white; border-radius: 4px; padding: 16px; box-shadow: 0 5px 22px #163e3205; }
.filters label > span { font-size: 14px; }
.opportunity-card { border-radius: 4px; border-left: 3px solid var(--ochre); box-shadow: none; transition: box-shadow .2s, border-color .2s; }
.opportunity-card:hover { border-color: #b48a4980; box-shadow: 0 12px 32px #163e320b; }
.apply-link { border-radius: 3px; }
.tag { font-size: 12px; }
.signal-grid article { border-radius: 3px; background: #17392f; border-top: 2px solid var(--ochre); }
.signal-label { font-size: 12px; }
.rule-grid { border-top: 1px solid #b48a4970; padding-top: 28px; }
@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr 1fr; gap: 24px; }
  .hero-panel { max-width: none; flex-wrap: wrap; gap: 12px 24px; }
  .hero-visual { min-height: 310px; }
  .status-row { margin-left: 0; }
}
@media (max-width: 620px) {
  .hero { grid-template-columns: 1fr; padding-top: 28px; }
  h1 { font-size: 40px; }
  .hero-visual { min-height: 0; height: 220px; border-radius: 3px 36px 3px 3px; }
  .hero-visual img { height: 220px; }
  .hero-panel { display: grid; gap: 8px; }
  .trust-line { gap: 8px 16px; }
}
