/* ==========================================================================
   Hiring profile (dash-profile) — on top of the shared account styles (dash.css).
   Index: status card · form blocks · photo · availability · skills
          · portfolio grid · consent · submit
   ========================================================================== */

/* the soft sand wash used by the status card, photo ring, radio options and portfolio tiles */
.dash-panel { --wash: color-mix(in srgb, var(--sand) 70%, transparent); }

/* ---- Status card -------------------------------------------------------- */
.profile-status {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--sp-3) .875rem;
  padding: var(--sp-4);
  background: var(--wash);
  border: 1px solid var(--line-rose);
  border-radius: var(--r-16);
}
.profile-status__icon {
  width: 2.75rem;
  height: 2.75rem;
}
.profile-status__body {
  flex: 1 1 14rem;
  display: flex;
  flex-direction: column;
  gap: var(--sp-1);
  min-width: 0;
}
.profile-status__headline {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--sp-1) var(--sp-2);
}
.profile-status__title {
  font-size: var(--fs-16);
  font-weight: 700;
  line-height: 1.5;
  color: var(--ink);
}
.profile-status__current { padding-block: .125rem; }
.profile-status__text {
  font-size: var(--fs-14);
  line-height: 1.65;
  color: var(--text);
}
.profile-status__states {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-2);
}
@media (min-width: 40rem) {
  .profile-status { padding: var(--sp-5); }
}

/* ---- Form blocks: titled groups separated by hairlines ------------------- */
.profile-form {
  display: flex;
  flex-direction: column;
  gap: var(--sp-8);
}
.profile-block {
  display: flex;
  flex-direction: column;
  gap: var(--sp-4);
  padding-block-end: var(--sp-6);
  border-block-end: 1px solid var(--line);
}
.profile-block--last {
  gap: var(--sp-3);
  padding-block-end: 0;
  border-block-end: 0;
}
.profile-block__title {
  display: flex;
  align-items: center;
  gap: var(--sp-2);
  font-size: var(--fs-16);
  font-weight: 700;
  line-height: 1.5;
  color: var(--ink);
}
.profile-block__title .icon {
  font-size: 1.125rem;
  color: var(--burgundy);
}
.profile-block__hint {
  font-size: var(--fs-14);
  line-height: 1.5;
  color: var(--text);
}
.profile-form .input { min-height: 3rem; }
.profile-form .field__req--star { font-size: var(--fs-12); }
.profile-form textarea.profile-form__about {
  min-height: 7.75rem;
  line-height: 1.9;
}

/* ---- Photo --------------------------------------------------------------- */
.photo {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--sp-4);
}
.photo__preview {
  flex: none;
  display: grid;
  place-items: center;
  width: 6rem;
  height: 6rem;
  overflow: hidden;
  border-radius: 50%;
  background: var(--wash);
  border: 2px dashed var(--line-rose-strong);
}
.photo__initial {
  font-size: var(--fs-24);
  font-weight: 700;
  line-height: 1.35;
  color: var(--navy);
}
.photo__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.photo__body {
  gap: var(--sp-2);
  min-width: 0;
}
.photo__hint {
  max-width: 32rem;
  font-size: var(--fs-14);
  line-height: 1.65;
  color: var(--text);
}
.photo__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: var(--sp-2);
  padding-block-start: var(--sp-1);
}
.photo__upload {
  --btn-bg: var(--sand);
  --btn-bd: var(--line-rose);
  cursor: pointer;
  font-weight: 700;
}
.photo__upload:focus-within { box-shadow: var(--focus); }
.photo__remove {
  min-height: 2.75rem;
  padding: var(--sp-2) var(--sp-3);
  font-size: var(--fs-12);
  font-weight: 700;
  color: var(--burgundy);
  border-radius: var(--r-12);
  transition: background-color var(--t-fast) var(--ease);
}
@media (hover: hover) {
  .photo__remove:hover { background: var(--burgundy-soft); }
}
@media (min-width: 40rem) {
  .photo {
    flex-direction: row;
    align-items: flex-start;
    gap: var(--sp-5);
  }
  .photo__actions { justify-content: flex-start; }
}
@media (min-width: 48rem) {
  .photo__remove { min-height: 2.25rem; }
}

