.eh-jobs {
  --eh-accent: #7622d7;
  --eh-heading-color: #0f172a;
  --eh-body-color: #475569;
  --eh-meta-color: #5b21b6;
  --eh-border: #d7c4f2;
  --eh-card-bg: #ffffff;
  --eh-section-bg: #ffffff;
  --eh-button-bg: var(--eh-accent);
  --eh-button-color: #ffffff;
  --eh-share-button-bg: transparent;
  --eh-share-button-color: #0f172a;
  --eh-share-button-border: #d7c4f2;
  --eh-share-button-hover-bg: #f4ebff;
  --eh-share-button-hover-color: #7622d7;
  --eh-share-button-hover-border: #c9aef0;
  --eh-switch-bg: #ffffff;
  --eh-switch-border: #d7c4f2;
  --eh-switch-inactive-text: #475569;
  --eh-switch-active-bg: #7622d7;
  --eh-switch-active-text: #ffffff;
  --eh-card-radius: 20px;
  --eh-button-radius: 18px;
  --eh-border-width: 1px;
  --eh-logo-size: 72px;
  --eh-logo-radius: 5%;
  --eh-shadow: 0 18px 45px rgba(15, 23, 42, 0.08);
  box-sizing: border-box;
  width: 100%;
  max-width: 100%;
  display: grid;
  gap: 1.5rem;
  padding: 1.75rem;
  border: var(--eh-border-width) solid var(--eh-border);
  border-radius: 24px;
  background:
    radial-gradient(circle at top right, color-mix(in srgb, var(--eh-accent) 18%, var(--eh-section-bg) 82%), transparent 34%),
    linear-gradient(180deg, var(--eh-section-bg) 0%, color-mix(in srgb, var(--eh-section-bg) 86%, #f8fafc 14%) 100%);
  box-shadow: var(--eh-shadow);
}

.eh-jobs__toolbar {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  box-sizing: border-box;
}

.eh-jobs__filters {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
}

.eh-jobs__filter {
  appearance: none;
  border: var(--eh-border-width) solid var(--eh-border);
  border-radius: 999px;
  background: #ffffff;
  color: var(--eh-heading-color);
  cursor: pointer;
  font-size: 0.9rem;
  font-weight: 700;
  line-height: 1;
  padding: 0.65rem 0.9rem;
  transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.eh-jobs__filter.is-active,
.eh-jobs__filter[aria-pressed="true"] {
  background: color-mix(in srgb, var(--eh-accent) 12%, #ffffff 88%);
  border-color: color-mix(in srgb, var(--eh-accent) 42%, var(--eh-border) 58%);
  color: var(--eh-accent);
}

.eh-jobs__filter:hover,
.eh-jobs__filter:focus-visible {
  transform: translateY(-1px);
}

.eh-jobs__switch {
  display: inline-flex;
  align-items: stretch;
  gap: 0.35rem;
  padding: 0.35rem;
  border-radius: 999px;
  background: var(--eh-switch-bg);
  border: var(--eh-border-width) solid var(--eh-switch-border);
  overflow: hidden;
  box-sizing: border-box;
}

.eh-jobs .screen-reader-text {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

.eh-jobs__toggle {
  appearance: none;
  border: 0;
  border-radius: 999px;
  background: transparent;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--eh-switch-inactive-text);
  min-width: 5.5rem;
  min-height: 3.15rem;
  padding: 0.78rem 1.15rem;
  font-weight: 700;
  line-height: 1;
  cursor: pointer;
  transition: background-color 0.2s ease, color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
  box-sizing: border-box;
  clip-path: inset(0 round 999px);
}

.eh-jobs__toggle[aria-pressed="true"] {
  background: var(--eh-switch-active-bg);
  color: var(--eh-switch-active-text);
  border-radius: 999px;
  box-shadow: 0 10px 24px color-mix(in srgb, var(--eh-switch-active-bg) 28%, transparent 72%);
}

.eh-jobs__toggle:not([aria-pressed="true"]):hover,
.eh-jobs__toggle:not([aria-pressed="true"]):focus {
  color: var(--eh-heading-color);
  background: color-mix(in srgb, var(--eh-switch-active-bg) 8%, var(--eh-switch-bg) 92%);
}

.eh-jobs__toggle:hover,
.eh-job-card__button:hover {
  transform: translateY(-1px);
}

.eh-jobs__items {
  width: 100%;
  max-width: 100%;
  display: grid;
  gap: 1rem;
  min-width: 0;
  box-sizing: border-box;
}

.eh-jobs__featured {
  width: 100%;
}

.eh-jobs--grid .eh-jobs__items {
  grid-template-columns: repeat(var(--eh-columns), minmax(0, 1fr));
}

.eh-jobs--list .eh-jobs__items {
  grid-template-columns: minmax(0, 1fr);
}

.eh-job-card {
  box-sizing: border-box;
  width: 100%;
  max-width: 100%;
  height: 100%;
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.4rem;
  border-radius: var(--eh-card-radius);
  border: var(--eh-border-width) solid var(--eh-border);
  background: var(--eh-card-bg);
  backdrop-filter: blur(6px);
  overflow: hidden;
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}

.eh-job-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 44px rgba(15, 23, 42, 0.12);
  border-color: color-mix(in srgb, var(--eh-accent) 32%, var(--eh-border) 68%);
}

.eh-job-card:target {
  border-color: color-mix(in srgb, var(--eh-accent) 48%, var(--eh-border) 52%);
  box-shadow: 0 0 0 2px color-mix(in srgb, var(--eh-accent) 18%, transparent 82%), 0 22px 52px rgba(15, 23, 42, 0.14);
}

.eh-job-card--featured {
  border-color: color-mix(in srgb, var(--eh-accent) 38%, var(--eh-border) 62%);
  box-shadow: 0 24px 54px rgba(15, 23, 42, 0.12);
  padding: 1.65rem;
}

.eh-job-card__badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  align-self: start;
  margin: 0;
  padding: 0.35rem 0.65rem;
  border-radius: 999px;
  background: color-mix(in srgb, var(--eh-accent) 12%, #ffffff 88%);
  color: var(--eh-accent);
  font-size: 0.82rem;
  font-weight: 700;
  line-height: 1;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.eh-jobs__featured .eh-job-card {
  min-height: 0;
}

.eh-jobs__featured .eh-job-card__main {
  gap: 1.25rem;
}

.eh-jobs__featured .eh-job-card__title {
  font-size: clamp(1.5rem, 2.6vw, 2.2rem);
}

.eh-jobs__featured .eh-job-card__footer {
  margin-top: 1rem;
}

.eh-jobs--grid .eh-jobs__items .eh-job-card--featured {
  grid-column: auto;
}

.eh-jobs--grid .eh-jobs__items .eh-job-card--featured .eh-job-card__title {
  font-size: clamp(1.35rem, 2.2vw, 1.85rem);
}

.eh-jobs--grid .eh-jobs__items .eh-job-card--featured .eh-job-card__main {
  gap: 1.15rem;
}

.eh-job-card__content {
  display: grid;
  gap: 0.75rem;
  min-width: 0;
  flex: 1 1 auto;
  width: 100%;
  max-width: 100%;
}

.eh-job-card__main {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: start;
  gap: 1rem;
  width: 100%;
  max-width: 100%;
  min-width: 0;
}

.eh-job-card__logo-wrap {
  width: var(--eh-logo-size);
  max-width: var(--eh-logo-size);
  min-width: 0;
}

.eh-job-card__logo {
  display: block;
  width: 100%;
  max-width: 100%;
  max-height: var(--eh-logo-size);
  object-fit: contain;
  border-radius: var(--eh-logo-radius);
}

.eh-job-card__text {
  display: grid;
  gap: 0.35rem;
  align-content: start;
  justify-items: start;
  min-width: 0;
  width: 100%;
  max-width: 100%;
}

.eh-job-card__title {
  margin: 0 !important;
  margin-block: 0 !important;
  line-height: 1.15;
  color: var(--eh-heading-color);
  text-transform: lowercase;
  max-width: 100%;
  overflow-wrap: anywhere;
  word-break: break-word;
  hyphens: auto;
}

.eh-job-card__summary {
  margin: 0;
  color: var(--eh-body-color);
  font-size: 1.02rem;
  line-height: 1.72;
  max-width: 100%;
  overflow-wrap: anywhere;
  word-break: break-word;
  hyphens: auto;
}

.eh-jobs .eh-job-card__details {
  display: grid;
  gap: 0.18rem;
  align-content: start;
  width: 100%;
  max-width: 100%;
  min-width: 0;
}

.eh-jobs .eh-job-card__detail-row {
  margin: 0 !important;
  padding: 0 !important;
  padding-bottom: 0 !important;
  color: var(--eh-body-color);
  font-size: 1rem;
  line-height: 1.35;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.eh-job-card__detail-label {
  font-weight: 700;
  color: var(--eh-heading-color);
  margin-right: 0.25rem;
}

.eh-job-card__detail-value {
  color: var(--eh-body-color);
}

.eh-jobs .eh-job-card__footer {
  display: flex;
  justify-content: flex-start;
  min-width: 0;
  width: 100%;
  max-width: 100%;
  margin-top: 0.6rem;
}

.eh-job-card__actions {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 0.65rem;
  flex-wrap: wrap;
  width: 100%;
}

.eh-jobs a.eh-job-card__button,
.eh-jobs a.eh-job-card__button:link,
.eh-jobs a.eh-job-card__button:visited,
.eh-jobs a.eh-job-card__button:hover,
.eh-jobs a.eh-job-card__button:focus,
.eh-jobs a.eh-job-card__button:active {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 32px;
  padding: 0.55rem 0.8rem;
  border-radius: var(--eh-button-radius);
  background: var(--eh-button-bg);
  color: var(--eh-button-color) !important;
  text-decoration: none !important;
  font-size: 0.92rem;
  font-weight: 700;
  line-height: 1.2;
  transition: transform 0.2s ease, opacity 0.2s ease;
  max-width: 100%;
  text-align: center;
  white-space: normal;
  overflow-wrap: anywhere;
  box-shadow: none;
  -webkit-text-fill-color: var(--eh-button-color);
}

.eh-jobs .eh-job-card__share {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 30px;
  width: 30px;
  min-width: 30px;
  padding: 0;
  border-radius: 10px;
  border: var(--eh-border-width) solid var(--eh-share-button-border);
  background: var(--eh-share-button-bg);
  color: var(--eh-share-button-color);
  font-size: 0.92rem;
  font-weight: 700;
  line-height: 1.2;
  cursor: pointer;
  transition: transform 0.2s ease, border-color 0.2s ease, color 0.2s ease, background-color 0.2s ease;
  position: relative;
}

.eh-jobs .eh-job-card__share:hover,
.eh-jobs .eh-job-card__share:focus {
  transform: translateY(-1px);
  border-color: var(--eh-share-button-hover-border);
  color: var(--eh-share-button-hover-color);
  background: var(--eh-share-button-hover-bg);
}

.eh-job-card__share-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 15px;
  height: 15px;
}

.eh-job-card__share-icon svg {
  display: block;
  width: 15px;
  height: 15px;
}

.eh-job-card__share-icon img {
  display: block;
  width: 15px;
  height: 15px;
  max-width: 100%;
  margin-bottom: 0 !important;
  object-fit: contain;
}

.eh-jobs .eh-job-card__share[data-feedback]::after {
  content: attr(data-feedback);
  position: absolute;
  bottom: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%);
  padding: 0.35rem 0.5rem;
  border-radius: 999px;
  background: #0f172a;
  color: #ffffff;
  font-size: 0.72rem;
  line-height: 1;
  white-space: nowrap;
}

.eh-jobs--button-xs .eh-job-card__button {
  min-height: 28px;
  padding: 0.45rem 0.68rem;
  font-size: 0.82rem;
}

.eh-jobs--button-xs .eh-job-card__share {
  min-height: 26px;
  width: 26px;
  min-width: 26px;
  padding: 0;
  font-size: 0.82rem;
}

.eh-jobs--button-sm .eh-job-card__button {
  min-height: 32px;
  padding: 0.55rem 0.8rem;
  font-size: 0.92rem;
}

.eh-jobs--button-sm .eh-job-card__share {
  min-height: 30px;
  width: 30px;
  min-width: 30px;
  padding: 0;
  font-size: 0.92rem;
}

.eh-jobs--button-md .eh-job-card__button {
  min-height: 38px;
  padding: 0.7rem 0.95rem;
  font-size: 0.98rem;
}

.eh-jobs--button-md .eh-job-card__share {
  min-height: 34px;
  width: 34px;
  min-width: 34px;
  padding: 0;
  font-size: 0.98rem;
}

.eh-jobs--shadow-none {
  --eh-shadow: none;
}

.eh-jobs--shadow-soft {
  --eh-shadow: 0 18px 45px rgba(15, 23, 42, 0.08);
}

.eh-jobs--shadow-strong {
  --eh-shadow: 0 24px 60px rgba(15, 23, 42, 0.14);
}

.eh-jobs--title-p .eh-job-card__title {
  font-size: 1rem;
}

.eh-jobs--title-h6 .eh-job-card__title {
  font-size: 1.1rem;
}

.eh-jobs--title-h5 .eh-job-card__title {
  font-size: 1.25rem;
}

.eh-jobs--title-h4 .eh-job-card__title {
  font-size: clamp(1.2rem, 2vw, 1.55rem);
}

.eh-jobs--title-h3 .eh-job-card__title {
  font-size: clamp(1.45rem, 2.4vw, 1.95rem);
}

.eh-jobs--grid .eh-job-card__summary {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 6;
  overflow: hidden;
}

.eh-jobs--grid .eh-job-card__footer {
  margin-top: auto;
  justify-content: flex-end;
}

.eh-jobs--list .eh-job-card__summary {
  display: block;
}

.eh-jobs--list .eh-job-card {
  min-height: 0;
}

.eh-jobs--list .eh-job-card {
  padding: 1.35rem 1.45rem;
}

.eh-jobs--list .eh-job-card__main {
  grid-template-columns: minmax(72px, var(--eh-logo-size)) minmax(0, 1fr);
  gap: 1.25rem;
}

.eh-jobs--list .eh-job-card__actions {
  justify-content: flex-end;
}

.eh-jobs-empty,
.eh-jobs-error {
  padding: 1rem 1.25rem;
  border-radius: 14px;
  background: #f8fafc;
  border: 1px solid #cbd5e1;
}

@media (max-width: 960px) {
  .eh-jobs--grid .eh-jobs__items {
    grid-template-columns: repeat(min(2, var(--eh-columns)), minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .eh-jobs {
    padding: 1rem;
    border-radius: 18px;
  }

  .eh-jobs__toolbar {
    display: none;
  }

  .eh-job-card__main {
    grid-template-columns: 1fr;
    gap: 0.85rem;
  }

  .eh-job-card {
    padding: 1.15rem;
  }

  .eh-job-card__logo-wrap {
    width: min(64px, var(--eh-logo-size));
    max-width: min(64px, var(--eh-logo-size));
  }

  .eh-job-card__summary {
    font-size: 1rem;
    line-height: 1.68;
  }

  .eh-job-card__detail-row {
    font-size: 0.96rem;
    line-height: 1.55;
  }

  .eh-jobs--grid .eh-job-card__footer,
  .eh-jobs--list .eh-job-card__footer {
    justify-content: flex-start;
  }

  .eh-job-card__actions {
    justify-content: flex-start;
  }

  .eh-jobs--grid .eh-jobs__items,
  .eh-jobs--list .eh-jobs__items {
    grid-template-columns: minmax(0, 1fr);
  }

  .eh-jobs--grid .eh-jobs__items .eh-job-card--featured {
    grid-column: auto;
    padding: 1.25rem;
  }

}
