/* Homepage mobile H1: escape Betheme's narrow mobile content wrapper. */
@media (max-width: 767px) {
  body.home .ijc-home-v2 .ijc-home-intro,
  body.page-id-5 .ijc-home-v2 .ijc-home-intro {
    width: 100vw !important;
    max-width: none !important;
    margin-right: calc(50% - 50vw) !important;
    margin-left: calc(50% - 50vw) !important;
    border-radius: 0 !important;
  }
}

/* Make the CV Studio steps readable and unmistakably interactive. */
.ijc-studio-enabled .ijc-progress button {
  cursor: pointer !important;
  touch-action: manipulation;
}

.ijc-studio-enabled .ijc-progress button b {
  font: inherit;
}

.ijc-studio-enabled .ijc-section-heading .ijc-link-button,
.ijc-studio-enabled .ijc-mobile-add-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 10px 16px;
  border: 1px solid #67407d;
  border-radius: 10px;
  background: #67407d;
  color: #fff !important;
  box-shadow: 0 8px 18px rgba(71, 40, 90, 0.14);
  cursor: pointer;
  font-weight: 800;
  line-height: 1.2;
  text-decoration: none;
}

.ijc-studio-enabled .ijc-section-heading .ijc-link-button:hover,
.ijc-studio-enabled .ijc-section-heading .ijc-link-button:focus-visible,
.ijc-studio-enabled .ijc-mobile-add-button:hover,
.ijc-studio-enabled .ijc-mobile-add-button:focus-visible {
  border-color: #243f55;
  background: #243f55;
  color: #fff !important;
}

.ijc-studio-enabled .ijc-mobile-add-button {
  width: 100%;
  margin: 4px 0 26px;
}

.ijc-studio-enabled .ijc-builder-helper {
  margin: 0 0 18px;
  padding: 12px 14px;
  border-left: 4px solid #67407d;
  border-radius: 0 9px 9px 0;
  background: #f4eff8;
  color: #3c2b47;
  font-size: 0.92rem;
  line-height: 1.5;
}

.ijc-studio-enabled select[data-field="qualification"] {
  width: 100%;
  min-height: 48px;
  padding: 10px 42px 10px 12px;
  border: 1px solid var(--ijc-line, #d7cfe0);
  border-radius: 8px;
  background-color: #fff;
  color: var(--ijc-ink, #202334);
  font: inherit;
}

.ijc-studio-enabled .ijc-cv-paper section h3[data-ijc-edit-step] {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  cursor: pointer;
}

.ijc-studio-enabled .ijc-cv-paper section h3[data-ijc-edit-step]::after {
  padding: 2px 5px;
  border: 1px solid currentColor;
  border-radius: 3px;
  content: attr(data-ijc-edit-label);
  font-size: 7px;
  font-weight: 700;
  letter-spacing: 0;
  line-height: 1;
  text-transform: none;
}

.ijc-studio-enabled .ijc-cv-paper section h3[data-ijc-edit-step]:focus-visible {
  outline: 2px solid #67407d;
  outline-offset: 3px;
}

@media (max-width: 760px) {
  .ijc-studio-enabled .ijc-progress {
    display: flex !important;
    gap: 0;
    overflow-x: auto !important;
    overscroll-behavior-x: contain;
    scroll-snap-type: x proximity;
    -webkit-overflow-scrolling: touch;
  }

  .ijc-studio-enabled .ijc-progress button {
    flex: 0 0 auto;
    width: auto;
    min-width: 116px !important;
    padding: 10px 8px !important;
    scroll-snap-align: start;
    font-size: 0.72rem !important;
    white-space: nowrap;
  }

  .ijc-studio-enabled .ijc-progress button span {
    flex: 0 0 28px;
    font-size: 0.78rem !important;
  }

  .ijc-studio-enabled .ijc-progress button b {
    display: inline !important;
    font-size: 0.72rem !important;
  }

  .ijc-studio-enabled .ijc-section-heading {
    align-items: stretch;
    flex-direction: column;
  }

  .ijc-studio-enabled .ijc-section-heading .ijc-link-button {
    width: 100%;
  }

  .ijc-studio-enabled .ijc-studio-actions > button {
    min-width: 132px;
  }
}

@media print {
  .ijc-studio-enabled .ijc-cv-paper section h3[data-ijc-edit-step]::after {
    display: none !important;
    content: none !important;
  }
}
