/**
 * Shared desk-tool language for member screens linked from /user/dashboard.
 * Tokens mirror dashboard_v2 (npv2). Include via partials.npv2-desk-tool-styles.
 */
.content-wrapper > .container-xxl.container-p-y:has(.npv2-tool) {
  padding-top: 0.75rem !important;
  padding-bottom: 1.25rem !important;
}

.npv2-tool {
  --npv2-saffron: #C2410C;
  --npv2-terracotta: #7C2D12;
  --npv2-indigo: #312E81;
  --npv2-marigold: #D97706;
  --npv2-peach-100: #FFEDD5;
  --npv2-peach-200: #FED7AA;
  --npv2-peach-300: #FDBA74;
  --npv2-text: #1F2937;
  --npv2-text-muted: #5B6472;
  --npv2-cream: #FFFBF0;
  --npv2-radius: 0.85rem;
  --npv2-gap: 0.85rem;
  --feat: var(--npv2-saffron);
  --feat-soft: var(--npv2-peach-100);
  --feat-border: var(--npv2-peach-300);
  font-family: 'Lato', -apple-system, sans-serif;
  font-size: 1rem;
  line-height: 1.5;
  color: var(--npv2-text);
  max-width: 72rem;
  margin-inline: auto;
}

.npv2-tool h1,
.npv2-tool h2,
.npv2-tool h3,
.npv2-tool .npv2-serif {
  font-family: 'Playfair Display', Georgia, serif;
}

