* { box-sizing: border-box; }
body.public-body {
  margin: 0;
  font-family: Arial, sans-serif;
  background: linear-gradient(180deg, #f3f8f3 0%, #ffffff 100%);
  color: #1c1c1c;
}

.site-topbar {
  width: min(1120px, 94%);
  margin: 22px auto 0;
  background: linear-gradient(135deg, #012a00 0%, #024d00 40%, #039c00 100%);
  color: #fff;
  border-radius: 18px;
  box-shadow: 0 8px 30px rgba(2, 77, 0, 0.25);
  position: relative;
  overflow: hidden;
}

.site-topbar::before {
  content: "";
  position: absolute;
  top: -40px;
  right: -40px;
  width: 180px;
  height: 180px;
  background: rgba(255, 255, 255, 0.04);
  border-radius: 50%;
}

.site-topbar-inner {
  padding: 26px 28px;
  display: flex;
  align-items: center;
  gap: 20px;
  position: relative;
  z-index: 1;
}

.site-topbar-map {
  width: 116px;
  height: auto;
  flex-shrink: 0;
  filter: drop-shadow(0 6px 14px rgba(0, 0, 0, 0.45));
  transition: transform 0.25s ease;
}
.site-topbar-map:hover { transform: scale(1.04); }
@media (max-width: 900px) {
  .site-topbar-map { width: 72px; }
}

.site-topbar-text {
  min-width: 0;
}

.site-topbar-title {
  margin: 0;
  font-size: 22px;
  font-weight: 800;
}

.site-topbar-subtitle {
  margin: 6px 0 0;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.72);
}

.site-topbar-badge {
  margin-left: auto;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 10px;
  padding: 12px 18px;
  text-align: center;
}

.site-topbar-badge span {
  display: block;
  color: #fff;
  font-size: 28px;
  font-weight: 800;
  line-height: 1;
}

.site-topbar-badge small {
  color: rgba(255, 255, 255, 0.68);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.7px;
}

.public-wrap {
  width: min(1120px, 94%);
  margin: 18px auto 36px;
}

.site-mini-nav {
  width: min(1120px, 94%);
  margin: 8px auto 0;
}

.site-mini-nav-inner {
  display: flex;
  align-items: center;
  gap: 8px;
  background: #eef5ee;
  border: 1px solid #d9e8d9;
  border-radius: 8px;
  padding: 6px 10px;
}

.site-mini-nav-link {
  display: inline-block;
  text-decoration: none;
  color: #024d00;
  font-size: 12px;
  font-weight: 700;
  padding: 4px 8px;
  border-radius: 6px;
}

.site-mini-nav-link:hover {
  background: #dff0df;
}

.public-card {
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
  border: 1px solid #e8efe8;
  padding: 24px;
}

.public-card.not-found {
  text-align: center;
  padding: 42px 20px;
}

.public-header .tag {
  display: inline-block;
  margin: 0;
  padding: 6px 10px;
  background: #e8f8e8;
  color: #024d00;
  border: 1px solid #bfe6bf;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
}

.public-header h1 {
  margin: 12px 0 4px;
  color: #024d00;
  font-size: 34px;
}

.public-header .sub {
  margin: 0;
  color: #5d6e5d;
}

.public-grid {
  margin-top: 20px;
  display: grid;
  grid-template-columns: 360px 1fr;
  gap: 22px;
}

.main-photo {
  width: 100%;
  border-radius: 12px;
  border: 1px solid #dce8dc;
  object-fit: cover;
  max-height: 560px;
}

.info-list {
  margin: 0 0 18px;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 8px;
}

.info-list li {
  border: 1px solid #edf2ed;
  background: #fbfdfb;
  border-radius: 10px;
  padding: 9px 13px;
  font-size: 15px;
  line-height: 1.45;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.info-list li strong {
  font-size: 10.5px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  color: #6a896a;
}

.circ-title {
  display: flex;
  align-items: center;
  gap: 9px;
  margin: 20px 0 11px;
  font-weight: 800;
  color: #024d00;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  padding-bottom: 9px;
  border-bottom: 2px solid #e6f0e6;
}

.circ-text {
  margin: 0;
  padding: 13px 15px;
  border-radius: 10px;
  background: #f9fbf9;
  border: 1px solid #edf2ed;
  line-height: 1.6;
  font-size: 14.5px;
  color: #3a473a;
}

/* Características físicas em chips */
.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 8px;
}
.chip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: #f1f7f1;
  border: 1px solid #d8e8d8;
  border-radius: 999px;
  padding: 7px 14px;
  font-size: 13.5px;
  color: #2c402c;
}
.chip b {
  color: #024d00;
  font-weight: 700;
}

/* Selo de situação sobre a foto */
.photo-col { position: relative; }
.photo-selo {
  position: absolute;
  top: 12px;
  left: 12px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 6px 13px;
  border-radius: 999px;
  font-size: 12.5px;
  font-weight: 800;
  color: #fff;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.3);
}

/* Destaque (data) abaixo da foto */
.photo-highlight {
  margin-top: 14px;
  background: #024d00;
  color: #fff;
  border-radius: 12px;
  padding: 13px 16px;
  text-align: center;
}
.photo-highlight small {
  display: block;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.7px;
  opacity: 0.85;
  margin-bottom: 4px;
}
.photo-highlight b { font-size: 19px; font-weight: 800; }

/* Mini-fatos (idade/sexo/raça) abaixo da foto */
.photo-mini {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-top: 10px;
}
.photo-mini div {
  background: #f6faf6;
  border: 1px solid #e3eee3;
  border-radius: 10px;
  padding: 9px 6px;
  text-align: center;
}
.photo-mini small {
  display: block;
  font-size: 9.5px;
  text-transform: uppercase;
  letter-spacing: 0.4px;
  color: #789078;
  font-weight: 700;
  margin-bottom: 3px;
}
.photo-mini span { font-size: 13px; font-weight: 700; color: #1c2b1c; }

/* Listas de informação em 2 colunas (nome ocupa a linha toda) */
.info-list.two-col { grid-template-columns: 1fr 1fr; }
.info-list.two-col li:first-child { grid-column: 1 / -1; }
@media (max-width: 600px) {
  .info-list.two-col { grid-template-columns: 1fr; }
}

.actions {
  margin-top: 16px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.btn {
  border: 0;
  border-radius: 10px;
  padding: 11px 14px;
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
}

.btn-primary {
  background: linear-gradient(135deg, #024d00 0%, #039c00 100%);
  color: #fff;
}

.btn-secondary {
  background: #f0f4f0;
  color: #244424;
  border: 1px solid #d8e5d8;
}

@media (max-width: 900px) {
  .site-topbar-inner {
    flex-wrap: wrap;
    padding: 18px;
  }
  .site-topbar-map {
    width: 64px;
  }
  .site-topbar-title {
    font-size: 18px;
  }
  .site-topbar-badge {
    margin-left: 0;
  }
  .public-grid {
    grid-template-columns: 1fr;
  }
  .main-photo {
    max-height: 480px;
  }
}
