.job-board__shell {
  width: min(100%, 82rem);
  margin-inline: auto;
  padding: 2.25rem 2.35rem;
  border: 1px solid rgba(24, 37, 74, 0.06);
  border-radius: 2rem;
  background: linear-gradient(180deg, #fafafb 0%, #f4f5f7 100%);
  box-shadow: 0 22px 48px rgba(34, 31, 32, 0.05);
}

.job-board__shell--cork {
  border-radius: 0;
  border-color: rgba(92, 58, 34, 0.16);
  background: radial-gradient(
      circle at 12% 18%,
      rgba(255, 228, 185, 0.16) 0 1px,
      transparent 2px
    ),
    radial-gradient(
      circle at 71% 35%,
      rgba(94, 56, 31, 0.12) 0 1px,
      transparent 2px
    ),
    radial-gradient(
      circle at 42% 78%,
      rgba(255, 235, 208, 0.14) 0 1px,
      transparent 2px
    ),
    linear-gradient(135deg, #9f6f47, #7c5334 50%, #694427);
  box-shadow: 0 18px 42px rgba(34, 31, 32, 0.16);
}

.job-board__toolbar {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1.5rem;
  padding-bottom: 1.75rem;
  border-bottom: 1px solid rgba(34, 31, 32, 0.08);
}

.job-board__intro {
  flex: 1 1 0;
  width: 100%;
  max-width: 38rem;
  min-width: 0;
}

.job-board__intro--centered {
  margin-inline: auto;
  text-align: center;
}

.job-board__section-title {
  margin: 0;
  color: #18254a;
}

.job-board__section-description {
  margin-top: 0.7rem;
  color: rgba(34, 31, 32, 0.68);
}

.job-board__section-description > *:first-child {
  margin-top: 0;
}

.job-board__section-description > *:last-child {
  margin-bottom: 0;
}

.job-board__section-button {
  margin-top: 1rem;
}

.job-board__intro--centered .job-board__section-button {
  display: flex;
  justify-content: center;
}

.job-board__summary {
  margin: 0;
  color: rgba(102, 120, 149, 0.52);
  font-size: 0.875rem;
  font-weight: 500;
  letter-spacing: 0.01em;
  line-height: 1.3;
  white-space: nowrap;
}

.job-board {
  display: flex;
  flex-direction: column;
  gap: 1.35rem;
  margin-top: 2rem;
}

.job-board__list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.75rem;
}

.job-board__card {
  display: flex;
  min-height: 24.5rem;
  flex-direction: column;
  gap: 1.15rem;
  padding: 1.7rem 1.75rem 1.45rem;
  border: 1px solid rgba(24, 37, 74, 0.08);
  border-radius: 1.75rem;
  background: linear-gradient(180deg, #ffffff 0%, #fbfbfc 100%);
  box-shadow: 0 12px 28px rgba(34, 31, 32, 0.06);
  transition:
    transform 0.25s ease,
    box-shadow 0.25s ease,
    border-color 0.25s ease;
}

.job-board__card:hover {
  transform: translateY(-4px);
  border-color: rgba(89, 197, 187, 0.3);
  box-shadow: 0 20px 36px rgba(34, 31, 32, 0.1);
}

.job-board--cork .job-board__card {
  border-radius: 0;
  box-shadow: 0 14px 28px rgba(34, 31, 32, 0.16);
}

.job-board__card-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
}

.job-board__icon-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 4.15rem;
  height: 4.15rem;
  border-radius: 1.15rem;
  background: linear-gradient(180deg, #eaf1f2 0%, #e3ecec 100%);
  color: #3e98a0;
  flex: 0 0 auto;
}

.job-board__icon-chip svg {
  width: 2rem;
  height: 2rem;
}

.job-board__employment-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.1rem;
  padding: 0.35rem 0.82rem;
  border: 1px solid #b9d2d4;
  border-radius: 999px;
  background: #f4f9f9;
  color: #196f77;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  line-height: 1;
  text-transform: uppercase;
  white-space: nowrap;
}

.job-board__employment-pill--part_time {
  border-color: #e7d4a0;
  background: #fdf9ef;
  color: #9f6b10;
}

.job-board__employment-pill--full_time {
  border-color: #9fd6cf;
  background: #f0f9f8;
  color: #0f7072;
}

.job-board__content {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
}

.job-board__title {
  margin: 0;
  color: #18254a;
  font-size: clamp(1.35rem, 1.15rem + 0.4vw, 1.55rem);
  font-weight: 650;
  letter-spacing: -0.015em;
  line-height: 1.12;
}