/* ---- Availability: two large radio options ------------------------------- */
.avail {
  margin: 0;
  padding: 0;
  border: 0;
}
.avail__legend {
  width: 100%;
  padding: 0;
  margin-block-end: var(--sp-2);
}
.avail__options {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--sp-3);
}
.avail__option {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--sp-2);
  min-height: 3rem;
  padding: var(--sp-2) var(--sp-3);
  font-size: var(--fs-12);
  font-weight: 700;
  line-height: 1.35;
  color: var(--text);
  text-align: center;
  background: var(--wash);
  border: 1px solid var(--line-rose);
  border-radius: var(--r-12);
  cursor: pointer;
  transition:
    background-color var(--t-fast) var(--ease),
    border-color var(--t-fast) var(--ease),
    color var(--t-fast) var(--ease);
}
.avail__radio {
  flex: none;
  width: 1rem;
  height: 1rem;
  margin: 0;
  accent-color: var(--burgundy);
  cursor: pointer;
}
.avail__option:has(.avail__radio:checked) {
  color: var(--burgundy);
  background: color-mix(in srgb, var(--burgundy) 5%, transparent);
  border-color: var(--burgundy);
}
.avail__option:has(.avail__radio:focus-visible) { box-shadow: var(--focus); }
.avail__radio:focus-visible { box-shadow: none; }
@media (hover: hover) {
  .avail__option:hover { border-color: var(--burgundy); }
}

/* ---- Skills: tag input ---------------------------------------------------- */
.skills {
  display: flex;
  flex-direction: column;
  gap: var(--sp-4);
}
.skills__add {
  display: flex;
  gap: var(--sp-2);
  max-width: 28rem;
}
.skills__input {
  flex: 1;
  min-width: 0;
}
.profile-form .skills__input { min-height: 2.75rem; }
.skills__button {
  flex: none;
  min-height: 2.75rem;
  padding-inline: var(--sp-5);
}
.skills__button .icon { font-size: .625rem; }
.skills__list {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: flex-start;
  gap: var(--sp-2);
}
.skills__chip {
  flex: 0 0 auto;
  max-width: 100%;
  display: inline-flex;
  align-items: center;
  min-height: calc(2.75rem + 2px);
  padding-inline-start: var(--sp-3);
  font-size: var(--fs-12);
  font-weight: 600;
  line-height: 1.35;
  color: var(--ink);
  background: var(--sand);
  border: 1px solid var(--line-rose);
  border-radius: var(--r-8);
}
.skills__remove {
  display: grid;
  place-items: center;
  align-self: stretch;
  width: 2.25rem;
  color: var(--text);
  border-radius: var(--r-8);
  transition: color var(--t-fast) var(--ease), background-color var(--t-fast) var(--ease);
}
.skills__remove .icon { font-size: .5rem; }
@media (hover: hover) {
  .skills__remove:hover {
    color: var(--burgundy);
    background: var(--burgundy-soft);
  }
}
@media (min-width: 48rem) {
  .skills__chip { min-height: 1.875rem; }
  .skills__remove { width: 1.75rem; }
}

/* ---- Portfolio grid -------------------------------------------------------
   Tiles carry .card--zoom; the preview of an added work is .card__media.media (skeleton until loaded). */
