/* ================================================
   HOT & CRUSTY — Cottage Food Laws Page Styles
================================================ */

.cfl-intro {
  max-width: 820px;
  margin-bottom: 2.5rem;
}
.cfl-intro p {
  font-size: 1.05rem;
  line-height: 1.8;
  color: var(--text);
  margin-bottom: 1.25rem;
}

/* Controls */
.cfl-controls {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 1.25rem 1.5rem;
  margin-bottom: 1.5rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem;
}

.cfl-search-wrap {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--cream);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 0.5rem 0.875rem;
  flex: 1;
  min-width: 200px;
}
.cfl-search-wrap .search-icon { font-size: 0.9rem; color: var(--text-muted); }
.cfl-search-wrap input {
  border: none;
  background: transparent;
  font-size: 0.9rem;
  font-family: var(--font-body);
  color: var(--dark);
  width: 100%;
}
.cfl-search-wrap input:focus { outline: none; }
.cfl-search-wrap input::placeholder { color: var(--text-muted); }

.cfl-filters {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}
.cfl-filters select {
  padding: 0.5rem 0.875rem;
  border: 1px solid var(--border);
  border-radius: 6px;
  font-size: 0.85rem;
  font-family: var(--font-body);
  color: var(--dark);
  background: var(--cream);
  cursor: pointer;
}
.cfl-filters select:focus { outline: none; border-color: var(--gold); }

.cfl-count {
  font-size: 0.78rem;
  color: var(--text-muted);
  margin: 0;
  width: 100%;
}

/* Table */
.cfl-table-wrap {
  overflow-x: auto;
  border-radius: 10px;
  border: 1px solid var(--border);
  margin-bottom: 2.5rem;
}

.cfl-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
}

.cfl-table thead {
  background: var(--dark);
  color: var(--white);
}
.cfl-table thead th {
  padding: 0.875rem 1.25rem;
  text-align: left;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  white-space: nowrap;
}

.cfl-table tbody tr {
  border-bottom: 1px solid var(--cream-mid);
  transition: background var(--transition);
}
.cfl-table tbody tr:last-child { border-bottom: none; }
.cfl-table tbody tr:nth-child(even) { background: var(--cream); }
.cfl-table tbody tr:hover { background: rgba(196,135,58,0.06); }

.cfl-table td {
  padding: 0.875rem 1.25rem;
  vertical-align: middle;
  color: var(--text);
  line-height: 1.5;
}

.cfl-state {
  font-weight: 700;
  color: var(--dark) !important;
  white-space: nowrap;
  font-size: 0.925rem !important;
}

/* Cap badges */
.cap-badge {
  display: inline-block;
  padding: 0.25rem 0.65rem;
  border-radius: 2rem;
  font-size: 0.78rem;
  font-weight: 700;
  white-space: nowrap;
}
.cap-none {
  background: rgba(61,107,94,0.12);
  color: var(--forest-dark);
}
.cap-has {
  background: rgba(196,135,58,0.12);
  color: var(--gold-dark);
}

/* Channel tags */
.cfl-tag {
  display: inline-block;
  background: var(--cream-mid);
  color: var(--text-muted);
  font-size: 0.72rem;
  font-weight: 600;
  padding: 0.2rem 0.55rem;
  border-radius: 2rem;
  margin: 0.15rem 0.15rem 0.15rem 0;
  white-space: nowrap;
}

/* Official link */
.cfl-link a {
  color: var(--gold);
  font-weight: 600;
  font-size: 0.85rem;
  text-decoration: none;
  white-space: nowrap;
}
.cfl-link a:hover { color: var(--gold-dark); text-decoration: underline; }

/* No results */
.cfl-no-results {
  text-align: center;
  padding: 3rem;
  color: var(--text-muted);
  font-size: 0.95rem;
}

/* Footer note */
.cfl-footer-note {
  background: var(--cream-mid);
  border-radius: 8px;
  padding: 1.25rem 1.5rem;
  margin-bottom: 2rem;
}
.cfl-footer-note p {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.65;
  margin-bottom: 0.5rem;
}
.cfl-footer-note p:last-child { margin-bottom: 0; }

/* Responsive */
@media (max-width: 768px) {
  .cfl-controls { flex-direction: column; align-items: stretch; }
  .cfl-search-wrap { min-width: unset; }
  .cfl-filters { flex-direction: column; }
  .cfl-table thead th:nth-child(3) { display: none; }
  .cfl-table td:nth-child(3) { display: none; }
}
@media (max-width: 480px) {
  .cfl-table td, .cfl-table th { padding: 0.65rem 0.75rem; }
}
