/* === Palmetum Monograph Finder === */

.palmetum-finder h2 {
  margin-bottom: 0.5rem;
  color: #1b4c2f;
}

.palmetum-finder .finder-intro {
  font-size: 0.95rem;
  color: #444;
  margin-bottom: 1.5rem;
}

/* Filters layout */

.palm-filters {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
  padding: 0.75rem 1rem;
  border: 1px solid #d8cbb3;
  border-radius: 4px;
  background: #fbf8f3;
}

.palm-filters .pf-row {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.palm-filters .pf-row-wide {
  flex-wrap: wrap;
}

.palm-filters label {
  display: flex;
  flex-direction: column;
  font-size: 0.82rem;
  color: #35513a;
  min-width: 180px;
  flex: 1 1 0;
}

.palm-filters select,
.palm-filters input[type="text"] {
  margin-top: 0.2rem;
  padding: 0.35rem 0.5rem;
  border-radius: 3px;
  border: 1px solid #c9bda5;
  font-size: 0.9rem;
  background: #fdfaf5;
}

.pf-actions {
  display: flex;
  justify-content: flex-end;
  margin-top: 0.3rem;
}

.pf-btn {
  padding: 0.35rem 0.9rem;
  border: 1px solid #3b6b3b;
  background: #f3f0e6;
  color: #23452c;
  border-radius: 3px;
  font-size: 0.9rem;
  cursor: pointer;
}

.pf-btn:hover {
  background: #e6decc;
}

/* Alerts */

.palm-alerts {
  font-size: 0.85rem;
  color: #555;
  margin-bottom: 0.8rem;
}

/* Results table */

.palm-results {
  overflow-x: auto;
}

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

.palm-results thead th {
  text-align: left;
  padding: 0.5rem 0.6rem;
  border-bottom: 2px solid #c0b49a;
  background: #f1ebdd;
  color: #284533;
  font-weight: 600;
  white-space: nowrap;
}

/* Alternating “cream / bone” rows */
.palm-results tbody tr:nth-child(odd) {
  background: #fbf8f3;
}

.palm-results tbody tr:nth-child(even) {
  background: #f4efe4;
}

.palm-results tbody tr:hover {
  background: #e9e1d0;
}

.palm-results td {
  padding: 0.4rem 0.6rem;
  border-bottom: 1px solid #e0d5c2;
  vertical-align: top;
}

/* Link-style rows */

.palm-results tr {
  cursor: pointer;
}

.palm-results tr td:first-child {
  font-weight: 600;
  color: #20482e;
}

.palm-results tr td:first-child a {
  color: inherit;
  text-decoration: none;
  border-bottom: 1px dotted rgba(32, 72, 46, 0.4);
}

.palm-results tr td:first-child a:hover {
  border-bottom-style: solid;
}

/* Small screens */

@media (max-width: 768px) {
  .palm-filters .pf-row {
    flex-direction: column;
  }

  .palm-results thead {
    font-size: 0.85rem;
  }

  .palm-results td {
    font-size: 0.86rem;
  }
}
/* === Scrollable Results Pane ============================ */

.palm-results {
    max-height: 500px;       /* adjust as needed */
    overflow-y: auto;
    overflow-x: hidden;
    margin-top: 1.5rem;
    border: 1px solid #d8ccb3;
    border-radius: 6px;
    background: #fbf8f3;
    padding: 0;
}

/* Optional: sticky header for the table inside results */
.palm-results table thead th {
    position: sticky;
    top: 0;
    background: #e9e2d4;
    z-index: 2;
}

/* Keep table clean */
.palm-results table {
    width: 100%;
    border-collapse: collapse;
}

.palm-results td,
.palm-results th {
    padding: 0.55rem 0.75rem;
    border-bottom: 1px solid #e5d9c4;
    font-size: 0.95rem;
}

.palm-results tr:hover {
    background: #f5efe5;
}
