/* ============================================================================
   PrimeDoggy v2 — breed-guide.css
   Destination: /wp-content/themes/primedoggy-v2/assets/css/breed-guide.css
   Styles for templates/parts/breed-guide.php, the page drawn from a breed
   record. Loaded only on a post that has a record (inc/enqueue.php).
   Uses the tokens in tokens.css. Sage #7B9584 is the working colour: bars,
   buttons, rules and accents. Small text uses the darker --sage-emphasis so
   it stays readable.
   ========================================================================== */

.pd-bg {
  --bg-warm: #F3ECE0;
  --bg-warm-line: #E2D6C2;
  --bg-track: #E6E1D5;
  --bg-deep: #1F2A24;
  max-width: 1160px;
  margin-inline: auto;
  padding: 36px 24px 72px;
  box-sizing: border-box;
  font-size: 17px;
  line-height: 1.6;
  color: var(--charcoal);
}

.pd-bg *,
.pd-bg *::before,
.pd-bg *::after {
  box-sizing: border-box;
}

.pd-bg h1,
.pd-bg h2,
.pd-bg h3,
.pd-bg .display {
  font-variant-numeric: lining-nums;
  font-feature-settings: "lnum" 1;
}

.pd-bg a {
  color: var(--sage-emphasis);
}

.pd-bg a:hover {
  color: var(--charcoal);
}

/* Buttons keep their own colours inside a guide. */
.pd-bg a.btn-primary,
.pd-bg a.btn-primary:hover {
  color: var(--white);
}

/* The closing PrimeDoggy IQ box lines up with the guide above it. */
.pd-bg~.pd-post-cta {
  max-width: 1000px;
}

/* ---- Shared pieces ---- */
.pd-bg-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  padding: 26px 28px;
}

.pd-bg-label {
  display: block;
  margin: 0 0 12px;
  font-family: var(--font-ui);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--sage-emphasis);
}

.pd-bg-note {
  margin: 14px 0 0;
  font-size: 13px;
  line-height: 1.5;
  color: var(--muted);
}

.pd-bg ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.pd-bg-ticks li,
.pd-bg-dashes li,
.pd-bg-arrows li {
  position: relative;
  padding-left: 24px;
  margin-top: 10px;
  font-size: 16px;
  line-height: 1.5;
}

.pd-bg-ticks li:first-child,
.pd-bg-dashes li:first-child,
.pd-bg-arrows li:first-child {
  margin-top: 0;
}

.pd-bg-ticks li::before,
.pd-bg-dashes li::before,
.pd-bg-arrows li::before {
  position: absolute;
  left: 0;
  top: 0;
  font-weight: 700;
  color: var(--sage);
}

.pd-bg-ticks li::before {
  content: "\2713";
}

.pd-bg-dashes li::before {
  content: "\2013";
  color: #8A6D3B;
}

.pd-bg-arrows li::before {
  content: "\2192";
}

/* ---- Header ---- */
.pd-bg-head {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.pd-bg-crumbs {
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 14px;
}

.pd-bg-crumbs a {
  color: var(--muted);
  text-decoration: none;
}

.pd-bg-crumbs span[aria-hidden] {
  margin-inline: 6px;
}

.pd-bg-crumb-here {
  color: var(--charcoal);
}

.pd-bg-eyebrow {
  margin: 0;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--sage-emphasis);
}

.pd-bg-title {
  margin: 0;
  font-size: clamp(2.4rem, 6vw, 4rem);
  line-height: 1.04;
}

.pd-bg-verdict {
  margin: 0;
  max-width: 880px;
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 500;
  font-size: clamp(1.3rem, 2.6vw, 1.75rem);
  line-height: 1.28;
  color: var(--sage-emphasis);
}

.pd-bg-kind {
  margin: 0;
  max-width: 820px;
  padding: 10px 14px;
  border-left: 4px solid var(--sage);
  background: var(--sage-light);
  border-radius: 0 8px 8px 0;
  font-size: 15px;
}

.pd-bg-meta {
  margin: 0;
  font-size: 13px;
  color: var(--muted);
}

.pd-bg-photo {
  margin-top: 14px;
}

.pd-bg-photo img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: var(--radius-card);
}

