/* Public breed catalog — warm Dogopedia look */
.public-breeds .public-main {
  padding: 1.5rem 0 3rem;
}

.pb-hero {
  margin-bottom: 1.5rem;
}

.pb-hero h1 {
  margin: 0.25rem 0 0.5rem;
  font-size: clamp(1.75rem, 4vw, 2.35rem);
  letter-spacing: -0.02em;
}

.pb-hero .lead,
.pb-detail-head .lead {
  color: var(--muted, #57534e);
  max-width: 42rem;
  margin: 0;
}

.pb-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1rem;
  align-items: flex-end;
  margin-bottom: 1.75rem;
  padding: 1rem 1.15rem;
  background: var(--surface, #fff);
  border: 1px solid var(--line, #e7e5e4);
  border-radius: var(--radius, 16px);
  box-shadow: var(--shadow, 0 10px 30px rgba(28, 25, 23, 0.06));
}

.pb-field {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  font-size: 0.85rem;
  color: var(--muted, #57534e);
}

.pb-field input,
.pb-field select {
  min-width: 12rem;
  padding: 0.55rem 0.75rem;
  border: 1px solid var(--line, #e7e5e4);
  border-radius: 10px;
  font: inherit;
  color: var(--ink, #1c1917);
  background: #fff;
}

.pb-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.6rem 1.1rem;
  border: none;
  border-radius: 999px;
  background: var(--accent, #c2410c);
  color: #fff;
  font: inherit;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
}

.pb-btn:hover { filter: brightness(1.05); }

.pb-link {
  color: var(--accent, #c2410c);
  font-weight: 600;
  text-decoration: none;
  padding-bottom: 0.55rem;
}

.pb-grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1.15rem;
}

.pb-card {
  background: var(--surface, #fff);
  border: 1px solid var(--line, #e7e5e4);
  border-radius: var(--radius, 16px);
  overflow: hidden;
  box-shadow: var(--shadow, 0 10px 30px rgba(28, 25, 23, 0.06));
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.pb-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 36px rgba(28, 25, 23, 0.1);
}

.pb-card a {
  color: inherit;
  text-decoration: none;
  display: block;
  height: 100%;
}

.pb-card-media {
  aspect-ratio: 4 / 3;
  background: var(--accent-soft, #ffedd5);
  overflow: hidden;
}

.pb-card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.pb-card-placeholder {
  height: 100%;
  display: grid;
  place-items: center;
  font-size: 2.5rem;
}

.pb-card-body {
  padding: 1rem 1.1rem 1.2rem;
}

.pb-card-body h2 {
  margin: 0 0 0.4rem;
  font-size: 1.15rem;
}

.pb-card-body p {
  margin: 0;
  color: var(--muted, #57534e);
  font-size: 0.92rem;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.pb-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-top: 0.75rem;
}

.pb-meta span,
.pb-tags li {
  display: inline-block;
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
  background: var(--accent-soft, #ffedd5);
  color: #9a3412;
  font-size: 0.78rem;
  font-weight: 600;
}

.pb-tags {
  list-style: none;
  margin: 0.9rem 0 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.pb-empty {
  color: var(--muted, #57534e);
  padding: 1.5rem;
  background: var(--surface, #fff);
  border-radius: var(--radius, 16px);
  border: 1px dashed var(--line, #e7e5e4);
}

.pb-compare-cta {
  margin-top: 1.75rem;
}

.pb-compare-cta a:not(.pb-btn) {
  color: var(--accent, #c2410c);
  font-weight: 600;
  text-decoration: none;
}

.pb-crumbs {
  display: flex;
  gap: 0.45rem;
  align-items: center;
  font-size: 0.9rem;
  color: var(--muted, #57534e);
  margin-bottom: 1rem;
}

.pb-crumbs a {
  color: var(--accent, #c2410c);
  text-decoration: none;
}

.pb-detail-head {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 1.5rem;
  align-items: start;
  margin-bottom: 1.5rem;
}

.pb-detail-head h1 {
  margin: 0.2rem 0 0.55rem;
  font-size: clamp(1.7rem, 3.5vw, 2.2rem);
}

.pb-detail-media {
  border-radius: var(--radius, 16px);
  overflow: hidden;
  border: 1px solid var(--line, #e7e5e4);
  box-shadow: var(--shadow, 0 10px 30px rgba(28, 25, 23, 0.06));
  background: var(--accent-soft, #ffedd5);
}

.pb-detail-media img {
  width: 100%;
  display: block;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.pb-stats {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}

.pb-stats > div {
  background: var(--surface, #fff);
  border: 1px solid var(--line, #e7e5e4);
  border-radius: 12px;
  padding: 0.75rem 0.85rem;
}

.pb-stats span {
  display: block;
  font-size: 0.75rem;
  color: var(--muted, #57534e);
  margin-bottom: 0.2rem;
}

.pb-stats strong {
  font-size: 0.95rem;
}

.pb-section {
  background: var(--surface, #fff);
  border: 1px solid var(--line, #e7e5e4);
  border-radius: var(--radius, 16px);
  padding: 1.1rem 1.2rem;
  margin-bottom: 1rem;
  box-shadow: var(--shadow, 0 10px 30px rgba(28, 25, 23, 0.04));
}

.pb-section h2 {
  margin: 0 0 0.55rem;
  font-size: 1.15rem;
}

.pb-section p {
  margin: 0;
  color: var(--ink, #1c1917);
}

.pb-two {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.pb-pros { border-color: #bbf7d0; background: #f0fdf4; }
.pb-cons { border-color: #fecaca; background: #fef2f2; }

.pb-sources {
  margin: 0;
  padding-left: 1.1rem;
  word-break: break-all;
}

.pb-sources a {
  color: var(--accent, #c2410c);
}

.pb-mini-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1rem;
}

.pb-mini-list a {
  color: var(--accent, #c2410c);
  font-weight: 600;
  text-decoration: none;
}

.pb-compare-form {
  background: var(--surface, #fff);
  border: 1px solid var(--line, #e7e5e4);
  border-radius: var(--radius, 16px);
  padding: 1.15rem;
  margin-bottom: 1.5rem;
  box-shadow: var(--shadow, 0 10px 30px rgba(28, 25, 23, 0.06));
}

.pb-check-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 0.55rem;
  margin: 0.75rem 0 1rem;
}

.pb-check {
  display: flex;
  gap: 0.5rem;
  align-items: center;
  padding: 0.55rem 0.7rem;
  border: 1px solid var(--line, #e7e5e4);
  border-radius: 10px;
  cursor: pointer;
  background: #fffaf5;
}

.pb-check input { accent-color: var(--accent, #c2410c); }

.pb-compare-table-wrap {
  overflow-x: auto;
  border-radius: var(--radius, 16px);
  border: 1px solid var(--line, #e7e5e4);
  background: var(--surface, #fff);
  box-shadow: var(--shadow, 0 10px 30px rgba(28, 25, 23, 0.06));
}

.pb-compare-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 560px;
}

.pb-compare-table th,
.pb-compare-table td {
  padding: 0.75rem 0.9rem;
  border-bottom: 1px solid var(--line, #e7e5e4);
  text-align: left;
  vertical-align: top;
  font-size: 0.92rem;
}

.pb-compare-table thead th {
  background: var(--accent-soft, #ffedd5);
}

.pb-compare-table tbody th {
  width: 8.5rem;
  color: var(--muted, #57534e);
  font-weight: 600;
  background: #fafaf9;
}

.pb-compare-table a {
  color: var(--accent, #c2410c);
  font-weight: 700;
  text-decoration: none;
}

.pb-thumb {
  display: block;
  width: 72px;
  height: 54px;
  object-fit: cover;
  border-radius: 8px;
  margin-top: 0.45rem;
}

.muted.tiny { font-size: 0.85rem; color: var(--muted, #57534e); }

@media (max-width: 800px) {
  .pb-detail-head,
  .pb-two {
    grid-template-columns: 1fr;
  }
  .pb-field input,
  .pb-field select {
    min-width: 0;
    width: 100%;
  }
  .pb-filters { flex-direction: column; align-items: stretch; }
}
