/**
 * BrillaHero hero profile form styles.
 *
 * Lives on /profilo/crea/ and /profilo/modifica/. Picks up brand
 * tokens from the theme (style.css) when available, falls back to
 * safe defaults so the page is presentable even outside the BrillaHero
 * theme context.
 */

.bh-profile-page {
  --_bh-blu-primary: var(--bh-blu-primary, #0047BB);
  --_bh-blu-strong:  var(--bh-blu-strong, #1A2B5F);
  --_bh-blu-soft:    var(--bh-blu-soft, #B3C5FF);
  --_bh-corallo:     var(--bh-corallo, #EE4E44);
  --_bh-surface:     var(--bh-surface, #F5F6FA);
  --_bh-text-1:      var(--bh-text-1, #1A2B5F);
  --_bh-text-2:      var(--bh-text-2, #877F7D);
  --_bh-border:      var(--bh-border, #E2E6F2);
  --_bh-font-body:   var(--bh-font-body, 'Inter', sans-serif);
  --_bh-font-display:var(--bh-font-display, 'Bricolage Grotesque', sans-serif);

  background: #fff;
  color: var(--_bh-text-1);
  font-family: inherit;
  padding: 0 0 80px;
}

.bh-profile-page__shell { max-width:none; margin:0; padding:0; }

.bh-profile-container { max-width:none; margin:0; padding:0; }

/* ===== Header ===================================================== */

.bh-profile-header {
  margin-bottom: 32px;
}
.bh-profile-header--create { margin-bottom: 16px; }

.bh-profile-intro {
  color: var(--_bh-text-2);
  font-size: 16px;
  line-height: 1.5;
  margin: 0;
  max-width: 60ch;
}

/* ===== Alert ====================================================== */

.bh-profile-alert {
  margin: 0 0 24px;
  padding: 14px 18px;
  border-radius: 10px;
  font-size: 14px;
  line-height: 1.4;
}
.bh-profile-alert--error {
  background: rgba(238, 78, 68, 0.08);
  border-left: 4px solid var(--_bh-corallo);
  color: var(--_bh-corallo);
}
.bh-profile-alert--success {
  background: rgba(0, 71, 187, 0.08);
  border-left: 4px solid var(--_bh-blu-primary);
  color: var(--_bh-blu-primary);
}
.bh-profile-alert--pending {
  background: rgba(0, 71, 187, 0.06);
  border-left: 4px solid var(--_bh-blu-primary);
  color: var(--_bh-blu-strong);
  font-size: 15px;
  line-height: 1.55;
}
.bh-profile-alert--pending strong {
  display: block;
  font-family: var(--_bh-font-display);
  font-weight: 700;
  font-size: 16px;
  margin-bottom: 4px;
  color: var(--_bh-blu-primary);
}

/* Status badge variants: published (green), paused (amber), draft (grey) */
.bh-profile-alert--published {
  background: rgba(31, 143, 77, 0.08);
  border-left: 4px solid #1f8f4d;
  color: #166534;
  font-size: 15px;
  line-height: 1.55;
}
.bh-profile-alert--paused {
  background: rgba(91, 103, 117, 0.10);
  border-left: 4px solid #6b7685;
  color: #44505e;
  font-size: 15px;
  line-height: 1.55;
}
.bh-profile-alert--draft {
  background: rgba(26, 43, 95, 0.05);
  border-left: 4px solid var(--_bh-border, #cbd2e0);
  color: var(--_bh-text-2, #5b6775);
  font-size: 15px;
  line-height: 1.55;
}
.bh-profile-alert--published strong,
.bh-profile-alert--paused strong,
.bh-profile-alert--draft strong {
  display: block;
  font-family: var(--_bh-font-display);
  font-weight: 700;
  font-size: 16px;
  margin-bottom: 4px;
}
.bh-profile-alert--published strong { color: #166534; }
.bh-profile-alert--paused strong { color: #2f3a47; }
.bh-profile-alert__link {
  display: inline-block;
  margin-top: 6px;
  font-weight: 600;
  color: #166534;
  text-decoration: underline;
}

/* Pause / reactivate control */
.bh-profile-pause {
  margin: 0 0 24px;
}
.bh-profile-pause__btn {
  appearance: none;
  background: #fff;
  color: var(--_bh-text-2, #5b6775);
  border: 1.5px solid var(--_bh-border, #e2e6f2);
  border-radius: 999px;
  padding: 8px 18px;
  font-family: var(--_bh-font-display);
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;
  transition: border-color 120ms ease, color 120ms ease, background 120ms ease;
}
.bh-profile-pause__btn:hover {
  border-color: var(--_bh-corallo, #ee4e44);
  color: var(--_bh-corallo, #ee4e44);
}
.bh-profile-pause__btn--resume {
  color: #166534;
  border-color: rgba(31, 143, 77, 0.5);
}
.bh-profile-pause__btn--resume:hover {
  background: rgba(31, 143, 77, 0.08);
  border-color: #1f8f4d;
  color: #166534;
}

/* Pause / reactivate confirmation note */
.bh-profile-toast {
  margin: 0 0 16px;
  padding: 12px 16px;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 600;
  background: rgba(26, 43, 95, 0.06);
  color: var(--_bh-blu-strong, #1a2b5f);
}
.bh-profile-toast--ok {
  background: rgba(31, 143, 77, 0.10);
  color: #166534;
}

/* ===== Profile completion meter =================================== */

.bh-profile-completion {
  margin: 0 0 24px;
  padding: 16px 18px;
  background: var(--_bh-surface);
  border-radius: 12px;
  border: 1px solid var(--_bh-border);
}
.bh-profile-completion__top {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.bh-profile-completion__label {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
}
.bh-profile-completion__title {
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--_bh-text-2);
}
.bh-profile-completion__value {
  font-family: var(--_bh-font-display);
  font-weight: 700;
  font-size: 22px;
  color: var(--_bh-blu-strong);
  line-height: 1;
}
.bh-profile-completion__track {
  height: 8px;
  background: var(--_bh-border);
  border-radius: 999px;
  overflow: hidden;
}
.bh-profile-completion__bar {
  height: 100%;
  background: linear-gradient(90deg, var(--_bh-blu-primary), var(--_bh-blu-strong));
  border-radius: 999px;
  transition: width 360ms cubic-bezier(0.4, 0, 0.2, 1);
}
.bh-profile-completion[data-percent="100"] .bh-profile-completion__bar {
  background: linear-gradient(90deg, var(--_bh-corallo), var(--_bh-blu-primary));
}

.bh-profile-completion__hint {
  margin: 12px 0 0;
  font-size: 14px;
  color: var(--_bh-text-2);
  line-height: 1.45;
}
.bh-profile-completion__hint strong {
  font-family: var(--_bh-font-display);
  font-weight: 700;
  color: var(--_bh-blu-strong);
}
.bh-profile-completion__hint--done {
  color: var(--_bh-blu-primary);
  font-weight: 600;
}

/* ===== Form ======================================================= */

.bh-profile-preview {
  min-width: 0;
  margin: 0;
  padding: 18px;
  border: 1px solid var(--_bh-border);
  border-radius: 18px;
  background: var(--_bh-surface);
}
.bh-profile-form[data-mode="create"] .bh-profile-preview { padding: 12px; }
.bh-profile-preview__eyebrow {
  display: block;
  margin-bottom: 6px;
  color: var(--_bh-blu-primary);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
}
.bh-profile-preview h2 {
  margin: 0 0 6px;
  color: var(--_bh-blu-strong);
  font-size: clamp(20px, 2vw, 26px);
}
.bh-profile-form[data-mode="create"] .bh-profile-preview h2 { margin-bottom: 10px; }
.bh-profile-preview > p {
  margin: 0 0 14px;
  color: var(--_bh-text-2);
  font-size: 13px;
  line-height: 1.4;
}
.bh-profile-preview .hp-listing.hp-listing--view-block:hover {
  transform: none;
}
.bh-profile-preview .bh-card--preview {
  cursor: default;
}
.bh-profile-preview .bh-card--preview .bh-card__cta {
  opacity: 0.55;
  cursor: default;
}
.bh-profile-preview [hidden] {
  display: none !important;
}
.bh-profile-preview__placeholder {
  color: #718099 !important;
  font-style: italic;
}
.bh-profile-preview .bh-card__chip.bh-profile-preview__placeholder {
  background: #fff;
  border: 1px dashed #aebbd1;
}
.bh-profile-preview .bh-card__cta {
  display: none !important;
}
.bh-profile-preview .hp-listings .hp-listing.hp-listing--view-block {
  width: 100%;
  margin: 0;
}
.bh-profile-preview .hp-listings .hp-listing.hp-listing--view-block > a.bh-card {
  grid-template-columns: 40px minmax(0, 1fr);
  padding: 14px;
  gap: 8px 10px;
}
.bh-profile-preview .bh-card__price {
  display: flex !important;
  grid-column: 1 / -1;
  grid-row: 4;
  align-items: flex-start;
  margin-top: 4px;
  text-align: left;
}
.bh-profile-preview .bh-card .bh-announcement-details:not([hidden]) {
  grid-row: 4;
}
.bh-profile-preview .bh-announcement-details:not([hidden]) + .bh-card__price {
  grid-row: 5;
}
.bh-profile-preview .bh-card__price-value,
.bh-profile-preview .bh-card__price-label {
  text-align: left !important;
}

.bh-profile-form {
  display: flex;
  flex-direction: column;
  gap: 28px;
}
.site-container:has(.bh-profile-form[data-mode="create"]) { overflow: clip; }
.bh-profile-form[data-mode="create"] {
  gap: 18px;
}
@media (max-width: 979px) {
  .bh-profile-header--create { margin-bottom: 10px; }
  .bh-profile-form[data-mode="create"] { gap: 12px; }
  .bh-profile-form[data-mode="create"] .bh-profile-preview { padding: 10px; }
  .bh-profile-form[data-mode="create"] .bh-profile-preview h2 { margin-bottom: 6px; }
}
.bh-profile-steps {
  min-width: 0;
}
.bh-profile-steps__intro {
  margin: 0 0 8px;
  color: var(--_bh-text-2);
  font-size: 14px;
}
.bh-profile-step {
  margin: 0 0 10px;
  border: 1px solid var(--_bh-border);
  border-radius: 14px;
  background: #fff;
  overflow: hidden;
}
.bh-profile-step[open] {
  border-color: var(--_bh-blu-soft);
  box-shadow: 0 4px 16px rgba(26, 43, 95, .06);
}
.bh-profile-step > summary {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 15px 18px;
  cursor: pointer;
  list-style: none;
}
.bh-profile-step > summary::-webkit-details-marker { display: none; }
.bh-profile-step > summary:focus-visible,
.bh-profile-step__next:focus-visible {
  outline: 3px solid var(--_bh-blu-soft);
  outline-offset: -3px;
}
.bh-profile-step__number,
.bh-profile-step__check {
  display: inline-flex;
  flex: 0 0 30px;
  width: 30px;
  height: 30px;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--_bh-surface);
  color: var(--_bh-blu-strong);
  font-weight: 700;
}
.bh-profile-step__check {
  flex: 0 0 26px;
  width: 26px;
  height: 26px;
  margin-left: auto;
  background: #e8f5ed;
  color: #166534;
}
.bh-profile-step__check[hidden] { display: none; }
.bh-profile-step__heading {
  display: grid;
  gap: 2px;
  min-width: 0;
}
.bh-profile-step__heading strong {
  color: var(--_bh-blu-strong);
  font-family: var(--_bh-font-display);
  font-size: 17px;
}
.bh-profile-step__heading small {
  overflow: hidden;
  color: var(--_bh-text-2);
  font-size: 13px;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.bh-profile-step__body {
  display: grid;
  gap: 20px;
  padding: 0 18px 18px;
}
.bh-profile-step__next {
  justify-self: end;
  padding: 10px 18px;
  border: 1px solid var(--_bh-blu-primary);
  border-radius: 999px;
  background: var(--_bh-blu-primary);
  color: #fff;
  font-weight: 700;
  cursor: pointer;
}
.bh-profile-step__next:hover { background: var(--_bh-blu-strong); }
@media (min-width: 980px) {
  .bh-profile-form[data-mode="create"] {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(320px, 38%);
    align-items: start;
    column-gap: clamp(20px, 3vw, 42px);
  }
  .bh-profile-form[data-mode="create"] .bh-profile-preview {
    grid-column: 2;
    grid-row: 1 / span 3;
    position: sticky;
    top: 110px;
  }
  .bh-profile-form[data-mode="create"] .bh-profile-steps,
  .bh-profile-form[data-mode="create"] .bh-creation-optional,
  .bh-profile-form[data-mode="create"] .bh-profile-actions { grid-column: 1; }
}

.bh-profile-field {
  border: none;
  margin: 0;
  padding: 0;
}
.bh-creation-identity {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}
.bh-profile-field legend {
  font-family: var(--_bh-font-display);
  font-weight: 700;
  font-size: 18px;
  color: var(--_bh-blu-strong);
  margin: 0 0 6px;
  padding: 0;
}
.bh-profile-optional {
  font-family: var(--_bh-font-body);
  font-weight: 400;
  color: var(--_bh-text-2);
  font-size: 14px;
}
.bh-required {
  color: inherit;
}

.bh-profile-help {
  font-size: 14px;
  color: var(--_bh-text-2);
  margin: 0 0 12px;
  line-height: 1.45;
}
.bh-profile-name-hint {
  margin: 0 0 12px;
  padding: 10px 14px;
  background: var(--_bh-surface);
  border-radius: 8px;
  font-size: 13px;
  color: var(--_bh-text-2);
  line-height: 1.4;
}
.bh-profile-name-hint strong {
  font-family: var(--_bh-font-display);
  color: var(--_bh-blu-strong);
  font-size: 15px;
  font-weight: 700;
}
.bh-profile-name-hint a {
  color: var(--_bh-blu-primary);
  text-decoration: none;
  font-weight: 600;
  margin-left: 8px;
}
.bh-profile-name-hint a:hover {
  text-decoration: underline;
}

/* Inputs */
.bh-profile-form input[type="text"],
.bh-profile-form input[type="number"],
.bh-profile-form textarea {
  width: 100%;
  padding: 12px 14px;
  font-family: inherit;
  font-size: 15px;
  color: var(--_bh-text-1);
  border: 1.5px solid var(--_bh-border);
  border-radius: 8px;
  background: #fff;
  box-sizing: border-box;
  transition: border-color 120ms ease, box-shadow 120ms ease;
}
.bh-profile-form input[type="text"]:focus,
.bh-profile-form input[type="number"]:focus,
.bh-profile-form textarea:focus {
  outline: none;
  border-color: var(--_bh-blu-primary);
  box-shadow: 0 0 0 3px var(--_bh-blu-soft);
}
.bh-profile-form textarea {
  resize: vertical;
  min-height: 140px;
  line-height: 1.5;
}

/* File inputs — custom button via ::file-selector-button.
   Native control is kept (no JS), only the button chrome is restyled.
   The :not([hidden]) keeps the gallery's secret input invisible. */
.bh-profile-form input[type="file"]:not([hidden]) {
  display: block;
  width: 100%;
  max-width: 100%;
  padding: 0;
  font-family: inherit;
  font-size: 14px;
  color: var(--_bh-text-2);
  background: transparent;
  border: none;
  cursor: pointer;
}
.bh-profile-form input[type="file"][hidden] {
  display: none !important;
}

.bh-profile-form input[type="file"]::file-selector-button,
.bh-profile-form input[type="file"]::-webkit-file-upload-button {
  margin-right: 14px;
  padding: 10px 20px;
  font-family: var(--_bh-font-display);
  font-weight: 700;
  font-size: 14px;
  color: var(--_bh-blu-primary);
  background: #fff;
  border: 1.5px solid var(--_bh-blu-primary);
  border-radius: 999px;
  cursor: pointer;
  transition: background 120ms ease, color 120ms ease, border-color 120ms ease;
}

.bh-profile-form input[type="file"]:hover::file-selector-button,
.bh-profile-form input[type="file"]:hover::-webkit-file-upload-button {
  background: var(--_bh-blu-primary);
  color: #fff;
}

.bh-profile-form input[type="file"]:focus {
  outline: none;
}
.bh-profile-form input[type="file"]:focus::file-selector-button,
.bh-profile-form input[type="file"]:focus::-webkit-file-upload-button {
  box-shadow: 0 0 0 3px var(--_bh-blu-soft);
}

/* Read-only display value (the Hero's full name) */
.bh-profile-readonly {
  padding: 12px 14px;
  font-family: var(--_bh-font-display);
  font-weight: 700;
  font-size: 20px;
  color: var(--_bh-blu-strong);
  background: var(--_bh-surface);
  border-left: 4px solid var(--_bh-blu-primary);
  border-radius: 4px;
}

/* ===== Categories chips ============================================ */

.bh-profile-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.bh-profile-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  border: 1.5px solid var(--_bh-border);
  border-radius: 999px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  background: #fff;
  transition: all 120ms ease;
  user-select: none;
}
.bh-profile-chip input[type="checkbox"] {
  margin: 0;
  width: 0;
  height: 0;
  opacity: 0;
  position: absolute;
  pointer-events: none;
}
.bh-profile-chip:hover {
  border-color: var(--_bh-blu-soft);
}
.bh-profile-chip:has(input:checked) {
  background: var(--_bh-blu-primary);
  border-color: var(--_bh-blu-primary);
  color: #fff;
}

/* Check mark prepended only when the chip is selected. Keeps the chip
   width identical on hover, only switches the icon in and out. */
.bh-profile-chip::before {
  content: '';
  display: inline-block;
  width: 0;
  height: 14px;
  margin-right: 0;
  overflow: hidden;
  vertical-align: middle;
  background: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 14 14'><path fill='none' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round' d='M3 7.5l3 3 5-6'/></svg>") no-repeat center / contain;
  transition: width 120ms ease, margin-right 120ms ease;
}
.bh-profile-chip:has(input:checked)::before {
  width: 14px;
  margin-right: 6px;
}

/* ===== Gallery grid (Foto del lavoro) ============================== */

.bh-profile-gallery {
  margin-top: 4px;
}
.bh-profile-gallery__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

.bh-profile-gallery__tile,
.bh-profile-gallery__add {
  position: relative;
  aspect-ratio: 1 / 1;
  border-radius: 12px;
  overflow: hidden;
  background: var(--_bh-surface);
  cursor: grab;
}
.bh-profile-gallery__tile:active {
  cursor: grabbing;
}
.bh-profile-gallery__tile img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.bh-profile-gallery__remove {
  position: absolute;
  top: 6px;
  right: 6px;
  width: 26px;
  height: 26px;
  padding: 0;
  border-radius: 50%;
  background: rgba(26, 43, 95, 0.78);
  color: #fff;
  border: none;
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 120ms ease;
}
.bh-profile-gallery__remove:hover {
  background: var(--_bh-corallo);
}

.bh-profile-gallery__add {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  border: 1.5px dashed var(--_bh-blu-primary);
  background: rgba(0, 71, 187, 0.04);
  color: var(--_bh-blu-primary);
  font-weight: 600;
  cursor: pointer;
  transition: background 120ms ease;
}
.bh-profile-gallery__add:hover {
  background: rgba(0, 71, 187, 0.08);
}
.bh-profile-gallery__add-icon {
  font-family: var(--_bh-font-display);
  font-size: 28px;
  line-height: 1;
}
.bh-profile-gallery__add-label {
  font-size: 13px;
}

/* Sortable ghost styling */
.bh-profile-gallery__tile.sortable-ghost {
  opacity: 0.3;
}
.bh-profile-gallery__tile.sortable-chosen {
  box-shadow: 0 4px 16px rgba(26, 43, 95, 0.18);
}

@media (max-width: 480px) {
  .bh-profile-gallery__grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* ===== Current image (edit mode) =================================== */

.bh-profile-current-image {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 12px;
}
.bh-profile-current-image img {
  width: 96px;
  height: 96px;
  object-fit: cover;
  border-radius: 50%;
  border: 2px solid var(--_bh-blu-soft);
}
.bh-profile-current-label {
  font-size: 13px;
  color: var(--_bh-text-2);
  font-style: italic;
}

/* ===== Current gallery (edit mode) ================================= */

.bh-profile-gallery-current {
  margin-bottom: 12px;
}
.bh-profile-gallery-current img {
  width: 80px;
  height: 80px;
  object-fit: cover;
  border-radius: 8px;
  border: 1px solid var(--_bh-border);
  margin: 0 6px 6px 0;
}
.bh-profile-gallery-note {
  font-size: 13px;
  color: var(--_bh-text-2);
  font-style: italic;
  margin: 6px 0 0;
}

/* ===== Errors ====================================================== */

.bh-profile-error {
  font-size: 13px;
  color: var(--_bh-corallo);
  margin-top: 6px;
  min-height: 0;
}
.bh-profile-error.is-active {
  min-height: 1em;
}
.bh-profile-form input[aria-invalid="true"],
.bh-profile-form textarea[aria-invalid="true"],
.bh-profile-form select[aria-invalid="true"] {
  border-color: var(--_bh-corallo);
}
.bh-profile-form input[aria-invalid="true"]:focus,
.bh-profile-form textarea[aria-invalid="true"]:focus,
.bh-profile-form select[aria-invalid="true"]:focus {
  border-color: var(--_bh-corallo);
  box-shadow: 0 0 0 3px rgba(238, 78, 68, 0.16);
}
.bh-profile-field.is-invalid .bh-profile-chips {
  outline: 1.5px solid var(--_bh-corallo);
  outline-offset: 4px;
  border-radius: 8px;
}
.bh-profile-field.is-invalid .bh-zp-add {
  border-color: var(--_bh-corallo);
  color: var(--_bh-corallo);
}

/* ===== Submit ====================================================== */

.bh-profile-actions {
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: stretch;
  margin-top: 12px;
  padding-top: 24px;
  border-top: 1px solid var(--_bh-border);
}
.bh-profile-actions-hint {
  margin: 0;
  font-size: 13px;
  color: var(--_bh-text-2);
}
.bh-profile-actions-buttons {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
/* Selectors are scoped through `.bh-profile-actions-buttons button.X`
 * so they beat TaskHive's `button[type="submit"]` rule (which paints
 * every submit blue at specificity 0,0,1,1). The `!important` on
 * background/color/box-shadow is the belt that catches inline styles
 * TaskHive's button-shadow JS injects directly on the element. */

.bh-profile-actions-buttons button.bh-profile-submit,
.bh-profile-actions-buttons button.bh-profile-draft {
  padding: 14px 32px;
  font-family: var(--_bh-font-display);
  font-weight: 700;
  font-size: 16px;
  border-radius: 999px;
  cursor: pointer;
  box-shadow: none !important;
  transition:
    background-color 120ms ease,
    color 120ms ease,
    border-color 120ms ease,
    box-shadow 160ms ease,
    transform 120ms ease;
}

/* Primary action (publish). Brand blu, white text, no transparency. */
.bh-profile-actions-buttons button.bh-profile-submit {
  color: #fff !important;
  background: var(--_bh-blu-primary) !important;
  border: 1.5px solid var(--_bh-blu-primary);
}
.bh-profile-actions-buttons button.bh-profile-submit:hover:not(:disabled),
.bh-profile-actions-buttons button.bh-profile-submit:focus-visible:not(:disabled) {
  background: var(--_bh-blu-strong) !important;
  border-color: var(--_bh-blu-strong);
  box-shadow: 0 6px 18px rgba(0, 71, 187, 0.22) !important;
  transform: translateY(-1px);
}

/* Secondary action (draft). White card, brand blu text. The hover
 * keeps the blu text against a tinted-surface background so the
 * label never washes out — that was the bug Andrea saw. */
.bh-profile-actions-buttons button.bh-profile-draft {
  color: var(--_bh-blu-primary) !important;
  background: #fff !important;
  border: 1.5px solid var(--_bh-border);
}
.bh-profile-actions-buttons button.bh-profile-draft:hover:not(:disabled),
.bh-profile-actions-buttons button.bh-profile-draft:focus-visible:not(:disabled) {
  color: var(--_bh-blu-strong) !important;
  background: var(--_bh-surface) !important;
  border-color: var(--_bh-blu-primary);
  box-shadow: 0 4px 14px rgba(26, 43, 95, 0.10) !important;
  transform: translateY(-1px);
}

.bh-profile-actions-buttons button.bh-profile-submit:disabled,
.bh-profile-actions-buttons button.bh-profile-draft:disabled {
  background: var(--_bh-border) !important;
  border-color: var(--_bh-border);
  color: var(--_bh-text-2) !important;
  cursor: not-allowed;
  transform: none;
  box-shadow: none !important;
}
.bh-profile-submitting {
  color: var(--_bh-text-2);
  font-size: 14px;
  font-style: italic;
}

/* ===== Mobile ====================================================== */

@media (max-width: 600px) {
  .bh-creation-identity {
    grid-template-columns: 1fr;
  }
  .bh-profile-actions {
    flex-direction: column;
    align-items: stretch;
  }
  .bh-profile-actions-buttons {
    flex-direction: column;
    align-items: stretch;
  }
  .bh-profile-actions-buttons button.bh-profile-submit,
  .bh-profile-actions-buttons button.bh-profile-draft {
    width: 100%;
    padding: 14px 20px;
    font-size: 16px;
  }
}