/* Shallower on wider screens, so the facts start higher up the page. */
@media (min-width: 641px) {
  .pd-bg-photo img {
    aspect-ratio: 2 / 1;
  }
}

/* ---- Jump bar ---- */
.pd-bg-jump {
  position: sticky;
  top: 72px;
  z-index: 50;
  margin: 28px 0;
}

.pd-bg-jump-menu {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-pill);
  padding: 6px 8px;
  box-shadow: 0 6px 18px rgba(47, 47, 47, 0.06);
}

.pd-bg-jump-menu summary {
  display: none;
}

.pd-bg-jump-menu ul {
  display: flex;
  flex-wrap: nowrap;
  justify-content: space-between;
  gap: 0;
  overflow-x: auto;
  scrollbar-width: none;
}

.pd-bg-jump-menu ul::-webkit-scrollbar {
  display: none;
}

.pd-bg-jump-menu a {
  display: block;
  padding: 8px 9px;
  border-radius: var(--radius-pill);
  font-size: 13px;
  white-space: nowrap;
  text-decoration: none;
  color: var(--sage-emphasis);
}

.pd-bg-jump-menu a:hover,
.pd-bg-jump-menu a.is-current {
  background: var(--sage-light);
  color: var(--charcoal);
}

.pd-bg-jump-menu a.is-current {
  box-shadow: inset 0 0 0 1.5px var(--sage);
  font-weight: 500;
}

@media (prefers-reduced-motion: no-preference) {
  html {
    scroll-behavior: smooth;
  }
}

.pd-bg [id^="pd-"] {
  scroll-margin-top: 150px;
}

/* ---- At a glance ---- */
.pd-bg-glance {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}

.pd-bg-facts {
  border-top: 4px solid var(--sage);
}

.pd-bg-facts dl {
  margin: 4px 0 0;
}

.pd-bg-facts dl>div {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 11px 0;
  border-top: 1px solid var(--border);
}

.pd-bg-facts dt {
  flex: none;
  font-size: 14px;
  color: var(--muted);
}

.pd-bg-facts dd {
  margin: 0;
  font-size: 15px;
  font-weight: 500;
  text-align: right;
}

.pd-bg-metric {
  display: block;
  font-size: 13px;
  font-weight: 400;
  color: var(--muted);
}

.pd-bg-fit {
  display: grid;
  grid-template-rows: 1fr 1fr;
  gap: 20px;
}

.pd-bg-best {
  background: var(--sage-light);
  border-color: #CFDDD4;
}

.pd-bg-twice {
  background: var(--bg-warm);
  border-color: var(--bg-warm-line);
}

/* ---- Ratings ---- */
.pd-bg-traits {
  margin-top: 20px;
  padding: 34px 38px;
}

.pd-bg-traits-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 24px;
  margin-bottom: 26px;
}

.pd-bg-traits-head h2 {
  margin: 0;
  font-size: 32px;
  line-height: 1.15;
}

.pd-bg-traits-head p {
  margin: 0;
  max-width: 380px;
  font-size: 13px;
  color: var(--muted);
}

.pd-bg-traits-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 32px 56px;
}

.pd-bg-trait-group {
  display: flex;
  flex-direction: column;
  gap: 13px;
}

.pd-bg-trait-group h3 {
  margin: 0;
  font-family: var(--font-ui);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--sage-emphasis);
}

.pd-bg-trait {
  display: grid;
  grid-template-columns: 192px minmax(0, 1fr) 132px;
  gap: 14px;
  align-items: center;
}

.pd-bg-trait-name {
  font-size: 15px;
}

.pd-bg-trait-score {
  font-size: 14px;
}

.pd-bg-trait-score strong {
  font-weight: 600;
}

.pd-bg-bar {
  position: relative;
  display: block;
  height: 10px;
  border-radius: var(--radius-pill);
  background: var(--bg-track);
  overflow: hidden;
}

.pd-bg-bar-fill,
.pd-bg-bar-soft {
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
}

.pd-bg-bar-fill {
  background: var(--sage);
}

.pd-bg-bar-soft {
  background: #B9CBBF;
}

.pd-bg-bar i {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 2px;
  background: var(--white);
}

