/* DeepDimex — Careers page (static preview → future widgets) */

/* Hero override: page hero is fixed 500px globally; careers needs room for stats + aside */
.dd-page-hero.dd-careers-hero {
  height: 500px;
}

.dd-page-hero.dd-careers-hero .text-eyebrow {
  color: var(--dd-color-signal);
  margin-bottom: 0.85rem;
}

.dd-careers-hero-stats {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  max-width: 28rem;
}

.dd-careers-hero-stats__item {
  padding: 1rem 1.1rem;
  text-align: left;
  border: 1px solid rgba(242, 240, 233, 0.1);
  border-radius: 12px;
  background: rgba(20, 22, 22, 0.92);
}

.dd-careers-hero-stats__value {
  display: block;
  margin: 0;
  font-size: 1.125rem;
  font-weight: 600;
  line-height: 1.2;
  color: var(--dd-color-ink);
}

.dd-careers-hero-stats__label {
  display: block;
  margin-top: 0.35rem;
  font-size: 0.8125rem;
  line-height: 1.4;
  color: var(--dd-color-muted);
}

.dd-careers-aside {
  grid-column: 8 / span 5;
  padding: clamp(1.35rem, 2.4vw, 1.85rem) clamp(1.25rem, 2.2vw, 1.75rem);
  border: 1px solid rgba(242, 240, 233, 0.1);
  border-radius: 12px;
  background: rgba(20, 22, 22, 0.92);
}

.dd-careers-aside .text-eyebrow {
  margin: 0;
  color: var(--dd-color-signal);
}

.dd-careers-aside__list {
  display: grid;
  gap: 1rem;
  margin: 1.25rem 0 0;
  padding: 0;
  list-style: none;
}

.dd-careers-aside__list li {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.75rem;
  align-items: start;
  font-size: 0.9375rem;
  line-height: 1.45;
  color: var(--dd-color-muted);
}

.dd-careers-aside__list strong {
  display: block;
  margin-bottom: 0.15rem;
  color: var(--dd-color-ink);
  font-weight: 600;
}

.dd-careers-aside__index {
  display: grid;
  place-items: center;
  color: var(--dd-color-signal);
  font-size: 1rem;
  font-weight: 600;
}

/* Why join — future: dd-careers-why widget */
.dd-careers-why__intro {
  max-width: 40rem;
  margin-bottom: clamp(2rem, 5vw, 3rem);
}

.dd-careers-why__intro .dd-body-lg {
  margin-top: 0.85rem;
}

.dd-careers-why__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.dd-careers-why__card {
  padding: clamp(1.35rem, 2.5vw, 1.75rem);
  border: 1px solid var(--dd-border-dark);
  background: var(--dd-color-page);
}

.dd-careers-why__card h3 {
  margin: 0 0 0.65rem;
  font-size: 1.125rem;
  font-weight: 600;
}

.dd-careers-why__card p {
  margin: 0;
  color: var(--dd-color-muted);
  font-size: 0.9375rem;
  line-height: 1.55;
}

/* Open roles — future: dd-careers-roles widget */
.dd-careers-roles__intro {
  display: flex;
  flex-wrap: wrap;
  align-items: end;
  justify-content: space-between;
  gap: 1rem 2rem;
  margin-bottom: clamp(1.75rem, 4vw, 2.5rem);
}

.dd-careers-roles__intro > div {
  max-width: 40rem;
}

.dd-section--dark .dd-careers-roles__count {
  color: var(--dd-text-muted-on-dark);
}

.dd-careers-roles__count {
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--dd-color-muted);
}

.dd-careers-roles__list {
  display: grid;
  gap: 0.85rem;
}

.dd-careers-role {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr) auto;
  gap: 1rem 1.5rem;
  align-items: center;
  padding: clamp(1.2rem, 2.2vw, 1.6rem);
  border: 1px solid rgba(242, 240, 233, 0.12);
  background: rgba(16, 19, 19, 0.45);
  color: var(--dd-text-on-dark);
  text-decoration: none;
  transition:
    background-color var(--dd-duration) var(--dd-ease-out),
    border-color var(--dd-duration) var(--dd-ease-out);
}

