
/* ── TOKENS ────────────────────────────────────────────── */
:root {
  --navy:       #0d1f3c;
  --navy-dark:  #090F14;
  --deep-green: #213341;
  --navy-mid:   #162b52;
  --navy-light: #1e3a6e;
  --gold:       #b8922a;
  --gold-light: #d4a843;
  --gold-pale:  #f5ead2;
  --cream:      #faf8f4;
  --white:      #ffffff;
  --text:       #1a1a2e;
  --muted:      #6b7280;
  --border:     #dde1ea;
  --active-bg:  #eaf4ee;
  --active-txt: #1a6b35;
  --inactive-bg:#fef3f2;
  --inactive-txt:#b91c1c;
  --radius:     6px;
  --shadow:     0 2px 12px rgba(13,31,60,.10);
  --shadow-lg:  0 8px 32px rgba(13,31,60,.14);
}

/* ── RESET ─────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
body {
  font-family: 'DM Sans', sans-serif;
  background: var(--cream);
  color: var(--text);
  min-height: 100vh;
}

/* ── HEADER ─────────────────────────────────────────────── */
header {
  background: var(--deep-green);
  border-bottom: 3px solid var(--gold);
  position: sticky;
  top: 0;
  z-index: 100;
}
.header-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 2rem;
  height: 64px;
  display: flex;
  align-items: center;
  gap: 1rem;
}
.namp-logo {
  height: 48px;
  width: auto;
  display: block;
  flex-shrink: 0;
  /* logo has black bg — blend it away on the navy header */
  mix-blend-mode: screen;
  filter: brightness(1.05);
}
/* nav removed */

/* ── PAGE TITLE ─────────────────────────────────────────── */
.page-hero {
  max-width: 1100px;
  margin: 1rem auto 0;
  padding: 0 2rem;
}
.page-hero h1 {
  font-family: 'EB Garamond', serif;
  font-size: 2.4rem;
  font-weight: 600;
  color: var(--navy);
  line-height: 1.15;
}
.page-hero p {
  margin-top: .7rem;
  color: var(--muted);
  font-size: .93rem;
  max-width: 620px;
  line-height: 1.6;
}
.divider {
  max-width: 1100px;
  margin: 1.6rem auto;
  padding: 0 2rem;
}
.divider hr { border: none; border-top: 1px solid var(--border); }

/* ── NOTE BANNER ───────────────────────────────────────── */
.notice {
  max-width: 1100px;
  margin: 0 auto 1.6rem;
  padding: 0 2rem;
}
.notice-inner {
  background: var(--gold-pale);
  border-left: 4px solid var(--gold);
  border-radius: var(--radius);
  padding: .85rem 1.1rem;
  font-size: .83rem;
  color: #6b4e00;
  line-height: 1.55;
}
.notice-inner strong { color: #4a3300; }

/* ── SEARCH SECTION ─────────────────────────────────────── */
.search-section {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 2rem;
}
.search-section h2 {
  font-family: 'EB Garamond', serif;
  font-size: 1.6rem;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 1.2rem;
}

.search-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 1.8rem 2rem;
  box-shadow: var(--shadow);
}

/* single search bar */
.search-bar-wrap {
  display: flex;
  align-items: stretch;
  height: 50px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--cream);
  transition: border-color .2s, box-shadow .2s;
}
.search-bar-wrap:focus-within {
  border-color: var(--navy-light);
  box-shadow: 0 0 0 3px rgba(30,58,110,.12);
  background: var(--white);
}
.search-bar-icon {
  display: flex;
  align-items: center;
  padding: 0 .85rem;
  color: var(--muted);
  flex-shrink: 0;
}
.search-bar-icon svg { width: 18px; height: 18px; }
#inp-query {
  flex: 1;
  height: 48px;
  border: none;
  background: transparent;
  font-family: inherit;
  font-size: .95rem;
  color: var(--text);
  outline: none;
  padding: 0 .5rem 0 0;
}
#inp-query::placeholder { color: #b0b7c5; }
.search-hint {
  font-size: .78rem;
  color: var(--muted);
  margin-top: .55rem;
  display: flex;
  align-items: center;
  gap: .4rem;
}
.hint-tag {
  display: inline-block;
  background: #f0f2f7;
  border-radius: 4px;
  padding: .1rem .45rem;
  font-size: .72rem;
  color: var(--navy-mid);
  font-weight: 500;
}

.btn-search {
  height: 100%;
  padding: 0 1.6rem;
  background: var(--navy);
  color: var(--white);
  border: none;
  border-left: 1.5px solid var(--navy-mid);
  border-radius: 0;
  font-family: inherit;
  font-size: .9rem;
  font-weight: 600;
  cursor: pointer;
  letter-spacing: .03em;
  display: flex;
  align-items: center;
  gap: .45rem;
  transition: background .2s;
  white-space: nowrap;
  flex-shrink: 0;
  align-self: stretch;
}
.btn-search:hover { background: var(--navy-light); }
.btn-search:active { opacity: .9; }
.btn-search svg { width: 15px; height: 15px; }

