:root {
  color-scheme: light;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: #101820;
  background: #ffffff;
  font-synthesis: none;
  --ink: #101820;
  --muted: #53606c;
  --line: #d8dee3;
  --soft: #f3f6f5;
  --green: #155f46;
  --green-dark: #0c4834;
  --red: #b63f2c;
  --gold: #9a6a00;
  --white: #ffffff;
  --max: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  background: var(--white);
  color: var(--ink);
  font-size: 16px;
  line-height: 1.6;
}

a {
  color: var(--green-dark);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

a:hover {
  color: var(--red);
}

button,
input,
select,
textarea {
  font: inherit;
  letter-spacing: 0;
}

button,
a,
input,
select,
textarea,
summary {
  outline-offset: 3px;
}

:focus-visible {
  outline: 3px solid #e0a900;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1,
h2,
h3 {
  line-height: 1.12;
  letter-spacing: 0;
}

h1 {
  margin-bottom: 20px;
  font-size: clamp(2.25rem, 6vw, 5.4rem);
  max-width: 14ch;
}

h2 {
  margin-bottom: 14px;
  font-size: clamp(1.65rem, 3vw, 2.6rem);
}

h3 {
  margin-bottom: 8px;
  font-size: 1.2rem;
}

.skip-link {
  position: fixed;
  top: 8px;
  left: 8px;
  z-index: 100;
  padding: 10px 14px;
  transform: translateY(-150%);
  background: var(--ink);
  color: var(--white);
}

.skip-link:focus {
  transform: translateY(0);
}

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  width: min(100% - 40px, var(--max));
  min-height: 82px;
  margin: 0 auto;
  border-bottom: 1px solid var(--line);
}

.brand {
  display: inline-flex;
  flex-direction: column;
  flex: 0 0 auto;
  color: var(--ink);
  font-weight: 800;
  line-height: 1.05;
  text-decoration: none;
}

.brand span {
  font-size: 0.76rem;
  text-transform: uppercase;
}

.brand strong {
  color: var(--red);
  font-size: 1.45rem;
}

.site-header nav,
.site-footer nav {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px 24px;
}

.site-header nav a {
  color: var(--ink);
  font-size: 0.94rem;
  font-weight: 700;
  text-decoration: none;
}

.site-header nav a:hover {
  color: var(--green);
}

.site-header .nav-action {
  padding: 10px 16px;
  border: 1px solid var(--green);
  border-radius: 4px;
  color: var(--green);
}

.home-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(320px, 0.95fr);
  align-items: stretch;
  width: min(100% - 40px, var(--max));
  margin: 32px auto 0;
  overflow: hidden;
  border-bottom: 6px solid var(--green);
  background: var(--soft);
}

.hero-copy {
  align-self: center;
  padding: clamp(36px, 6vw, 76px);
}

.hero-copy > p {
  max-width: 620px;
  margin-bottom: 30px;
  color: var(--muted);
  font-size: 1.12rem;
}

.home-hero img {
  width: 100%;
  height: 100%;
  min-height: 520px;
  object-fit: cover;
  object-position: 70% center;
}

.search-form {
  display: grid;
  grid-template-columns: minmax(180px, 1.4fr) minmax(170px, 1fr) auto;
  align-items: end;
  gap: 12px;
}

.search-form-stacked {
  grid-template-columns: 1fr;
  align-items: stretch;
}

label > span,
.search-form label > span {
  display: block;
  margin-bottom: 6px;
  color: var(--ink);
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
}

input,
select,
textarea {
  width: 100%;
  min-height: 48px;
  padding: 11px 12px;
  border: 1px solid #aab4bc;
  border-radius: 4px;
  background: var(--white);
  color: var(--ink);
}

textarea {
  min-height: 132px;
  resize: vertical;
}

input:focus,
select:focus,
textarea:focus {
  border-color: var(--green);
}

