/* Your Career Passport (My Profile). Uses the colors and components from styles.css.
   Desktop: the profile on the left; Get Discovered, the next step and the résumé on the right.
   Phones and narrow windows: one column, with the next step right after the Career Snapshot. */

.passport { max-width: 1280px; margin: 0 auto; padding-top: 26px; }
.passport-head h2 { margin: 0; color: var(--white); font-size: clamp(30px, 3.6vw, 40px); letter-spacing: -1.2px; }
.passport-subtitle { margin: 6px 0 0; color: var(--muted); font-size: 18px; }

.passport-banner {
  display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px;
  margin: 22px 0 0; padding: 16px 20px;
  border: 1px solid var(--line); border-radius: 16px; background: var(--card); color: var(--muted);
}
.passport-banner.error { border-color: rgba(255, 107, 107, 0.5); color: var(--ink); }

.passport-grid {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(300px, 380px);
  gap: 20px; align-items: start; margin-top: 22px;
}
.passport-main, .passport-side { display: flex; flex-direction: column; gap: 18px; min-width: 0; }

.passport-card {
  min-width: 0; padding: 22px 24px;
  border: 1px solid var(--line); border-radius: 16px; background: var(--card);
  overflow-wrap: anywhere;
}
.passport-card-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 12px; margin-bottom: 14px; }
.passport-card-head h3 { margin: 0; color: var(--white); font-size: 19px; letter-spacing: -0.2px; }
.passport-card .status { margin-top: 10px; }
.passport-card .status:empty { margin: 0; }
.passport-empty { margin: 0; color: var(--muted); font-size: 14px; }
.label-note { color: var(--muted); font-size: 13px; font-weight: 400; }

.link-button {
  display: inline; min-height: 0; padding: 0; border: 0; background: none;
  color: var(--accent); font: inherit; font-weight: 700; text-decoration: underline; text-underline-offset: 3px; cursor: pointer;
}
.link-button:hover { color: var(--accent-hover); }
.passport-link { display: inline-block; margin-top: 12px; font-size: 14px; font-weight: 700; text-underline-offset: 3px; }

/* Forms inside the passport */
.passport fieldset { min-width: 0; margin: 0 0 14px; padding: 0; border: 0; }
.passport legend { margin-bottom: 6px; padding: 0; font-weight: 700; }
.passport .field.narrow { max-width: 280px; }
.passport-editor { margin-top: 16px; padding-top: 18px; border-top: 1px solid var(--line); }
.passport .form-actions .status { flex-basis: 100%; margin-top: 0; }
.chip-add input, .money input {
  width: 100%; min-height: 44px; padding: 10px 14px;
  border: 1px solid var(--field-border); border-radius: 12px; background: var(--navy); color: var(--ink); font: inherit;
}
.chip-add input:focus, .money input:focus { border-color: var(--accent); outline: 2px solid var(--accent); outline-offset: 1px; }

/* Career Snapshot */
.snapshot-view { display: flex; align-items: flex-start; gap: 18px; }
.snapshot-avatar {
  display: grid; flex: none; place-items: center; width: 64px; height: 64px; border-radius: 50%;
  border: 2px solid var(--accent-line); background: rgba(167, 255, 120, 0.08);
  color: var(--accent); font-size: 22px; font-weight: 700; letter-spacing: 0.5px;
}
.snapshot-text { min-width: 0; }
.snapshot-text p { margin: 0; }
.snapshot-name { color: var(--white); font-size: 22px; font-weight: 700; line-height: 1.3; }
.snapshot-headline { margin-top: 2px !important; color: var(--ink); font-size: 16px; }
.snapshot-location { display: flex; align-items: center; gap: 6px; margin-top: 6px !important; color: var(--muted); font-size: 14px; }
.snapshot-location::before {
  content: ""; flex: none; width: 15px; height: 15px; background: var(--muted);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 2a7 7 0 0 0-7 7c0 5.3 7 13 7 13s7-7.7 7-13a7 7 0 0 0-7-7Zm0 9.5A2.5 2.5 0 1 1 12 6.5a2.5 2.5 0 0 1 0 5Z'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 2a7 7 0 0 0-7 7c0 5.3 7 13 7 13s7-7.7 7-13a7 7 0 0 0-7-7Zm0 9.5A2.5 2.5 0 1 1 12 6.5a2.5 2.5 0 0 1 0 5Z'/%3E%3C/svg%3E") center / contain no-repeat;
}
.snapshot-bio { margin-top: 12px !important; color: var(--ink); font-size: 15px; white-space: pre-line; }
.snapshot-text .passport-empty { margin-top: 8px; }

