:root {
  --verde: #2e7d32;
  --verde-claro: #e8f5e9;
  --texto: #212121;
  --texto-suave: #5f6368;
  --borda: #dcdcdc;
}

* { box-sizing: border-box; }

body {
  font-family: -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  margin: 0;
  color: var(--texto);
  background: #fafafa;
}

header.topo {
  background: var(--verde);
  color: white;
  padding: 1rem 1.5rem;
}

header.topo {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

header.topo a {
  color: white;
  text-decoration: none;
  font-size: 1.3rem;
  font-weight: 600;
}

header.topo a.link-glossario {
  font-size: 0.9rem;
  font-weight: 400;
  opacity: 0.9;
}

main {
  max-width: 760px;
  margin: 0 auto;
  padding: 1.5rem;
}

.busca-form {
  display: flex;
  gap: 0.5rem;
  margin: 1rem 0;
}

.busca-form input {
  flex: 1;
  padding: 0.6rem;
  border: 1px solid var(--borda);
  border-radius: 6px;
  font-size: 1rem;
}

.busca-form button, .botao-audio {
  padding: 0.6rem 1rem;
  background: var(--verde);
  color: white;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  font-size: 1rem;
}

.card-planta {
  display: flex;
  gap: 1rem;
  padding: 1rem;
  border: 1px solid var(--borda);
  border-radius: 8px;
  margin-bottom: 0.75rem;
  text-decoration: none;
  color: var(--texto);
  background: white;
}

.card-planta:hover { border-color: var(--verde); }

.card-planta-img {
  width: 84px;
  height: 84px;
  flex-shrink: 0;
  border-radius: 8px;
  object-fit: cover;
  background: var(--verde-claro);
}

.card-planta-img-vazia {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
}

.card-planta-texto { min-width: 0; }

.imagem-destaque {
  width: 100%;
  max-height: 320px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 0.25rem;
}

.imagem-credito {
  font-size: 0.75rem;
  color: var(--texto-suave);
  margin: 0 0 1rem;
}

.termo-glossario {
  color: inherit;
  text-decoration: underline dotted;
  text-underline-offset: 2px;
}

.termo-glossario:hover { color: var(--verde); }

.item-glossario {
  padding: 0.75rem 0;
  border-bottom: 1px solid #eee;
}

.item-glossario h3 {
  margin: 0 0 0.25rem;
  text-transform: capitalize;
}

.card-planta .nome-cientifico {
  font-style: italic;
  color: var(--texto-suave);
  font-size: 0.9rem;
}

.tag-categoria {
  display: inline-block;
  font-size: 0.75rem;
  background: var(--verde-claro);
  color: var(--verde);
  padding: 0.1rem 0.5rem;
  border-radius: 999px;
  margin-bottom: 0.3rem;
}

.resumo {
  font-size: 1.05rem;
  line-height: 1.5;
  background: var(--verde-claro);
  padding: 1rem;
  border-radius: 8px;
}

.aviso-geral {
  font-size: 0.85rem;
  color: var(--texto-suave);
  border-left: 3px solid #c62828;
  padding-left: 0.75rem;
  margin: 1rem 0;
}

details.secao {
  border: 1px solid var(--borda);
  border-radius: 8px;
  margin-top: 0.75rem;
  padding: 0.5rem 1rem;
  background: white;
}

details.secao summary {
  cursor: pointer;
  font-weight: 600;
  padding: 0.5rem 0;
}

.selo {
  display: inline-block;
  font-size: 0.8rem;
  margin-right: 0.3rem;
}

.item-beneficio, .item-fonte {
  padding: 0.6rem 0;
  border-bottom: 1px solid #eee;
}

.item-beneficio:last-child, .item-fonte:last-child { border-bottom: none; }

.rotulo-evidencia {
  font-size: 0.8rem;
  color: var(--texto-suave);
}

footer {
  text-align: center;
  color: var(--texto-suave);
  font-size: 0.8rem;
  padding: 2rem 1rem;
}