.button,
button {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  padding: 11px 18px;
  border: 1px solid var(--green);
  border-radius: 4px;
  background: var(--green);
  color: var(--white);
  font-size: 0.92rem;
  font-weight: 800;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
}

.button:hover,
button:hover {
  border-color: var(--green-dark);
  background: var(--green-dark);
  color: var(--white);
}

.button-secondary {
  background: transparent;
  color: var(--green-dark);
}

.button-light {
  border-color: var(--white);
  background: var(--white);
  color: var(--green-dark);
}

.section,
.search-layout,
.detail-layout,
.form-wrap,
.admin-page {
  width: min(100% - 40px, var(--max));
  margin: 0 auto;
  padding: 72px 0;
}

.section-tint {
  width: 100%;
  max-width: none;
  padding-right: max(20px, calc((100% - var(--max)) / 2));
  padding-left: max(20px, calc((100% - var(--max)) / 2));
  background: var(--soft);
}

.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 28px;
}

.section-heading h2,
.section-heading p {
  margin-bottom: 0;
}

.section-label,
.feature-label,
.status-tag {
  margin-bottom: 8px;
  color: var(--red);
  font-size: 0.74rem;
  font-weight: 900;
  text-transform: uppercase;
}

.feature-label {
  color: var(--gold);
}

.job-list {
  display: grid;
  gap: 1px;
  border-top: 1px solid var(--line);
  background: var(--line);
}

.job-card {
  display: grid;
  grid-template-columns: minmax(220px, 1.2fr) minmax(260px, 1fr) auto;
  align-items: center;
  gap: 24px;
  min-height: 150px;
  padding: 24px;
  background: var(--white);
}

.job-card .feature-label {
  grid-column: 1 / -1;
  margin-bottom: -16px;
}

.job-card h3 {
  margin-bottom: 6px;
  font-size: 1.25rem;
}

.job-card h3 a,
.company-card h3 a,
.resource-card h3 a {
  color: var(--ink);
}

.job-location,
.job-employer,
.job-date,
.muted,
.article-date,
.filter-summary {
  margin-bottom: 0;
  color: var(--muted);
}

.job-location {
  font-size: 0.82rem;
  font-weight: 800;
  text-transform: uppercase;
}

.job-card ul {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 16px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.job-card li {
  color: #34424d;
  font-size: 0.9rem;
}

.job-date {
  font-size: 0.82rem;
}

.province-list,
.company-list,
.resource-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.province-list a,
.company-card,
.resource-card {
  min-height: 126px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: var(--white);
  color: var(--ink);
  text-decoration: none;
}

.province-list a {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.province-list span {
  font-size: 1.08rem;
  font-weight: 800;
}

.province-list strong,
.company-card p,
.resource-card > p {
  color: var(--muted);
  font-size: 0.88rem;
}

.company-card p:last-child,
.resource-card p:last-child {
  margin-bottom: 0;
}

.employer-callout {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  width: min(100% - 40px, var(--max));
  margin: 32px auto 72px;
  padding: clamp(30px, 5vw, 56px);
  background: var(--green-dark);
  color: var(--white);
}

.employer-callout h2,
.employer-callout p {
  margin-bottom: 6px;
}

.page-head,
.job-head,
.company-head {
  width: min(100% - 40px, var(--max));
  margin: 0 auto;
  padding: 72px 0 42px;
  border-bottom: 1px solid var(--line);
}

.page-head h1,
.job-head h1,
.company-head h1,
.resource-article h1,
.status-page h1,
.admin-page h1 {
  max-width: 20ch;
  margin-bottom: 16px;
  font-size: clamp(2.1rem, 5vw, 4.3rem);
}

.page-head > p:last-child,
.job-company,
.company-head > p {
  max-width: 740px;
  color: var(--muted);
  font-size: 1.08rem;
}

.search-layout {
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  align-items: start;
  gap: 44px;
}

.filters {
  position: sticky;
  top: 24px;
  padding: 20px;
  border: 1px solid var(--line);
  background: var(--soft);
}

.results-head {
  margin-bottom: 22px;
}

.results-head h2 {
  margin-bottom: 6px;
  font-size: 1.5rem;
}

.job-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 32px;
}

.breadcrumb {
  color: var(--muted);
  font-size: 0.88rem;
}

.detail-layout {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(250px, 0.8fr);
  align-items: start;
  gap: 64px;
}

.job-body,
.resource-article {
  max-width: 800px;
}

.facts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin: 0 0 44px;
  border-top: 1px solid var(--line);
}

