/* Public catalog / articles — premium Dogopedia chrome */

.public-breeds .public-main {
  padding: 1.75rem 0 3.5rem;
}

.pb-hero {
  margin-bottom: 1.65rem;
  max-width: 42rem;
}

.pb-hero h1 {
  margin: 0.3rem 0 0.55rem;
  font-size: clamp(1.9rem, 4.5vw, 2.65rem);
  letter-spacing: -0.03em;
  line-height: 1.15;
  font-weight: 750;
}

.pb-hero .lead,
.pb-detail-head .lead {
  color: var(--muted, #6B635B);
  max-width: 40rem;
  margin: 0;
  font-size: 1.05rem;
}

.pb-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem 1rem;
  align-items: flex-end;
  margin-bottom: 1.85rem;
  padding: 1.1rem 1.2rem;
  background: var(--bg-elev, #FFFCF8);
  border: 1px solid var(--line, #E8E0D6);
  border-radius: var(--radius, 18px);
  box-shadow: var(--shadow, 0 8px 24px rgba(26, 21, 18, 0.06));
}

.pb-field {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  font-size: 0.82rem;
  color: var(--muted, #6B635B);
  font-weight: 550;
}

.pb-field input,
.pb-field select {
  min-width: 12rem;
  padding: 0.62rem 0.8rem;
  border: 1px solid var(--line, #E8E0D6);
  border-radius: 12px;
  font: inherit;
  color: var(--ink, #1A1512);
  background: #fff;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.pb-field input:focus,
.pb-field select:focus {
  outline: none;
  border-color: var(--accent, #B45309);
  box-shadow: 0 0 0 3px rgba(180, 83, 9, 0.15);
}

.pb-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.65rem 1.2rem;
  border: 1.5px solid var(--accent, #B45309);
  border-radius: 999px;
  background: var(--accent, #B45309);
  color: #fff;
  font: inherit;
  font-weight: 650;
  text-decoration: none;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(180, 83, 9, 0.2);
  transition: transform 0.15s ease, background 0.15s ease;
}

.pb-btn:hover {
  background: #9a4508;
  border-color: #9a4508;
  transform: translateY(-1px);
  color: #fff;
}

.pb-btn-ghost {
  background: transparent;
  color: var(--accent-2, #0F3D3E);
  border-color: var(--line, #E8E0D6);
  box-shadow: none;
}

.pb-btn-ghost:hover {
  border-color: var(--accent-2, #0F3D3E);
  background: var(--bg-elev, #FFFCF8);
  color: var(--accent-2, #0F3D3E);
}

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

.pb-link:hover { color: var(--accent, #B45309); }

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

.pb-card {
  background: var(--bg-elev, #FFFCF8);
  border: 1px solid var(--line, #E8E0D6);
  border-radius: var(--radius, 18px);
  overflow: hidden;
  box-shadow: var(--shadow, 0 8px 24px rgba(26, 21, 18, 0.06));
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.pb-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lift, 0 16px 40px rgba(26, 21, 18, 0.1));
}

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

.pb-card-media {
  position: relative;
  z-index: 1;
  isolation: isolate;
  aspect-ratio: 16 / 10;
  background: #F6F1EA;
  overflow: hidden;
}

/* image-only covers — no baked-in / pseudo text overlays */
.pb-card-media::before,
.pb-card-media::after,
.pb-article-cover::before,
.pb-article-cover::after {
  content: none !important;
  display: none !important;
}

.pb-card-media img {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  object-position: center;
  display: block;
  background: #F6F1EA;
  transition: transform 0.35s ease;
}

.pb-card:hover .pb-card-media img {
  transform: scale(1.03);
}

.pb-card-placeholder {
  height: 100%;
  display: grid;
  place-items: center;
  color: var(--accent, #B45309);
  opacity: 0.7;
}

.pb-card-placeholder::before {
  content: "";
  width: 2.25rem;
  height: 2.25rem;
  background: currentColor;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round'%3E%3Ccircle cx='11' cy='11' r='7'/%3E%3Cpath d='M20 20l-3-3'/%3E%3C/svg%3E") center / contain no-repeat;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round'%3E%3Ccircle cx='11' cy='11' r='7'/%3E%3Cpath d='M20 20l-3-3'/%3E%3C/svg%3E") center / contain no-repeat;
}

.pb-card-placeholder.ph-article::before {
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8'%3E%3Cpath d='M12 20h9'/%3E%3Cpath d='M16.5 3.5a2.1 2.1 0 0 1 3 3L7 19l-4 1 1-4Z'/%3E%3C/svg%3E");
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8'%3E%3Cpath d='M12 20h9'/%3E%3Cpath d='M16.5 3.5a2.1 2.1 0 0 1 3 3L7 19l-4 1 1-4Z'/%3E%3C/svg%3E");
}

.pb-card-placeholder.ph-food::before {
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8'%3E%3Cpath d='M3 12h18'/%3E%3Cpath d='M5 12a7 7 0 0 0 14 0'/%3E%3C/svg%3E");
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8'%3E%3Cpath d='M3 12h18'/%3E%3Cpath d='M5 12a7 7 0 0 0 14 0'/%3E%3C/svg%3E");
}

.pb-card-placeholder.ph-breed::before {
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='5' width='18' height='14' rx='2'/%3E%3Ccircle cx='9' cy='10' r='1.6'/%3E%3Cpath d='M21 16l-5-5-7 7'/%3E%3C/svg%3E");
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='5' width='18' height='14' rx='2'/%3E%3Ccircle cx='9' cy='10' r='1.6'/%3E%3Cpath d='M21 16l-5-5-7 7'/%3E%3C/svg%3E");
}

.pb-card-body {
  position: relative;
  z-index: 2;
  padding: 1.1rem 1.2rem 1.3rem;
  background: var(--bg-elev, #FFFCF8);
}

.pb-card-body h2 {
  position: relative;
  z-index: 2;
  margin: 0 0 0.4rem;
  font-size: 1.12rem;
  letter-spacing: -0.02em;
}

.pb-card-body p {
  margin: 0;
  color: var(--muted, #6B635B);
  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.4rem;
  margin-top: 0.8rem;
}

.pb-meta span,
.pb-tags li {
  display: inline-block;
  padding: 0.22rem 0.6rem;
  border-radius: 999px;
  background: var(--accent-soft, #F3E7D9);
  color: var(--accent, #B45309);
  font-size: 0.76rem;
  font-weight: 650;
}

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

.pb-empty {
  color: var(--muted, #6B635B);
  padding: 1.6rem;
  background: var(--bg-elev, #FFFCF8);
  border-radius: var(--radius, 18px);
  border: 1px dashed var(--line, #E8E0D6);
}

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

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

.pb-compare-cta a:not(.pb-btn):hover { color: var(--accent, #B45309); }

.pb-crumbs {
  display: flex;
  gap: 0.45rem;
  align-items: center;
  font-size: 0.88rem;
  color: var(--muted, #6B635B);
  margin-bottom: 1.1rem;
  flex-wrap: wrap;
}

.pb-crumbs a {
  color: var(--accent-2, #0F3D3E);
  text-decoration: none;
  font-weight: 550;
}

.pb-crumbs a:hover { color: var(--accent, #B45309); }

.pb-detail-head {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 1.75rem;
  align-items: start;
  margin-bottom: 1.65rem;
}

.pb-detail-head h1 {
  margin: 0.25rem 0 0.6rem;
  font-size: clamp(1.85rem, 4vw, 2.55rem);
  letter-spacing: -0.03em;
  line-height: 1.12;
  font-weight: 750;
}

/* ===== Breed gallery carousel (main + thumbs) ===== */
.pb-gallery {
  margin: 0;
  border-radius: var(--radius, 18px);
  overflow: hidden;
  border: 1px solid var(--line, #E8E0D6);
  box-shadow: var(--shadow, 0 8px 24px rgba(26, 21, 18, 0.06));
  background: var(--bg-elev, #FFFCF8);
}

.pb-gallery-main {
  position: relative;
  overflow: hidden;
  background: var(--accent-soft, #F3E7D9);
}

.pb-gallery-track {
  display: flex;
  transition: transform 0.35s ease;
  will-change: transform;
}

.pb-gallery-slide {
  flex: 0 0 100%;
  margin: 0;
  position: relative;
}

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

.pb-gallery-nav {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 0.65rem;
  pointer-events: none;
}

.pb-gallery-btn {
  pointer-events: auto;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 999px;
  border: 1px solid rgba(232, 224, 214, 0.95);
  background: rgba(255, 252, 248, 0.92);
  color: var(--ink, #1A1512);
  cursor: pointer;
  display: grid;
  place-items: center;
  font-size: 1.25rem;
  line-height: 1;
  box-shadow: 0 4px 14px rgba(26, 21, 18, 0.12);
  backdrop-filter: blur(6px);
  transition: background 0.15s ease, border-color 0.15s ease, transform 0.15s ease;
}

.pb-gallery-btn:hover {
  border-color: var(--accent-2, #0F3D3E);
  background: #fff;
  transform: scale(1.04);
}

.pb-gallery-thumbs {
  display: flex;
  gap: 0.5rem;
  padding: 0.65rem 0.7rem;
  overflow-x: auto;
  background: var(--bg-elev, #FFFCF8);
  border-top: 1px solid var(--line, #E8E0D6);
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
}

.pb-gallery-thumb {
  flex: 0 0 auto;
  width: 4.4rem;
  height: 3.2rem;
  padding: 0;
  border: 2px solid transparent;
  border-radius: 10px;
  overflow: hidden;
  cursor: pointer;
  background: var(--accent-soft, #F3E7D9);
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

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

.pb-gallery-thumb.is-active {
  border-color: var(--accent, #B45309);
  box-shadow: 0 0 0 1px rgba(180, 83, 9, 0.25);
}

.pb-gallery-caption {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-top: 0.75rem;
  font-size: 0.85rem;
  color: var(--muted, #6B635B);
}

.pb-detail-media {
  border-radius: var(--radius, 18px);
  overflow: hidden;
  border: 1px solid var(--line, #E8E0D6);
  box-shadow: var(--shadow, 0 8px 24px rgba(26, 21, 18, 0.06));
  background: var(--accent-soft, #F3E7D9);
}

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

.pb-stats > div {
  background: var(--bg-elev, #FFFCF8);
  border: 1px solid var(--line, #E8E0D6);
  border-radius: 14px;
  padding: 0.8rem 0.9rem;
  box-shadow: 0 1px 2px rgba(26, 21, 18, 0.03);
}

.pb-stats span {
  display: block;
  font-size: 0.72rem;
  color: var(--muted, #6B635B);
  margin-bottom: 0.25rem;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  font-weight: 600;
}

.pb-stats strong {
  font-size: 0.95rem;
  letter-spacing: -0.01em;
}

.pb-section {
  background: var(--bg-elev, #FFFCF8);
  border: 1px solid var(--line, #E8E0D6);
  border-radius: var(--radius, 18px);
  padding: 1.25rem 1.35rem;
  margin-bottom: 1rem;
  box-shadow: var(--shadow, 0 8px 24px rgba(26, 21, 18, 0.04));
}

.pb-section h2 {
  margin: 0 0 0.65rem;
  font-size: 1.18rem;
  letter-spacing: -0.02em;
}

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

.pb-section p:last-child { margin-bottom: 0; }

/* Article / long-form measure */
.pb-detail .pb-section.pb-prose,
.pb-prose {
  max-width: var(--measure, 65ch);
}

.pb-prose p {
  font-size: 1.05rem;
  line-height: 1.7;
}

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

.pb-pros {
  border-color: #c5e6c8;
  background: #f5fbf5;
}

.pb-cons {
  border-color: #efd0c8;
  background: #fcf7f5;
}

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

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

.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-2, #0F3D3E);
  font-weight: 650;
  text-decoration: none;
}

.pb-mini-list a:hover { color: var(--accent, #B45309); }

.pb-compare-form {
  background: var(--bg-elev, #FFFCF8);
  border: 1px solid var(--line, #E8E0D6);
  border-radius: var(--radius, 18px);
  padding: 1.2rem;
  margin-bottom: 1.5rem;
  box-shadow: var(--shadow, 0 8px 24px rgba(26, 21, 18, 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, #E8E0D6);
  border-radius: 12px;
  cursor: pointer;
  background: #fff;
}

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

.pb-compare-table-wrap {
  overflow-x: auto;
  border-radius: var(--radius, 18px);
  border: 1px solid var(--line, #E8E0D6);
  background: var(--bg-elev, #FFFCF8);
  box-shadow: var(--shadow, 0 8px 24px rgba(26, 21, 18, 0.06));
}

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

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

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

.pb-compare-table tbody th {
  width: 8.5rem;
  color: var(--muted, #6B635B);
  font-weight: 650;
  background: rgba(246, 241, 234, 0.6);
}

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

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

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

@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; }
  .pb-grid { grid-template-columns: 1fr; }
}


/* dogopedia-b mobile article covers */
.pb-article-cover {
  position: relative;
  z-index: 1;
  isolation: isolate;
  margin: 0 0 1.35rem;
  border-radius: var(--radius, 18px);
  overflow: hidden;
  border: 1px solid var(--line, #E8E0D6);
  box-shadow: var(--shadow);
  background: #F6F1EA;
  /* cover is image-only; title lives above in HTML */
}
.pb-article-cover img {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 100%;
  height: auto;
  display: block;
  aspect-ratio: 2 / 1;
  object-fit: cover;
  object-position: center;
  background: #F6F1EA;
}
.pb-section.pb-article-body h2 { margin-top: 1.25rem; }
.pb-section.pb-article-body h2:first-child { margin-top: 0; }
.pb-section.pb-article-body p { margin: 0 0 0.85rem; line-height: 1.65; }
.pb-section.pb-article-body ul { margin: 0 0 0.85rem; padding-left: 1.2rem; }
@media (max-width: 560px) {
  .pb-article-cover img { aspect-ratio: 16 / 10; }
  .pb-grid { grid-template-columns: 1fr; gap: 0.85rem; }
  .pb-card-body { padding: 0.95rem 1rem 1.1rem; }
}

/* --- gallery expand refresh --- */
/* Gallery + long-form — uses global :root tokens only */
.pb-detail-head {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  gap: 1.5rem;
  align-items: start;
  margin-bottom: 1.5rem;
}

.pb-detail-intro {
  min-width: 0;
}

.pb-gallery {
  position: relative;
  width: 100%;
  max-width: 720px;
  margin-left: auto;
}

.pb-gallery-main {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  background: var(--accent-soft);
}

.pb-gallery-track {
  display: flex;
  transition: transform 0.28s ease;
  will-change: transform;
  touch-action: pan-y;
}

.pb-gallery-slide {
  margin: 0;
  flex: 0 0 100%;
  min-width: 100%;
}

.pb-gallery-slide img {
  width: 100%;
  max-width: 720px;
  display: block;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  max-height: 420px;
  background: var(--accent-soft);
}

.pb-gallery-nav {
  position: absolute;
  inset: 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  pointer-events: none;
  padding: 0 0.45rem;
}

.pb-gallery-btn {
  pointer-events: auto;
  width: 2.25rem;
  height: 2.25rem;
  border: none;
  border-radius: 999px;
  background: color-mix(in srgb, var(--ink) 55%, transparent);
  color: var(--surface);
  font-size: 1.4rem;
  line-height: 1;
  cursor: pointer;
}

.pb-gallery-btn:hover {
  background: color-mix(in srgb, var(--ink) 75%, transparent);
}

.pb-gallery-thumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-top: 0.55rem;
}

.pb-gallery-thumb {
  width: 64px;
  height: 48px;
  padding: 0;
  border: 2px solid transparent;
  border-radius: 8px;
  overflow: hidden;
  cursor: pointer;
  background: var(--accent-soft);
  opacity: 0.75;
}

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

.pb-gallery-thumb.is-active {
  border-color: var(--accent);
  opacity: 1;
}

.pb-prose p {
  margin: 0 0 0.85rem;
  line-height: 1.65;
  color: var(--ink);
}

.pb-prose p:last-child {
  margin-bottom: 0;
}

.pb-section p {
  line-height: 1.6;
}

@media (max-width: 800px) {
  .pb-detail-head,
  .pb-two {
    grid-template-columns: 1fr;
  }

  .pb-gallery {
    max-width: 100%;
    margin-left: 0;
  }

  .pb-gallery-slide img {
    max-height: 280px;
    aspect-ratio: 16 / 11;
  }

  .pb-detail-head h1 {
    font-size: 1.55rem;
  }

  .pb-section {
    padding: 1rem;
  }

  .pb-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}


/* article-card stacking fix 20260922 */
.pb-card {
  position: relative;
  isolation: isolate;
  background: var(--bg-elev, #FFFCF8);
}
.pb-card > a {
  position: relative;
  display: flex;
  flex-direction: column;
  height: 100%;
}
.pb-card-media,
.pb-article-cover {
  flex-shrink: 0;
  isolation: isolate;
}
.pb-card-body {
  margin-top: 0;
  flex: 1 1 auto;
}
