:root {
  --bg: #f7f7f4;
  --surface: #ffffff;
  --surface-2: #f1f4f1;
  --text: #1f2723;
  --muted: #65716c;
  --line: #dfe5df;
  --brand: #b51f2a;
  --brand-dark: #801720;
  --accent: #d7a429;
  --green: #1f6f58;
  --ink: #101513;
  --shadow: 0 18px 45px rgba(23, 28, 25, 0.12);
  --radius: 8px;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  color: var(--text);
  background: var(--bg);
}

body {
  margin: 0;
  min-width: 320px;
  letter-spacing: 0;
}

button,
input,
select {
  font: inherit;
}

button {
  cursor: pointer;
}

.app-shell {
  min-height: 100vh;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 72px;
  padding: 10px clamp(16px, 3vw, 36px);
  background: rgba(255, 255, 255, 0.94);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(14px);
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  color: inherit;
  text-decoration: none;
  min-width: 0;
}

.logo-slot {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  flex: 0 0 48px;
  border: 1px solid #e2e7e2;
  border-radius: var(--radius);
  color: #59635e;
  background: #fff;
  font-size: 12px;
  font-weight: 700;
  overflow: hidden;
}

.logo-slot img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 1px;
}

.brand-name {
  font-size: 18px;
  font-weight: 800;
  color: var(--ink);
  white-space: nowrap;
}

.brand-subtitle {
  margin-top: 2px;
  font-size: 12px;
  color: var(--muted);
}

.top-actions {
  display: flex;
  gap: 8px;
}

.primary-button,
.ghost-button,
.search-button,
.chip,
.close-button {
  min-height: 40px;
  border-radius: var(--radius);
  border: 1px solid transparent;
  padding: 0 14px;
  font-weight: 700;
}

.primary-button,
.search-button {
  color: #fff;
  background: var(--brand);
}

.primary-button:hover,
.search-button:hover {
  background: var(--brand-dark);
}

.ghost-button {
  background: var(--surface);
  border-color: var(--line);
  color: var(--text);
}

.ghost-button:hover {
  border-color: #b8c3bb;
}

.link-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
}

.search-band {
  display: grid;
  gap: 18px;
  padding: 28px clamp(16px, 3vw, 36px) 22px;
  background:
    linear-gradient(90deg, rgba(181, 31, 42, 0.09), rgba(31, 111, 88, 0.08)),
    var(--surface);
  border-bottom: 1px solid var(--line);
}

.home-page {
  position: relative;
  display: grid;
  place-items: center;
  min-height: calc(100vh - 72px);
  overflow: hidden;
  padding: 52px clamp(16px, 3vw, 36px);
  background: #efe8dc;
}

.home-hero-image,
.home-overlay {
  position: absolute;
  inset: 0;
}

.home-hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.home-overlay {
  background:
    linear-gradient(180deg, rgba(252, 248, 240, 0.5), rgba(252, 248, 240, 0.2) 42%, rgba(252, 248, 240, 0.76)),
    linear-gradient(90deg, rgba(255, 255, 255, 0.88), rgba(255, 255, 255, 0.5) 45%, rgba(255, 255, 255, 0.16)),
    linear-gradient(135deg, rgba(181, 31, 42, 0.13), rgba(215, 164, 41, 0.08) 46%, rgba(31, 111, 88, 0.12));
}

.home-angola-ribbon {
  position: absolute;
  top: 0;
  left: 0;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.4fr 0.9fr 1.4fr;
  width: 100%;
  height: 7px;
}

.home-angola-ribbon span:nth-child(1) {
  background: var(--brand);
}

.home-angola-ribbon span:nth-child(2) {
  background: var(--accent);
}

.home-angola-ribbon span:nth-child(3) {
  background: var(--green);
}

.home-content {
  position: relative;
  z-index: 1;
  display: grid;
  justify-items: center;
  gap: 12px;
  width: min(920px, 100%);
  text-align: center;
}

.home-local-kicker {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
}

