/* Charity & 501(c)(3) Nonprofit Due Diligence CSS (Prefix: cnl-) */

.cnl-body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: #1e293b;
  background-color: #f8fafc;
  margin: 0;
  padding: 0;
  line-height: 1.5;
}

.cnl-header {
  background-color: #0f172a;
  border-bottom: 1px solid #1e293b;
  padding: 0.75rem 1.5rem;
}

.cnl-nav-container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.cnl-logo-link {
  font-size: 1.25rem;
  font-weight: 700;
  color: #38bdf8;
  text-decoration: none;
}

.cnl-logo-link:hover {
  color: #7dd3fc;
}

.cnl-nav-badge {
  background-color: #1e293b;
  color: #38bdf8;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.25rem 0.6rem;
  border-radius: 9999px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.cnl-main {
  max-width: 1200px;
  margin: 0 auto;
  padding: 1.5rem 1rem;
}

.cnl-breadcrumbs {
  margin-bottom: 1rem;
}

.cnl-bc-list {
  display: flex;
  align-items: center;
  list-style: none;
  padding: 0;
  margin: 0;
  font-size: 0.875rem;
  color: #64748b;
}

.cnl-bc-item {
  display: inline;
}

.cnl-bc-link {
  color: #0284c7;
  text-decoration: none;
}

.cnl-bc-link:hover {
  text-decoration: underline;
}

.cnl-bc-separator {
  margin: 0 0.5rem;
  color: #94a3b8;
}

.cnl-bc-current {
  color: #334155;
  font-weight: 500;
}

/* Notice Banner */
.cnl-notice-banner {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  background-color: #f0fdf4;
  border: 1px solid #bbf7d0;
  border-left: 4px solid #16a34a;
  padding: 0.85rem 1rem;
  border-radius: 6px;
  margin-bottom: 1.5rem;
}

.cnl-notice-icon {
  font-size: 1.25rem;
  line-height: 1;
  color: #16a34a;
}

.cnl-notice-text {
  font-size: 0.85rem;
  color: #15803d;
  line-height: 1.4;
}

/* Hero */
.cnl-hero {
  margin-bottom: 1.5rem;
}

.cnl-title {
  font-size: 2rem;
  font-weight: 800;
  color: #0f172a;
  margin: 0 0 0.5rem 0;
  letter-spacing: -0.02em;
}

.cnl-subtitle {
  font-size: 1.05rem;
  color: #475569;
  margin: 0;
  max-width: 820px;
}

/* Filters Bar */
.cnl-filters-bar {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
  background-color: #e2e8f0;
  padding: 0.6rem 0.85rem;
  border-radius: 8px;
  margin-bottom: 1.5rem;
}

.cnl-filter-label {
  font-size: 0.85rem;
  font-weight: 600;
  color: #334155;
}

.cnl-category-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.cnl-cat-btn {
  background-color: #ffffff;
  border: 1px solid #cbd5e1;
  color: #1e293b;
  font-size: 0.8rem;
  font-weight: 600;
  padding: 0.3rem 0.65rem;
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.15s ease;
}

.cnl-cat-btn:hover {
  background-color: #0284c7;
  color: #ffffff;
  border-color: #0284c7;
}

.cnl-cat-active {
  background-color: #0284c7;
  color: #ffffff;
  border-color: #0284c7;
}

/* Search Card */
.cnl-card {
  background-color: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 1.25rem;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.cnl-search-card {
  margin-bottom: 1.5rem;
}

.cnl-form {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.cnl-form-row {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.cnl-search-wrap {
  flex: 1 1 320px;
}

.cnl-visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

.cnl-input {
  width: 100%;
  padding: 0.65rem 0.85rem;
  border: 1px solid #cbd5e1;
  border-radius: 6px;
  font-size: 0.95rem;
  color: #0f172a;
  background-color: #fff;
  box-sizing: border-box;
}

.cnl-input:focus {
  outline: none;
  border-color: #0284c7;
  box-shadow: 0 0 0 3px rgba(2, 132, 199, 0.15);
}

.cnl-sort-wrap {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.cnl-label-inline {
  font-size: 0.85rem;
  font-weight: 600;
  color: #475569;
}

.cnl-select {
  padding: 0.6rem 0.75rem;
  border: 1px solid #cbd5e1;
  border-radius: 6px;
  font-size: 0.9rem;
  color: #0f172a;
  background-color: #fff;
}

.cnl-search-stats {
  font-size: 0.8rem;
  color: #64748b;
  font-weight: 500;
}

/* Layout Grid */
.cnl-layout {
  display: grid;
  grid-template-columns: 1fr 430px;
  gap: 1.5rem;
  margin-bottom: 2rem;
}

@media (max-width: 980px) {
  .cnl-layout {
    grid-template-columns: 1fr;
  }
}

.cnl-catalog-column {
  min-height: 400px;
}

.cnl-cards-list {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.cnl-card-item {
  background-color: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 1rem;
  cursor: pointer;
  transition: all 0.15s ease;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.cnl-card-item:hover {
  border-color: #0284c7;
  box-shadow: 0 4px 10px rgba(0,0,0,0.06);
  transform: translateY(-1px);
}

.cnl-card-active {
  border-color: #0284c7;
  box-shadow: 0 0 0 2px rgba(2, 132, 199, 0.35);
  background-color: #f0f9ff;
}

.cnl-card-header-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.cnl-card-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: #0f172a;
  margin: 0;
}

.cnl-card-ein {
  font-family: ui-monospace, monospace;
  font-size: 0.8rem;
  color: #64748b;
  background-color: #f1f5f9;
  padding: 0.15rem 0.45rem;
  border-radius: 4px;
}

.cnl-card-category {
  font-size: 0.75rem;
  color: #0284c7;
  font-weight: 600;
}

.cnl-card-efficiency {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.85rem;
}

.cnl-card-desc {
  font-size: 0.825rem;
  color: #475569;
  line-height: 1.4;
  margin: 0;
}

/* Drawer Column */
.cnl-drawer-column {
  position: sticky;
  top: 1rem;
  align-self: start;
}

.cnl-detail-card {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.cnl-detail-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 0.5rem;
}

.cnl-detail-titles {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.cnl-status-pill {
  font-size: 0.7rem;
  font-weight: 700;
  padding: 0.2rem 0.55rem;
  border-radius: 4px;
  width: fit-content;
  text-transform: uppercase;
}

.cnl-status-active {
  background-color: #dcfce7;
  color: #15803d;
}

.cnl-detail-h2 {
  font-size: 1.25rem;
  font-weight: 800;
  color: #0f172a;
  margin: 0;
  line-height: 1.3;
}

.cnl-detail-loc {
  font-size: 0.8rem;
  color: #64748b;
}

.cnl-star-badge {
  color: #f59e0b;
  font-size: 1.15rem;
  letter-spacing: 2px;
}

/* EIN Box */
.cnl-ein-box {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background-color: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 6px;
  padding: 0.6rem 0.75rem;
}

.cnl-ein-info {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.85rem;
}

.cnl-ein-label {
  color: #64748b;
}

.cnl-ein-code {
  font-family: ui-monospace, monospace;
  font-weight: 700;
  color: #0f172a;
}

.cnl-btn-copy {
  background-color: #ffffff;
  border: 1px solid #cbd5e1;
  color: #334155;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.25rem 0.5rem;
  border-radius: 4px;
  cursor: pointer;
}

.cnl-btn-copy:hover {
  background-color: #f1f5f9;
}

/* Efficiency Card */
.cnl-efficiency-card {
  background-color: #f0fdf4;
  border: 1px solid #bbf7d0;
  border-radius: 6px;
  padding: 0.85rem;
}

.cnl-gauge-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.4rem;
}

.cnl-gauge-title {
  font-size: 0.85rem;
  font-weight: 700;
  color: #166534;
}

.cnl-gauge-score {
  font-size: 1.25rem;
  font-weight: 800;
  color: #15803d;
}

.cnl-bar-track {
  height: 8px;
  background-color: #dcfce7;
  border-radius: 9999px;
  overflow: hidden;
  margin-bottom: 0.4rem;
}

.cnl-bar-fill {
  height: 100%;
  background-color: #16a34a;
  border-radius: 9999px;
}

.cnl-gauge-sub {
  display: flex;
  justify-content: space-between;
  font-size: 0.75rem;
  color: #166534;
}

/* Meta Table */
.cnl-meta-table {
  background-color: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 6px;
  padding: 0.75rem;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  font-size: 0.825rem;
}

.cnl-meta-row {
  display: flex;
  justify-content: space-between;
  border-bottom: 1px solid #f1f5f9;
  padding-bottom: 0.25rem;
}

.cnl-meta-row:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.cnl-meta-key {
  color: #64748b;
}

.cnl-meta-val {
  font-weight: 600;
  color: #0f172a;
}

.cnl-text-green {
  color: #16a34a;
}

/* Mission Box */
.cnl-mission-box {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}

.cnl-box-heading {
  font-size: 0.9rem;
  font-weight: 700;
  color: #0f172a;
  margin: 0;
}

.cnl-mission-text {
  font-size: 0.825rem;
  color: #475569;
  line-height: 1.5;
  margin: 0;
}

/* Tax Box */
.cnl-tax-box {
  background-color: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 6px;
  padding: 0.85rem;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.cnl-tax-inputs {
  display: flex;
  gap: 0.5rem;
}

.cnl-tax-group {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.cnl-tax-label {
  font-size: 0.75rem;
  font-weight: 600;
  color: #475569;
}

.cnl-input-sm, .cnl-select-sm {
  width: 100%;
  padding: 0.45rem 0.55rem;
  border: 1px solid #cbd5e1;
  border-radius: 4px;
  font-size: 0.85rem;
  box-sizing: border-box;
}

.cnl-tax-result {
  background-color: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 4px;
  padding: 0.5rem 0.65rem;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  font-size: 0.8rem;
}

.cnl-result-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.cnl-detail-actions {
  display: flex;
  margin-top: 0.25rem;
}

.cnl-btn-secondary {
  width: 100%;
  background-color: #0f172a;
  color: #ffffff;
  border: none;
  font-size: 0.85rem;
  font-weight: 600;
  padding: 0.6rem;
  border-radius: 6px;
  cursor: pointer;
  text-align: center;
}

.cnl-btn-secondary:hover {
  background-color: #1e293b;
}

/* Table */
.cnl-table-wrap {
  overflow-x: auto;
  margin: 1rem 0;
}

.cnl-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.875rem;
}

.cnl-table th, .cnl-table td {
  padding: 0.65rem 0.75rem;
  border: 1px solid #e2e8f0;
  text-align: left;
}

.cnl-table th {
  background-color: #f1f5f9;
  font-weight: 600;
  color: #1e293b;
}

/* Ads */
.cnl-ad-wrapper {
  margin: 2rem 0;
  min-height: 280px;
  background-color: #f8fafc;
  border: 1px dashed #cbd5e1;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Guide Section */
.cnl-guide-section {
  background-color: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 2rem;
  margin-bottom: 2rem;
}

.cnl-guide-article {
  margin-bottom: 2rem;
}

.cnl-guide-article:last-child {
  margin-bottom: 0;
}

.cnl-guide-article h2 {
  font-size: 1.35rem;
  font-weight: 700;
  color: #0f172a;
  margin: 0 0 0.75rem 0;
}

.cnl-guide-article p {
  color: #334155;
  margin: 0 0 1rem 0;
  line-height: 1.6;
}

.cnl-guide-list {
  padding-left: 1.25rem;
  color: #334155;
  line-height: 1.7;
}

.cnl-faq-list {
  margin: 0;
}

.cnl-faq-q {
  font-weight: 700;
  color: #0f172a;
  margin-top: 1rem;
  font-size: 1rem;
}

.cnl-faq-a {
  margin: 0.35rem 0 0.75rem 0;
  color: #475569;
  line-height: 1.5;
}

/* Related Tools */
.cnl-related-tools {
  margin-bottom: 2rem;
}

.cnl-related-heading {
  font-size: 1.2rem;
  font-weight: 700;
  color: #0f172a;
  margin-bottom: 1rem;
}

.cnl-related-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1rem;
}

.cnl-related-card {
  display: block;
  background-color: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 1.25rem;
  text-decoration: none;
  transition: all 0.15s ease;
}

.cnl-related-card:hover {
  border-color: #0284c7;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
}

.cnl-related-title {
  display: block;
  font-weight: 700;
  color: #0284c7;
  margin-bottom: 0.35rem;
}

.cnl-related-desc {
  font-size: 0.85rem;
  color: #64748b;
  line-height: 1.4;
}

.cnl-footer {
  background-color: #0f172a;
  color: #94a3b8;
  padding: 2rem 1.5rem;
  font-size: 0.875rem;
  text-align: center;
}

.cnl-footer-inner {
  max-width: 1200px;
  margin: 0 auto;
}

.cnl-toast {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  background-color: #0f172a;
  color: #fff;
  padding: 0.6rem 1rem;
  border-radius: 6px;
  font-size: 0.85rem;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
  z-index: 1000;
}
