/* Warrior Empowerment Project - Veteran Job Board
   Palette derived from the WEP logo: field green #36483A + white, with
   neutral warm greys. No invented accent hue -- the mark is two-tone, so
   emphasis comes from weight and fill rather than a third colour. */

:root {
  --green: #36483a;
  --green-dark: #26332a;
  --green-mid: #4e6552;
  --green-tint: #eaeee9;
  --green-tint-line: #ccd6cd;
  --ink: #2b2d29;
  --muted: #5c5f59;
  --line: #dfe1dc;
  --bg: #f7f8f6;
  --card: #ffffff;
  --focus: #0f6cbd;
  --radius: 6px;
}

*, *::before, *::after { box-sizing: border-box; }

body {
  margin: 0;
  font-family: "Segoe UI", Arial, Helvetica, sans-serif;
  font-size: 16px;
  line-height: 1.55;
  color: var(--ink);
  background: var(--bg);
}

a { color: var(--green); }
a:focus-visible, button:focus-visible, input:focus-visible,
select:focus-visible, textarea:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 2px;
}

.skip-link {
  position: absolute;
  left: -9999px;
  background: var(--green);
  color: #fff;
  padding: 0.75rem 1rem;
  z-index: 100;
}
.skip-link:focus { left: 1rem; top: 1rem; }

/* Header */
.site-header {
  background: var(--green);
  color: #fff;
  border-bottom: 4px solid var(--green);
}
.header-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 1.25rem 1.25rem;
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: center;
  justify-content: space-between;
}
.brand { display: flex; align-items: center; gap: 0.85rem; }
.brand-logo { height: 52px; width: auto; display: block; flex: 0 0 auto; }
.brand-text { display: flex; flex-direction: column; }
.brand-title { font-size: 1.35rem; font-weight: 700; letter-spacing: 0.01em; }
.brand-sub { font-size: 0.9rem; color: #c7d2c8; }
.header-actions { display: flex; gap: 0.75rem; flex-wrap: wrap; }

/* Buttons */
.btn {
  display: inline-block;
  border: 2px solid transparent;
  border-radius: var(--radius);
  padding: 0.6rem 1.1rem;
  font-size: 0.95rem;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  background: var(--green);
  color: #fff;
}
.btn:hover { background: var(--green-dark); }
.btn-secondary { background: transparent; color: #fff; border-color: #ffffff; }
.btn-secondary:hover { background: rgba(255, 255, 255, 0.14); }
.btn-primary { background: var(--green); }
.btn-primary:hover { background: var(--green-dark); }
.btn[disabled] { opacity: 0.6; cursor: not-allowed; }

/* Layout */
main { max-width: 1100px; margin: 0 auto; padding: 1.75rem 1.25rem 4rem; }
.intro h1 { color: var(--green); font-size: 1.75rem; margin: 0 0 0.5rem; }
.intro p { color: var(--muted); max-width: 62ch; margin: 0 0 1.5rem; }

/* Filters */
.filters {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.1rem;
  margin-bottom: 1.5rem;
}
.filters-grid {
  display: grid;
  gap: 0.9rem;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
}
.field label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--green);
  margin-bottom: 0.3rem;
}
.field input[type="text"], .field select, .field textarea {
  width: 100%;
  padding: 0.55rem 0.65rem;
  font: inherit;
  font-size: 0.95rem;
  color: var(--ink);
  background: #fff;
  border: 1px solid #8a8886;
  border-radius: 4px;
}
.field textarea { min-height: 140px; resize: vertical; }
.checkbox-row { display: flex; gap: 1.25rem; flex-wrap: wrap; align-items: center; }
.checkbox-row label { font-size: 0.92rem; display: flex; gap: 0.4rem; align-items: center; }
.filters-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 0.9rem;
  padding-top: 0.9rem;
  border-top: 1px solid var(--line);
}
.result-count { font-size: 0.9rem; color: var(--muted); margin: 0; }
.link-button {
  background: none;
  border: none;
  padding: 0;
  font: inherit;
  font-size: 0.9rem;
  color: var(--green);
  text-decoration: underline;
  cursor: pointer;
}

/* Job cards */
.job-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 1rem; }
.job-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-left: 4px solid var(--green);
  border-radius: var(--radius);
  padding: 1.1rem 1.25rem;
}
.job-card h2 { margin: 0 0 0.2rem; font-size: 1.15rem; color: var(--green); }
.job-meta { margin: 0 0 0.7rem; font-size: 0.92rem; color: var(--muted); }
.job-meta strong { color: var(--ink); font-weight: 600; }
.tags { display: flex; flex-wrap: wrap; gap: 0.4rem; margin: 0 0 0.75rem; padding: 0; list-style: none; }
.tag {
  font-size: 0.78rem;
  font-weight: 600;
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
  background: var(--green-tint);
  color: var(--green);
  border: 1px solid var(--green-tint-line);
}
.tag-veteran { background: var(--green); color: #fff; border-color: var(--green); }
.job-desc { margin: 0 0 0.9rem; white-space: pre-line; }
.job-desc.clamped {
  display: -webkit-box;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.job-actions { display: flex; gap: 0.75rem; align-items: center; flex-wrap: wrap; }
.posted { font-size: 0.82rem; color: var(--muted); }

/* States */
.state {
  background: var(--card);
  border: 1px dashed var(--line);
  border-radius: var(--radius);
  padding: 2rem 1.25rem;
  text-align: center;
  color: var(--muted);
}
.state h2 { color: var(--green); margin-top: 0; }
.state-error { border-color: #e2cfcf; background: #fbf6f5; color: #6b2320; }
.hidden { display: none !important; }
.visually-hidden {
  position: absolute; width: 1px; height: 1px;
  margin: -1px; padding: 0; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* Form page */
.form-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.5rem;
  max-width: 780px;
}
.form-grid { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); }
.form-grid .full { grid-column: 1 / -1; }
.required { color: #8c2f2a; }
.hint { font-size: 0.85rem; color: var(--muted); margin: 0.25rem 0 0; }
.form-status { margin-top: 1rem; padding: 0.9rem 1rem; border-radius: var(--radius); }
.form-status.success { background: #eef7ee; border: 1px solid #b9d9b9; color: #0e5814; }
.form-status.error { background: #fbf6f5; border: 1px solid #e2cfcf; color: #6b2320; }
.form-status ul { margin: 0.4rem 0 0; padding-left: 1.2rem; }

/* Footer */
.site-footer {
  background: var(--green);
  color: #c7d2c8;
  padding: 1.75rem 1.25rem;
  font-size: 0.9rem;
}
.footer-inner { max-width: 1100px; margin: 0 auto; }
.footer-inner a { color: #fff; }
.footer-focus { color: #fff; font-weight: 600; margin: 0 0 0.4rem; }

@media (max-width: 520px) {
  .header-inner { flex-direction: column; align-items: flex-start; }
  .brand-title { font-size: 1.15rem; }
  .brand-logo { height: 44px; }
}