.home-local-kicker span {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  border-radius: 999px;
  padding: 5px 12px;
  color: #1b211e;
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(16, 21, 19, 0.12);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.home-local-kicker span:first-child {
  color: #fff;
  background: var(--brand);
  border-color: var(--brand);
}

.home-content h1 {
  margin: 0;
  color: var(--ink);
  font-size: clamp(42px, 4.5rem, 72px);
  line-height: 1;
  letter-spacing: 0;
  text-wrap: balance;
}

.home-content p {
  margin: 0;
  max-width: 740px;
  color: #2f3934;
  font-size: 18px;
  line-height: 1.45;
  text-wrap: balance;
}

.ai-badge {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  border: 1px solid rgba(31, 111, 88, 0.24);
  border-radius: 999px;
  padding: 5px 12px;
  color: #164f40;
  background: rgba(255, 255, 255, 0.84);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.ai-badge.compact {
  margin-bottom: 8px;
  background: #fff;
}

.home-search-form {
  display: grid;
  gap: 10px;
  width: min(760px, 100%);
  margin-top: 8px;
}

.home-query {
  display: grid;
  gap: 6px;
  width: 100%;
}

.home-query span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
  text-align: left;
  text-transform: uppercase;
}

.home-query input {
  width: 100%;
  height: 58px;
  border: 1px solid #cfd8d0;
  border-radius: 999px;
  padding: 0 22px;
  color: var(--text);
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 14px 36px rgba(16, 21, 19, 0.16);
  outline: none;
}

.home-filter-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) auto;
  gap: 10px;
  align-items: end;
}

.home-search-button {
  height: 46px;
  padding-inline: 22px;
}

.home-province-strip {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  width: min(760px, 100%);
  margin-top: 2px;
}

.home-province-strip a {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  border: 1px solid rgba(31, 111, 88, 0.2);
  border-radius: 999px;
  padding: 6px 12px;
  color: #164f40;
  background: rgba(255, 255, 255, 0.88);
  font-size: 13px;
  font-weight: 900;
  text-decoration: none;
}

.home-province-strip a:hover {
  border-color: var(--green);
  background: #fff;
}

.home-trust-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px 18px;
  width: min(820px, 100%);
  margin-top: 4px;
  color: #223029;
  font-size: 13px;
  font-weight: 800;
}

.home-trust-row span {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.home-trust-row span::before {
  content: "";
  width: 7px;
  height: 7px;
  flex: 0 0 7px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 3px rgba(215, 164, 41, 0.18);
}

.results-page[hidden],
.home-page[hidden] {
  display: none !important;
}

.search-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
}

.search-copy h1 {
  margin: 0;
  max-width: 780px;
  font-size: clamp(28px, 5vw, 46px);
  line-height: 1.05;
  color: var(--ink);
  letter-spacing: 0;
}

.search-copy p {
  margin: 8px 0 0;
  max-width: 680px;
  color: var(--muted);
  font-size: 16px;
}

.indexed-total {
  display: grid;
  justify-items: end;
  gap: 2px;
  min-width: 150px;
  padding-top: 8px;
  color: var(--muted);
  text-align: right;
}

.indexed-total span {
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.indexed-total strong {
  color: var(--ink);
  font-size: clamp(22px, 3vw, 34px);
  line-height: 1;
}

.search-form {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(150px, 0.55fr) minmax(150px, 0.55fr) auto;
  gap: 10px;
  align-items: end;
  max-width: 980px;
}

.collapsible-body[hidden] {
  display: none !important;
}

.collapsible-trigger {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  width: 100%;
  min-height: 34px;
  border: 0;
  padding: 0;
  color: var(--ink);
  background: transparent;
  text-align: left;
  cursor: default;
}

.collapsible-trigger span {
  min-width: 0;
  font-weight: 800;
}

.collapsible-trigger strong,
.collapsible-trigger i {
  display: none;
}

.collapsible-trigger strong {
  min-width: 0;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.collapsible-trigger i {
  width: 10px;
  height: 10px;
  flex: 0 0 10px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg);
  transition: transform 0.16s ease;
}

.is-open > .collapsible-trigger i {
  transform: rotate(225deg);
}

.city-collapsible {
  min-width: 0;
}

.city-trigger {
  display: none;
}

.field {
  display: grid;
  gap: 6px;
  min-width: 0;
}

.field span {
  font-size: 12px;
  font-weight: 800;
  color: var(--muted);
  text-transform: uppercase;
}

.field input,
.field select {
  width: 100%;
  height: 46px;
  border: 1px solid #cfd8d0;
  border-radius: var(--radius);
  padding: 0 12px;
  color: var(--text);
  background: #fff;
  outline: none;
}

.field input:focus,
.field select:focus {
  border-color: var(--green);
  box-shadow: 0 0 0 3px rgba(31, 111, 88, 0.14);
}

.field.compact input,
.field.compact select {
  height: 40px;
}

.quick-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.chip {
  min-height: 34px;
  padding: 0 11px;
  background: #fff;
  color: #26302b;
  border-color: #d4ddd6;
}

.chip.is-active {
  color: #fff;
  background: var(--green);
  border-color: var(--green);
}

.workspace {
  display: grid;
  grid-template-columns: 300px minmax(0, 1fr);
  gap: 18px;
  padding: 18px clamp(16px, 3vw, 36px) 36px;
}

.filters-panel {
  align-self: start;
  position: sticky;
  top: 88px;
  display: grid;
  gap: 12px;
}

.panel-section,
.results-area,
.job-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.panel-section {
  padding: 14px;
}

.panel-title {
  margin-bottom: 12px;
  font-weight: 800;
}

.panel-trigger {
  font-size: 18px;
}

.panel-body {
  margin-top: 12px;
}

.toggle-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 12px 0;
  color: var(--muted);
  font-size: 14px;
}

