.ga-jobs-page .ga-jobs-button[hidden],
.ga-vacancies-arrow[hidden],
#ga-jobs-resume [hidden] {
  display: none;
}

.entry-content .ga-jobs-page h1 {
  font-size: 44px;
  line-height: 52px;
}

.entry-content .ga-jobs-page .ga-jobs-breadcrumb {
  line-height: 20px;
}

.ga-vacancies {
  position: relative;
  margin-block: 0 28px;
}

.ga-vacancies:has(.ga-vacancies-arrow:not([hidden])) {
  padding-inline: 44px;
}

.ga-vacancies-track {
  --vacancy-gap: 20px;
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: calc((100% - 2 * var(--vacancy-gap)) / 3);
  gap: var(--vacancy-gap);
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory;
  scrollbar-width: thin;
  padding: 2px 0 8px;
}

.ga-vacancy-card {
  display: flex;
  min-width: 0;
  flex-direction: column;
  align-items: stretch;
  gap: 12px;
  padding: clamp(16px, 2vw, 24px);
  border: 1px solid #dfe1e3;
  border-radius: 20px;
  background: #fff;
  scroll-snap-align: start;
  overflow-wrap: anywhere;
}

.ga-vacancy-heading {
  display: flex;
  align-items: center;
  gap: 12px;
}

.ga-vacancy-heading img { width: 56px; height: 56px; object-fit: contain; flex: 0 0 56px; }
.ga-vacancy-heading h2 { font-size: 24px; line-height: 30px; }
.ga-vacancy-salary {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #293136;
  font-size: 20px;
  line-height: 26px;
  font-weight: 700;
}
.ga-vacancy-salary svg { flex: 0 0 20px; color: #d63943; }
.ga-vacancy-card h3 { margin: 0 0 4px; font-size: 15px; }
.ga-vacancy-card ul { margin: 0; padding-inline-start: 18px; }
.ga-vacancy-card li::marker { color: #bd2933; }
.ga-vacancy-card .ga-jobs-button { margin-top: auto; min-height: 44px; }

.ga-vacancies-arrow {
  position: absolute;
  z-index: 1;
  top: 50%;
  transform: translateY(-50%);
  display: grid;
  width: 36px;
  height: 44px;
  place-items: center;
  padding: 0;
  border: 1px solid #dfe1e3;
  border-radius: 10px;
  background: #fff;
  color: #293136;
  font: 26px/1 "Segoe UI", Arial, sans-serif;
  cursor: pointer;
}

.ga-vacancies-arrow[data-ga-vacancy-step="-1"] { inset-inline-start: 0; }
.ga-vacancies-arrow[data-ga-vacancy-step="1"] { inset-inline-end: 0; }
.ga-vacancies-arrow:disabled { opacity: .45; cursor: default; }
.ga-vacancies :is(.ga-vacancies-arrow, .ga-vacancies-track):focus-visible {
  outline: 2px solid #a32430;
  outline-offset: 2px;
}

@media (max-width: 960px) {
  .ga-vacancies-track { grid-auto-columns: calc((100% - var(--vacancy-gap)) / 2); }
}

@media (max-width: 760px) {
  .entry-content .ga-jobs-page h1 { font-size: 30px; line-height: 36px; }
  .entry-content .ga-jobs-page .ga-jobs-breadcrumb { font-size: 13px; line-height: 18px; }
  .ga-vacancy-heading h2 { font-size: 18px; line-height: 22px; }
  .ga-vacancy-salary { font-size: 18px; line-height: 22px; }
}

@media (max-width: 620px) {
  .ga-vacancies:has(.ga-vacancies-arrow:not([hidden])) { padding-inline: 0; }
  .ga-vacancies-track { --vacancy-gap: 12px; grid-auto-columns: 100%; }
  .ga-vacancies-arrow { display: none; }
}

.ga-jobs-page button.ga-jobs-button {
  border: 0;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

.ga-jobs-page button.ga-jobs-button:focus-visible {
  outline: 2px solid #a32430;
  outline-offset: 3px;
}

#ga-jobs-resume {
  box-sizing: border-box;
  position: fixed;
  inset: 0;
  width: min(520px, calc(100% - 24px));
  max-width: none;
  max-height: calc(100% - 24px);
  max-height: calc(100dvh - 24px);
  overflow: auto;
  overscroll-behavior: contain;
  padding: 0;
  margin: auto;
  border: 0;
  border-radius: 20px;
  background: #fff;
  color: #293136;
  box-shadow: 0 22px 44px rgb(28 37 42 / 18%);
  font: 400 16px/1.45 "Segoe UI", Arial, sans-serif;
}

#ga-jobs-resume::backdrop {
  background: rgb(41 49 54 / 50%);
}

body:has(#ga-jobs-resume[open]) {
  overflow: hidden;
}

.ga-resume-panel {
  padding: clamp(18px, 5vw, 32px);
}

.ga-resume-heading {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 8px;
}

.ga-resume-heading h2 {
  margin: 0;
  color: inherit;
  font: 700 28px/1.2 "Segoe UI", Arial, sans-serif;
}

#ga-resume-description {
  margin: 12px 0 16px;
  color: #56606a;
  font-size: 15px;
}