/* The LinkedIn import, folded inside the snapshot editor */
.passport .linkedin-import { margin: 0 0 18px; padding: 0; border: 1px solid var(--line); border-radius: 14px; background: rgba(255, 255, 255, 0.02); }
.passport .linkedin-import > summary {
  display: flex; align-items: center; gap: 10px; min-height: 48px; padding: 10px 16px;
  cursor: pointer; list-style: none; border-radius: 14px;
}
.passport .linkedin-import > summary::-webkit-details-marker { display: none; }
.passport .linkedin-import > summary::after { content: "▾"; margin-left: auto; color: var(--muted); font-size: 16px; }
.passport .linkedin-import[open] > summary::after { content: "▴"; }
.linkedin-summary { color: var(--white); font-weight: 700; }
.passport .linkedin-import > :not(summary) { margin-left: 16px; margin-right: 16px; }
.passport .linkedin-import > .hint { margin-top: 0; }
.passport .linkedin-import > :last-child { margin-bottom: 16px; }

/* My Next Move */
.passport-facts { display: grid; gap: 0; margin: 0; }
.passport-facts > div { display: grid; grid-template-columns: 150px minmax(0, 1fr); gap: 4px 16px; padding: 10px 0; border-top: 1px solid var(--line); }
.passport-facts > div:first-child { border-top: 0; padding-top: 0; }
.passport-facts dt { color: var(--muted); font-size: 14px; }
.passport-facts dd { margin: 0; color: var(--ink); }
.passport-facts dd.unset { color: var(--muted); font-style: italic; }
.segmented { display: inline-flex; margin-bottom: 12px; border: 1px solid var(--alt-border); border-radius: 12px; overflow: hidden; }
.segmented label { position: relative; display: flex; }
.segmented input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.segmented span { min-height: 40px; padding: 8px 18px; font-weight: 700; cursor: pointer; }
.segmented input:checked + span { background: var(--accent); color: var(--accent-ink); }
.segmented input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: -4px; }
.pay-inputs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; max-width: 460px; }
.money-field label { display: block; margin-bottom: 6px; font-weight: 700; }
.money { position: relative; display: block; }
.money > span { position: absolute; top: 50%; left: 14px; transform: translateY(-50%); color: var(--muted); pointer-events: none; }
.passport .money input { padding-left: 28px; }
.choice-row { display: flex; flex-wrap: wrap; gap: 0 20px; }
/* Checkboxes inside .field: undo the site's full-width text-box styles for inputs and block labels */
.passport .field label.checkbox { display: flex; align-items: center; gap: 8px; min-height: 40px; margin-bottom: 0; font-weight: 400; }
.passport .field .checkbox input[type="checkbox"] { flex: none; width: 20px; height: 20px; min-height: 0; margin: 0; padding: 0; }

/* Chips: target roles and skills */
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 12px; padding: 0; list-style: none; }
.chip {
  display: inline-flex; align-items: center; gap: 2px; max-width: 100%; min-height: 34px; padding: 3px 4px 3px 12px;
  border: 1px solid var(--accent-line); border-radius: 999px; background: rgba(167, 255, 120, 0.08);
  color: var(--ink); font-size: 14px; line-height: 1.35; overflow-wrap: anywhere;
}
.chips-static { margin: 0; }
.chips-static .chip { padding: 3px 12px; }
.chip .chip-remove {
  flex: none; width: 28px; height: 28px; min-height: 28px; padding: 0; border: 0; border-radius: 50%;
  background: transparent; color: var(--muted); font-size: 18px; font-weight: 400; line-height: 1;
}
.chip .chip-remove:hover:not(:disabled) { background: rgba(255, 255, 255, 0.08); color: var(--white); }
.chip-add { display: flex; gap: 8px; align-items: center; }
.chip-add input { flex: 1 1 auto; min-width: 0; }
.chip-add .btn { flex: none; }