.province-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
}

.province-button {
  min-height: 34px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: #26302b;
  background: var(--surface-2);
  font-size: 13px;
  text-align: left;
  padding: 6px 8px;
}

.province-button.is-active {
  color: #fff;
  background: var(--brand);
  border-color: var(--brand);
}

.results-area {
  padding: 14px;
  min-width: 0;
}

.results-toolbar {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  padding: 4px 2px 12px;
}

.results-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.alert-button {
  min-height: 38px;
  border: 1px solid rgba(31, 111, 88, 0.34);
  border-radius: var(--radius);
  padding: 0 13px;
  color: #164f40;
  background: #f4faf7;
  font-weight: 900;
}

.alert-button:hover {
  border-color: var(--green);
  background: #ffffff;
}

.eyebrow {
  color: var(--green);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.results-toolbar h2 {
  margin: 3px 0 0;
  font-size: 22px;
  letter-spacing: 0;
}

.result-count {
  color: var(--muted);
  font-weight: 800;
  white-space: nowrap;
}

.jobs-list {
  display: grid;
  gap: 10px;
}

.job-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  padding: 14px;
  color: inherit;
  text-align: left;
  text-decoration: none;
  transition: border-color 0.15s, box-shadow 0.15s, transform 0.15s;
}

.job-card:hover {
  border-color: #b9c5bd;
  box-shadow: 0 8px 24px rgba(31, 39, 35, 0.08);
  transform: translateY(-1px);
}

.job-card h3 {
  margin: 0;
  font-size: 17px;
  line-height: 1.25;
  color: var(--ink);
}

.job-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 8px 0;
  color: var(--muted);
  font-size: 13px;
}

.job-description {
  margin: 0;
  color: #3e4943;
  font-size: 14px;
  line-height: 1.45;
}

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 10px;
}

.ai-mini {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  min-height: 24px;
  margin-top: 9px;
  border: 1px solid rgba(31, 111, 88, 0.22);
  border-radius: 999px;
  padding: 3px 8px;
  color: var(--green);
  background: #f4faf7;
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

.tag {
  border-radius: 999px;
  border: 1px solid #d7ded8;
  background: #f7faf7;
  color: #45504a;
  padding: 4px 8px;
  font-size: 12px;
  font-weight: 700;
}

.status-pill {
  align-self: start;
  border-radius: 999px;
  padding: 5px 9px;
  color: #fff;
  background: var(--green);
  font-size: 12px;
  font-weight: 800;
  white-space: nowrap;
}

.status-pill.closed {
  background: #7b827d;
}

.pager {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding-top: 16px;
}

.detail-drawer {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 50;
}

.alert-modal {
  position: fixed;
  inset: 0;
  z-index: 70;
}

.alert-modal[hidden] {
  display: none !important;
}

.alert-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(12, 17, 15, 0.42);
}