.npv2-tool.npv2-feat-directory { --feat: #0F766E; --feat-soft: #CCFBF1; --feat-border: #5EEAD4; }
.npv2-tool.npv2-feat-events { --feat: #4338CA; --feat-soft: #E0E7FF; --feat-border: #A5B4FC; }
.npv2-tool.npv2-feat-classifieds { --feat: #B45309; --feat-soft: #FFEDD5; --feat-border: #FDBA74; }
.npv2-tool.npv2-feat-stories { --feat: #7C3AED; --feat-soft: #EDE9FE; --feat-border: #C4B5FD; }
.npv2-tool.npv2-feat-banners { --feat: #BE185D; --feat-soft: #FCE7F3; --feat-border: #F9A8D4; }
.npv2-tool.npv2-feat-magazine { --feat: #C2410C; --feat-soft: #FFEDD5; --feat-border: #FDBA74; }
.npv2-tool.npv2-feat-rsvp { --feat: #0369A1; --feat-soft: #E0F2FE; --feat-border: #7DD3FC; }
.npv2-tool.npv2-feat-membership { --feat: #15803D; --feat-soft: #DCFCE7; --feat-border: #86EFAC; }

.npv2-tool__back {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--npv2-text-muted);
  text-decoration: none;
  margin-bottom: 0.75rem;
}
.npv2-tool__back:hover { color: var(--feat); }
.npv2-tool__back:focus-visible {
  outline: 2px solid var(--npv2-saffron);
  outline-offset: 2px;
}

.npv2-tool__hero {
  background: linear-gradient(135deg, var(--npv2-cream) 0%, var(--npv2-peach-100) 100%);
  border: 1px solid var(--npv2-peach-200);
  border-left: 4px solid var(--feat);
  border-radius: var(--npv2-radius);
  padding: 1rem 1.25rem;
  margin-bottom: var(--npv2-gap);
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.85rem 1.25rem;
}
.npv2-tool__hero h1 {
  font-size: clamp(1.35rem, 2.2vw, 1.75rem);
  font-weight: 700;
  color: var(--npv2-terracotta);
  margin: 0;
  letter-spacing: -0.02em;
  line-height: 1.2;
}
.npv2-tool__hero p {
  color: var(--npv2-text-muted);
  margin: 0.35rem 0 0;
  font-size: 0.975rem;
  max-width: 40rem;
}
.npv2-tool__hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
}

.npv2-tool__btn {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.9rem;
  font-weight: 700;
  color: #fff;
  background: var(--feat);
  border: none;
  border-radius: 0.5rem;
  padding: 0.5rem 0.95rem;
  text-decoration: none;
  cursor: pointer;
  font-family: inherit;
}
.npv2-tool__btn:hover { filter: brightness(0.94); color: #fff; }
.npv2-tool__btn:focus-visible {
  outline: 2px solid var(--npv2-saffron);
  outline-offset: 2px;
}
.npv2-tool__btn--ghost {
  background: #fff;
  color: var(--npv2-text);
  border: 1px solid #E7E0D4;
  font-weight: 600;
}
.npv2-tool__btn--ghost:hover {
  border-color: var(--feat);
  color: var(--feat);
  filter: none;
  background: var(--feat-soft);
}

.npv2-tool__panel {
  background: #fff;
  border: 1px solid var(--feat-border);
  border-radius: var(--npv2-radius);
  overflow: hidden;
  margin-bottom: var(--npv2-gap);
}
.npv2-tool__panel-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  padding: 0.85rem 1.1rem;
  border-bottom: 1px solid #F3EDE3;
  background: var(--feat-soft);
}
.npv2-tool__panel-title {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--npv2-text);
  font-family: 'Lato', -apple-system, sans-serif;
}
.npv2-tool__panel-body { padding: 1.1rem 1.25rem; }
.npv2-tool__panel-body--flush { padding: 0; }

.npv2-tool__empty {
  text-align: center;
  padding: 2.5rem 1.5rem;
  background: #fff;
  border: 1px dashed var(--feat-border);
  border-radius: var(--npv2-radius);
}
.npv2-tool__empty-icon {
  width: 3rem;
  height: 3rem;
  border-radius: 0.75rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--feat-soft);
  color: var(--feat);
  font-size: 1.5rem;
  margin-bottom: 0.75rem;
}
.npv2-tool__empty h2 {
  font-size: 1.25rem;
  margin: 0 0 0.35rem;
  color: var(--npv2-terracotta);
}
.npv2-tool__empty p {
  color: var(--npv2-text-muted);
  max-width: 28rem;
  margin: 0 auto 1.1rem;
}

.npv2-tool__table-wrap { overflow-x: auto; }
.npv2-tool__table {
  width: 100%;
  margin: 0;
  border-collapse: collapse;
  font-size: 0.9375rem;
}
.npv2-tool__table th {
  text-align: left;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--npv2-text-muted);
  padding: 0.65rem 1.1rem;
  border-bottom: 1px solid #F3EDE3;
  font-weight: 700;
}
.npv2-tool__table td {
  padding: 0.8rem 1.1rem;
  border-bottom: 1px solid #F8F4EC;
  vertical-align: middle;
}
.npv2-tool__table tr:last-child td { border-bottom: 0; }
.npv2-tool__primary { font-weight: 600; color: var(--npv2-text); }
.npv2-tool__meta { font-size: 0.875rem; color: var(--npv2-text-muted); margin-top: 0.15rem; }
.npv2-tool__action {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--feat);
  text-decoration: none;
  margin-left: 0.7rem;
}
.npv2-tool__action:first-child { margin-left: 0; }
.npv2-tool__action:hover { text-decoration: underline; color: var(--npv2-terracotta); }
.npv2-tool__action:focus-visible {
  outline: 2px solid var(--npv2-saffron);
  outline-offset: 2px;
}

.npv2-tool__badge {
  display: inline-block;
  font-size: 0.6875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  padding: 0.18rem 0.5rem;
  border-radius: 999px;
  background: #F3F4F6;
  color: #4B5563;
}
.npv2-tool__badge.is-success { background: #DCFCE7; color: #166534; }
.npv2-tool__badge.is-warn { background: #FEF3C7; color: #92400E; }
.npv2-tool__badge.is-danger { background: #FEE2E2; color: #991B1B; }

.npv2-tool__form-card {
  background: #fff;
  border: 1px solid var(--feat-border);
  border-radius: var(--npv2-radius);
  padding: 1.25rem 1.35rem;
  max-width: 40rem;
}
.npv2-tool__form-card .form-label {
  font-weight: 600;
  color: var(--npv2-text);
  font-size: 0.9rem;
}
.npv2-tool__form-card .form-control,
.npv2-tool__form-card .form-select {
  border-color: #E7E0D4;
  border-radius: 0.5rem;
}
.npv2-tool__form-card .form-control:focus,
.npv2-tool__form-card .form-select:focus {
  border-color: var(--feat);
  box-shadow: 0 0 0 0.2rem color-mix(in srgb, var(--feat) 18%, transparent);
}

.npv2-tool__alert {
  border-radius: var(--npv2-radius);
  padding: 0.75rem 1rem;
  margin-bottom: var(--npv2-gap);
  font-size: 0.95rem;
}
.npv2-tool__alert--danger {
  background: #FEF2F2;
  border: 1px solid #FECACA;
  color: #991B1B;
}
.npv2-tool__alert--success {
  background: #F0FDF4;
  border: 1px solid #BBF7D0;
  color: #166534;
}
.npv2-tool__alert--info {
  background: var(--feat-soft);
  border: 1px solid var(--feat-border);
  color: var(--npv2-text);
}

.npv2-tool__cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(16rem, 1fr));
  gap: 0.85rem;
}
.npv2-tool__card {
  background: #fff;
  border: 1px solid var(--feat-border);
  border-radius: var(--npv2-radius);
  padding: 1.1rem 1.15rem;
  display: flex;
  flex-direction: column;
  min-height: 100%;
}
.npv2-tool__card h3 {
  font-size: 1.05rem;
  margin: 0 0 0.25rem;
  font-family: 'Lato', -apple-system, sans-serif;
  font-weight: 700;
}
.npv2-tool__card .npv2-tool__meta { flex-grow: 1; margin-bottom: 0.85rem; }
.npv2-tool__card .npv2-tool__price {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--feat);
  margin-bottom: 0.85rem;
}

.npv2-tool__list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
.npv2-tool__list-item {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  align-items: center;
  background: #fff;
  border: 1px solid var(--feat-border);
  border-radius: var(--npv2-radius);
  padding: 0.9rem 1.05rem;
}
.npv2-tool__list-item__main { flex: 1 1 12rem; min-width: 0; }
.npv2-tool__list-item__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  align-items: center;
}

/* Soft saffron accents when member desk chrome is active */
.layout-menu-fixed.np-desk-chrome .bg-menu-theme .menu-inner > .menu-item.active > .menu-link {
  color: var(--npv2-saffron, #C2410C) !important;
}
.layout-menu-fixed.np-desk-chrome .bg-menu-theme .menu-inner > .menu-item.active > .menu-link::before {
  background: #C2410C !important;
}

@media (max-width: 639px) {
  .npv2-tool {
    padding-inline: 0;
    max-width: 100%;
  }
  .npv2-tool__hero { padding: 0.95rem 1.05rem; }
  .npv2-tool__hero-actions {
    width: 100%;
  }
  .npv2-tool__hero-actions .npv2-tool__btn {
    flex: 1 1 auto;
    justify-content: center;
  }
  .npv2-tool__form-card,
  .npv2-tool__panel-body { padding: 1rem; }
  .npv2-tool__panel { border-radius: 0.75rem; }
  .npv2-tool__actions,
  .npv2-tool__footer-actions {
    flex-direction: column;
    align-items: stretch;
  }
  .npv2-tool__actions .npv2-tool__btn,
  .npv2-tool__footer-actions .npv2-tool__btn,
  .npv2-tool__actions .btn,
  .npv2-tool__footer-actions .btn {
    width: 100%;
    justify-content: center;
  }
}

/* Classifieds create/edit form polish */
.np-cl-section {
  padding-bottom: 1.25rem;
  margin-bottom: 1.15rem;
  border-bottom: 1px solid #F3EDE3;
}
.np-cl-section--last {
  border-bottom: 0;
  margin-bottom: 0.5rem;
  padding-bottom: 0.5rem;
}
.np-cl-section__title {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--feat);
  margin: 0 0 0.2rem;
  font-family: 'Lato', -apple-system, sans-serif;
}
.np-cl-section__hint {
  font-size: 0.875rem;
  color: var(--npv2-text-muted);
  margin: 0 0 0.85rem;
}
.np-cl-counter {
  font-size: 0.75rem;
  color: var(--npv2-text-muted);
  font-variant-numeric: tabular-nums;
}
.np-cl-chips { border: 0; padding: 0; margin: 0; min-inline-size: 0; }
.np-cl-chips__grid {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}
.np-cl-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  margin: 0;
  padding: 0.45rem 0.8rem;
  border: 1px solid #E7E0D4;
  border-radius: 999px;
  background: #fff;
  cursor: pointer;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--npv2-text);
  transition: border-color 0.15s ease, background 0.15s ease, color 0.15s ease;
}
.np-cl-chip input {
  position: absolute;
  opacity: 0;
  width: 1px;
  height: 1px;
  pointer-events: none;
}
.np-cl-chip:hover { border-color: var(--feat-border); background: var(--feat-soft); }
.np-cl-chip.is-selected,
.np-cl-chip:has(input:checked) {
  border-color: var(--feat);
  background: var(--feat-soft);
  color: var(--feat);
  box-shadow: 0 0 0 1px var(--feat);
}
.np-cl-chip:focus-within {
  outline: 2px solid var(--feat);
  outline-offset: 2px;
}
.np-cl-price-modes { border: 0; padding: 0; margin: 0; min-inline-size: 0; }
.np-cl-price-modes__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.45rem;
}
@media (max-width: 520px) {
  .np-cl-price-modes__grid { grid-template-columns: 1fr; }
}
.np-cl-price-mode {
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  margin: 0;
  padding: 0.65rem 0.5rem;
  border: 1px solid #E7E0D4;
  border-radius: 0.55rem;
  background: #fff;
  cursor: pointer;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--npv2-text);
}
.np-cl-price-mode input {
  position: absolute;
  opacity: 0;
  width: 1px;
  height: 1px;
  pointer-events: none;
}
.np-cl-price-mode:hover { border-color: var(--feat-border); background: var(--feat-soft); }
.np-cl-price-mode.is-selected,
.np-cl-price-mode:has(input:checked) {
  border-color: var(--feat);
  background: var(--feat-soft);
  color: var(--feat);
  box-shadow: 0 0 0 1px var(--feat);
}
.np-cl-price-mode:focus-within {
  outline: 2px solid var(--feat);
  outline-offset: 2px;
}
.np-cl-dropzone {
  position: relative;
  border: 1.5px dashed var(--feat-border);
  border-radius: var(--npv2-radius);
  background: linear-gradient(180deg, #fff 0%, var(--feat-soft) 100%);
  min-height: 9rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  overflow: hidden;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.np-cl-dropzone:hover,
.np-cl-dropzone.is-dragover {
  border-color: var(--feat);
  box-shadow: 0 0 0 0.2rem color-mix(in srgb, var(--feat) 16%, transparent);
}
.np-cl-dropzone__input {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
  z-index: 2;
}
.np-cl-dropzone__prompt {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.25rem;
  padding: 1.25rem;
  text-align: center;
  color: var(--npv2-text-muted);
  font-size: 0.875rem;
  pointer-events: none;
  z-index: 1;
}
.np-cl-dropzone__prompt i {
  font-size: 1.75rem;
  color: var(--feat);
  margin-bottom: 0.15rem;
}
.np-cl-dropzone__prompt strong {
  color: var(--npv2-text);
  font-size: 0.95rem;
}
.np-cl-dropzone__preview {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
}
.np-cl-dropzone__preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