.dd-careers-role:hover,
.dd-careers-role:focus-visible {
  background: rgba(16, 19, 19, 0.72);
  border-color: rgba(242, 240, 233, 0.22);
  outline: none;
}

.dd-careers-role__title {
  margin: 0 0 0.35rem;
  font-size: 1.125rem;
  font-weight: 600;
  line-height: 1.25;
}

.dd-careers-role__summary {
  margin: 0;
  color: var(--dd-text-muted-on-dark);
  font-size: 0.9375rem;
  line-height: 1.45;
}

.dd-careers-role__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.dd-careers-role__tag {
  display: inline-flex;
  align-items: center;
  padding: 0.3rem 0.55rem;
  border: 1px solid rgba(242, 240, 233, 0.14);
  font-size: 0.75rem;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: rgba(242, 240, 233, 0.78);
}

.dd-careers-role__action {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--dd-color-signal);
  text-transform: uppercase;
  white-space: nowrap;
}

.dd-careers-role__action::after {
  content: "";
  width: 0.85rem;
  height: 0.7rem;
  background-color: currentColor;
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='10' viewBox='0 0 12 10' fill='none'%3E%3Cpath d='M11.2842 3.93083L7.35333 0L6.76417 0.589166L10.6108 4.43667H0V5.27H10.6125L6.76417 9.1175L7.35333 9.70667L11.2842 5.77667C11.5308 5.53 11.6667 5.20167 11.6667 4.85333C11.6667 4.505 11.5308 4.17667 11.2842 3.93167V3.93083Z' fill='white'/%3E%3C/svg%3E");
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='10' viewBox='0 0 12 10' fill='none'%3E%3Cpath d='M11.2842 3.93083L7.35333 0L6.76417 0.589166L10.6108 4.43667H0V5.27H10.6125L6.76417 9.1175L7.35333 9.70667L11.2842 5.77667C11.5308 5.53 11.6667 5.20167 11.6667 4.85333C11.6667 4.505 11.5308 4.17667 11.2842 3.93167V3.93083Z' fill='white'/%3E%3C/svg%3E");
  -webkit-mask-size: contain;
  mask-size: contain;
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  transition: transform var(--dd-duration) var(--dd-ease-out);
}

.dd-careers-role:hover .dd-careers-role__action::after,
.dd-careers-role:focus-visible .dd-careers-role__action::after {
  transform: translateX(3px);
}

.dd-careers-roles__empty {
  margin-top: 1.5rem;
  padding: 1.25rem 1.35rem;
  border: 1px dashed rgba(242, 240, 233, 0.2);
  color: var(--dd-text-muted-on-dark);
  font-size: 0.9375rem;
}

.dd-careers-roles__empty a {
  color: var(--dd-text-on-dark);
  text-decoration: underline;
  text-underline-offset: 0.15em;
}

/* Hiring process — future: dd-careers-process widget */
.dd-careers-process__intro {
  max-width: 40rem;
  margin-bottom: clamp(2rem, 5vw, 3rem);
}

.dd-careers-process__steps {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: hire-step;
}

.dd-careers-process__step {
  position: relative;
  padding: clamp(1.35rem, 2.5vw, 1.75rem);
  border: 1px solid var(--dd-border-dark);
  background: var(--dd-color-page);
  counter-increment: hire-step;
}

.dd-careers-process__step::before {
  content: counter(hire-step, decimal-leading-zero);
  display: block;
  margin-bottom: 1rem;
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: var(--dd-brand-purple);
}

.dd-careers-process__step h3 {
  margin: 0 0 0.55rem;
  font-size: 1.0625rem;
  font-weight: 600;
}

.dd-careers-process__step p {
  margin: 0;
  color: var(--dd-color-muted);
  font-size: 0.9375rem;
  line-height: 1.5;
}

/* Talent pool teaser — future: dd-talent-pool-teaser widget */
.dd-talent-pool-teaser {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(0, 0.9fr);
  gap: clamp(1.75rem, 4vw, 3rem);
  align-items: center;
  padding: clamp(1.75rem, 3.5vw, 2.5rem);
  border-radius: 6px;
  background: #1b1b1b;
  color: inherit;
  isolation: isolate;
  position: relative;
}