.facts div {
  padding: 18px 8px 18px 0;
  border-bottom: 1px solid var(--line);
}

.facts dt,
.status-page dt,
.admin-details dt {
  color: var(--muted);
  font-size: 0.74rem;
  font-weight: 800;
  text-transform: uppercase;
}

.facts dd,
.status-page dd,
.admin-details dd {
  margin: 2px 0 0;
  font-weight: 700;
}

.prose-section,
.resource-article section {
  margin-bottom: 40px;
}

.prose-section h2,
.resource-article h2 {
  font-size: 1.5rem;
}

.prose-section p,
.resource-article p {
  white-space: pre-line;
}

.company-panel {
  padding: 24px;
  border-top: 5px solid var(--green);
  background: var(--soft);
}

.company-panel h2 {
  font-size: 1rem;
  text-transform: uppercase;
}

.company-panel .text-button {
  min-height: 0;
  margin-top: 26px;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--green-dark);
  text-decoration: underline;
}

.listing-note {
  padding-top: 24px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.88rem;
}

.form-wrap {
  display: grid;
  grid-template-columns: minmax(230px, 0.75fr) minmax(0, 2fr);
  align-items: start;
  gap: 52px;
}

.listing-options {
  position: sticky;
  top: 24px;
  padding: 24px;
  border-top: 5px solid var(--red);
  background: var(--soft);
}

.listing-options h2 {
  font-size: 1.15rem;
}

.listing-options > p,
.listing-options div {
  padding-bottom: 18px;
  border-bottom: 1px solid var(--line);
}

.job-form fieldset {
  margin: 0 0 38px;
  padding: 0;
  border: 0;
}

.job-form {
  grid-column: 2;
}

.job-form legend {
  width: 100%;
  margin-bottom: 20px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--ink);
  font-size: 1.35rem;
  font-weight: 800;
}

.field-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin-bottom: 18px;
}

.field-wide {
  display: block;
  margin-top: 18px;
}

label em {
  color: var(--red);
  font-size: 0.7rem;
  font-style: normal;
}

.choice-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.choice-row label {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  min-height: 100px;
  padding: 18px;
  border: 1px solid var(--line);
}

.choice-row input,
.consent input {
  flex: 0 0 auto;
  width: 20px;
  min-height: 20px;
  margin: 3px 0 0;
}

.choice-row span {
  display: flex;
  flex-direction: column;
}

.choice-row small {
  color: var(--muted);
}

.consent {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 24px;
}

.honeypot {
  position: absolute;
  left: -10000px;
}

.form-errors {
  grid-column: 2;
  padding: 20px;
  border-left: 5px solid var(--red);
  background: #fff1ef;
}

.form-errors h2 {
  font-size: 1.15rem;
}

.empty-state,
.status-page {
  padding: clamp(30px, 5vw, 60px);
  border: 1px solid var(--line);
  background: var(--soft);
}

.status-page {
  width: min(100% - 40px, 760px);
  margin: 72px auto;
}

.status-page dl,
.admin-details dl {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin: 32px 0;
  border-top: 1px solid var(--line);
}

.status-page dl div,
.admin-details dl div {
  padding: 16px 10px 16px 0;
  border-bottom: 1px solid var(--line);
}

.resource-article {
  width: min(100% - 40px, 820px);
  margin: 0 auto;
  padding: 72px 0;
}

