/* ========== LAB ARCHIVE (CPT career) ========== */
/* Same look as analyse; search-related styles removed */

#page {
  overflow: hidden;
}
.post-type-archive-career,
.tax-career_profession {
  --lab-max: 1100px;
  --lab-gap: 12px;
  --lab-border: #e5e7eb;
  --lab-muted: #6b7280;
  --lab-text: #111827;
  --lab-bg: #ffffff;
  --lab-chip: #f4f6fa;
  --lab-chip-hover: #eef2f7;
  --lab-accent: #22c55e; /* active letter / active item dot */
}

/* Container (same width as content) */
.post-type-archive-career .labkit-container,
.tax-career_profession .labkit-container {
  box-sizing: border-box;
  max-width: var(--lab-max);
  width: 100%;
  margin-inline: auto;
  padding-inline: 16px;
}

.labkit-archive {
  margin: 40px auto;
}

/* Page title defaults */
.post-type-archive-career h1,
.tax-career_profession h1 {
  font-size: 28px;
  line-height: 1.25;
  font-weight: 700;
  margin: 8px 0 16px;
}

/* ---------- HERO (full-width background, title aligned to container) ---------- */
.labkit-hero {
  width: 100%;
  min-height: 208px;
  display: flex;
  align-items: center;
  background-color: #0d3b66;
  background-image: var(--hero-img);
  background-repeat: no-repeat;
  background-position: right top;
  background-size: contain;
}
@media (max-width: 1450px) {
  .labkit-hero {
    background-size: cover;
  }
}
.labkit-hero__title {
  margin: 0;
  padding: 24px 0;
  color: #f0feff;
  font-family: 'Lato', system-ui, -apple-system, Segoe UI, Roboto, Helvetica,
    Arial, sans-serif;
  font-weight: 600;
  font-size: 40px;
  line-height: 1.2;
}

/* ===== Archive rows: flat list with dividers (Figma spec) ===== */

/* reset old card view */
.post-type-archive-career article,
.tax-career_profession article {
  margin: 0 !important;
  padding: 8px 0 !important; /* row height */
  background: transparent !important;
  border: 0 !important;
  border-bottom: 1px solid #e5e7eb !important; /* light divider */
  border-radius: 0 !important;
  box-shadow: none !important;
  transition: none !important;
}

/* Link takes the full row, space for chevron on the right */
.post-type-archive-career article > a,
.tax-career_profession article > a {
  display: block;
  position: relative;
  padding: 8px 44px 8px 0; /* right space for chevron */
}
.post-type-archive-career article:hover > a::after,
.tax-career_profession article:hover > a::after {
  opacity: 0.9;
  transform: translateY(-50%) translateX(2px);
}

/* meta list under title (optional utility) */
.labkit-row .labkit-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0;
  list-style: none;
  margin: 8px 0 0;
  padding: 0;
  color: #4d4d4d;
  font-size: 16px;
  line-height: 1.2;
  font-weight: 400;
}
.labkit-row .labkit-meta li {
  position: relative;
  margin: 0;
}
.labkit-row .labkit-meta li + li {
  padding-left: 14px;
}
.labkit-row .labkit-meta li + li::before {
  content: '';
  position: absolute;
  left: 6px;
  top: 50%;
  width: 4px;
  height: 4px;
  margin-top: -2px;
  border-radius: 50%;
  background: #0a386c;
}
.labkit-row .labkit-meta a {
  text-decoration: none;
  color: #4d4d4d;
}
.labkit-row .labkit-meta a:hover {
  color: #0a386c;
  text-decoration: underline;
}

/* Title */
.labkit-title {
  display: block;
  text-decoration: none;
  color: #000;
}
.labkit-title__text {
  font-size: 24px;
  line-height: 1;
  font-weight: 400;
  margin-left: 10px;
  display: block;
}

/* Categories — one line, separated by a blue dot */
.labkit-cats {
  display: flex;
  flex-wrap: nowrap;
  list-style: none;
  margin: 8px 10px 0;
  padding: 0;
  white-space: nowrap;
  overflow: hidden;
}
.labkit-cats li {
  margin: 0;
}
.labkit-cats li + li {
  padding-left: 14px;
  position: relative;
}
.labkit-cats li + li::before {
  content: '';
  position: absolute;
  left: 4px;
  top: 50%;
  width: 4px;
  height: 4px;
  margin-top: -2px;
  border-radius: 50%;
  background: #0a386c;
}
.labkit-cats a {
  color: #000200;
  text-decoration: none;
}
.labkit-cats a:hover {
  color: #0a386c;
  text-decoration: underline;
}

@media (max-width: 600px) {
  .labkit-cats {
    white-space: normal;
    flex-wrap: wrap;
    overflow: visible;
    row-gap: 6px;
  }
  .labkit-cats a {
    font-size: 14px;
    line-height: 1.3;
    overflow-wrap: anywhere;
    word-break: break-word;
  }
  .labkit-cats li + li {
    padding-left: 12px;
  }
  .labkit-title__text {
    font-size: 20px;
  }
}