.ga-resume-close {
  flex: 0 0 44px;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  margin: -5px -10px -5px 0;
  padding: 0;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: #56606a;
  cursor: pointer;
}

.ga-resume-close:hover {
  color: #a32430;
  background: #fbe9ea;
}

#ga-resume-form {
  display: grid;
  gap: 14px;
}

.ga-resume-field {
  display: grid;
  gap: 6px;
  min-width: 0;
  color: #293136;
  font-size: 14px;
  font-weight: 700;
}

.ga-resume-field input:not([type="file"]),
.ga-resume-attachment {
  box-sizing: border-box;
  width: 100%;
  min-width: 0;
  border: 1px solid #dfe1e3;
  border-radius: 10px;
  background: #fff;
  color: #293136;
}

.ga-resume-field input:not([type="file"]) {
  min-height: 46px;
  padding: 10px 13px;
  font: 400 16px/1.4 "Segoe UI", Arial, sans-serif;
}

.ga-resume-field input::placeholder {
  opacity: 1;
  color: #67717a;
}

.ga-resume-attachment {
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 64px;
  padding: 11px 15px;
  border-style: dashed;
  border-color: #b8bfc4;
  color: #bd2933;
  cursor: pointer;
}

.ga-resume-attachment svg {
  flex: 0 0 20px;
}

.ga-resume-attachment strong {
  font-size: 16px;
  overflow-wrap: anywhere;
}

#ga-resume-file-help {
  display: block;
  color: #56606a;
  font-size: 13px;
  font-weight: 400;
}

#ga-resume-file {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  cursor: pointer;
}

.ga-resume-field input:not([type="file"]):hover,
.ga-resume-attachment:hover,
.ga-resume-field input[aria-invalid="true"]:not([type="file"]),
.ga-resume-attachment:has(input[aria-invalid="true"]) {
  border-color: #bd2933;
}

.ga-resume-field input:not([type="file"]):focus,
.ga-resume-attachment:focus-within {
  border-color: #bd2933;
  outline: 0;
  box-shadow: 0 0 0 3px rgb(189 41 51 / 18%);
}

.ga-resume-remove {
  justify-self: start;
  padding: 6px 0;
  border: 0;
  background: transparent;
  color: #a32430;
  font: inherit;
  text-decoration: underline;
  cursor: pointer;
}

.ga-resume-send {
  width: 100%;
  min-height: 48px;
  padding: 10px 16px;
  border: 0;
  border-radius: 10px;
  background: #ce303b;
  color: #fff;
  font: 700 16px/1.4 "Segoe UI", Arial, sans-serif;
  cursor: pointer;
}

.ga-resume-send:hover {
  background: #bd2933;
}

.ga-resume-send:disabled {
  background: #a84b51;
  cursor: wait;
}

#ga-jobs-resume button:focus-visible {
  outline: 2px solid #a32430;
  outline-offset: 3px;
}

.ga-resume-error,
.ga-resume-feedback {
  margin: 0;
  color: #a32430;
  font-size: 14px;
  font-weight: 400;
}

.ga-resume-feedback:not(:empty) {
  margin-top: 12px;
}

.ga-resume-feedback[data-success] {
  color: #23613b;
}

@media (max-width: 420px) {
  .ga-resume-heading h2 {
    font-size: 24px;
  }
}
