/* 0.0.28: scoped single vacancy and history layouts. */
.lc-job-page {
  margin-block: 0 !important;
}
.lc-job-page .lc-job-banner {
  margin: 0 !important;
  width: 100%;
  max-width: none;
}
.lc-job-page .lc-job-banner img {
  display: block;
  width: 100%;
  height: 450px;
  object-fit: cover;
  border-radius: 0;
}
.lc-job-titlebar {
  background: #f3f3f3;
  padding-block: clamp(1.75rem, 3vw, 3rem);
  margin-block: 0 !important;
}
.lc-job-page .lc-job-shell {
  padding-inline: 0 !important;
}
.lc-job-title-row {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  padding-bottom: 1.2rem;
}
.lc-job-title-row .lc-job-icon {
  flex: 0 0 auto;
  margin: 0;
}
.lc-job-title-row .wp-block-post-title {
  margin: 0 !important;
  font-size: clamp(2rem, 3.4vw, 3.5rem);
  line-height: 1.08;
  overflow-wrap: anywhere;
}
.lc-job-terms {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1rem;
}
.lc-job-terms .wp-block-post-terms {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin: 0 !important;
}
.lc-job-terms .wp-block-post-terms__separator {
  display: none;
}
.lc-job-terms a {
  display: inline-block;
  background: var(--wp--preset--color--secundario, #313131);
  color: white;
  padding: 0.3rem 0.6rem;
  border-radius: 0.3rem;
  text-decoration: none;
  font-size: 0.75rem;
}
.lc-job-body {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr);
  gap: clamp(2rem, 4vw, 5rem);
  padding-block: clamp(2.5rem, 4vw, 4rem);
}
.lc-job-copy,
.lc-job-aside {
  min-width: 0;
  margin-block: 0 !important;
}
.lc-job-copy .wp-block-post-content > :not(.alignfull) {
  max-width: 100%;
}
.lc-job-page .lc-job-form {
  margin: 0;
  padding: clamp(1.5rem, 3vw, 3.5rem);
  border: 0;
  background: #f5f5f5;
  border-radius: 1.25rem;
}
.lc-job-form > h2 {
  font-size: clamp(1.5rem, 2vw, 2rem);
  margin-top: 0;
}
.lc-job-body:not(:has(.lc-job-form)) {
  grid-template-columns: minmax(0, 1fr);
}
.lc-job-body:not(:has(.lc-job-form)) .lc-job-aside {
  display: none;
}
.lc-related-jobs {
  padding-bottom: clamp(3rem, 5vw, 5rem);
}
.lc-related-jobs > h2 {
  font-size: clamp(1.75rem, 2.5vw, 2.5rem);
}
.lc-related-track {
  display: flex;
  gap: 1rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding: 0 0 1rem;
  margin: 1.5rem 0 0;
  list-style: none;
  scrollbar-width: thin;
  scrollbar-color: var(--wp--preset--color--principal) transparent;
}
.lc-related-track > li {
  flex: 0 0 calc((100% - 2rem) / 3);
  min-width: 0;
  scroll-snap-align: start;
}
.lc-related-track article {
  border: 1px solid #aaa;
  border-radius: 0.75rem;
  padding: 1.5rem;
  min-height: 230px;
  height: 100%;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  gap: 2rem;
}
.lc-related-title {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}
.lc-related-title img {
  flex: 0 0 56px;
  object-fit: contain;
}
.lc-related-title h3 {
  font-size: clamp(1.25rem, 1.6vw, 1.6rem);
  margin: 0;
  overflow-wrap: anywhere;
}
.lc-related-title a {
  color: inherit;
  text-decoration: none;
}
.lc-related-link {
  margin: auto 0 0 auto;
  font-weight: 700;
  color: inherit;
  text-decoration: none;
}
.lc-history {
  --lc-history-gap: 48px;
  --lc-history-card-width: min(70vw, 880px);
  position: relative;
  margin-block: 3rem;
}
.lc-history-measure {
  position: fixed;
  left: 0;
  height: 0;
  width: min(
    var(--lc-container, 1600px),
    calc(100vw - (var(--lc-gutter, 24px) * 2))
  );
  visibility: hidden;
  pointer-events: none;
}
.lc-history-viewport {
  width: 100%;
}
.lc-history-track {
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x mandatory;
  scroll-padding-left: 0;
  padding: 16px 0 24px;
  scrollbar-width: thin;
  scrollbar-color: var(--wp--preset--color--principal) transparent;
}
.lc-history-list {
  display: flex;
  gap: var(--lc-history-gap);
  padding: 0 24px 0 0;
  margin: 0;
  list-style: none;
  width: max-content;
}