.alert-panel {
  position: absolute;
  left: 50%;
  top: 50%;
  display: grid;
  gap: 12px;
  width: min(520px, calc(100vw - 32px));
  max-height: calc(100vh - 32px);
  overflow: auto;
  transform: translate(-50%, -50%);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.alert-panel h2 {
  margin: 0;
  color: var(--ink);
  font-size: 24px;
  line-height: 1.15;
}

.alert-panel p {
  margin: 0;
  color: var(--muted);
  line-height: 1.45;
}

.alert-criteria {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fafbf8;
}

.alert-criteria span {
  border-radius: 999px;
  padding: 4px 8px;
  color: #45504a;
  background: #edf3ef;
  font-size: 12px;
  font-weight: 800;
}

.alert-status {
  min-height: 20px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.alert-status[data-status="success"] {
  color: var(--green);
}

.alert-status[data-status="error"] {
  color: var(--brand);
}

.alert-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.ghost-button.danger {
  color: var(--brand);
  border-color: #edc8cb;
}

.detail-drawer.is-open {
  display: block;
}

.drawer-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(12, 17, 15, 0.35);
}

.drawer-panel {
  position: absolute;
  top: 0;
  right: 0;
  width: min(66vw, 960px);
  height: 100%;
  overflow: auto;
  background: var(--surface);
  box-shadow: var(--shadow);
  padding: 26px;
}

.close-button {
  position: sticky;
  top: 0;
  float: right;
  width: 40px;
  padding: 0;
  background: #fff;
  border: 1px solid var(--line);
  font-size: 28px;
  line-height: 1;
  z-index: 2;
}

.detail-content h2 {
  margin: 0 48px 8px 0;
  font-size: clamp(24px, 4vw, 36px);
  line-height: 1.1;
}

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

.detail-box {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 12px;
  background: #fafbf8;
}

.detail-box span {
  display: block;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.detail-box strong {
  display: block;
  margin-top: 4px;
}

.source-link {
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  margin: 12px 0;
  padding: 0 14px;
  color: #fff;
  background: var(--brand);
  border-radius: var(--radius);
  text-decoration: none;
  font-weight: 800;
}

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

.contact-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  border-radius: var(--radius);
  padding: 0 14px;
  color: #fff;
  background: var(--green);
  text-decoration: none;
  font-weight: 900;
}

.contact-action:hover {
  background: #185744;
}

.job-images {
  display: grid;
  gap: 10px;
  margin: 16px 0 18px;
}

.job-images h2,
.job-images h3 {
  margin: 0;
  color: var(--ink);
}

.job-image-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 10px;
}

.job-image-card {
  display: grid;
  gap: 7px;
  color: inherit;
  text-decoration: none;
}

.job-image-card img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #f3f5f3;
}

.job-image-card span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  line-height: 1.35;
}

.safe-note {
  margin-top: 14px;
  border-left: 4px solid var(--accent);
  padding: 10px 12px;
  background: #fff8e3;
  color: #514425;
}

.ai-highlights {
  display: grid;
  gap: 8px;
  margin: 12px 0 18px;
  padding-left: 20px;
  color: #34413a;
}

.ai-highlights li::marker {
  color: var(--green);
}

.empty-state {
  padding: 30px;
  text-align: center;
  color: var(--muted);
  background: #fafbf8;
  border: 1px dashed #cbd5ce;
  border-radius: var(--radius);
}

.seo-home,
.seo-page {
  background: var(--bg);
}

.seo-home[hidden] {
  display: none !important;
}

.seo-home-inner,
.seo-page {
  display: grid;
  gap: 18px;
  width: min(1180px, 100%);
  margin: 0 auto;
  padding: 28px clamp(16px, 3vw, 36px) 44px;
}

.seo-intro,
.seo-section,
.seo-hero-band {
  padding: clamp(16px, 2.6vw, 26px);
}

.seo-intro,
.seo-section {
  border-bottom: 1px solid var(--line);
}

.seo-hero-band {
  background:
    linear-gradient(90deg, rgba(181, 31, 42, 0.08), rgba(31, 111, 88, 0.07)),
    var(--surface);
}

.seo-intro h2,
.seo-section h2,
.seo-hero-band h1 {
  margin: 4px 0 8px;
  color: var(--ink);
  line-height: 1.12;
  letter-spacing: 0;
}

