/* NLI Agent Platform — agents.css v1.0 */

/* ── Directory wrap ────────────────────────────────────── */
.nla-wrap {
  max-width: var(--max, 1160px);
  margin: 0 auto;
  padding: 40px 16px 80px;
}
@media(min-width:640px){ .nla-wrap { padding: 48px 24px 100px; } }


.nla-page-header {
  text-align: center;
  margin-bottom: 40px;
}
.nla-page-header h1 {
  font-family: var(--font-head, 'Newsreader', Georgia, serif);
  font-size: clamp(1.6rem, 4vw, 2.4rem);
  color: var(--ink, #111827);
  margin-bottom: 12px;
}
.nla-page-header p {
  color: var(--ink-s, #6B7280);
  max-width: 560px;
  margin: 0 auto 22px;
}

/* ── Filters ───────────────────────────────────────────── */
.nla-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 28px;
  background: var(--off, #F9FAFB);
  border: 1px solid var(--border, #E5E7EB);
  border-radius: var(--radius, 12px);
  padding: 14px 16px;
}
.nla-filters select {
  flex: 1;
  min-width: 160px;
  padding: 9px 12px;
  border: 1px solid var(--border-d, #D1D5DB);
  border-radius: 8px;
  font-family: inherit;
  font-size: 13px;
  color: var(--ink, #111827);
  background: #fff;
  cursor: pointer;
}
.nla-filters select:focus { outline: 2px solid var(--red, #C0392B); outline-offset: 2px; }
.nla-clear-btn { padding: 8px 14px; border: 1px solid var(--border-d, #D1D5DB); border-radius: 8px; font-size: 13px; font-weight: 600; color: var(--ink-m, #4B5563); background: #fff; cursor: pointer; white-space: nowrap; }
.nla-clear-btn:hover { border-color: var(--red, #C0392B); color: var(--red, #C0392B); }

/* ── Agent grid ────────────────────────────────────────── */
.nla-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
}

.nla-card {
  background: #fff;
  border: 1px solid var(--border, #E5E7EB);
  border-radius: var(--radius, 12px);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: box-shadow .2s, transform .15s;
}
.nla-card:hover {
  box-shadow: var(--shadow, 0 4px 20px rgba(0,0,0,.08));
  transform: translateY(-2px);
}
.nla-card-head {
  padding: 20px 20px 0;
  display: flex;
  gap: 14px;
  align-items: flex-start;
}
.nla-avatar {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
  border: 2px solid var(--border, #E5E7EB);
}
.nla-avatar-placeholder {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: #EEF1F6;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-head, 'Newsreader', Georgia, serif);
  font-size: 22px;
  font-weight: 700;
  color: var(--navy);
  flex-shrink: 0;
}
.nla-card-info { flex: 1; min-width: 0; }
.nla-card-name {
  font-family: var(--font-head, 'Newsreader', Georgia, serif);
  font-size: 16px;
  font-weight: 700;
  color: var(--ink, #111827);
  margin: 0 0 5px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.nla-company-badge {
  display: inline-block;
  font-size: 11px;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 20px;
  margin-bottom: 6px;
}
.nla-meta-row {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  font-size: 12px;
  color: var(--ink-s, #6B7280);
}
.nla-card-body {
  padding: 12px 20px;
  flex: 1;
}
.nla-bio-preview {
  font-size: 13px;
  color: var(--ink-m, #374151);
  line-height: 1.6;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-bottom: 10px;
}
.nla-specialisms {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}
.nla-specialism-tag {
  font-size: 11px;
  padding: 2px 8px;
  background: #EEF1F6;
  color: #2A3E5E;
  border-radius: 20px;
  font-weight: 500;
}
.nla-card-foot {
  border-top: 1px solid var(--border, #E5E7EB);
  padding: 12px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.nla-exp-badge {
  font-size: 12px;
  color: var(--ink-s, #6B7280);
}
.nla-profile-link {
  font-size: 13px;
  font-weight: 600;
  color: var(--red, #C0392B);
  text-decoration: none;
}
.nla-profile-link:hover { color: var(--red-d, #962D22); text-decoration: underline; }

.nla-empty {
  text-align: center;
  padding: 60px 20px;
  color: var(--ink-s, #6B7280);
  grid-column: 1 / -1;
}
.nla-empty strong {
  display: block;
  font-size: 18px;
  margin-bottom: 8px;
  color: var(--ink, #111827);
}

/* ── Single profile ────────────────────────────────────── */
.nla-profile-wrap {
  max-width: 800px;
  margin: 0 auto;
  padding: 40px 16px 80px;
}
@media(min-width:640px){ .nla-profile-wrap { padding: 48px 24px 100px; } }

.nla-profile-card {
  background: #fff;
  border: 1px solid var(--border, #E5E7EB);
  border-radius: var(--radius-lg, 18px);
  overflow: hidden;
  box-shadow: var(--shadow, 0 4px 20px rgba(0,0,0,.08));
}
.nla-profile-banner {
  height: 110px;
  background: var(--nli-hero);
}
.nla-profile-top {
  padding: 0 28px 20px;
  display: flex;
  gap: 18px;
  align-items: flex-end;
  margin-top: -40px;
  flex-wrap: wrap;
}
@media(max-width:480px){ .nla-profile-top { padding: 0 16px 16px; } }
.nla-profile-avatar {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  object-fit: cover;
  border: 4px solid #fff;
  box-shadow: var(--shadow-sm, 0 1px 3px rgba(0,0,0,.07));
  flex-shrink: 0;
}
.nla-profile-avatar-placeholder {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: #EEF1F6;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-head, 'Newsreader', Georgia, serif);
  font-size: 28px;
  font-weight: 700;
  color: var(--navy);
  border: 4px solid #fff;
  box-shadow: var(--shadow-sm, 0 1px 3px rgba(0,0,0,.07));
  flex-shrink: 0;
}
.nla-profile-title { padding-bottom: 4px; }
.nla-profile-title h1 {
  font-family: var(--font-head, 'Newsreader', Georgia, serif);
  font-size: clamp(1.25rem, 3vw, 1.75rem);
  color: var(--ink, #111827);
  margin: 0 0 6px;
}
.nla-profile-body { padding: 0 28px 28px; }
@media(max-width:480px){ .nla-profile-body { padding: 0 16px 20px; } }

.nla-profile-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 24px;
}
@media(max-width:480px){ .nla-profile-grid { grid-template-columns: 1fr; } }
.nla-profile-item {
  background: var(--off, #F9FAFB);
  border-radius: var(--radius-sm, 6px);
  padding: 12px 14px;
}
.nla-profile-item .label {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .05em;
  color: var(--ink-xs, #9CA3AF);
  margin-bottom: 3px;
}
.nla-profile-item .value {
  font-size: 14px;
  font-weight: 600;
  color: var(--ink, #111827);
}
.nla-profile-bio {
  font-size: 15px;
  line-height: 1.75;
  color: var(--ink-m, #374151);
  margin-bottom: 24px;
}
.nla-contact-box {
  background: var(--red-bg);
  border: 1px solid rgba(192,57,43,.15);
  border-radius: var(--radius, 12px);
  padding: 20px 24px;
  display: flex;
  gap: 16px;
  align-items: center;
  flex-wrap: wrap;
}
.nla-contact-box p { flex: 1; font-size: 14px; color: var(--ink-m, #374151); margin: 0; }
.nla-wa-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #25D366;
  color: #fff !important;
  font-weight: 600;
  font-size: 14px;
  padding: 10px 20px;
  border-radius: 12px;
  text-decoration: none;
  white-space: nowrap;
  transition: background .2s;
}
.nla-wa-btn:hover { background: #1ebe5d; }
.nla-wa-btn svg { width: 18px; height: 18px; fill: #fff; flex-shrink: 0; }

.nla-nia-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  background: var(--green-bg);
  color: var(--green, #065F46);
  border: 1px solid #A7F3D0;
  border-radius: 20px;
  padding: 3px 10px;
  font-weight: 600;
  margin-top: 6px;
}

.nla-inactive-notice {
  text-align: center;
  padding: 60px 20px;
  color: var(--ink-s, #6B7280);
}
.nla-inactive-notice strong {
  display: block;
  font-size: 18px;
  margin-bottom: 8px;
  color: var(--ink, #111827);
}

/* ── Signup form ───────────────────────────────────────── */
.nla-signup-wrap {
  max-width: 700px;
  margin: 0 auto;
  padding: 40px 16px 80px;
}
@media(min-width:640px){ .nla-signup-wrap { padding: 48px 24px 100px; } }

.nla-signup-header {
  text-align: center;
  margin-bottom: 32px;
}
.nla-signup-header h1 {
  font-family: var(--font-head, 'Newsreader', Georgia, serif);
  font-size: clamp(1.5rem, 4vw, 2.2rem);
  color: var(--ink, #111827);
  margin-bottom: 10px;
}
.nla-signup-header p { color: var(--ink-s, #6B7280); max-width: 520px; margin: 0 auto; }

.nla-benefits {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
  margin: 18px 0 28px;
}
.nla-benefit {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 13px;
  color: var(--ink-m, #374151);
  background: var(--green-bg);
  padding: 5px 12px;
  border-radius: 20px;
}
.nla-benefit::before { content: '✓'; color: var(--green); font-weight: 700; }

.nla-form-card {
  background: #fff;
  border: 1px solid var(--border, #E5E7EB);
  border-radius: var(--radius-lg, 18px);
  padding: 32px;
  box-shadow: var(--shadow, 0 4px 20px rgba(0,0,0,.08));
}
@media(max-width:480px){ .nla-form-card { padding: 20px 16px; } }

.nla-form-section-title {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .07em;
  color: var(--ink-xs, #9CA3AF);
  margin: 24px 0 14px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--border, #E5E7EB);
}
.nla-form-section-title:first-child { margin-top: 0; }

.nla-form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
@media(max-width:520px){ .nla-form-row { grid-template-columns: 1fr; } }

.nla-field { margin-bottom: 16px; }
.nla-field label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--ink, #111827);
  margin-bottom: 5px;
}
.nla-field label .req { color: var(--red, #C0392B); margin-left: 2px; }
.nla-field input,
.nla-field select,
.nla-field textarea {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--border-d, #D1D5DB);
  border-radius: 8px;
  font-family: inherit;
  font-size: 14px;
  color: var(--ink, #111827);
  background: #fff;
  transition: border-color .2s, box-shadow .2s;
}
.nla-field input:focus,
.nla-field select:focus,
.nla-field textarea:focus {
  outline: none;
  border-color: var(--red, #C0392B);
  box-shadow: 0 0 0 3px rgba(192,57,43,.1);
}
.nla-field textarea { resize: vertical; min-height: 90px; }
.nla-field .hint { font-size: 12px; color: var(--ink-s, #6B7280); margin-top: 4px; }
.nla-field select optgroup { font-weight: 700; }

.nla-checkbox-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 8px;
  margin-top: 6px;
}
.nla-checkbox-grid label {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 13px;
  font-weight: 400 !important;
  color: var(--ink-m, #374151);
  cursor: pointer;
  padding: 8px 10px;
  border: 1px solid var(--border, #E5E7EB);
  border-radius: 8px;
  transition: border-color .15s, background .15s;
}
.nla-checkbox-grid label:hover { border-color: var(--red, #C0392B); }
.nla-checkbox-grid input[type="checkbox"] { accent-color: var(--red, #C0392B); width: 15px; height: 15px; flex-shrink: 0; }
.nla-checkbox-grid label:has(input:checked) {
  background: var(--red-bg);
  border-color: var(--red, #C0392B);
  color: var(--red-d, #962D22);
  font-weight: 500 !important;
}

.nla-submit-btn {
  width: 100%;
  padding: 13px;
  background: var(--red, #C0392B);
  color: #fff;
  font-family: inherit;
  font-size: 15px;
  font-weight: 600;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: background .2s;
  margin-top: 8px;
}
.nla-submit-btn:hover:not(:disabled) { background: var(--red-d, #962D22); }
.nla-submit-btn:disabled { opacity: .6; cursor: not-allowed; }

.nla-form-msg {
  display: none;
  padding: 12px 16px;
  border-radius: 8px;
  font-size: 14px;
  margin-top: 14px;
  text-align: center;
}
.nla-form-msg.success {
  display: block;
  background: var(--green-bg);
  color: var(--green, #065F46);
  border: 1px solid #A7F3D0;
}
.nla-form-msg.error {
  display: block;
  background: var(--red-bg);
  color: var(--red-d, #962D22);
  border: 1px solid rgba(192,57,43,.2);
}

.nla-pricing-note {
  text-align: center;
  margin-top: 20px;
  font-size: 13px;
  color: var(--ink-s, #6B7280);
}
.nla-pricing-note strong { color: var(--ink, #111827); }

/* ── Profile gate ──────────────────────────────────────── */
.nla-is-gated { position: relative; }
.nla-is-gated .nla-profile-body { filter: blur(4px); user-select: none; pointer-events: none; }
.nla-is-gated .nla-profile-banner,
.nla-is-gated .nla-profile-top { filter: blur(2px); }

.nla-gate-overlay {
  position: absolute;
  inset: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255,255,255,.6);
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
  border-radius: var(--radius-lg, 18px);
  padding: 20px;
}
.nla-gate-card {
  background: #fff;
  border: 1px solid var(--border, #E5E7EB);
  border-radius: var(--radius-lg, 18px);
  padding: 36px 32px;
  box-shadow: var(--shadow-lg, 0 12px 40px rgba(0,0,0,.10));
  max-width: 420px;
  width: 100%;
  text-align: center;
}
@media(max-width:480px){ .nla-gate-card { padding: 24px 16px; } }

.nla-gate-icon { font-size: 36px; margin-bottom: 12px; }
.nla-gate-title {
  font-family: var(--font-head, 'Newsreader', Georgia, serif);
  font-size: 1.3rem;
  color: var(--ink, #111827);
  margin-bottom: 8px;
}
.nla-gate-sub {
  font-size: 14px;
  color: var(--ink-s, #6B7280);
  margin-bottom: 20px;
}
.nla-gate-card .nla-field { text-align: left; }
.nla-gate-privacy {
  font-size: 12px;
  color: var(--ink-xs, #9CA3AF);
  margin-top: 12px;
  margin-bottom: 0;
}

.nla-gate-unlocking .nla-gate-overlay {
  opacity: 0;
  transition: opacity .4s ease;
  pointer-events: none;
}
.nla-gate-unlocking .nla-profile-body,
.nla-gate-unlocking .nla-profile-banner,
.nla-gate-unlocking .nla-profile-top {
  filter: none;
  transition: filter .4s ease;
}

/* ── Honeypot — visually hidden, still submitted by bots ── */
.nla-honeypot {
  position: absolute !important;
  left: -9999px !important;
  top: auto !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
  opacity: 0 !important;
  pointer-events: none !important;
}


/* Gated NIA licence — standalone block (no longer in the grid) */
.nla-gated-licence {
  margin-bottom: 16px;
  max-width: 280px;
}

/* NIA verified badge on agent cards */
.nla-nia-verified {
  display: inline-block;
  font-size: 10px;
  font-weight: 700;
  color: var(--green);
  background: var(--green-bg);
  border-radius: 4px;
  padding: 2px 6px;
  margin-bottom: 4px;
  letter-spacing: .02em;
}

/* ── Vetting criteria section ───────────────────────────── */
.nla-criteria-wrap {
  max-width: 900px;
  margin: 0 auto 40px;
  padding: 32px 24px;
  background: #EEF1F6;
  border-radius: 16px;
}
.nla-criteria-heading {
  font-size: 15px;
  font-weight: 700;
  color: var(--ink, #1F2937);
  text-align: center;
  margin: 0 0 24px;
  letter-spacing: -.01em;
}
.nla-criteria-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}
@media(min-width:640px){
  .nla-criteria-grid { grid-template-columns: repeat(3,1fr); gap: 24px; }
}
.nla-criterion {
  display: flex;
  gap: 14px;
  align-items: flex-start;
}
.nla-criterion-icon {
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #fff;
  border: 1px solid #D7DEEA;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--navy);
}
.nla-criterion-title {
  font-size: 13px;
  font-weight: 700;
  color: var(--ink, #1F2937);
  margin: 0 0 4px;
}
.nla-criterion-desc {
  font-size: 12px;
  color: var(--ink-m, #4B5563);
  line-height: 1.6;
  margin: 0;
}

/* ── Empty state enhancements ───────────────────────────── */
.nla-empty-label {
  font-size: 18px;
  font-weight: 700;
  color: var(--ink, #1F2937);
  margin: 0 0 6px;
}
.nla-empty-sub {
  font-size: 13px;
  color: var(--ink-s, #6B7280);
  margin: 0 0 28px;
}

/* Placeholder card */
.nla-placeholder-card {
  max-width: 360px;
  margin: 0 auto 32px;
  border: 1.5px dashed #E5E7EB;
  border-radius: 14px;
  padding: 20px;
  background: #FAFAFA;
  position: relative;
  text-align: left;
  pointer-events: none;
  user-select: none;
}
.nla-avatar-placeholder--muted {
  opacity: 0.45;
}
.nla-placeholder-blur {
  filter: blur(2.5px);
  opacity: 0.6;
  pointer-events: none;
}
.nla-profile-link--disabled {
  display: inline-block;
  font-size: 13px;
  font-weight: 600;
  color: #D1D5DB;
  cursor: default;
}
.nla-placeholder-label {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%,-50%);
  background: rgba(255,255,255,.92);
  border: 1px solid #E5E7EB;
  border-radius: 8px;
  padding: 6px 14px;
  font-size: 11px;
  font-weight: 600;
  color: var(--ink-s, #6B7280);
  white-space: nowrap;
  letter-spacing: .02em;
  text-transform: uppercase;
  pointer-events: none;
}

/* Empty-state agent CTA */
.nla-empty-agent-cta {
  margin-top: 8px;
  padding-top: 28px;
  border-top: 1px solid #F1F3F5;
}
.nla-empty-cta-text {
  font-size: 14px;
  font-weight: 600;
  color: var(--ink, #1F2937);
  margin: 0 0 12px;
}
.nla-empty-cta-note {
  font-size: 12px;
  color: var(--ink-s, #6B7280);
  margin: 10px 0 0;
}

/* ── Line-icon swaps (retired emoji 📍⏱🛡️) ───────────────── */
.nla-meta-row span { display: inline-flex; align-items: center; gap: 4px; }
.nla-meta-icon { width: 13px; height: 13px; flex-shrink: 0; }
.nla-profile-item .value { display: inline-flex; align-items: center; gap: 6px; }
.nla-profile-item .value .nla-meta-icon { width: 15px; height: 15px; color: #2A3E5E; }
.nla-gate-icon { color: var(--navy); }
.nla-gate-shield { width: 40px; height: 40px; }
