/* Elevate Add-ons — job listings.
   Everything is scoped under .ea-jobs so it cannot leak into theme modules.
   No !important anywhere; the theme's own rules are left alone. */

.ea-jobs {
  --ea-green: #00453a;
  --ea-green-mid: #006a57;
  --ea-teal: #4caa95;
  --ea-gold: #c5a95a;
  --ea-ink: #0d1f1b;
  --ea-muted: #5b6b66;
  --ea-paper: #fff;
  --ea-mist: #f2f6f4;
  --ea-line: #e2eae7;
  --ea-r: 14px;

  box-sizing: border-box;
  max-width: 1120px;
  margin: 0 auto;
  padding: 8px 20px 64px;
  color: var(--ea-ink);
  font-family: inherit;
}
.ea-jobs *,
.ea-jobs *::before,
.ea-jobs *::after { box-sizing: inherit; }

/* ---------------------------------------------------------- heading */
.ea-jobs-head { max-width: 680px; margin: 0 0 28px; }

.ea-jobs .ea-jobs-h {
  margin: 0 0 10px;
  font-size: clamp(28px, 4vw, 42px);
  line-height: 1.12;
  letter-spacing: -0.02em;
  font-weight: 700;
  color: var(--ea-green);
}
.ea-jobs .ea-jobs-intro {
  margin: 0;
  font-size: 17px;
  line-height: 1.6;
  color: var(--ea-muted);
}

/* ---------------------------------------------------------- toolbar */
.ea-jobs-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin: 0 0 22px;
  padding: 14px;
  background: var(--ea-mist);
  border: 1px solid var(--ea-line);
  border-radius: var(--ea-r);
}

.ea-jobs .ea-field {
  position: relative;
  display: flex;
  align-items: center;
  min-width: 0;
  background: var(--ea-paper);
  border: 1px solid var(--ea-line);
  border-radius: 10px;
  transition: border-color .15s ease, box-shadow .15s ease;
}
.ea-jobs .ea-field:focus-within {
  border-color: var(--ea-teal);
  box-shadow: 0 0 0 3px rgba(76, 170, 149, .18);
}

.ea-field-search { flex: 1 1 240px; padding: 0 12px; }
.ea-field-search .ea-ico { flex: none; width: 17px; height: 17px; color: var(--ea-muted); }

.ea-jobs input[type="search"] {
  width: 100%;
  min-width: 0;
  padding: 11px 8px;
  border: 0;
  background: none;
  font: inherit;
  font-size: 15px;
  color: inherit;
  outline: none;
  appearance: none;
}
.ea-jobs input[type="search"]::-webkit-search-cancel-button { cursor: pointer; }

.ea-selects { display: flex; flex-wrap: wrap; gap: 10px; }

.ea-field-select { padding: 4px 12px 5px; }
.ea-field-select .ea-field-lab {
  position: absolute;
  top: 4px; left: 13px;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--ea-muted);
  pointer-events: none;
}
.ea-jobs .ea-field-select select {
  margin: 0;
  padding: 16px 26px 6px 0;
  border: 0;
  background: none;
  font: inherit;
  font-size: 15px;
  font-weight: 500;
  color: inherit;
  outline: none;
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml;charset=utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%235b6b66' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0 center;
  background-size: 15px;
}

.ea-jobs .ea-jobs-count {
  margin: 0 2px 0 auto;
  font-size: 14px;
  color: var(--ea-muted);
  white-space: nowrap;
}
.ea-jobs .ea-jobs-count strong { color: var(--ea-green); font-weight: 700; }

/* ---------------------------------------------------------- list */
.ea-jobs .ea-jobs-list {
  display: grid;
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.ea-jobs .ea-jobs-list > li { margin: 0; padding: 0; list-style: none; }
.ea-jobs .ea-jobs-list > li::before { content: none; }

.ea-job-card {
  position: relative;
  display: grid;
  grid-template-columns: 1fr auto;
  grid-template-areas:
    "top  top"
    "title go"
    "meta go";
  align-items: center;
  gap: 6px 24px;
  padding: 20px 22px;
  background: var(--ea-paper);
  border: 1px solid var(--ea-line);
  border-radius: var(--ea-r);
  transition: border-color .18s ease, box-shadow .18s ease, transform .18s ease;
}
.ea-job-card:hover {
  border-color: var(--ea-teal);
  box-shadow: 0 10px 26px rgba(13, 31, 27, .09);
  transform: translateY(-2px);
}
/* Keyboard focus must be as obvious as hover. */
.ea-job-card:focus-within {
  border-color: var(--ea-green-mid);
  box-shadow: 0 0 0 3px rgba(76, 170, 149, .22);
}

.ea-job-top {
  grid-area: top;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-bottom: 2px;
}

.ea-jobs .ea-tag {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(0, 69, 58, .07);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .01em;
  color: var(--ea-green);
}

.ea-jobs .ea-job-date {
  margin-left: auto;
  font-size: 13px;
  color: var(--ea-muted);
  white-space: nowrap;
}
/* Roles opened in the last fortnight get a quiet gold marker. */
.ea-jobs .ea-job-date.is-new {
  font-weight: 600;
  color: #8a7433;
}
.ea-jobs .ea-job-date.is-new::before {
  content: "";
  display: inline-block;
  width: 6px; height: 6px;
  margin-right: 7px;
  border-radius: 50%;
  background: var(--ea-gold);
  vertical-align: 1px;
}

.ea-jobs .ea-job-title {
  grid-area: title;
  margin: 0;
  font-size: 19px;
  line-height: 1.3;
  font-weight: 650;
  letter-spacing: -0.01em;
}
.ea-jobs .ea-job-title a {
  color: var(--ea-ink);
  text-decoration: none;
  background: none;
}
.ea-jobs .ea-job-title a:hover { color: var(--ea-green); text-decoration: none; }
/* Stretch the real link over the whole card: one tab stop, one href, and the
   URL stays crawlable. */
.ea-jobs .ea-job-title a::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: var(--ea-r);
}
.ea-jobs .ea-job-title a:focus-visible { outline: none; }