.seo-intro h2 {
  max-width: 780px;
  font-size: clamp(24px, 4vw, 38px);
}

.seo-hero-band h1 {
  max-width: 860px;
  font-size: clamp(30px, 5vw, 50px);
}

.seo-intro p,
.seo-section p,
.seo-hero-band p {
  max-width: 820px;
  margin: 0;
  color: #34413a;
  line-height: 1.65;
}

.seo-section-head {
  display: grid;
  gap: 5px;
  margin-bottom: 14px;
}

.seo-section-head h2,
.seo-split h2 {
  margin: 0;
  font-size: 22px;
}

.seo-link-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 8px;
}

.seo-link-grid.compact {
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
}

.seo-link-card {
  display: flex;
  align-items: center;
  min-height: 44px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 9px 11px;
  color: var(--text);
  background: var(--surface-2);
  text-decoration: none;
  font-weight: 800;
}

.seo-link-card:hover {
  border-color: #bac6be;
  background: #fff;
}

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

.seo-split > div {
  display: grid;
  gap: 12px;
  min-width: 0;
}

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

.faq-grid details {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 12px;
  background: #fafbf8;
}

.faq-grid summary {
  color: var(--ink);
  font-weight: 900;
  cursor: pointer;
}

.faq-grid p {
  margin-top: 8px;
  font-size: 14px;
}

.seo-job-list {
  display: grid;
  gap: 10px;
}

.seo-job-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
}

.seo-job-card a {
  display: grid;
  gap: 6px;
  padding: 14px;
  color: inherit;
  text-decoration: none;
}

.seo-job-card h3 {
  margin: 0;
  color: var(--ink);
  font-size: 17px;
  line-height: 1.25;
}

.seo-job-card p {
  max-width: none;
  font-size: 14px;
}

.seo-job-meta {
  color: var(--muted) !important;
  font-weight: 700;
}

.job-seo-page {
  padding: 30px clamp(16px, 3vw, 36px) 48px;
}

.job-seo-card {
  width: min(920px, 100%);
  margin: 0 auto;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: clamp(18px, 3vw, 30px);
  background: var(--surface);
}

.job-seo-card h1 {
  margin: 8px 0 10px;
  color: var(--ink);
  font-size: clamp(28px, 5vw, 44px);
  line-height: 1.08;
}

.job-seo-card h2 {
  margin: 24px 0 8px;
  color: var(--ink);
  font-size: 20px;
}

.job-seo-card p {
  color: #34413a;
  line-height: 1.65;
}

.back-link {
  color: var(--green);
  font-weight: 800;
  text-decoration: none;
}

.site-footer {
  margin-top: 32px;
  padding: clamp(32px, 5vw, 56px) clamp(16px, 4vw, 56px) 0;
  color: #d7dde3;
  background: #101124;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(24px, 4vw, 56px);
  width: min(1180px, 100%);
  margin: 0 auto 46px;
}

.footer-grid section {
  display: grid;
  gap: 11px;
  align-content: start;
}

.footer-grid h2 {
  margin: 0 0 8px;
  color: #ffffff;
  font-size: 22px;
  line-height: 1.15;
}

.footer-grid a,
.footer-grid span {
  color: #aeb7c4;
  text-decoration: none;
  line-height: 1.35;
}

.footer-grid a:hover {
  color: #ffffff;
}

.footer-bottom {
  display: flex;
  justify-content: flex-end;
  gap: 24px;
  width: min(1180px, 100%);
  margin: 0 auto;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding: 18px 0 22px;
  color: #aeb7c4;
}

.info-page {
  padding: 30px clamp(16px, 3vw, 36px) 48px;
}

.info-card {
  width: min(860px, 100%);
  margin: 0 auto;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: clamp(18px, 3vw, 30px);
  background: var(--surface);
}

.info-card h1 {
  margin: 8px 0 12px;
  color: var(--ink);
  font-size: clamp(28px, 5vw, 44px);
  line-height: 1.08;
}

.info-card p {
  color: #34413a;
  line-height: 1.65;
}