.lc-history-list .lc-history-item:first-child{
  padding-left: 15px;
}

.lc-history-item {
  position: relative;
  width: var(--lc-history-card-width);
  flex: 0 0 var(--lc-history-card-width);
  scroll-snap-align: start;
}
.lc-history-item:not(:last-child)::after {
  content: "";
  position: absolute;
  width: var(--lc-history-gap);
  right: calc(-1 * var(--lc-history-gap));
  top: calc(var(--lc-history-card-width) / 1.86 - 32px);
  height: 12px;
  background: radial-gradient(
      circle,
      var(--wp--preset--color--principal, #ea0029) 4px,
      transparent 5px
    )
    50% 50%/12px 12px repeat-x;
}
.lc-history-card {
  height: 100%;
  display: flex;
  flex-direction: column;
  background: #fff;
  border-radius: 1rem;
  box-shadow: 0 10px 18px #0002;
  overflow: hidden;
}
.lc-history-media {
  aspect-ratio: 1.86;
  width: 100%;
  background: #e4e4e4;
  flex-shrink: 0;
}
.lc-history-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.lc-history-copy {
  padding: clamp(1.25rem, 2.5vw, 2.5rem) clamp(1.25rem, 2.5vw, 2.5rem) 0;
  flex: 1;
  display: flex;
  flex-direction: column;
  min-height: 280px;
}
.lc-history-copy h3 {
  font-size: clamp(1.4rem, 3.5vw, 2.6rem);
  margin: 0 0 0.6rem;
  line-height: 1.08;
  overflow-wrap: anywhere;
}
.lc-history-copy p {
  font-size: clamp(1rem, 1.4vw, 1.25rem);
  line-height: 1.4;
  margin: 0 0 3rem;
  overflow-wrap: anywhere;
}
.lc-history-year {
  align-self: flex-end;
  margin: auto -6.5% -4% 0;
  font-family: var(--wp--preset--font-family--inter);
  font-weight: 900;
  font-size: clamp(96px, 12vw, 140px);
  line-height: 0.9;
  letter-spacing: -0.065em;
  color: var(--wp--preset--color--secundario, #313131);
}
.lc-history-controls {
  display: flex;
  gap: 0.25rem;
  margin-top: 0.5rem;
}
.lc-history-controls button {
  width: 52px;
  height: 52px;
  padding: 0;
  background: transparent;
  border: 0;
  color: var(--wp--preset--color--principal, #ea0029);
  cursor: pointer;
}
.lc-history-controls svg {
  width: 100%;
  height: 100%;
}
.lc-history-controls button:disabled {
  opacity: 0.2;
  cursor: default;
}
.lc-history-controls button:focus-visible,
.lc-history-track:focus-visible,
.lc-related-track:focus-visible {
  outline: 2px solid var(--wp--preset--color--principal);
  outline-offset: 3px;
}
@media (max-width: 1024px) {
  .lc-job-body {
    grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr);
    gap: 2rem;
  }
}
@media (max-width: 768px) {
  .lc-job-page .lc-job-banner img {
    height: 250px;
  }
  .lc-job-title-row {
    gap: 0.75rem;
  }
  .lc-job-title-row .lc-job-icon img {
    width: 48px;
    height: 48px;
  }
  .lc-job-body {
    grid-template-columns: minmax(0, 1fr);
  }
  .lc-related-track > li {
    flex-basis: calc((100% - 1rem) / 1.15);
  }
  .lc-related-track article {
    padding: 1.25rem;
    min-height: 210px;
  }
  .lc-history {
    --lc-history-gap: 16px;
    --lc-history-card-width: 80vw;
  }
  .lc-history-copy {
    min-height: 250px;
  }
  .lc-history-year {
    font-size: clamp(90px, 25vw, 140px);
  }
  .lc-history-item:not(:last-child)::after {
    background-size: 5px 8px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .lc-history-track,
  .lc-related-track {
    scroll-behavior: auto;
  }
}

/* 0.0.29: long date labels fit inside the existing card. Numeric years / 80s keep their size. */
.lc-history-year.lc-history-year-text {
  max-width: 100%;
  font-size: clamp(96px, 12vw, 125px);
  overflow-wrap: anywhere;
  letter-spacing: -0.045em;
  text-align: right;
margin-right: -7%;
    margin-bottom: -2.5%;
  line-height: 1;
}
@media (max-width: 768px) {
  .lc-history-year.lc-history-year-text {
    font-size: clamp(32px, 12vw, 64px);
  }
}

/* 0.0.31: shared vacancy cards (listing and single related cards). */
.lc-jobs-list .lc-job-card,
.lc-related-track .lc-job-card {
  display: flex;
  flex-direction: column;
  gap: 0;
  box-sizing: border-box;
  height: 100%;
  min-width: 0;
  min-height: 340px;
  padding: 1.5rem;
  border: 1px solid #d8d8d8;
  border-radius: 1.25rem;
  background: #fff;
  color: #111;
}
.lc-job-card > * {
  margin: 0;
  min-width: 0;
}
.lc-job-card .lc-job-card__header {
  display: flex;
  align-items: flex-end;
  gap: 1rem;
}
.lc-jobs-list .lc-job-card .lc-job-icon,
.lc-job-card .lc-job-icon {
  flex: 0 0 60px;
  margin: 0;
}
.lc-job-card .lc-job-icon img {
  display: block;
  width: 60px;
  height: 60px;
  object-fit: contain;
}
.lc-job-card .wp-block-post-title {
    flex: 1;
    min-width: 0;
    margin: 0;
    font-size: clamp(1.25rem, 1.65vw, 1.7rem);
    line-height: 1;
    font-weight: 800;
    overflow-wrap: anywhere;
    color: inherit;
    letter-spacing: -1.5px;
    display: block;
    max-width: 80%;
    position: relative;
    bottom: -3px;
}
.lc-job-card .wp-block-post-title a {
  color: inherit;
  text-decoration: none;
}
.lc-job-card .lc-job-card__categories {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: 0.75rem;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  margin:0;
  padding:1rem 0 0 0 ;
  overflow-x: auto;
  overflow-y: hidden;
  scrollbar-width: none;
  -ms-overflow-style: none;
  font-size: 0.875rem;
  line-height: 1.4;
  font-weight: 700;
  text-transform: uppercase;
}
.lc-job-card .lc-job-card__categories::-webkit-scrollbar {
  display: none;
}
.lc-job-card__categories a {
  flex: 0 0 auto;
  white-space: nowrap;
  color: #a7a7a7;
  text-decoration: none;
}
.lc-job-card__categories .wp-block-post-terms__separator {
  display: none;
}
.lc-job-card .lc-job-card__info {
  margin: 1.5rem 0 0;
}
.lc-job-card__info .wp-block-post-excerpt,
.lc-job-card__info .wp-block-post-excerpt__excerpt {
  margin: 0;
  font-size: 1.125rem;
  line-height: 1.2;
  color: inherit;
}
.lc-job-card__info .wp-block-post-excerpt__more-text {
  display: none;
}
.lc-job-card .lc-job-card__footer {
  display: flex;
  justify-content: flex-end;
  margin-top: auto;
  padding-top: 2rem;
}
.lc-job-card .wp-block-read-more {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin: 0;
  padding: 0;
  font-size: 1rem;
  line-height: 1;
  font-weight: 800;
  text-decoration: none;
font-family: var(--wp--preset--font-family--inter);
  letter-spacing: -.04rem;
}
.lc-job-card .wp-block-read-more::after {
  content: "";
  display: block;
  flex: 0 0 24px;
  width: 24px;
  height: 24px;
  background: currentColor;
  mask: url("../icons/job-arrow-right.svg") center/contain no-repeat;
  -webkit-mask: url("../icons/job-arrow-right.svg") center/contain no-repeat;
}
.lc-job-card a:hover {
  color: #000000;
}
.lc-job-card a:focus-visible,
.lc-job-card__categories:focus-visible {
  outline: 2px solid var(--wp--preset--color--principal);
  outline-offset: -2px;
}

@media (max-width: 768px) {
  .lc-jobs-list .lc-job-card,
  .lc-related-track .lc-job-card {
    padding: 1.25rem;
    min-height: 320px;
  }
  .lc-jobs-list .lc-job-card .lc-job-icon,
  .lc-job-card .lc-job-icon {
    flex-basis: 56px;
  }
  .lc-job-card .lc-job-icon img {
    width: 56px;
    height: 56px;
  }
  .lc-job-card .lc-job-card__header {
    gap: 0.75rem;
  }
}

.lc-job-card__header > * {
  margin-block: 0;
}