.dd-talent-pool-teaser__copy .text-eyebrow {
  margin: 0;
}

.dd-talent-pool-teaser__copy h2 {
  margin: 0.35rem 0 0.75rem;
}

.dd-talent-pool-teaser__copy p {
  margin: 0;
  max-width: 38rem;
  color: var(--dd-color-muted);
  font-size: 1rem;
  line-height: 1.55;
}

.dd-talent-pool-teaser__points {
  display: grid;
  gap: 0.65rem;
  margin: 1.25rem 0 0;
  padding: 0;
  list-style: none;
}

.dd-talent-pool-teaser__points li {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.65rem;
  align-items: start;
  font-size: 0.9375rem;
  color: var(--dd-color-muted);
}

.dd-talent-pool-teaser__points li::before {
  content: "";
  width: 0.45rem;
  height: 0.45rem;
  margin-top: 0.45rem;
  border-radius: 50%;
  background: var(--dd-color-signal);
}

.dd-talent-pool-teaser__cta {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.85rem;
  justify-self: end;
  width: min(100%, 16rem);
}

.dd-talent-pool-teaser__badge {
  display: inline-flex;
  color: var(--dd-color-signal);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.dd-talent-pool-teaser__button {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.75rem 1rem;
  border: none;
  border-radius: var(--dd-radius-sm);
  background: var(--dd-brand-gradient) !important;
  color: #fff;
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  transition:
    filter var(--dd-duration) var(--dd-ease-out),
    transform var(--dd-duration) var(--dd-ease-out);
}

a.dd-talent-pool-teaser__button:hover,
a.dd-talent-pool-teaser__button:focus-visible {
  color: #fff;
  filter: brightness(1.06);
  outline: none;
  transform: translateY(-1px);
}

.dd-talent-pool-teaser__button::after {
  content: "";
  width: 0.85rem;
  height: 0.7rem;
  background-color: currentColor;
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='10' viewBox='0 0 12 10' fill='none'%3E%3Cpath d='M11.2842 3.93083L7.35333 0L6.76417 0.589166L10.6108 4.43667H0V5.27H10.6125L6.76417 9.1175L7.35333 9.70667L11.2842 5.77667C11.5308 5.53 11.6667 5.20167 11.6667 4.85333C11.6667 4.505 11.5308 4.17667 11.2842 3.93167V3.93083Z' fill='white'/%3E%3C/svg%3E");
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='10' viewBox='0 0 12 10' fill='none'%3E%3Cpath d='M11.2842 3.93083L7.35333 0L6.76417 0.589166L10.6108 4.43667H0V5.27H10.6125L6.76417 9.1175L7.35333 9.70667L11.2842 5.77667C11.5308 5.53 11.6667 5.20167 11.6667 4.85333C11.6667 4.505 11.5308 4.17667 11.2842 3.93167V3.93083Z' fill='white'/%3E%3C/svg%3E");
  -webkit-mask-size: contain;
  mask-size: contain;
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  transition: transform var(--dd-duration) var(--dd-ease-out);
}

.dd-talent-pool-teaser__button:hover::after,
.dd-talent-pool-teaser__button:focus-visible::after {
  transform: translateX(3px);
}

@media (max-width: 1100px) {
  .dd-careers-why__grid,
  .dd-careers-process__steps {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .dd-careers-role {
    grid-template-columns: 1fr;
    gap: 0.85rem;
  }

  .dd-careers-role__action {
    justify-self: start;
  }
}

@media (max-width: 900px) {
  .dd-careers-aside {
    grid-column: 1 / -1;
    justify-self: stretch;
    width: 100%;
    max-width: 36rem;
    margin-top: 0.5rem;
  }

  .dd-talent-pool-teaser {
    grid-template-columns: 1fr;
  }

  .dd-talent-pool-teaser__cta {
    justify-self: start;
    width: auto;
  }
}

@media (max-width: 640px) {
  .dd-careers-hero-stats,
  .dd-careers-why__grid,
  .dd-careers-process__steps {
    grid-template-columns: 1fr;
  }
}