.btn-clear {
  margin-top: 1rem;
  background: none;
  border: none;
  font-family: inherit;
  font-size: .82rem;
  color: var(--muted);
  cursor: pointer;
  padding: 0;
  text-decoration: underline;
}
.btn-clear:hover { color: var(--navy); }

/* ── SPINNER ─────────────────────────────────────────────── */
.spinner-wrap {
  display: none;
  justify-content: center;
  padding: 2.5rem 0;
  gap: .7rem;
  align-items: center;
  color: var(--muted);
  font-size: .88rem;
}
.spinner {
  width: 22px; height: 22px;
  border: 3px solid var(--border);
  border-top-color: var(--navy);
  border-radius: 50%;
  animation: spin .7s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ── RESULTS ─────────────────────────────────────────────── */
.results-section {
  max-width: 1100px;
  margin: 2rem auto 0;
  padding: 0 2rem;
}
.results-header {
  display: flex;
  align-items: baseline;
  gap: .7rem;
  margin-bottom: 1rem;
}
.results-header h3 {
  font-family: 'EB Garamond', serif;
  font-size: 1.45rem;
  font-weight: 600;
  color: var(--navy);
}
.count-badge {
  background: var(--navy);
  color: var(--white);
  font-size: .72rem;
  font-weight: 600;
  padding: .2rem .55rem;
  border-radius: 20px;
  letter-spacing: .04em;
}

/* result cards */
.result-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 10px;
  margin-bottom: 1rem;
  overflow: hidden;
  box-shadow: var(--shadow);
  animation: fadeUp .35s ease both;
}
@keyframes fadeUp {
  from { opacity:0; transform:translateY(12px); }
  to   { opacity:1; transform:translateY(0); }
}
.card-top {
  padding: 1.1rem 1.5rem;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  cursor: pointer;
  user-select: none;
  transition: background .15s;
}
.card-top:hover { background: #f7f8fb; }
.card-name {
  font-family: 'EB Garamond', serif;
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--navy-light);
}
.card-sub {
  font-size: .82rem;
  color: var(--muted);
  margin-top: .15rem;
}
.card-meta {
  display: flex;
  align-items: center;
  gap: .75rem;
  flex-shrink: 0;
}
.status-pill {
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: .04em;
  padding: .25rem .75rem;
  border-radius: 20px;
  text-transform: uppercase;
}
.status-pill.active   { background: var(--active-bg);   color: var(--active-txt); }
.status-pill.inactive { background: var(--inactive-bg); color: var(--inactive-txt); }
.status-pill.suspended{ background: #fef3c7; color: #92400e; }
.chevron {
  color: var(--muted);
  transition: transform .25s;
  display: flex;
}
.chevron.open { transform: rotate(180deg); }

/* expandable detail */
.card-detail {
  display: none;
  border-top: 1px solid var(--border);
  padding: 1.2rem 1.5rem;
  background: #f9fafb;
}
.card-detail.visible { display: block; }
.detail-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem 1.5rem;
}
@media (max-width: 600px) { .detail-grid { grid-template-columns: 1fr 1fr; } }
.detail-item label {
  display: block;
  font-size: .7rem;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--muted);
  margin-bottom: .2rem;
  font-weight: 600;
}
.detail-item p {
  font-size: .9rem;
  color: var(--text);
  font-weight: 500;
}
.cert-badge {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  background: var(--navy);
  color: var(--gold-light);
  font-size: .78rem;
  font-weight: 600;
  padding: .3rem .75rem;
  border-radius: 4px;
  letter-spacing: .03em;
}
.cert-badge svg { width: 13px; height: 13px; }

.print-btn {
  margin-top: 1rem;
  padding: .45rem 1.1rem;
  background: none;
  border: 1.5px solid var(--gold);
  border-radius: var(--radius);
  color: var(--gold);
  font-family: inherit;
  font-size: .8rem;
  font-weight: 600;
  cursor: pointer;
  letter-spacing: .04em;
  transition: background .15s, color .15s;
}
.print-btn:hover { background: var(--gold); color: var(--white); }

/* no results / error */
.empty-state {
  text-align: center;
  padding: 3.5rem 1rem;
  color: var(--muted);
  animation: fadeUp .3s ease;
}
.empty-state .icon {
  font-size: 2.8rem;
  margin-bottom: .7rem;
  opacity: .35;
}
.empty-state h4 {
  font-family: 'EB Garamond', serif;
  font-size: 1.3rem;
  color: var(--navy);
  margin-bottom: .4rem;
}
.empty-state p { font-size: .88rem; line-height: 1.55; }

.demo-notice {
  background: #fffbeb;
  border: 1px solid #fde68a;
  border-radius: var(--radius);
  padding: .6rem 1rem;
  font-size: .8rem;
  color: #78350f;
  margin-bottom: 1rem;
  display: flex;
  gap: .5rem;
  align-items: center;
}