/* What I Bring */
.bring-group { border-top: 1px solid var(--line); }
.bring-group:first-of-type { border-top: 0; }
.bring-group > summary {
  display: flex; align-items: center; gap: 10px; min-height: 48px; padding: 6px 0;
  color: var(--white); font-size: 16px; font-weight: 700; cursor: pointer; list-style: none;
}
.bring-group > summary::-webkit-details-marker { display: none; }
.bring-group > summary::after { content: "▾"; margin-left: auto; color: var(--muted); font-size: 16px; font-weight: 400; }
.bring-group[open] > summary::after { content: "▴"; }
.bring-group[open] { padding-bottom: 16px; }
.bring-count:not(:empty) { padding: 1px 9px; border: 1px solid var(--line); border-radius: 999px; color: var(--muted); font-size: 13px; font-weight: 700; }
.credential-note { margin: 0 0 10px; font-size: 13px; }
.entry-list { display: grid; gap: 8px; margin: 0 0 12px; padding: 0; list-style: none; }
.entry { border: 1px solid var(--line); border-radius: 12px; background: rgba(255, 255, 255, 0.02); }
.entry-summary { display: grid; gap: 2px; padding: 12px 40px 12px 14px; position: relative; cursor: pointer; list-style: none; border-radius: 12px; }
.entry-summary::-webkit-details-marker { display: none; }
.entry-summary::after { content: "▾"; position: absolute; top: 11px; right: 14px; color: var(--muted); font-size: 16px; }
.entry-details[open] > .entry-summary::after { content: "▴"; }
.entry-head { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 8px; }
.entry-title { color: var(--white); font-size: 15px; }
.entry-line { color: var(--muted); font-size: 14px; }
.entry-body { padding: 0 14px 14px; }
.entry-notes { margin: 0 0 12px; color: var(--ink); font-size: 14px; white-space: pre-line; }
.passport-entry-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.badge { display: inline-block; padding: 1px 8px; border: 1px solid var(--line); border-radius: 999px; color: var(--muted); font-size: 12px; font-weight: 700; line-height: 1.6; }
.badge-self { border-color: var(--accent-line); color: var(--accent); }
.badge-warn { border-color: rgba(255, 107, 107, 0.5); color: var(--danger); }
.entry-form { margin: 4px 0 12px; padding: 16px; border: 1px solid var(--accent-line); border-radius: 14px; background: rgba(167, 255, 120, 0.03); }
.entry-form .form-grid { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.entry-form .form-grid > .field, .entry-form .form-grid > fieldset { margin-bottom: 0; }
.date-inputs { display: flex; gap: 8px; }
.date-inputs select { flex: 1 1 0; min-width: 0; }
.passport .date-field label.checkbox { margin-top: 6px; }
.entry-add { margin-top: 2px; }

/* Get Discovered */
.switch-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.switch-label { color: var(--white); font-size: 16px; font-weight: 700; }
.switch {
  position: relative; flex: none; width: 56px; height: 32px; padding: 0;
  border: 1px solid var(--alt-border); border-radius: 999px; background: var(--line); cursor: pointer;
  transition: background 0.15s, border-color 0.15s;
}
.switch-knob { position: absolute; top: 3px; left: 3px; width: 24px; height: 24px; border-radius: 50%; background: var(--ink); transition: transform 0.15s; }
.switch.on { border-color: var(--accent); background: var(--accent); }
.switch.on .switch-knob { transform: translateX(24px); background: var(--accent-ink); }
.switch:disabled { opacity: 0.55; cursor: default; }
.switch:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
@media (prefers-reduced-motion: reduce) { .switch, .switch-knob { transition: none; } }
.discover-state { margin: 8px 0 14px; color: var(--muted); font-size: 14px; }
.discover-state.on { color: var(--accent); }
.discover-settings { padding-top: 12px !important; border-top: 1px solid var(--line) !important; }
.discover-settings > legend { float: left; width: 100%; }
.discover-settings > legend + * { clear: left; }
.discover-settings .checkbox { display: flex; align-items: flex-start; gap: 10px; min-height: 40px; padding: 4px 0; }
.discover-settings .checkbox input { flex: none; margin-top: 3px; }
.discover-settings .hint { margin: 6px 0 0; font-size: 13px; }
.discover-note { margin: 0; font-size: 13px; }

/* Your Next Useful Step */
.next-card { border-color: var(--accent-line); background: linear-gradient(160deg, rgba(167, 255, 120, 0.07), rgba(167, 255, 120, 0) 60%), var(--card); }
.next-progress { color: var(--muted); font-size: 13px; font-weight: 700; }
.next-bar { height: 6px; margin: -4px 0 14px; border-radius: 999px; background: var(--line); overflow: hidden; }
.next-bar span { display: block; height: 100%; border-radius: 999px; background: var(--accent); transition: width 0.3s; }
@media (prefers-reduced-motion: reduce) { .next-bar span { transition: none; } }
.next-heading { margin: 0; color: var(--white); font-size: 17px; font-weight: 700; line-height: 1.35; }
.next-text { margin: 6px 0 14px; }

/* Résumé */
.resume-info { display: grid; gap: 2px; }
.resume-name { color: var(--white); }
.resume-pick { margin: 0 0 12px; }
.resume-pick select { width: 100%; min-width: 0; max-width: 100%; text-overflow: ellipsis; }
.resume-actions { display: flex; flex-wrap: wrap; gap: 8px; margin: 12px 0 0; }
.resume-card > .hint { margin: 10px 0 0; font-size: 13px; }
.resume-card > .link-button, .resume-card > .passport-link { display: block; width: fit-content; margin-top: 10px; font-size: 14px; }
.suggest-panel { margin-top: 14px; padding: 16px; border: 1px solid var(--accent-line); border-radius: 14px; background: rgba(167, 255, 120, 0.04); }
.suggest-panel h4 { margin: 0 0 4px; color: var(--white); font-size: 15px; }
.suggest-panel > .hint { margin: 0 0 10px; font-size: 13px; }
.suggest-group { margin: 0 0 8px !important; }
.suggest-group legend { font-size: 14px; }
.suggest-list { margin: 0; padding: 0; list-style: none; }
.suggest-list .checkbox { display: flex; align-items: flex-start; gap: 10px; min-height: 36px; padding: 4px 0; }
.suggest-list .checkbox input { flex: none; margin-top: 3px; }
.suggest-note { display: block; margin: -4px 0 4px 30px; color: var(--muted); font-size: 13px; }
.suggest-panel .form-actions { margin-top: 10px; }

/* Narrower desktops */
@media (max-width: 1100px) {
  .passport-grid { grid-template-columns: minmax(0, 1fr) minmax(270px, 330px); gap: 16px; }
  .passport-card { padding: 20px; }
}

/* Phones and narrow windows: one column, next step after the snapshot */
@media (max-width: 900px) {
  .passport { padding-top: 18px; }
  .passport-grid { display: flex; flex-direction: column; align-items: stretch; gap: 14px; }
  .passport-main, .passport-side { display: contents; }
  #snapshot-card { order: 1; }
  #next-card { order: 2; }
  #move-card { order: 3; }
  #bring-card { order: 4; }
  #resume-card { order: 5; }
  #discover-card { order: 6; }
}

@media (max-width: 600px) {
  .passport-subtitle { font-size: 16px; }
  .passport-card { padding: 18px 16px; border-radius: 14px; }
  .snapshot-view { gap: 14px; }
  .snapshot-avatar { width: 52px; height: 52px; font-size: 19px; }
  .snapshot-name { font-size: 20px; }
  .passport-facts > div { grid-template-columns: minmax(0, 1fr); gap: 2px; }
  .passport .field.narrow { max-width: none; }
  .chip-add { flex-wrap: wrap; }
  .chip-add input { flex-basis: 100%; }
  .entry-form { padding: 14px 12px; }
  .passport-entry-actions .btn, .resume-actions .btn { flex: 1 1 auto; }
  .passport .form-actions .btn { flex: 1 1 auto; }
}

@media (max-width: 380px) {
  .pay-inputs { grid-template-columns: minmax(0, 1fr); }
}

.resume-autofill { width: min(680px, calc(100vw - 32px)); max-height: 88dvh; overflow: auto; box-sizing: border-box; padding: 24px; border: 1px solid var(--line); border-radius: 16px; background: var(--card); color: var(--white); }
.resume-autofill::backdrop { background: rgba(5, 10, 22, .8); }
.resume-autofill .suggest-group { margin: 16px 0; padding: 16px; min-width: 0; border: 1px solid var(--line); border-radius: 12px; }
.resume-autofill .field { display: flex; flex-direction: column; gap: 6px; margin: 10px 0; }
.resume-autofill input:not([type="checkbox"]), .resume-autofill textarea, .resume-autofill select { width: 100%; box-sizing: border-box; background: var(--navy); color: var(--ink); border: 1px solid var(--line); padding: 10px; border-radius: 8px; font: inherit; }
.resume-autofill textarea { min-height: 100px; resize: vertical; }
.resume-autofill .hint { overflow-wrap: anywhere; }
.resume-autofill .form-actions { position: sticky; bottom: -24px; background: var(--card); padding: 14px 0; display: flex; gap: 10px; flex-wrap: wrap; }
#snapshot-resume-fill, #passport-resume-fill { margin-top: 12px; white-space: normal; color: var(--white); border-color: var(--accent); }
#resume-autofill-save { color: var(--accent); border-color: var(--accent); }