.works__head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--sp-2) var(--sp-3);
}
.works__count {
  font-size: var(--fs-12);
  font-weight: 600;
  color: var(--text-muted);
}
.works__open {
  --btn-bg: var(--burgundy-soft);
  --btn-fg: var(--burgundy);
  --btn-bd: color-mix(in srgb, var(--burgundy) 20%, transparent);
  margin-inline-start: auto;
  padding-inline: var(--sp-4);
  box-shadow: none;
}
.works__open .icon { font-size: .625rem; }
.works__grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 15rem), 1fr));
  gap: var(--sp-4);
}
@media (min-width: 40rem) {
  .works__grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
.works__item {
  display: flex;
  flex-direction: column;
  gap: var(--sp-2);
  padding: var(--sp-3);
  background: var(--wash);
  border: 1px solid var(--line-rose);
  border-radius: var(--r-16);
}
.works__preview {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--sp-1);
  aspect-ratio: 261 / 128;
  overflow: hidden;
  background: var(--sand-strong);
  border: 1px solid var(--line-rose);
  border-radius: var(--r-12);
}
.works__placeholder {
  font-size: 1.6875rem;
  color: color-mix(in srgb, var(--navy) 30%, transparent);
}
.works__preview-label {
  font-size: var(--fs-11);
  line-height: 1.55;
  color: var(--text-muted);
}
.works__img {
  position: absolute;
  inset: 0;
}
/* delete: a 28px white tile drawn inside a 44px hit area in the preview's top corner */
.works__delete {
  position: absolute;
  inset-block-start: 0;
  inset-inline-start: 0;
  display: grid;
  place-items: center;
  width: 2.75rem;
  height: 2.75rem;
  color: var(--burgundy);
}
.works__delete::before {
  content: "";
  position: absolute;
  inset: var(--sp-2);
  border-radius: var(--r-8);
  background: color-mix(in srgb, var(--surface) 90%, transparent);
  box-shadow: var(--sh-xs);
  transition: background-color var(--t-fast) var(--ease);
}
.works__delete .icon {
  position: relative;
  font-size: .75rem;
}
.works__delete:focus-visible { box-shadow: none; }
.works__delete:focus-visible::before { box-shadow: var(--focus); }
@media (hover: hover) {
  .works__delete:hover::before { background: var(--surface); }
}
.profile-form .works__caption {
  min-height: 2.75rem;
  padding-inline: var(--sp-3);
  font-size: var(--fs-14);
  background: var(--surface);
  border-radius: var(--r-8);
}
.works__add { display: flex; }
.works__upload {
  --upload-bg: color-mix(in srgb, var(--sand) 40%, transparent);
  flex: 1;
  justify-content: center;
  min-height: 11rem;
  border-width: 2px;
  border-radius: var(--r-16);
}
.works__upload-icon {
  font-size: 1.3125rem;
  color: var(--burgundy);
}
.works__upload-title {
  font-size: var(--fs-12);
  font-weight: 700;
  color: var(--ink);
}
.works__upload-hint {
  font-size: var(--fs-11);
  color: var(--text);
}
@media (min-width: 48rem) {
  .profile-form .works__caption {
    min-height: 2.5rem;
    font-size: var(--fs-12);
  }
}

/* ---- Consent ----------------------------------------------------------------- */
.consent__label {
  display: flex;
  gap: var(--sp-3);
  padding: var(--sp-4);
  background: color-mix(in srgb, var(--sand) 60%, transparent);
  border: 1px solid var(--line-rose);
  border-radius: var(--r-16);
}
.consent__label .check__box {
  width: 1.375rem;
  height: 1.375rem;
  margin-block-start: 0;
}
.consent__text {
  display: flex;
  flex-direction: column;
  gap: .125rem;
}
.consent__title {
  font-size: var(--fs-14);
  font-weight: 700;
  line-height: 1.45;
  color: var(--ink);
}
.consent__note {
  font-size: var(--fs-14);
  line-height: 1.5;
  color: var(--text);
}
.consent.is-invalid .consent__label { border-color: var(--burgundy); }

/* ---- Submit -------------------------------------------------------------------- */
.profile-form__submit {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--sp-2);
}
.profile-form__button {
  --submit-glow: color-mix(in srgb, var(--burgundy) 20%, transparent);
  width: min(100%, 17.875rem);
  font-size: var(--fs-14);
  box-shadow: 0 4px 6px -1px var(--submit-glow), 0 2px 4px -2px var(--submit-glow);
}
.profile-form__note {
  display: flex;
  align-items: center;
  gap: var(--sp-1);
  font-size: var(--fs-14);
  line-height: 1.5;
  color: var(--text);
  text-align: center;
}
.profile-form__note .icon {
  font-size: .8125rem;
  color: var(--amber);
}

/* ---- ≥ 768px: helper sentences at the design size (12px); phones keep them at 14px ---- */
@media (min-width: 48rem) {
  .profile-status__text,
  .profile-block__hint,
  .photo__hint,
  .consent__note,
  .profile-form__note { font-size: var(--fs-12); }
}
