/* Profile editor help modal — mint palette (aligned with registration/editor help, no body resets). */
:root {
  --pe-help-green: #1a7f4a;
  --pe-help-green-600: #156b3f;
  --pe-help-mint: #ecf8f1;
  --pe-help-mint-warm: #e8f4ee;
  --pe-help-line: rgba(26, 127, 74, 0.28);
  --pe-help-muted: #5c6d7a;
  --pe-help-ink: #0f2133;
}

.nfb-edit-nav-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.55rem 0.75rem;
  margin: 0 0 1.15rem;
}

.nfb-edit-nav-row--bottom {
  margin: 1.6rem 0 0;
}

.nfb-edit-nav-row .nfb-edit-nav {
  flex: 1 1 auto;
  min-width: min(100%, 12rem);
  margin-bottom: 0;
}

.nfb-profile-help-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  flex-shrink: 0;
  margin: 0;
  padding: 0.42rem 0.85rem 0.44rem;
  font-family: inherit;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--pe-help-green-600);
  background: linear-gradient(180deg, rgba(236, 248, 241, 0.95) 0%, rgba(220, 239, 228, 0.75) 100%);
  border: 1px solid rgba(26, 127, 74, 0.28);
  border-radius: 10px;
  cursor: pointer;
  box-shadow:
    0 1px 2px rgba(26, 127, 74, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.85);
  transition: background 0.15s ease, border-color 0.15s ease, transform 0.1s ease;
}

