.dog-profile { --profile-anchor-offset: 56px; --profile-header-fallback: 96px; }
.dog-profile section[id] { scroll-margin-block-start: calc(var(--legacy-header,var(--profile-header-fallback)) + var(--profile-anchor-offset)); }
.dog-profile .profile-section-nav {
  position: sticky;
  top: var(--legacy-header,var(--profile-header-fallback));
  z-index: 30;
  background: rgba(248,246,241,.96);
  backdrop-filter: blur(8px);
  border-block: 1px solid #E1D9CB;
}
.dog-profile .profile-section-nav a:hover,
.dog-profile .profile-section-nav a:focus-visible { color: #2D4DB5; }
.dog-profile .profile-section-nav a { font-weight: 500; }
.dog-profile .profile-section-nav a:focus-visible { outline-offset: -3px; }
.dog-profile :is(a, summary):focus-visible, .profile-lightbox button:focus-visible {
  outline: 2px solid #2D4DB5;
  outline-offset: 3px;
}
.dog-profile a[data-profile-hover]:hover { color: #2D4DB5; border-color: currentColor; }
.dog-profile #dog-litters a:hover { background: #fff; }
.dog-profile .profile-image { display: block; color: inherit; text-decoration: none; cursor: zoom-in; }
.dog-profile .profile-print-tilted {
  transform: rotate(var(--print-tilt,0deg));
  transition: transform .3s cubic-bezier(.2,0,0,1);
}
.dog-profile .profile-print-tilted:hover { transform: rotate(0deg) translateY(-4px); }
.dog-profile .profile-print-mat { padding: clamp(4px,1.35%,7px); background: #FCFBF8; }
.dog-profile .profile-certificate { width: 100%; max-width: 520px; justify-self: center; }
.profile-document-frame, .profile-lightbox[data-document] .gal-frame {
  background: linear-gradient(135deg,#cdb48c,#b39468 40%,#c9ae84 60%,#a8895e);
  box-shadow: 0 18px 34px -14px rgba(56,45,34,.4);
}
.profile-document-frame { display: block; padding: 8px; }
.profile-document-frame img { display: block; width: 100%; height: auto; }
[data-document-crop] {
  --document-display-ratio: var(--document-ratio);
  --document-display-width: var(--document-width);
  position: relative;
  display: block;
  aspect-ratio: var(--document-display-ratio);
  overflow: hidden;
  background: var(--document-paper-fill,#FCFBF8);
}
[data-document-crop] img {
  position: absolute;
  inset: 0 auto auto 0;
  width: var(--document-display-width);
  max-width: none;
  height: auto;
  transform: translate(var(--document-x), var(--document-y));
  clip-path: var(--document-paper-edge,none);
}

@supports (container-type: inline-size) and (transform: scale(tan(atan2(1px, 1px)))) {
  [data-document-crop] {
    container-type: inline-size;
    --document-display-ratio: var(--document-square-ratio);
    --document-display-width: var(--document-source-width);
  }
  [data-document-crop] img {
    transform-origin: top left;
    transform: var(--document-square-transform);
    clip-path: none;
  }
}


.profile-lightbox {
  width: min(92vw,820px);
  max-width: none;
  max-height: 95dvh;
  margin: auto;
  padding: 0;
  overflow-y: auto;
  border: 0;
  color: #fff;
  background: transparent;
}
.profile-lightbox::backdrop { background: rgba(22,27,34,.86); }
.profile-lightbox figure { margin: 0; }
.profile-lightbox-mat { padding: clamp(10px,2vw,20px); background: #FCFBF8; }
.profile-lightbox img { display: block; width: 100%; max-height: 72dvh; object-fit: contain; }
.profile-lightbox[data-document] { width: min(98vw,820px); }
.profile-lightbox[data-document] .profile-lightbox-mat { padding: clamp(3px,1vw,8px); }
.profile-lightbox [data-document-crop] {
  max-width: calc(72dvh * var(--document-display-ratio));
  margin-inline: auto;
}
.profile-lightbox [data-document-crop] img { width: var(--document-display-width); max-height: none; }

.profile-lightbox figcaption {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: start;
  gap: 10px;
  padding: 14px 8px 8px;
  font: 400 13px/1.5 'IBM Plex Mono',monospace;
}
.profile-lightbox button {
  min-height: 44px;
  padding: 6px 12px;
  border: 1px solid rgba(255,255,255,.5);
  border-radius: 6px;
  color: inherit;
  background: transparent;
  font: inherit;
  cursor: pointer;
}
.profile-lightbox button:focus-visible { outline-color: #fff; }
@media (max-width: 1100px) {
  .dog-profile { --profile-header-fallback: 80px; }
}
@media (max-height: 480px) {
  .dog-profile { --profile-anchor-offset: 8px; }
  .dog-profile .profile-section-nav { position: static; }
}
@media (prefers-reduced-motion: reduce) {
  .dog-profile .profile-image { transition: none; }
}

.profile-name-period { color: #000; }

.dog-profile #certified-pedigree { scroll-margin-block-start: calc(var(--legacy-header, var(--profile-header-fallback)) + var(--profile-anchor-offset)); }
.profile-health { display: grid; gap: clamp(32px, 4.5vw, 58px); }
.profile-health-eyebrow, .profile-chic span, .profile-ofa-results h4 {
  color: #78604A;
  font: 500 12px/1.4 'IBM Plex Mono', monospace;
  letter-spacing: .12em;
  text-transform: uppercase;
}
.profile-health-eyebrow { margin: 0 0 18px; }
.profile-health-intro h2 {
  margin: 0;
  font-size: clamp(34px, 4.2vw, 56px);
  font-weight: 600;
  line-height: 1.05;
  letter-spacing: -.035em;
}
.profile-health-intro h2 em { color: #2D4DB5; font-family: 'Instrument Serif', serif; font-weight: 400; }
.profile-health-summary { max-width: 66ch; margin: 20px 0 10px; line-height: 1.7; color: #3A4048; }
.profile-health .cta-inline, .phase2-return .cta-inline { gap: 8px; color: #091B4D; font-weight: 600; }
.profile-health-contact {
  max-width: 66ch;
  margin: 0;
  padding: 24px 26px;
  background: #fff;
  border: 1px dashed #CFC7B9;
  border-radius: 4px 14px 5px 12px;
  line-height: 1.65;
}

.profile-ofa { padding-top: clamp(24px, 3vw, 36px); border-top: 2px solid #161B22; }
.profile-ofa > h3 { margin: 0; font-size: clamp(24px, 3vw, 34px); line-height: 1.1; }
.profile-ofa > p { margin: 8px 0 0; color: #3A4048; }
.profile-chic {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px clamp(18px, 3vw, 42px);
  margin-top: 22px;
  padding: 12px clamp(14px, 2vw, 24px);
  background: #fff;
  border: 1px solid #DDD6CA;
}
.profile-chic p { margin: 0; color: #3A4048; }
.profile-chic p:first-child { display: flex; align-items: baseline; gap: 10px; }
.profile-chic strong { color: #161B22; font: 500 20px/1.4 'IBM Plex Mono', monospace; }
.profile-ofa-results { margin: 22px 0 0; padding: 0; list-style: none; border-top: 1px solid #DDD6CA; }
.profile-ofa-results li { padding: 18px 0; border-bottom: 1px solid #DDD6CA; }
.profile-ofa-results h4 { margin: 0; letter-spacing: .06em; }
.profile-ofa-finding p { margin: 4px 0 0; }
.profile-ofa-results dl {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px 16px;
  margin: 12px 0 0;
  font-size: 15px;
}
.profile-ofa-results dt { color: #5A5F68; }
.profile-ofa-results dd { margin: 2px 0 0; overflow-wrap: anywhere; }
.profile-ofa-source { padding-top: 14px; }
.profile-ofa-source .cta-inline > [aria-hidden] { font-family: system-ui, sans-serif; }
.profile-ofa-source p { max-width: 66ch; margin: 4px 0 0; font-size: 15px; line-height: 1.65; color: #3A4048; }

@media (min-width: 700px) {
  .profile-ofa-results dl { grid-template-columns: repeat(3, minmax(0, 1fr)) minmax(160px, 1.25fr); }
  .profile-ofa-number { grid-column: 4; }
}
@media (min-width: 940px) {
  .profile-ofa-results li { display: grid; grid-template-columns: minmax(175px, 1fr) minmax(0, 3.3fr); gap: 24px; }
  .profile-ofa-results dl { margin: 0; }
}

.profile-album-group { margin-top: 12px; border-bottom: 1px solid #DDD6CA; }
.profile-album-group:first-of-type { margin-top: 24px; border-top: 1px solid #DDD6CA; }
.profile-album-group summary {
  padding: 12px 4px; cursor: pointer; color: #091B4D; font-weight: 600;
}
.profile-album-group summary span { margin-inline-start: 6px; color: #78604A; font: 500 11px/1 'IBM Plex Mono', monospace; }
.profile-album-prints {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 158px), 1fr));
  gap: clamp(12px, 2vw, 24px); align-items: start; list-style: none; margin: 4px 0 12px; padding: 0;
}
.profile-album-document { display: grid; gap: 14px; max-width: 460px; padding-bottom: 18px; }
.profile-album-document p { margin: 0; color: #3A4048; }