.article-lead {
  color: var(--muted);
  font-size: 1.2rem;
}

.sources {
  padding: 24px;
  border-left: 5px solid var(--green);
  background: var(--soft);
}

.sources p:last-child {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.admin-item {
  border-top: 1px solid var(--line);
}

.admin-summary {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  padding: 22px 0;
}

.admin-summary h2 {
  margin-bottom: 4px;
  font-size: 1.25rem;
}

.admin-summary p {
  margin-bottom: 0;
}

.admin-item summary {
  margin-bottom: 20px;
  color: var(--green-dark);
  font-weight: 800;
  cursor: pointer;
}

.admin-details {
  margin-bottom: 30px;
  padding: 24px;
  background: var(--soft);
}

.admin-copy {
  max-width: 800px;
}

.admin-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 12px 0 20px;
}

.admin-actions button {
  min-height: 40px;
  padding: 8px 12px;
  background: var(--white);
  color: var(--green-dark);
}

.site-footer {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 28px 50px;
  padding: 48px max(20px, calc((100% - var(--max)) / 2));
  border-top: 1px solid var(--line);
  background: var(--ink);
  color: var(--white);
}

.site-footer p {
  margin-bottom: 0;
  color: #c7d0d6;
}

.site-footer a {
  color: var(--white);
}

.copyright {
  grid-column: 1 / -1;
  padding-top: 24px;
  border-top: 1px solid #35404a;
  font-size: 0.82rem;
}

@media (max-width: 920px) {
  .site-header {
    align-items: flex-start;
    padding: 18px 0;
  }

  .home-hero {
    grid-template-columns: 1fr;
  }

  .home-hero img {
    min-height: 320px;
    max-height: 420px;
  }

  .search-layout,
  .detail-layout,
  .form-wrap {
    grid-template-columns: 1fr;
  }

  .filters,
  .listing-options {
    position: static;
  }

  .form-errors {
    grid-column: 1;
  }

  .job-form {
    grid-column: 1;
  }

  .job-card {
    grid-template-columns: minmax(0, 1fr) auto;
  }

  .job-card ul,
  .job-card .feature-label {
    grid-column: 1 / -1;
  }
}

@media (max-width: 700px) {
  body {
    font-size: 15px;
  }

  .site-header {
    display: block;
  }

  .site-header nav {
    margin-top: 18px;
    gap: 10px 18px;
  }

  .site-header .nav-action {
    padding: 6px 10px;
  }

  .home-hero,
  .site-header,
  .section,
  .search-layout,
  .detail-layout,
  .form-wrap,
  .admin-page,
  .page-head,
  .job-head,
  .company-head,
  .employer-callout {
    width: min(100% - 28px, var(--max));
  }

  .hero-copy {
    padding: 34px 20px;
  }

  .home-hero img {
    min-height: 250px;
  }

  .search-form,
  .field-grid,
  .choice-row,
  .facts,
  .status-page dl,
  .admin-details dl,
  .province-list,
  .company-list,
  .resource-list,
  .site-footer {
    grid-template-columns: 1fr;
  }

  .section,
  .search-layout,
  .detail-layout,
  .form-wrap,
  .admin-page,
  .resource-article {
    padding-top: 48px;
    padding-bottom: 48px;
  }

  .section-heading,
  .job-head,
  .employer-callout,
  .admin-summary {
    align-items: flex-start;
    flex-direction: column;
  }

  .job-card {
    grid-template-columns: 1fr;
    min-height: 0;
    padding: 20px;
  }

  .job-card ul,
  .job-card .feature-label {
    grid-column: 1;
  }

  .company-panel {
    order: -1;
  }

  .status-page {
    width: min(100% - 28px, 760px);
    margin: 36px auto;
  }

  .site-footer nav {
    align-items: flex-start;
    flex-direction: column;
  }

  .copyright {
    grid-column: 1;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}