/* ===== Pagination (minimal) ===== */
.labkit-archive .page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: auto;
  height: auto;
  padding: 0;
  margin: 0 14px 0 0;
  border: none;
  background: transparent;
  color: #111827;
  font-size: 16px;
  line-height: 1;
  text-decoration: none;
}
.labkit-archive .page-numbers.dots {
  margin: 0 10px;
  color: #9aa3af;
}
.labkit-archive a.page-numbers:hover {
  color: #0a386c;
  text-decoration: underline;
}
.labkit-archive .page-numbers.current {
  color: #0a386c;
  font-weight: 700;
}
.labkit-archive .page-numbers.prev,
.labkit-archive .page-numbers.next {
  font-size: 20px;
  color: #9aa3af;
  margin-right: 16px;
}
.labkit-archive a.page-numbers.prev:hover,
.labkit-archive a.page-numbers.next:hover {
  color: #0a386c;
}

/* ===== Items / page (right) ===== */
.labkit-per-page {
  float: right;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-top: -36px;
  user-select: none;
}
.labkit-per-page label {
  display: none;
}
.labkit-per-page span {
  font-size: 16px;
  color: #374151;
  white-space: nowrap;
}
.labkit-per-page select:focus {
  outline: none;
  border-color: #9ec5ff !important;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15);
}

/* mobile: move the select under pagination */
@media (max-width: 640px) {
  .labkit-per-page {
    float: none;
    margin: 12px 0 0;
  }
}

/* Row that holds pagination and the per-page select */
.labkit-pageline {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  margin-top: 20px;
}
.labkit-pageline .page-numbers {
  margin: 0 14px 0 0;
}
.labkit-pageline .page-numbers.dots {
  margin: 0 10px;
  color: #9aa3af;
}
.labkit-pageline a.page-numbers:hover {
  color: #0a386c;
  text-decoration: underline;
}
.labkit-pageline .page-numbers.current {
  color: #0a386c;
  font-weight: 700;
}
.labkit-pageline .page-numbers.prev,
.labkit-pageline .page-numbers.next {
  font-size: 20px;
  color: #9aa3af;
  margin-right: 16px;
}
.labkit-pageline a.page-numbers.prev:hover,
.labkit-pageline a.page-numbers.next:hover {
  color: #0a386c;
}

/* Right side: the "items / page" select */
.labkit-pageline .labkit-per-page {
  float: none;
  margin: 0;
  display: inline-flex;
  align-items: center;
  gap: 12px;
}
.labkit-pageline .labkit-per-page span {
  font-size: 16px;
  color: #374151;
  white-space: nowrap;
}
.labkit-pageline .labkit-per-page select {
  min-width: 100px;
  height: 48px;
  padding: 0 36px 0 12px;
  border: 1px solid #e5e7eb !important;
  border-radius: 0 !important;
  background: #fff;
  color: #111827;
  font-size: 16px;
  -webkit-appearance: none;
  appearance: none;
  background-image: url("data:image/svg+xml;utf8,\
  <svg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23838b99' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'>\
  <polyline points='6 9 12 15 18 9'/></svg>");
  background-repeat: no-repeat;
  background-position: right 12px center;
  background-size: 16px 16px;
}
.labkit-pageline .labkit-per-page select:focus {
  outline: none;
  border-color: #9ec5ff !important;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15);
}

/* Stack on small screens */
@media (max-width: 640px) {
  .labkit-pageline {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }
  .labkit-pageline .labkit-per-page {
    width: 100%;
  }
}

/* ---------- Empty state ---------- */
.labkit-empty-archive {
  padding: 24px 0;
}
.labkit-empty {
  display: grid;
  place-items: center;
  min-height: 220px;
  background: #fff;
}
.labkit-empty__img {
  width: 120px;
  height: auto;
  opacity: 0.8;
  margin-bottom: 10px;
}
.labkit-empty__text {
  color: #6b7280;
  font-size: 16px;
  line-height: 1.4;
  text-align: center;
}

.post-type-archive-career article > a::after,
.tax-career_profession article > a::after {
  content: '';
  position: absolute;
  right: 14px;
  top: 50%;
  width: 24px;
  height: 24px;
  transform: translateY(-50%);
  opacity: 0.55;
  pointer-events: none;
  background: no-repeat center/contain
    url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%23555' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><polyline points='9 6 15 12 9 18'/></svg>");
}

.post-type-archive-career article:hover > a::after,
.tax-career_profession article:hover > a::after {
  opacity: 0.9;
  transform: translateY(-50%) translateX(2px);
}

/* 1) Убираем стрелку с ссылки (если ранее добавляли) */
.post-type-archive-career article > a::after,
.tax-career_profession article > a::after {
  content: none !important;
}

/* 2) Делаем сам article позиционированным и даём справа место под стрелку */
.post-type-archive-career article,
.tax-career_profession article {
  position: relative !important;
  padding: 8px 44px 8px 0 !important; /* резерв под стрелку справа */
}

/* 3) Ставим стрелку на article и центрируем по всей высоте строки */
.post-type-archive-career article::after,
.tax-career_profession article::after {
  content: '';
  position: absolute;
  right: 14px;
  top: 50%;
  width: 24px;
  height: 24px;
  transform: translateY(-50%); /* чёткий центр по высоте всей строки */
  opacity: 0.55;
  pointer-events: none;
  background: no-repeat center/contain
    url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%23555' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><polyline points='9 6 15 12 9 18'/></svg>");
}

/* 4) Небольшой эффект на hover */
.post-type-archive-career article:hover::after,
.tax-career_profession article:hover::after {
  opacity: 0.9;
  transform: translateY(-50%) translateX(2px);
}
.labkit-container h1 {
  font-size: 52px !important;
  line-height: 1.25;
  font-weight: 700;
  margin: 8px 0 16px;
}