.ea-jobs .ea-job-meta {
  grid-area: meta;
  display: flex;
  flex-wrap: wrap;
  gap: 6px 18px;
  margin: 2px 0 0;
  padding: 0;
  list-style: none;
}
.ea-jobs .ea-job-meta > li {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin: 0;
  padding: 0;
  font-size: 14px;
  color: var(--ea-muted);
  list-style: none;
}
.ea-jobs .ea-job-meta > li::before { content: none; }

.ea-jobs .ea-ico {
  width: 15px;
  height: 15px;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.ea-job-go {
  grid-area: go;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 14px;
  font-weight: 600;
  color: var(--ea-green-mid);
  white-space: nowrap;
}
.ea-job-go .ea-ico { width: 17px; height: 17px; transition: transform .18s ease; }
.ea-job-card:hover .ea-job-go .ea-ico { transform: translateX(3px); }

/* ---------------------------------------------------------- empty */
.ea-jobs .ea-jobs-empty {
  margin: 0;
  padding: 36px 22px;
  background: var(--ea-mist);
  border: 1px dashed var(--ea-line);
  border-radius: var(--ea-r);
  text-align: center;
  color: var(--ea-muted);
}

/* ---------------------------------------------------------- closed notice
   Shown on a single job page, not the list. */
.ea-job-closed {
  margin: 0 0 24px;
  padding: 14px 18px;
  border-left: 3px solid var(--ea-gold, #c5a95a);
  border-radius: 8px;
  background: #fdf8ec;
  color: #5c4a1d;
  font-size: 15px;
}
.ea-job-closed a { color: #00453a; }

/* ---------------------------------------------------------- responsive */
@media (max-width: 720px) {
  .ea-jobs { padding: 4px 16px 48px; }

  .ea-job-card {
    grid-template-columns: 1fr;
    grid-template-areas:
      "top"
      "title"
      "meta"
      "go";
    gap: 8px;
    padding: 18px;
  }
  .ea-job-go { margin-top: 4px; }
  .ea-job-card:hover { transform: none; }

  .ea-jobs-toolbar { padding: 12px; }
  .ea-selects { width: 100%; }
  .ea-field-select { flex: 1 1 140px; }
  .ea-jobs .ea-jobs-count { margin-left: 2px; }
}

@media (prefers-reduced-motion: reduce) {
  .ea-job-card,
  .ea-job-go .ea-ico,
  .ea-jobs .ea-field { transition: none; }
  .ea-job-card:hover { transform: none; }
  .ea-job-card:hover .ea-job-go .ea-ico { transform: none; }
}

/* ---------------------------------------------------------- job application form
   Corrections to THEME styling, not our own.

   The theme paints essentially all text inside `.job-form` with
   --light-green (#006a57). That reads correctly on field labels, which is
   clearly what it was written for, but it also lands on three things that are
   body copy rather than labels:

     theme style.css:1520  .job-form .gchoice label.gform-field-label
                           -> the marketing-consent sentence
     theme style.css:1553  span.gfield_description.gform_fileupload_rules
                           -> "Max. file size: 80 MB."
     theme style.css:1560  .job-form form input
                           -> the file input's own "No file chosen"

   These are reset to the theme's own body colour (--dark-grey, #585851), which
   is what the theme already uses for HTML fields in the same form, so nothing
   new is introduced to the palette.

   Two deliberate deviations from the rest of this file:
     - `!important` is used, because the theme's rules are themselves
       !important and cannot otherwise be overridden.
     - selectors are prefixed with `body` purely to raise specificity above the
       theme's, so this works regardless of stylesheet print order.

   Colour only. Font family, size and weight are left exactly as the theme
   sets them. */

body .job-form .gchoice label.gform-field-label {
  color: var(--dark-grey, #585851) !important;
}

body .job-form .gfield--type-fileupload > .ginput_container > span.gfield_description.gform_fileupload_rules {
  color: var(--dark-grey, #585851) !important;
}

body .job-form .gfield--type-fileupload > .ginput_container > input[type="file"] {
  color: var(--dark-grey, #585851) !important;
}
