.npti-archives {
  --npti-orange: var(--mainColor, #f36f21);
  --npti-orange-dark: var(--mainColor, #f36f21);
  --npti-orange-tint: color-mix(in srgb, var(--mainColor, #f36f21) 12%, #fff);
  --npti-orange-tint-2: color-mix(in srgb, var(--mainColor, #f36f21) 5%, #fff);
  --npti-ink: var(--blackColor, #26211d);
  --npti-muted: var(--paragraphColor, #7a726b);
  --npti-border: #eeeeee;
  font-family: var(--fontFamily, -apple-system, "Segoe UI", Roboto, Arial, sans-serif);
  color: var(--npti-ink);
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}
.npti-archives *,
.npti-archives *::before,
.npti-archives *::after {
  box-sizing: border-box;
}

/* Tabs */
.npti-tabs-wrap {
  display: flex;
  align-items: center;
  gap: 6px;
  background: var(--npti-orange);
  border-radius: 10px;
  padding: 6px;
  margin-bottom: 20px;
}
.npti-tabs {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  scroll-behavior: smooth;
  scrollbar-width: none;
  flex: 1;
}
.npti-tabs::-webkit-scrollbar { display: none; }
.npti-tab {
  flex: none;
  background: transparent;
  border: none;
  color: var(--bg-white, #fff);
  padding: 10px 16px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  font-family: "Lexend", sans-serif;
  white-space: nowrap;
  cursor: pointer;
  opacity: 0.85;
  transition: background .15s ease, opacity .15s ease;
}
.npti-tab:hover { opacity: 1; background: rgba(255,255,255,.12); }
.npti-tab.active { background: #fff; color: var(--npti-orange-dark); opacity: 1; }
.npti-tab-arrow {
  flex: none;
  width: 30px; height: 30px;
  border: none;
  border-radius: 50%;
  background: rgba(255,255,255,.18);
  color: #fff;
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
}
.npti-tab-arrow:hover { background: rgba(255,255,255,.32); }

/* Filter bar */
.npti-filterbar {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 18px;
}
.npti-search {
  flex: 1 1 260px;
  display: flex;
  align-items: center;
  gap: 8px;
  border: 1.5px solid var(--npti-border);
  border-radius: 8px;
  padding: 9px 12px;
  color: var(--npti-muted);
}
.npti-search input {
  border: none;
  outline: none;
  flex: 1;
  font-size: 14px;
  color: var(--npti-ink);
}
.npti-select {
  flex: 0 1 170px;
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.npti-select label {
  font-size: 11px;
  color: var(--npti-muted);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .03em;
}
.npti-select select {
  border: 1.5px solid var(--npti-border);
  border-radius: 8px;
  padding: 8px 10px;
  font-size: 14px;
  color: var(--npti-ink);
  background: #fff;
}
.npti-search:focus-within, .npti-select select:focus {
  border-color: var(--npti-orange);
  outline: none;
}

/* Table */
.npti-panel { display: none; }
.npti-panel.active {
  display: block;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}
.npti-table {
  width: 100%;
  min-width: 480px;
  border-collapse: collapse;
  border: 1px solid var(--npti-border);
  border-radius: 10px;
  overflow: hidden;
}
.npti-table thead th {
  background: var(--npti-orange-tint);
  color: var(--npti-orange-dark);
  text-align: left;
  font-size: 13px;
  font-family: "Lexend", sans-serif;
  text-transform: uppercase;
  letter-spacing: .04em;
  padding: 14px 18px;
  border-bottom: 1px solid var(--npti-border);
}
.npti-table tbody td {
  padding: 15px 18px;
  font-size: 15px;
  border-bottom: 1px solid var(--npti-border);
}
.npti-table tbody tr:last-child td { border-bottom: none; }
.npti-table tbody tr:hover td { background: var(--npti-orange-tint-2); }
.npti-table a { color: var(--npti-orange-dark); text-decoration: none; font-weight: 600; }
.npti-table a:hover { text-decoration: underline; }
.npti-empty {
  text-align: center;
  color: var(--npti-muted);
  font-weight: 600;
  padding: 24px !important;
}

/* Neutralize CKEditor's auto-inserted <p> tags inside table cells */
.npti-table th p,
.npti-table td p {
  margin: 0;
}

@media (max-width: 640px) {
  .npti-select { flex: 1 1 45%; }
}

@media (max-width: 480px) {
  .npti-tabs-wrap {
    padding: 5px;
    border-radius: 8px;
  }
  .npti-tab {
    padding: 8px 12px;
    font-size: 13px;
  }
  .npti-tab-arrow {
    width: 26px;
    height: 26px;
    font-size: 15px;
  }
  .npti-filterbar {
    flex-direction: column;
    gap: 10px;
  }
  .npti-search,
  .npti-select {
    flex: 1 1 100%;
  }
  .npti-table thead th {
    font-size: 11px;
    padding: 10px 12px;
  }
  .npti-table tbody td {
    font-size: 13px;
    padding: 11px 12px;
  }
}