.pd-bg-traits-foot {
  margin-top: 28px;
  padding-top: 22px;
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
}

.pd-bg-traits-foot p {
  margin: 0;
  max-width: 560px;
  font-size: 15px;
}

.pd-bg-traits-foot .btn-primary {
  flex: none;
}

/* ---- Sections ---- */
.pd-bg-body {
  display: flex;
  flex-direction: column;
  gap: 60px;
  margin-top: 56px;
}

.pd-bg-section {
  display: flex;
  flex-direction: column;
  gap: 22px;
}

.pd-bg-section>h2 {
  margin: 0;
  font-size: 34px;
  line-height: 1.15;
}

.pd-bg-section>h2::before {
  content: "";
  display: block;
  width: 56px;
  height: 4px;
  border-radius: 2px;
  background: var(--sage);
  margin-bottom: 16px;
}

.pd-bg-text {
  max-width: 820px;
  font-size: 18px;
  line-height: 1.7;
}

.pd-bg-text:empty {
  display: none;
}

.pd-bg-text p {
  margin: 0 0 18px;
}

.pd-bg-text p:last-child {
  margin-bottom: 0;
}

.pd-bg-keypoint {
  max-width: 820px;
  margin: 0;
  padding: 18px 22px;
  background: var(--sage-light);
  border-left: 4px solid var(--sage);
  border-radius: 0 10px 10px 0;
  font-size: 17px;
  line-height: 1.6;
}

.pd-bg-tiles {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
}

.pd-bg-tile {
  padding: 20px 22px;
}

.pd-bg-tile .pd-bg-label {
  margin-bottom: 8px;
}

.pd-bg-tile-value {
  margin: 0 0 4px;
  font-size: 24px;
  font-weight: 600;
  line-height: 1.2;
}

.pd-bg-tile-note {
  margin: 0;
  font-size: 14px;
  color: var(--muted);
}

.pd-bg-inline-cta {
  max-width: 820px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  padding: 16px 22px;
}

.pd-bg-inline-cta p {
  margin: 0;
  font-size: 15px;
  line-height: 1.5;
}

.pd-bg-inline-cta .btn-outline {
  flex: none;
  white-space: nowrap;
  background: transparent;
  color: var(--sage-emphasis);
  border: 1.5px solid var(--sage);
}

/* ---- Tables ---- */
.pd-bg-table {
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  overflow: hidden;
  background: var(--white);
}

.pd-bg-table-narrow {
  max-width: 820px;
}

.pd-bg-table table {
  width: 100%;
  border-collapse: collapse;
  margin: 0;
}

.pd-bg-table thead th {
  padding: 12px 18px;
  text-align: left;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--sage-emphasis);
  background: var(--sage-light);
  border-bottom: 2px solid var(--sage);
}

.pd-bg-table td,
.pd-bg-table tfoot th {
  padding: 12px 18px;
  border-top: 1px solid var(--border);
  font-size: 16px;
  text-align: left;
  font-weight: 400;
}

.pd-bg-table tbody tr:first-child td {
  border-top: 0;
}

.pd-bg-table th:last-child,
.pd-bg-table td:last-child {
  text-align: right;
  white-space: nowrap;
}

.pd-bg-table-narrow td:last-child {
  white-space: normal;
}

.pd-bg-table tfoot th,
.pd-bg-table tfoot td {
  border-top: 2px solid var(--sage);
  font-weight: 600;
}

.pd-bg-costs {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
  align-items: start;
}

