/* Garden tools. Scoped under .gd for the same reason the ported calculators are scoped
   under .tx-- : nothing here may reach the rest of the site. All colours come from the
   site's own tokens; this file defines no palette and no theme. */
.gd-grid { display: grid; gap: var(--space-6); }
@media (min-width: 860px) { .gd-grid { grid-template-columns: 1fr 1fr; align-items: start; } }

.gd-card {
  background: var(--color-surface); border: 1px solid var(--color-border);
  border-radius: var(--radius-lg); padding: var(--space-6);
}
.gd-card--out { background: var(--color-surface-offset); }
.gd-card h2 { font-size: var(--text-lg); margin: 0 0 var(--space-4); }
.gd-sub { font-size: var(--text-base); margin: var(--space-5) 0 var(--space-2); }

.gd-card label {
  display: block; font-family: var(--font-mono); font-size: var(--text-xs);
  letter-spacing: 0.02em; color: var(--color-text-muted);
  margin: var(--space-4) 0 var(--space-1);
}
.gd-card input, .gd-card select {
  width: 100%; padding: 0.55rem 0.7rem; font: inherit; color: var(--color-text);
  background: var(--color-bg); border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
}
.gd-card input:focus-visible, .gd-card select:focus-visible {
  outline: 2px solid var(--color-accent); outline-offset: 1px;
}
.gd-two { display: grid; gap: var(--space-3); }
@media (min-width: 480px) { .gd-two { grid-template-columns: 1fr 1fr; } }
.gd-two label { margin-top: 0; }

.gd-results { display: grid; grid-template-columns: auto 1fr; gap: var(--space-2) var(--space-4); margin: 0; }
.gd-results dt { font-family: var(--font-mono); font-size: var(--text-xs); color: var(--color-text-muted); align-self: baseline; }
.gd-results dd { margin: 0; font-weight: 600; }
.gd-dim { color: var(--color-text-faint); font-weight: 400; font-size: var(--text-xs); }

.gd-note { font-size: var(--text-xs); color: var(--color-text-faint); margin-top: var(--space-4); }

.gd-tablewrap { overflow-x: auto; }
.gd-table { width: 100%; border-collapse: collapse; font-size: var(--text-sm); }
.gd-table th, .gd-table td { text-align: left; padding: 0.35rem 0.6rem 0.35rem 0; border-bottom: 1px solid var(--color-divider); }
.gd-table th { font-family: var(--font-mono); font-size: var(--text-xs); color: var(--color-text-muted); font-weight: 500; }

/* Compost material list */
.gd-btn {
  width: 100%; padding: 0.55rem 0.7rem; font: inherit; cursor: pointer;
  color: var(--color-text-inverse); background: var(--color-accent);
  border: 1px solid var(--color-accent); border-radius: var(--radius-sm);
}
.gd-btn:hover { background: var(--color-accent-hover); border-color: var(--color-accent-hover); }
.gd-list { list-style: none; margin: var(--space-4) 0 0; padding: 0; }
.gd-list li {
  display: flex; align-items: center; gap: var(--space-2);
  padding: 0.35rem 0; border-bottom: 1px solid var(--color-divider); font-size: var(--text-sm);
}
.gd-x {
  margin-left: auto; border: 0; background: none; cursor: pointer; font-size: 1.1rem;
  line-height: 1; color: var(--color-text-faint); padding: 0 0.25rem;
}
.gd-x:hover { color: var(--color-accent); }