.job-board__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.55rem;
  margin: 0.92rem 0 0;
  color: #7a879d;
  font-size: 0.95rem;
  font-weight: 500;
  line-height: 1.4;
}

.job-board__meta-item {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
}

.job-board__meta-icon,
.job-board__date-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.1rem;
  height: 1.1rem;
  color: currentColor;
  flex: 0 0 auto;
}

.job-board__meta-icon svg,
.job-board__date-icon svg {
  width: 100%;
  height: 100%;
}

.job-board__description {
  margin-top: 1.08rem;
  color: #8391a6;
  font-size: 0.98rem;
  line-height: 1.68;
}

.job-board__description > * {
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 4;
}

.job-board__description > *:first-child {
  margin-top: 0;
}

.job-board__description > *:last-child {
  margin-bottom: 0;
}

.job-board__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-top: auto;
  padding-top: 1.35rem;
  border-top: 1px solid rgba(24, 37, 74, 0.08);
}

.job-board__date {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  margin: 0;
  color: #7584a0;
  font-size: 0.95rem;
  font-weight: 500;
  line-height: 1.3;
}

.job-board__cta {
  margin-left: auto;
}

.job-board__empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.85rem;
  margin-top: 1.75rem;
  padding: 2.75rem 1.5rem;
  border: 1px dashed rgba(24, 37, 74, 0.24);
  border-radius: 1.3rem;
  background: linear-gradient(180deg, #ffffff 0%, #f7f8fb 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9);
  text-align: center;
}

.job-board__empty-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 3rem;
  height: 3rem;
  color: #8593a8;
}

.job-board__empty-icon svg {
  width: 100%;
  height: 100%;
}

.job-board__empty-title {
  margin: 0;
  color: #223356;
  font-size: 1.1rem;
  font-weight: 650;
  line-height: 1.25;
}

.job-board__empty-message {
  margin: 0;
  max-width: 44ch;
  color: #75839a;
  font-size: 0.98rem;
  font-weight: 500;
  line-height: 1.5;
}

.job-board__pagination {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 0.35rem;
}

.job-board__pagination[hidden] {
  display: none;
}

.job-board__page-button {
  min-width: 2.75rem;
  min-height: 2.75rem;
  padding: 0.65rem 0.9rem;
  border: 1px solid rgba(34, 31, 32, 0.12);
  border-radius: 999px;
  background: transparent;
  color: var(--brand-primary);
  cursor: pointer;
  font: inherit;
  line-height: 1;
  transition:
    background-color 0.2s ease,
    border-color 0.2s ease,
    color 0.2s ease,
    transform 0.2s ease;
}

.job-board__page-button:hover,
.job-board__page-button:focus-visible {
  border-color: var(--brand-primary);
  color: var(--brand-primary);
  outline: none;
  transform: translateY(-1px);
}

.job-board__page-button[aria-current="page"] {
  border-color: var(--brand-primary);
  background: var(--brand-primary);
  color: #fff;
}

.job-board__page-button[disabled] {
  opacity: 0.45;
  cursor: not-allowed;
  transform: none;
}

@media (max-width: 1100px) {
  .job-board__list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 900px) {
  .job-board__shell {
    padding: 1.35rem;
  }

  .job-board__toolbar {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
  }

  .job-board__summary {
    white-space: normal;
  }
}

@media (max-width: 700px) {
  .job-board__shell {
    width: min(100%, calc(100% - 1rem));
    padding: 1rem;
  }

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

  .job-board__card {
    min-height: 0;
  }
}

@media (max-width: 600px) {
  .job-board__shell {
    padding: 0.8rem;
  }

  .job-board__card {
    padding: 1.2rem;
    border-radius: 1.2rem;
  }

  .job-board--cork .job-board__card {
    border-radius: 0;
  }

  .job-board__icon-chip {
    width: 3.5rem;
    height: 3.5rem;
  }

  .job-board__employment-pill {
    min-height: 2.2rem;
    padding-inline: 0.78rem;
    font-size: 0.82rem;
  }

  .job-board__description {
    font-size: 0.92rem;
    line-height: 1.6;
  }

  .job-board__footer {
    flex-wrap: wrap;
  }

  .job-board__page-button {
    min-width: 2.4rem;
    min-height: 2.4rem;
    padding: 0.55rem 0.75rem;
  }
}
