/* The career form keeps native dialog/select behavior and the shared backdrop. */
.career-profile-dialog {
  width: min(600px, calc(100vw - 28px));
  max-width: 600px;
  max-height: calc(100dvh - 36px);
  padding: 0;
  border: 1px solid rgba(98, 81, 64, .38);
  border-radius: 14px;
  color: var(--ink, #171411);
  background: linear-gradient(150deg, #fbf7f0, #f2ebe1);
  box-shadow: 0 28px 90px rgba(34, 26, 19, .25), 0 3px 16px rgba(34, 26, 19, .10);
  overflow: hidden;
}
.career-profile-dialog[open] { display: flex; flex-direction: column; }
.career-profile-dialog .dialog-heading {
  flex: 0 0 auto;
  align-items: flex-start;
  gap: 16px;
  padding: 26px 28px 22px;
  border-bottom: 1px solid rgba(124, 105, 83, .20);
  background: transparent;
}
.career-profile-dialog .career-profile-heading-copy { min-width: 0; }
.career-profile-dialog .dialog-heading .eyebrow {
  margin: 0 0 7px;
  color: var(--red-dark, #8e241d);
  font: 600 12px/1.5 var(--brand-sans, sans-serif);
  letter-spacing: .06em;
}
.career-profile-dialog .dialog-heading h2 {
  margin: 0;
  color: var(--ink, #171411);
  font: 700 32px/1.25 var(--serif, serif);
  letter-spacing: -.035em;
  overflow-wrap: anywhere;
}
.career-profile-dialog #profile-description {
  margin: 11px 0 0;
  color: #74685b;
  font: 400 13px/1.7 var(--brand-sans, sans-serif);
}
.career-profile-dialog .dialog-close {
  display: grid;
  width: 44px;
  height: 44px;
  min-height: 44px;
  place-items: center;
  margin: -5px -7px 0 0;
  border: 1px solid transparent;
  border-radius: 8px;
  color: #766a5f;
  background: transparent;
  font: 400 28px/1 var(--brand-sans, sans-serif);
}
.career-profile-dialog .dialog-close:hover { border-color: rgba(124, 105, 83, .23); background: rgba(114, 84, 57, .06); color: var(--ink); }
.career-profile-dialog .dialog-close:focus-visible { outline: 2px solid var(--red-dark); outline-offset: 2px; }
.career-profile-dialog .dialog-body {
  display: grid;
  flex: 1 1 auto;
  min-height: 0;
  gap: 14px;
  padding: 20px 28px;
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-width: thin;
  scrollbar-color: #b2a492 transparent;
}
.career-profile-dialog .field { min-width: 0; margin: 0; }
.career-profile-dialog .career-profile-field {
  padding: 15px 16px 16px;
  border: 1px solid rgba(137, 116, 93, .24);
  border-radius: 10px;
  background: rgba(255, 252, 247, .65);
}
.career-profile-dialog .career-profile-field:focus-within { border-color: rgba(142, 36, 29, .40); background: #fcf8f2; }
.career-profile-dialog .field label {
  display: flex;
  align-items: center;
  gap: 9px;
  margin: 0 0 12px;
  color: #332a23;
  font: 650 15px/1.5 var(--brand-sans, sans-serif);
}
.career-profile-dialog .field label > small {
  margin-left: auto;
  color: #958574;
  font: 500 11px/1.5 var(--brand-mono, monospace);
}
.career-profile-dialog .career-profile-icon {
  display: inline-block;
  flex: 0 0 20px;
  width: 20px;
  height: 20px;
  color: var(--red-dark, #8e241d);
  background-color: currentColor;
  -webkit-mask: var(--profile-icon) center / contain no-repeat;
  mask: var(--profile-icon) center / contain no-repeat;
}
.career-profile-dialog .career-profile-icon-education { --profile-icon: url('./assets/icons/lucide/graduation-cap.svg'); }
.career-profile-dialog .career-profile-icon-experience { --profile-icon: url('./assets/icons/lucide/briefcase-business.svg'); }
.career-profile-dialog .career-profile-icon-next { --profile-icon: url('./assets/icons/lucide/arrow-left.svg'); transform: rotate(180deg); }
.career-profile-dialog .career-profile-control { position: relative; min-width: 0; }
.career-profile-dialog .career-profile-control::after {
  content: '';
  position: absolute;
  top: 50%;
  right: 13px;
  width: 16px;
  height: 16px;
  transform: translateY(-50%);
  background: #796858;
  -webkit-mask: url('./assets/icons/lucide/chevron-down.svg') center / contain no-repeat;
  mask: url('./assets/icons/lucide/chevron-down.svg') center / contain no-repeat;
  pointer-events: none;
}
.career-profile-dialog select {
  display: block;
  width: 100%;
  min-width: 0;
  min-height: 54px;
  margin: 0;
  padding: 13px 36px 13px 12px;
  border: 1px solid #baae9f;
  border-radius: 7px;
  appearance: none;
  -webkit-appearance: none;
  color: #2f261f;
  background: #fffdf8;
  font: 600 16px/1.5 var(--brand-sans, sans-serif);
  text-overflow: ellipsis;
  cursor: pointer;
}
.career-profile-dialog select:has(option[value='']:checked) { color: #8b7d6e; font-weight: 400; }
.career-profile-dialog select:hover { border-color: #8d7966; }
.career-profile-dialog select:focus-visible {
  border-color: var(--red-dark, #8e241d);
  outline: 2px solid var(--red-dark, #8e241d);
  outline-offset: 2px;
  box-shadow: 0 0 0 4px rgba(142, 36, 29, .07);
}
.career-profile-dialog select option { color: #2f261f; background: #fffdf8; font-weight: 400; }
.career-profile-dialog .career-profile-duration { margin-top: 15px; padding-top: 14px; border-top: 1px solid rgba(137, 116, 93, .23); }
.career-profile-dialog .career-profile-duration[hidden] { display: none; }
.career-profile-dialog .career-profile-duration label { margin-bottom: 9px; font-size: 14px; }
.career-profile-dialog .field .field-hint { margin: 9px 0 0; color: #796b5d; font: 400 12px/1.6 var(--brand-sans, sans-serif); }
.career-profile-dialog .dialog-footer {
  position: static;
  flex: 0 0 auto;
  padding: 18px 28px 22px;
  border-top: 1px solid rgba(124, 105, 83, .20);
  background: rgba(248, 242, 234, .90);
  text-align: center;
}
.career-profile-dialog .dialog-footer .career-profile-submit {
  justify-content: space-between;
  gap: 16px;
  width: 100%;
  min-height: 56px;
  padding: 15px 20px;
  border: 1px solid #75261f;
  border-radius: 8px;
  color: #fff9f0;
  background: #8e3028;
  box-shadow: 0 3px 7px rgba(86, 40, 29, .13), inset 0 1px 0 rgba(255, 248, 234, .14);
  font: 650 17px/1.4 var(--brand-sans, sans-serif);
  letter-spacing: .015em;
}
.career-profile-dialog .career-profile-submit .career-profile-icon { color: inherit; }
.career-profile-dialog .dialog-footer .career-profile-submit:hover { border-color: #64211b; background: #772820; }
.career-profile-dialog .career-profile-submit:focus-visible { outline: 2px solid var(--red-dark, #8e241d); outline-offset: 3px; }
.career-profile-dialog .dialog-footer > span { margin-top: 10px; color: #7a6c5e; font: 400 12px/1.5 var(--brand-sans, sans-serif); }
.career-profile-dialog .profile-error:not(:empty) { margin: 0 0 12px; padding: 10px 12px; border-left: 2px solid var(--red-dark); color: var(--red-dark); background: rgba(142, 36, 29, .06); font-size: 13px; text-align: left; }
@media (max-width: 480px) {
  .career-profile-dialog { width: calc(100vw - 24px); max-height: calc(100dvh - 24px); border-radius: 12px; }
  .career-profile-dialog .dialog-heading { gap: 10px; padding: 22px 20px 18px; }
  .career-profile-dialog .dialog-heading h2 { font-size: 26px; }
  .career-profile-dialog #profile-description { margin-top: 9px; font-size: 13px; }
  .career-profile-dialog .dialog-body { gap: 12px; padding: 16px; }
  .career-profile-dialog .career-profile-field { padding: 13px 12px 14px; }
  .career-profile-dialog .field label { gap: 8px; font-size: 14px; }
  .career-profile-dialog .dialog-footer { padding: 16px 20px 18px; }
}
@media (max-width: 360px) {
  .career-profile-dialog .dialog-heading { padding-left: 16px; padding-right: 16px; }
  .career-profile-dialog .dialog-body { padding: 14px; }
  .career-profile-dialog .career-profile-field { padding-left: 10px; padding-right: 10px; }
  .career-profile-dialog .dialog-footer { padding-left: 16px; padding-right: 16px; }
}
@media (forced-colors: active) {
  .career-profile-dialog, .career-profile-dialog .career-profile-field, .career-profile-dialog select { border-color: CanvasText; }
  .career-profile-dialog select { appearance: auto; -webkit-appearance: auto; }
  .career-profile-dialog .career-profile-control::after { display: none; }
  .career-profile-dialog .career-profile-icon { forced-color-adjust: none; color: CanvasText; }
  .career-profile-dialog .dialog-footer .career-profile-submit { color: ButtonText; border-color: ButtonText; background: ButtonFace; }
}
