* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  line-height: 1.5;
  color: #1f2933;
  background: #f5f7fa;
}

a { color: #0b6e4f; }

.container { max-width: 960px; margin: 0 auto; padding: 0 1rem; }

.site-header { background: #0b6e4f; }
.site-header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: .8rem;
  padding-bottom: .8rem;
  flex-wrap: wrap;
  gap: .5rem;
}
.site-header a { color: #fff; text-decoration: none; }
.brand { font-weight: 700; font-size: 1.2rem; }
.site-header nav a { margin-left: 1rem; }

.site-footer { margin-top: 3rem; padding: 1rem 0; color: #6b7280; font-size: .9rem; }

.filters { display: flex; gap: .5rem; flex-wrap: wrap; margin-bottom: 1.5rem; }
.filters input, .filters select { flex: 1 1 160px; }

input, select, textarea, button {
  font: inherit;
  padding: .5rem .7rem;
  border: 1px solid #cbd2d9;
  border-radius: 6px;
  background: #fff;
}

button, .button {
  background: #0b6e4f;
  color: #fff;
  border-color: #0b6e4f;
  cursor: pointer;
  text-decoration: none;
  display: inline-block;
  padding: .5rem 1rem;
  border-radius: 6px;
}
.button.secondary { background: #25d366; border-color: #25d366; }

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 1rem;
}

.card {
  background: #fff;
  border-radius: 8px;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  box-shadow: 0 1px 3px rgba(0, 0, 0, .1);
}
.card img, .card .placeholder { width: 100%; height: 140px; object-fit: cover; display: block; }
.card .placeholder { background: #e4e7eb; }
.card-body { padding: .8rem; }
.card h2 { margin: 0 0 .2rem; font-size: 1.05rem; }

.meta { color: #6b7280; margin: 0; }

.pagination { display: flex; gap: 1rem; justify-content: center; margin-top: 2rem; }

.detail img { max-width: 100%; max-height: 320px; border-radius: 8px; }
.actions { display: flex; gap: .5rem; flex-wrap: wrap; }

.stacked { max-width: 520px; }
.field { margin-bottom: 1rem; }
.field label { display: block; font-weight: 600; margin-bottom: .2rem; }
.field input[type="text"], .field select, .field textarea { width: 100%; }
.field small { display: block; color: #6b7280; }
.errorlist { color: #b42318; list-style: none; padding: 0; margin: .2rem 0 0; }

.hp { position: absolute; left: -9999px; }

.empty { color: #6b7280; }
