/* --------------------------------------------------------------------------
   Hond detail — page grid (two-column bleed layout)
   -------------------------------------------------------------------------- */

.pb-main.pb-hond{
  display: grid;
  grid-template-columns:
    [bleed-start] minmax(32px, 1fr)
    [content-start] minmax(0, 558px)
    [left-end] 44px
    [right-start] minmax(0, 558px)
    [content-end] minmax(32px, 1fr) [bleed-end];
  column-gap: 0;
  align-items: start;
  max-width: none;
  margin: 0;
  padding: 0 0 72px;
}

.pb-main.pb-hond > section{
  grid-column: content-start / content-end;
  max-width: none !important;
  width: auto !important;
  margin: 0 !important;
  padding: 44px 0 0 !important;
}

.pb-main.pb-hond > section:nth-child(5){
  grid-column: content-start / left-end;
}

.pb-main.pb-hond > section:nth-child(6){
  grid-column: right-start / content-end;
}

.pb-main.pb-hond > section:nth-child(7){
  grid-column: content-start / left-end;
}

.pb-main.pb-hond > section:nth-child(8){
  grid-column: right-start / content-end;
}

.pb-main.pb-hond > section .section-head{
  padding: 0 !important;
  margin-bottom: 18px;
}

.pb-main.pb-hond > section .h2{
  font-size: 30px;
}

/* --------------------------------------------------------------------------
   De weg terug op /pups/<naam>/gegevens/
   --------------------------------------------------------------------------
   Hij stond eerst als losse knop in een wit strookje boven de hero. Daar hing
   hij nergens aan vast en was niet te raden waar hij heen ging. Nu staat hij in
   de hero zelf, onder de naam van de hond, in de ruimte die daar toch al leeg
   was.

   Bewust een tekstlink en geen knop: de knoppen op deze pagina's brengen je
   verder (contact, de special bespreken), en dit brengt je terug. Dat hoort
   rustiger te zijn dan waar je naartoe kunt. */

.pb-main.pb-hond .profile-title .pb-gegevens-terug-regel{
  margin: 2px 0 0;
}

.pb-main.pb-hond .pb-gegevens-terug{
  display: inline-block;
  padding-bottom: 2px;
  border-bottom: 2px solid var(--accent);
  color: var(--brown);
  font: 800 14px/1.4 Manrope, system-ui, sans-serif;
  text-decoration: none;
}

.pb-main.pb-hond .pb-gegevens-terug:hover{
  color: var(--accent);
}


/* --------------------------------------------------------------------------
   Profile hero
   -------------------------------------------------------------------------- */

.pb-main.pb-hond > .profile-hero{
  grid-column: bleed-start / bleed-end;
  background: #efe3d9;
  background-image: none;
  border-bottom: 1px solid var(--line);
  display: grid !important;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 56px;
  align-items: center;
  padding: 48px max(32px, calc((100% - 1160px) / 2)) 44px !important;
  margin: 0 0 4px !important;
}

.pb-main.pb-hond .profile-hero.no-grad{
  background: #efe3d9;
}

.pb-main.pb-hond .profile-hero img{
  height: 380px !important;
  object-fit: cover;
  align-self: center;
  justify-self: center;
  /* Deze foto had als enige op de pagina nog scherpe hoeken. Op mobiel valt
     dat het meest op: daar wordt hij volle breedte met object-fit:contain,
     dus een groot recht vlak midden op de beige hero. */
  border-radius: var(--img-radius);
}

.pb-main.pb-hond .profile-title h1{
  font-family: Fraunces, serif;
  color: var(--brown);
  line-height: 0.95;
  margin: 8px 0 14px;
}

.pb-main.pb-hond .profile-title .intro{
  color: var(--muted);
  font-size: 17px;
  line-height: 1.6;
  max-width: 46ch;
  margin: 0 0 16px;
}

.pb-main.pb-hond .trait-row{
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin-top: 10px;
}

.pb-main.pb-hond .trait{
  background: #fff;
  color: var(--brown);
  font-size: 10px;
  font-weight: 850;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  border: 1px solid var(--line);
  padding: 6px 8px;
  border-radius: 10px;
}

.pb-main.pb-hond .trait-row.detail{
  padding: 16px 0 0;
}

/* --------------------------------------------------------------------------
   Spec table
   -------------------------------------------------------------------------- */