/* ── Pagination ─────────────────────────────────────────── */
.pagination-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 24px;
  padding: 14px 18px;
  background: rgba(184,146,42,.07);
  border: 1px solid rgba(184,146,42,.25);
  border-radius: 10px;
}

.pg-info {
  font-size: 13px;
  color: #c9a84c;
  white-space: nowrap;
  font-weight: 500;
}

.pg-controls {
  display: flex;
  align-items: center;
  gap: 4px;
}

.pg-btn,
.pg-num {
  border: 1px solid rgba(184,146,42,.35);
  background: transparent;
  color: #c9a84c;
  border-radius: 6px;
  padding: 6px 14px;
  font-size: 13px;
  font-family: 'DM Sans', sans-serif;
  font-weight: 500;
  cursor: pointer;
  transition: background .15s, color .15s, border-color .15s;
  line-height: 1;
}

.pg-num {
  min-width: 36px;
  text-align: center;
  border-color: transparent;
}

.pg-btn:hover {
  background: rgba(184,146,42,.15);
  border-color: #b8922a;
  color: #e8c46a;
}

.pg-num:hover {
  background: rgba(184,146,42,.15);
  color: #e8c46a;
}

.pg-btn:disabled {
  opacity: .25;
  cursor: default;
  pointer-events: none;
}

.pg-num.active {
  background: #b8922a;
  color: #fff;
  border-color: #b8922a;
  font-weight: 700;
  box-shadow: 0 0 10px rgba(184,146,42,.4);
}

.pg-ellipsis {
  color: rgba(184,146,42,.4);
  padding: 0 4px;
  font-size: 14px;
  user-select: none;
}

.pg-per {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 12px;
  color: #c9a84c;
  font-weight: 500;
  white-space: nowrap;
}

.pg-per select {
  background: rgba(184,146,42,.1);
  border: 1px solid rgba(184,146,42,.35);
  color: #e8c46a;
  border-radius: 5px;
  padding: 4px 7px;
  font-size: 12px;
  font-family: 'DM Sans', sans-serif;
  cursor: pointer;
}

.pg-per select:focus {
  outline: none;
  border-color: #b8922a;
  box-shadow: 0 0 0 2px rgba(184,146,42,.2);
}

/* ── MOBILE ──────────────────────────────────────────────── */
@media (max-width: 600px) {

  /* header */
  .header-inner {
    padding: 0 1rem;
    height: 56px;
    gap: .6rem;
  }
  .namp-logo { height: 34px; }

  /* hero */
  .page-hero   { padding: 0 1rem; }
  .page-hero h1 { font-size: 1.65rem; }
  .page-hero p  { font-size: .87rem; }
  .divider      { padding: 0 1rem; margin: 1.2rem auto; }
  .notice       { padding: 0 1rem; }

  /* search */
  .search-section        { padding: 0 1rem; }
  .search-section h2     { font-size: 1.3rem; margin-bottom: .9rem; }
  .search-card           { padding: 1rem; }

  /* stack search bar: input on top, button full-width below */
  .search-bar-wrap {
    flex-direction: column;
    height: auto;
    border-radius: 8px;
    overflow: hidden;
  }
  .search-bar-icon { display: none; }

  #inp-query {
    height: 46px;
    width: 100%;
    padding: 0 1rem;
    font-size: 1.2rem;
    border: none;
    border-bottom: 1.5px solid var(--border);
    background: var(--cream);
    /* margin-bottom: 20px; */
  }
  #inp-query:focus {
    background: var(--white);
    outline: none;
  }

  .btn-search {
    width: 100%;
    height: 46px;
    border-left: none;
    border-top: none;
    border-radius: 0;
    justify-content: center;
    font-size: .95rem;
  }

  .specialization {
    position: relative;
    cursor: pointer;
}

.specialization:hover::after {
    content: attr(data-tooltip);
    position: absolute;
    left: 0;
    top: 100%;
    background: #333;
    color: #fff;
    padding: 6px 10px;
    border-radius: 4px;
    white-space: nowrap;
    z-index: 1000;
}

  .search-hint { flex-wrap: wrap; gap: .35rem; margin-top: .6rem; }

  /* results */
  .results-section { padding: 0 1rem; margin-top: 1.4rem; }
  .card-top        { padding: .9rem 1rem; }
  .card-name       { font-size: 1.1rem; }
  .card-sub        { font-size: .78rem; }
  .card-detail     { padding: 1rem; }
  .detail-grid     { grid-template-columns: 1fr 1fr; gap: .8rem 1rem; }

  /* footer */
  footer { padding: 1.2rem 1rem; font-size: .73rem; }
}



/* ── FOOTER ─────────────────────────────────────────────── */
footer {
  margin-top: 4rem;
  background: var(--deep-green);
  border-top: 3px solid var(--gold);
  padding: 1.5rem 2rem;
  text-align: center;
  font-size: .77rem;
  color: rgba(255,255,255,.4);
}
footer strong { color: rgba(255,255,255,.7); }