.nfb-profile-help-btn:hover {
  background: linear-gradient(180deg, #ffffff 0%, rgba(228, 241, 234, 0.92) 100%);
  border-color: rgba(26, 127, 74, 0.42);
  color: var(--pe-help-green);
}

.nfb-profile-help-btn:active {
  transform: translateY(1px);
}

.nfb-profile-help-btn:focus-visible {
  outline: 2px solid var(--pe-help-green);
  outline-offset: 2px;
}

.nfb-profile-help-btn__icon {
  display: inline-grid;
  place-content: center;
  width: 1.35rem;
  height: 1.35rem;
  border-radius: 50%;
  font-size: 0.72rem;
  font-weight: 800;
  line-height: 1;
  color: #fff;
  background: linear-gradient(155deg, #22a356 0%, #15803d 100%);
  box-shadow: 0 0 0 1px rgba(21, 107, 63, 0.35);
}

.nfb-help-overlay--profile {
  position: fixed;
  inset: 0;
  z-index: 10000;
  background: rgba(30, 50, 60, 0.48);
  backdrop-filter: blur(4px);
  display: flex;
  justify-content: center;
  align-items: center;
  padding: max(16px, 3vw);
  animation: nfb-pe-help-fade 0.2s ease-out;
}

.nfb-help-overlay--profile[hidden] {
  display: none !important;
}

@keyframes nfb-pe-help-fade {
  from { opacity: 0; }
  to { opacity: 1; }
}

.nfb-help-overlay--profile .nfb-help-modal {
  width: min(760px, 100%);
  max-height: min(88vh, 900px);
  margin: 0;
  background: linear-gradient(180deg, #ffffff 0%, var(--pe-help-mint-warm) 100%);
  border-radius: 18px;
  border: 1px solid var(--pe-help-line);
  box-shadow:
    0 24px 60px rgba(15, 33, 51, 0.14),
    0 2px 12px rgba(26, 127, 74, 0.08);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  animation: nfb-pe-help-pop 0.28s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes nfb-pe-help-pop {
  from {
    opacity: 0;
    transform: scale(0.96) translateY(8px);
  }
  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

.nfb-help-overlay--profile .nfb-help-header {
  padding: 1.25rem 1.35rem;
  border-bottom: 1px solid var(--pe-help-line);
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
  background: linear-gradient(135deg, #ffffff 0%, var(--pe-help-mint) 100%);
  flex-shrink: 0;
}

.nfb-help-overlay--profile .nfb-help-header h2 {
  margin: 0 0 0.2rem 0;
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--pe-help-green);
  letter-spacing: -0.02em;
  line-height: 1.2;
}

.nfb-help-overlay--profile .nfb-help-header .subtitle {
  font-size: 0.875rem;
  color: var(--pe-help-muted);
  font-weight: 400;
  line-height: 1.45;
}

.nfb-help-overlay--profile .nfb-help-content {
  padding: 1.35rem 1.35rem 1.5rem;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

.nfb-help-overlay--profile .nfb-help-close {
  height: 36px;
  min-width: 80px;
  padding: 0 1rem;
  border: none;
  background: rgba(0, 0, 0, 0.05);
  border-radius: 10px;
  color: #64748b;
  cursor: pointer;
  font-size: 0.875rem;
  font-weight: 500;
  flex-shrink: 0;
  transition: background 0.15s, color 0.15s;
}

.nfb-help-overlay--profile .nfb-help-close:hover {
  background: rgba(239, 68, 68, 0.1);
  color: #dc2626;
}

.nfb-pe-help-section {
  margin-bottom: 1.65rem;
}

.nfb-pe-help-section:last-child {
  margin-bottom: 0;
}

.nfb-pe-help-section h3 {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--pe-help-green);
  margin: 0 0 0.75rem 0;
  padding-bottom: 0.4rem;
  border-bottom: 2px solid var(--pe-help-line);
}

.nfb-pe-help-card {
  background: #fff;
  border-radius: 12px;
  padding: 1rem 1.15rem;
  margin-bottom: 0.75rem;
  border: 1px solid rgba(26, 127, 74, 0.12);
  box-shadow: 0 2px 8px rgba(15, 33, 51, 0.05);
}

.nfb-pe-help-card:last-child {
  margin-bottom: 0;
}

.nfb-pe-help-card h4 {
  margin: 0 0 0.45rem 0;
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--pe-help-ink);
}

.nfb-pe-help-card h4:not(:first-child) {
  margin-top: 1rem;
}

.nfb-pe-help-card p,
.nfb-pe-help-card li {
  margin: 0;
  font-size: 0.875rem;
  color: #475569;
  line-height: 1.55;
}

.nfb-pe-help-card p + p {
  margin-top: 0.55rem;
}

.nfb-pe-help-card ul {
  margin: 0.5rem 0 0 0;
  padding-left: 1.2rem;
}

.nfb-pe-help-card li + li {
  margin-top: 0.35rem;
}

.nfb-pe-help-callout {
  margin-top: 0.65rem;
  padding: 0.65rem 0.8rem;
  background: var(--pe-help-mint);
  border-left: 3px solid var(--pe-help-green);
  border-radius: 0 8px 8px 0;
  font-size: 0.8125rem;
  color: var(--pe-help-ink);
  line-height: 1.5;
}

.nfb-pe-help-callout strong {
  color: var(--pe-help-green-600);
}

.nfb-pe-help-callout--below-home-region {
  margin-top: 0.65rem;
  margin-bottom: 0;
  border-left-width: 4px;
  font-weight: 500;
}

.nfb-pe-help-example {
  margin: 0.4rem 0 0 0;
  padding: 0.5rem 0.7rem;
  /* Warm sand — distinct from mint UI without more green */
  background: linear-gradient(135deg, #fff8f0 0%, #fff4e6 45%, #ffefdc 100%);
  border: 1px dashed rgba(180, 83, 9, 0.32);
  border-radius: 8px;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--pe-help-ink);
  line-height: 1.45;
}

.nfb-pe-help-example--multiline {
  font-weight: 400;
}

.nfb-pe-help-example__label {
  display: inline-block;
  margin-right: 0.45rem;
  font-size: 0.68rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: #9a3412;
  vertical-align: baseline;
}

/* Form field names in prose — italic kept, color separates them from gray body copy. */
.nfb-pe-help-field-name {
  font-style: italic;
  font-weight: 500;
  color: #7c3aed;
}

@media (max-width: 520px) {
  .nfb-edit-nav-row {
    flex-direction: column;
    align-items: stretch;
  }

  .nfb-profile-help-btn {
    justify-content: center;
  }
}