@media (max-width: 880px) {
  .topbar {
    align-items: flex-start;
  }

  .top-actions {
    display: none;
  }

  .search-form,
  .home-filter-row,
  .workspace,
  .detail-grid,
  .seo-split,
  .faq-grid {
    grid-template-columns: 1fr;
  }

  .seo-home-inner,
  .seo-page {
    padding: 18px 16px 34px;
  }

  .seo-link-grid,
  .seo-link-grid.compact {
    grid-template-columns: 1fr 1fr;
  }

  .home-page {
    align-items: center;
    min-height: calc(100vh - 64px);
    padding: 34px 16px 30px;
  }

  .home-overlay {
    background:
      linear-gradient(180deg, rgba(252, 248, 240, 0.78), rgba(252, 248, 240, 0.52) 43%, rgba(252, 248, 240, 0.88)),
      linear-gradient(90deg, rgba(255, 255, 255, 0.86), rgba(255, 255, 255, 0.46)),
      linear-gradient(135deg, rgba(181, 31, 42, 0.1), rgba(215, 164, 41, 0.1) 46%, rgba(31, 111, 88, 0.11));
  }

  .home-content {
    justify-items: stretch;
    text-align: left;
  }

  .home-local-kicker,
  .home-province-strip,
  .home-trust-row {
    justify-content: flex-start;
  }

  .home-page .ai-badge {
    justify-self: start;
  }

  .home-content h1 {
    font-size: 46px;
  }

  .home-content p {
    font-size: 16px;
  }

  .home-query input {
    height: 54px;
  }

  .collapsible-trigger {
    cursor: pointer;
  }

  .collapsible-trigger strong,
  .collapsible-trigger i {
    display: block;
  }

  .city-trigger {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto 10px;
    min-height: 46px;
    border: 1px solid #cfd8d0;
    border-radius: var(--radius);
    padding: 0 12px;
    color: var(--text);
    background: #fff;
  }

  .city-trigger span {
    color: var(--muted);
    font-size: 12px;
    font-weight: 900;
    text-transform: uppercase;
  }

  .city-trigger strong {
    color: var(--text);
    font-size: 15px;
  }

  .city-collapsible .collapsible-body {
    margin-top: 8px;
  }

  .panel-trigger {
    min-height: 44px;
    font-size: 24px;
  }

  .panel-trigger strong {
    max-width: 46%;
    font-size: 14px;
  }

  .search-head {
    display: grid;
    gap: 12px;
  }

  .indexed-total {
    justify-items: start;
    min-width: 0;
    padding-top: 0;
    text-align: left;
  }

  .filters-panel {
    position: static;
  }

  .province-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .job-card {
    grid-template-columns: 1fr;
  }

  .status-pill {
    justify-self: start;
  }

  .drawer-panel {
    width: 100%;
    padding: 18px;
  }

  .contact-actions {
    display: grid;
    grid-template-columns: 1fr;
  }
}

@media (max-width: 520px) {
  .search-band {
    padding-top: 22px;
  }

  .brand-name {
    font-size: 16px;
  }

  .brand-subtitle {
    display: none;
  }

  .logo-slot {
    width: 42px;
    height: 42px;
    flex-basis: 42px;
  }

  .search-copy h1 {
    font-size: 30px;
  }

  .home-content h1 {
    font-size: 38px;
  }

  .ai-badge {
    font-size: 11px;
  }

  .home-local-kicker span {
    min-height: 28px;
    font-size: 11px;
  }

  .home-province-strip {
    gap: 6px;
  }

  .home-province-strip a {
    min-height: 32px;
    padding-inline: 10px;
    font-size: 12px;
  }

  .home-trust-row {
    display: grid;
    gap: 7px;
    font-size: 12px;
  }

  .results-toolbar {
    display: grid;
  }

  .results-actions {
    align-items: flex-start;
    justify-content: space-between;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }

  .footer-bottom {
    justify-content: flex-start;
    flex-wrap: wrap;
  }

  .province-grid {
    grid-template-columns: 1fr;
  }

  .seo-link-grid,
  .seo-link-grid.compact {
    grid-template-columns: 1fr;
  }

  .results-actions,
  .alert-actions {
    display: grid;
    grid-template-columns: 1fr;
  }

  .footer-grid {
    grid-template-columns: 1fr;
  }

  .site-footer {
    padding-top: 30px;
  }
}