.pb-main.pb-hond .spec-table{
  display: grid !important;
  grid-template-columns: repeat(6, 1fr);
  gap: 20px !important;
  overflow: hidden;
  margin: 0 !important;
  padding: 0 !important;
}

.pb-main.pb-hond .spec-table .row{
  display: flex !important;
  flex-direction: column;
  gap: 12px !important;
  align-items: flex-start;
  border-width: 1px 0;
  border-color: var(--line);
  border-style: solid;
  padding: 18px 20px !important;
}

.pb-main.pb-hond .spec-table b{
  display: block;
  text-align: left;
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.pb-main.pb-hond .spec-table span{
  display: block;
  text-align: left;
  font-family: Fraunces, serif;
  color: var(--brown);
  font-size: 18px;
  font-weight: 850;
  line-height: 1.2;
}

/* --------------------------------------------------------------------------
   Family tree (stamboom)
   -------------------------------------------------------------------------- */

.pb-main.pb-hond .family-tree-wrap{
  display: flex;
  justify-content: center;
  overflow-x: auto;
  background: transparent;
  padding: 6px 0 2px;
  scrollbar-width: none;
}

.pb-main.pb-hond .family-tree-wrap::-webkit-scrollbar{
  display: none;
}

.pb-main.pb-hond .family-tree{
  min-width: 760px;
  height: 520px;
  position: relative;
  background: transparent;
}

.pb-main.pb-hond .family-line{
  position: absolute;
  background: #bda18c;
  z-index: 1;
}

.pb-main.pb-hond .family-line.h{
  height: 1.5px;
}

.pb-main.pb-hond .family-line.v{
  width: 1.5px;
}

.pb-main.pb-hond .family-node{
  position: absolute;
  width: 118px;
  min-height: 54px;
  padding: 9px 8px;
  border: 1.2px solid #ccb29d;
  background: #efe3d9;
  border-radius: 10px;
  color: #6c4d38;
  z-index: 2;
  display: grid;
  align-content: center;
  text-align: center;
}

.pb-main.pb-hond .family-node.self{
  background: #6c4d38;
  border-color: #6c4d38;
  color: #fff;
}

.pb-main.pb-hond .family-node strong{
  display: block;
  font-size: 10px;
  line-height: 1.1;
  font-weight: 850;
}

.pb-main.pb-hond .family-node span{
  display: block;
  font-size: 7px;
  line-height: 1.2;
  margin-top: 3px;
  color: #806a5b;
}

.pb-main.pb-hond .family-node.self span{
  color: #efe3d9;
}

/* --------------------------------------------------------------------------
   Photo swipe / gallery
   -------------------------------------------------------------------------- */

.pb-main.pb-hond .photo-swipe{
  display: grid !important;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  overflow: visible !important;
  padding: 0 !important;
  scroll-snap-type: none;
  scrollbar-width: none;
}

.pb-main.pb-hond .photo-swipe::-webkit-scrollbar{
  display: none;
}

.pb-main.pb-hond .photo-swipe img{
  width: 100% !important;
  height: 300px !important;
  object-fit: cover;
  border-radius: var(--r-md);
  box-shadow: var(--shadow2);
  flex: none !important;
}

/* --------------------------------------------------------------------------
   Character copy (karakter)
   -------------------------------------------------------------------------- */

.pb-main.pb-hond .character-copy{
  padding: 0;
}

.pb-main.pb-hond .character-copy p{
  margin: 0 0 12px;
  color: #67584f;
  font-size: 15.5px;
  line-height: 1.7;
}

/* --------------------------------------------------------------------------
   Health accordion (gezondheid)
   -------------------------------------------------------------------------- */

.pb-main.pb-hond .health-accordion{
  margin: 0 18px 18px;
  border-top: 1px solid var(--line);
}

.pb-main.pb-hond > section:nth-child(6) .health-accordion{
  margin: 0;
}

.pb-main.pb-hond .health-accordion details{
  border-bottom: 1px solid var(--line);
  background: transparent;
}

.pb-main.pb-hond .health-accordion summary{
  list-style: none;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px 0;
  cursor: pointer;
}

.pb-main.pb-hond .health-accordion summary::-webkit-details-marker{
  display: none;
}

.pb-main.pb-hond .health-accordion summary b{
  flex: 0 0 auto;
  color: #987b65;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 10px;
}

.pb-main.pb-hond .health-accordion summary span{
  flex: 1 1 auto;
  color: var(--brown);
  font-weight: 800;
  text-align: right;
  font-size: 12px;
  margin-right: 0;
}

.pb-main.pb-hond .health-accordion summary::after{
  content: "+";
  flex: 0 0 18px;
  width: 18px;
  text-align: right;
  color: var(--accent);
  font-weight: 900;
  font-size: 18px;
  line-height: 1;
}

.pb-main.pb-hond .health-accordion details[open] summary::after{
  content: "\2212";
}

.pb-main.pb-hond .health-preview{
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding: 0 0 12px;
  scrollbar-width: none;
}

.pb-main.pb-hond .health-preview::-webkit-scrollbar{
  display: none;
}

.pb-main.pb-hond .health-preview img,
.pb-main.pb-hond .health-preview .pdf-preview{
  flex: 0 0 132px;
  width: 132px;
  height: 102px;
  object-fit: cover;
  border-radius:var(--r);
  background: #efe6de;
  border: 1px solid var(--line);
  box-shadow: 0 6px 12px rgba(77, 51, 34, 0.08);
}

/* "Certificaat"-kaartje i.p.v. een echte pagina-voorvertoning — de meeste van
   deze PDF's zíjn ook officiële uitslagen/certificaten (OFA, Laboklin, ...),
   dus een lichte, betrouwbare voorvertoning zonder afhankelijk te zijn van
   of de server PDF-thumbnails kan genereren (Imagick/Ghostscript). */

.pb-main.pb-hond .pdf-preview{
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  padding: 10px 8px;
  color: var(--brown);
  text-align: center;
  position: relative;
  background: var(--paper, #fffaf5);
}

.pb-main.pb-hond .pdf-preview::after{
  content: "";
  position: absolute;
  inset: 5px;
  border: 1px solid var(--line);
  pointer-events: none;
}

.pb-main.pb-hond .pdf-seal{
  width: 24px;
  height: 24px;
  display: grid;
  place-items: center;
  color: var(--accent);
  position: relative;
  z-index: 1;
}

.pb-main.pb-hond .pdf-seal svg{
  width: 100%;
  height: 100%;
}

.pb-main.pb-hond .pdf-eyebrow{
  position: relative;
  z-index: 1;
  font-size: 8px;
  font-weight: 800;
  letter-spacing: .13em;
  text-transform: uppercase;
  color: var(--muted);
}

.pb-main.pb-hond .pdf-preview .pdf-label{
  position: relative;
  z-index: 1;
  font-family: Fraunces, serif;
  font-weight: 700;
  font-size: 12.5px;
  line-height: 1.2;
  padding: 0 4px;
}

.pb-main.pb-hond .health-preview p,
.pb-main.pb-hond .health-preview a{
  display: none;
}

.pb-main.pb-hond .health-preview a.health-img{
  display: contents;
}

.pb-main.pb-hond .health-preview a.pdf-preview{
  display: flex;
  text-decoration: none;
  color: var(--brown);
}

/* "Nog niet bekend"-kaartje — zelfde vorm als het certificaat, maar gedempt
   (geen link, geen accentkleur) zodat duidelijk is dat er nog niets is. */

.pb-main.pb-hond .health-preview span.pdf-preview.is-onbekend{
  display: flex;
  color: var(--muted);
  background: #f4eee7;
  cursor: default;
}

.pb-main.pb-hond .pdf-preview.is-onbekend .pdf-seal{
  color: var(--muted);
}

.pb-main.pb-hond .pdf-preview.is-onbekend::after{
  border-style: dashed;
}

/* --------------------------------------------------------------------------
   Growth graph (groeicurve)
   -------------------------------------------------------------------------- */

.pb-main.pb-hond .growth-graph{
  position: relative;
  margin: 0;
  width: 100%;
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  padding: 0;
}

.pb-main.pb-hond .growth-graph .gc-tip{
  display: none;
  position: absolute;
  transform: translate(-50%, calc(-100% - 12px));
  background: var(--brown, #6c4d38);
  color: #fff;
  font-family: Manrope, system-ui, sans-serif;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.3;
  padding: 6px 10px;
  border-radius: 10px;
  white-space: nowrap;
  pointer-events: none;
  z-index: 5;
  box-shadow: 0 6px 16px rgba(77, 51, 34, 0.22);
}

.pb-main.pb-hond .growth-graph .gc-tip::after{
  content: "";
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  border: 5px solid transparent;
  border-top-color: var(--brown, #6c4d38);
}

.pb-main.pb-hond .growth-graph .gc-tip.is-open{
  display: block;
}

.pb-main.pb-hond .growth-graph .dot:focus{
  outline: 2px solid var(--accent, #c97a55);
  outline-offset: 2px;
}

.pb-main.pb-hond .growth-graph svg{
  width: 100%;
  height: 240px;
  display: block;
  overflow: visible;
}

.pb-main.pb-hond .growth-graph .grid{
  stroke: #e0cec0;
  stroke-width: 1;
  fill: none;
}

.pb-main.pb-hond .growth-graph .axis{
  stroke: #a98670;
  stroke-width: 2;
  fill: none;
}

.pb-main.pb-hond .growth-graph .line{
  stroke: #b36c4d;
  stroke-width: 2;
  fill: none;
}

.pb-main.pb-hond .growth-graph .dot{
  fill: #6c4d38;
  cursor: pointer;
}

.pb-main.pb-hond .growth-graph path{
  fill: none;
}

.pb-main.pb-hond .growth-graph text{
  font-family: Manrope, system-ui, sans-serif;
  font-size: 8px;
  fill: #806a5b;
}

/* --------------------------------------------------------------------------
   DNA panel — per categorie via de [pb_dna] shortcode
   -------------------------------------------------------------------------- */

.pb-main.pb-hond .dna-group{
  margin: 0 0 14px;
}

.pb-main.pb-hond .dna-group:last-child{
  margin-bottom: 0;
}

.pb-main.pb-hond .dna-group-title{
  font-size: 11px;
  font-weight: 900;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 4px;
}

.pb-main.pb-hond .dna-compact{
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 7px;
  padding: 0;
}

.pb-main.pb-hond .dna-pill{
  background: transparent;
  border: 0;
  border-bottom: 1px solid #decabb;
  border-radius: 0;
  color: #806a5b;
  font-size: 11px;
  font-weight: 900;
  padding: 7px 0;
}

/* --------------------------------------------------------------------------
   Video
   -------------------------------------------------------------------------- */

.pb-main.pb-hond .video-single{
  padding: 0;
}

.pb-main.pb-hond .video-thumb{
  position: relative;
  background: #ddd;
  overflow: hidden;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  max-height: 560px;
  border-radius: var(--r-lg);
  box-shadow: var(--shadow2);
}

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

.pb-main.pb-hond .video-thumb::after{
  content: "\25B6";
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 42px;
  height: 42px;
  background: rgba(108, 77, 56, 0.9);
  color: #fff;
  display: grid;
  place-items: center;
  border-radius: 50%;
  font-size: 16px;
}

.pb-main.pb-hond .video-overlay-link{
  position: absolute;
  inset: 0;
  z-index: 2;
  font-size: 0;
  line-height: 0;
}

.pb-main.pb-hond .video-thumb .brxe-rich-text,
.pb-main.pb-hond .video-thumb iframe{
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}

.pb-main.pb-hond .video-thumb:has(.brxe-rich-text)::after,
.pb-main.pb-hond .video-thumb:has(iframe)::after{
  content: none;
}

@media (max-width: 767px) {
  .pb-main.pb-hond > .profile-hero{
    grid-template-columns: 1fr !important;
    gap: 18px !important;
    align-items: stretch !important;
  }
  .pb-main.pb-hond .profile-hero img{
    width: 100% !important;
    height: auto !important;
    aspect-ratio: auto !important;
    object-fit: contain !important;
    align-self: auto !important;
    justify-self: auto !important;
    order: 2;
  }
  .pb-main.pb-hond .profile-title{
    order: 1;
  }
}

/* --------------------------------------------------------------------------
   Responsive — tablet & below (max-width: 1024px)
   -------------------------------------------------------------------------- */

@media (max-width: 767px) {
  .pb-main.pb-hond .pb-flush-empty{
    display: block;
    margin: 0 18px;
  }
}

@media (max-width: 1024px) {
  .pb-main.pb-hond{
    display: block;
    grid-template-columns: none;
    column-gap: normal;
    align-items: initial;
    padding: 0;
  }
  .pb-main.pb-hond > section{
    grid-column: auto;
    max-width: none !important;
    width: auto !important;
    margin: 0 !important;
    padding: 22px 18px !important;
  }
  .pb-main.pb-hond > section.flush{
    padding-left: 0 !important;
    padding-right: 0 !important;
  }
  .pb-main.pb-hond > section .section-head{
    padding: 0 !important;
    margin-bottom: 14px;
  }
  .pb-main.pb-hond > section.flush .section-head{
    padding-left: 18px !important;
    padding-right: 18px !important;
  }
  .pb-main.pb-hond > section .h2{
    font-size: 28px;
  }
  .pb-main.pb-hond > .profile-hero{
    grid-column: auto;
    grid-template-columns: 1fr 150px;
    gap: 10px;
    align-items: end;
    padding: 18px !important;
    margin: 0 !important;
  }
  .pb-main.pb-hond .profile-hero img{
    width: 100% !important;
    height: auto !important;
    aspect-ratio: auto !important;
    object-fit: contain !important;
    align-self: end;
    justify-self: auto;
  }
  .pb-main.pb-hond .profile-title h1{
    line-height: 0.92;
    margin: 6px 0;
  }
  .pb-main.pb-hond .profile-title .intro{
    font-size: 13px;
    line-height: 1.45;
    max-width: none;
    margin: 0 0 10px;
  }
  .pb-main.pb-hond .trait-row.detail{
    padding: 0 18px 18px;
  }
  .pb-main.pb-hond .spec-table{
    display: block !important;
    grid-template-columns: none;
    gap: normal;
    background: transparent;
    border: 0;
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
    border-radius: 0;
    overflow: visible;
    margin: 10px 18px 18px !important;
    padding: 0 !important;
  }
  .pb-main.pb-hond .spec-table .row{
    display: grid !important;
    grid-template-columns: 1fr 1fr;
    gap: 12px !important;
    align-items: initial;
    flex-direction: row;
    background: transparent;
    border: 0;
    border-bottom: 1px solid var(--line);
    padding: 10px 0 !important;
  }
  .pb-main.pb-hond .spec-table .row:last-child{
    border-bottom: 0;
  }
  .pb-main.pb-hond .spec-table b{
    font-size: 10px;
    color: #987b65;
    font-weight: 850;
  }
  .pb-main.pb-hond .spec-table span{
    font-family: inherit;
    font-size: 13px;
    line-height: normal;
    font-weight: 850;
    color: var(--brown);
  }
  .pb-main.pb-hond .family-tree-wrap{
    display: block;
    justify-content: normal;
    padding: 0 18px 18px;
  }
  .pb-main.pb-hond .character-copy{
    padding: 0 18px 18px;
  }
  .pb-main.pb-hond .character-copy p{
    font-size: 14px;
    line-height: 1.62;
  }
  .pb-main.pb-hond .health-accordion{
    margin: 0 18px 18px;
  }
  .pb-main.pb-hond > section:nth-child(6) .health-accordion{
    margin: 0 18px 18px;
  }
  .pb-main.pb-hond .growth-graph{
    margin: 0 18px 18px !important;
  }
  .pb-main.pb-hond .growth-graph svg{
    height: 180px;
  }
  .pb-main.pb-hond .dna-group{
    padding: 0 18px;
  }
  .pb-main.pb-hond .video-single{
    padding: 0 18px 18px;
  }
  .pb-main.pb-hond .video-thumb{
    height: 190px;
    aspect-ratio: auto;
    max-height: none;
    border-radius:var(--r);
  }
}

/* --------------------------------------------------------------------------
   Responsive — tablet only (768px – 1024px)
   -------------------------------------------------------------------------- */

@media (min-width: 768px) and (max-width: 1024px) {
  .pb-main.pb-hond > .section{
    max-width: 940px;
  }
  .pb-main.pb-hond .photo-swipe{
    display: grid !important;
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
    overflow: visible !important;
    padding: 0 18px 10px !important;
  }
  .pb-main.pb-hond .photo-swipe img{
    width: 100% !important;
    height: 240px !important;
    border-radius: var(--r-md);
    flex: none !important;
  }
}

/* --------------------------------------------------------------------------
   Responsive — mobile (max-width: 767px)
   -------------------------------------------------------------------------- */

@media (max-width: 767px) {
  .pb-main.pb-hond .photo-swipe{
    display: flex !important;
    grid-template-columns: none;
    gap: 10px;
    overflow-x: auto !important;
    padding: 0 18px 10px !important;
    scroll-snap-type: x mandatory;
  }
  .pb-main.pb-hond .photo-swipe img{
    flex: 0 0 74% !important;
    width: auto !important;
    height: 190px !important;
    border-radius:var(--r);
  }
}