/* ---- Health ---- */
.pd-bg-health {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.pd-bg-health .pd-bg-card {
  padding: 24px 26px;
}

.pd-bg-health h3 {
  margin: 0 0 14px;
  font-size: 24px;
  line-height: 1.2;
}

.pd-bg-health p {
  margin: 18px 0 0;
  font-size: 15px;
  line-height: 1.5;
}

.pd-bg-health .pd-bg-label {
  margin-bottom: 6px;
  font-weight: 700;
  color: var(--bg-deep);
  font-size: 11px;
  letter-spacing: 0.12em;
}

.pd-bg-screening {
  padding: 22px 26px;
}

.pd-bg-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.pd-bg-chips li {
  padding: 8px 14px;
  border-radius: var(--radius-pill);
  background: var(--sage-light);
  font-size: 14px;
}

/* ---- Life stages ---- */
.pd-bg-stages {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.pd-bg-stage {
  padding: 22px;
  border-top: 4px solid var(--sage);
}

.pd-bg-stage-name {
  margin: 0;
  font-size: 26px;
  line-height: 1.1;
}

.pd-bg-stage-ages {
  margin: 4px 0 12px;
  font-size: 13px;
  font-weight: 500;
  color: var(--sage-emphasis);
}

.pd-bg-stage p:last-child {
  margin: 0;
  font-size: 15px;
  line-height: 1.5;
}

/* ---- Similar breeds ---- */
.pd-bg-similar {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.pd-bg-similar-card {
  display: block;
  padding: 0;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
}

a.pd-bg-similar-card:hover {
  border-color: var(--sage);
  color: inherit;
}

.pd-bg-similar-card img {
  display: block;
  width: 100%;
  height: 130px;
  object-fit: cover;
}

.pd-bg-similar-text {
  display: block;
  padding: 16px 18px 18px;
}

.pd-bg-similar-name {
  display: block;
  margin-bottom: 6px;
  font-size: 22px;
  font-weight: 600;
  line-height: 1.15;
  color: var(--charcoal);
}

.pd-bg-similar-why {
  display: block;
  font-size: 14px;
  line-height: 1.45;
  color: var(--muted);
}

/* ---- FAQ ---- */
.pd-bg-faq {
  max-width: 900px;
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  background: var(--white);
  overflow: hidden;
}

.pd-bg-faq details {
  padding: 18px 22px;
  border-top: 1px solid var(--border);
}

.pd-bg-faq details:first-child {
  border-top: 0;
}

.pd-bg-faq summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  cursor: pointer;
  list-style: none;
  font-size: 17px;
  font-weight: 500;
}

.pd-bg-faq summary::-webkit-details-marker {
  display: none;
}

.pd-bg-faq summary::after {
  content: "+";
  flex: none;
  font-size: 22px;
  line-height: 1;
  color: var(--sage);
}

.pd-bg-faq details[open] summary::after {
  content: "\2013";
}

.pd-bg-faq details p {
  max-width: 780px;
  margin: 10px 0 0;
  font-size: 16px;
  line-height: 1.6;
}

/* ---- Sources ---- */
.pd-bg-sources {
  padding: 28px 32px;
}

.pd-bg-sources .pd-bg-arrows li {
  font-size: 15px;
}

.pd-bg-small {
  margin-top: 20px;
  padding-top: 18px;
  border-top: 1px solid var(--border);
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px 32px;
  font-size: 13px;
  line-height: 1.55;
  color: var(--muted);
}

.pd-bg-sources .pd-bg-label+.pd-bg-arrows+.pd-bg-small,
.pd-bg-small:first-child {
  margin-top: 20px;
}

.pd-bg-small p {
  margin: 0;
}

.pd-bg-small strong {
  color: var(--charcoal);
  font-weight: 600;
}

/* ---- Breed Match band ---- */
.pd-bg-match {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 32px;
  padding: 44px 48px;
  border-radius: var(--radius-card);
  background: var(--sage);
  color: var(--white);
}

.pd-bg-match-eyebrow {
  margin: 0 0 8px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--bg-deep);
}

.pd-bg-match-title {
  margin: 0;
  font-size: clamp(28px, 3.6vw, 38px);
  line-height: 1.1;
  color: var(--white);
}

.pd-bg-match-sub {
  margin: 10px 0 0;
  font-size: 17px;
  font-weight: 500;
  color: var(--bg-deep);
}

.pd-bg a.pd-bg-match-btn {
  flex: none;
  padding: 16px 28px;
  border-radius: var(--radius-pill);
  background: var(--white);
  color: #3F5347;
  font-size: 16px;
  font-weight: 600;
  text-decoration: none;
}

/* ---- Tablet ---- */
@media (max-width: 960px) {
  .pd-bg-glance {
    grid-template-columns: 1fr;
  }

  .pd-bg-fit {
    grid-template-rows: none;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .pd-bg-traits-grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .pd-bg-stages,
  .pd-bg-similar {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  /* The jump bar becomes an "On this page" dropdown. */
  .pd-bg-jump-menu {
    border-radius: 12px;
    padding: 0;
  }

  .pd-bg-jump-menu summary {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 13px 16px;
    cursor: pointer;
    list-style: none;
    font-size: 15px;
  }

  .pd-bg-jump-menu summary::-webkit-details-marker {
    display: none;
  }

  .pd-bg-jump-menu summary::after {
    content: "\25BE";
    color: var(--sage);
  }

  .pd-bg-jump-label {
    color: var(--muted);
    margin-right: 6px;
  }

  .pd-bg-jump-current {
    flex: 1;
  }

  .pd-bg-jump-menu ul {
    display: block;
    overflow: visible;
    padding: 4px 8px 10px;
    border-top: 1px solid var(--border);
  }

  .pd-bg-jump-menu a {
    padding: 10px 8px;
    border-radius: 8px;
    font-size: 15px;
  }
}

/* ---- Phone ---- */
@media (max-width: 640px) {
  .pd-bg {
    padding: 22px 16px 48px;
    font-size: 16px;
  }

  .pd-bg-card {
    padding: 20px 18px;
  }

  .pd-bg-jump {
    top: 64px;
    margin: 18px 0;
  }

  .pd-bg-fit,
  .pd-bg-tiles,
  .pd-bg-costs,
  .pd-bg-health,
  .pd-bg-stages,
  .pd-bg-similar,
  .pd-bg-small {
    grid-template-columns: 1fr;
  }

  .pd-bg-traits {
    padding: 22px 18px;
  }

  .pd-bg-traits-head {
    flex-direction: column;
    gap: 6px;
    margin-bottom: 20px;
  }

  .pd-bg-traits-head h2 {
    font-size: 28px;
  }

  .pd-bg-trait {
    grid-template-columns: 1fr auto;
    gap: 6px 12px;
  }

  .pd-bg-trait-name {
    grid-column: 1;
    grid-row: 1;
    font-size: 14px;
  }

  .pd-bg-trait-score {
    grid-column: 2;
    grid-row: 1;
  }

  .pd-bg-bar {
    grid-column: 1 / -1;
    grid-row: 2;
  }

  .pd-bg-traits-foot,
  .pd-bg-inline-cta,
  .pd-bg-match {
    flex-direction: column;
    align-items: flex-start;
  }

  .pd-bg-body {
    gap: 40px;
    margin-top: 36px;
  }

  .pd-bg-section>h2 {
    font-size: 28px;
  }

  .pd-bg-text {
    font-size: 17px;
  }

  .pd-bg-table {
    overflow-x: auto;
  }

  .pd-bg-table td,
  .pd-bg-table tfoot th,
  .pd-bg-table thead th {
    padding: 11px 14px;
    font-size: 15px;
  }

  .pd-bg-match {
    padding: 28px 22px;
  }

  .pd-bg-sources {
    padding: 22px 18px;
  }
}

/* ---- Rating tiers and variety table (Nov 16, 2026) ---- */
.pd-bg-traits-grid {
  grid-template-columns: minmax(0, 1fr);
  gap: 34px;
}

.pd-bg-trait-group {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 13px 56px;
}

.pd-bg-trait-group h3,
.pd-bg-tier-note {
  grid-column: 1 / -1;
}

.pd-bg-tier-note {
  margin: -6px 0 4px;
  max-width: 820px;
  font-size: 13px;
  line-height: 1.5;
  color: var(--muted);
}

.pd-bg-varieties {
  margin-top: 20px;
}

@media (max-width: 960px) {
  .pd-bg-trait-group {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* Text runs the full width of the cards (Nov 16, 2026) */
.pd-bg-text,
.pd-bg-keypoint,
.pd-bg-inline-cta,
.pd-bg-kind,
.pd-bg-tier-note,
.pd-bg-faq details p {
  max-width: none;
}

/* Key facts: labels in one column, values left-aligned beside them (Nov 16, 2026) */
.pd-bg-facts dl>div {
  display: grid;
  grid-template-columns: 110px minmax(0, 1fr);
  gap: 16px;
}

.pd-bg-facts dd {
  text-align: left;
}