/* =========================================================
   PolysRock — Cat profile pages
   Titan One visual language, shared with index-titan.html.
   Depends on tokens.css + styles.css; this layer only adds
   the profile-specific blocks (hero, quick facts, parents,
   genetics, health, note, others rail, language toggle).
   ========================================================= */

/* ---------- Sub-page nav additions ---------- */
.nav__actions {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-left: auto;
  flex-wrap: wrap;
  justify-content: flex-end;
}
.subback {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-family: var(--ff-display-fat);
  font-weight: 400;
  font-size: clamp(18px, 1.7vw, 24px);
  line-height: 1;
  letter-spacing: -0.005em;
  text-transform: lowercase;
  color: var(--pr-orange-900);
  background: var(--pr-paper);
  border: 2px solid var(--pr-orange-900);
  border-radius: var(--r-pill);
  padding: 11px 22px;
  box-shadow: var(--sh-3);
  transition: background .2s ease, transform .15s ease;
  white-space: nowrap;
}
.subback:hover { background: var(--pr-orange-200); transform: translateX(-2px); }
.subback .arrow { font-size: 20px; line-height: 1; }

.langtoggle {
  display: inline-flex;
  align-items: center;
  background: var(--pr-paper);
  border: 2px solid var(--pr-orange-900);
  border-radius: var(--r-pill);
  padding: 4px;
  box-shadow: var(--sh-3);
}
.langtoggle button {
  border: 0;
  background: none;
  cursor: pointer;
  font-family: var(--ff-bold);
  font-weight: 700;
  font-size: 16px;
  letter-spacing: 0.06em;
  color: var(--pr-orange-900);
  padding: 11px 18px;
  border-radius: var(--r-pill);
  transition: background .2s ease, color .2s ease;
}
.langtoggle button.is-on { background: var(--pr-orange-900); color: var(--pr-orange-300); }

/* ---------- Profile hero ---------- */
.profile-hero {
  margin-top: 30px;
  display: grid;
  grid-template-columns: 0.92fr 1.08fr;
  gap: clamp(24px, 4vw, 64px);
  align-items: start;
}
.profile-hero__copy { min-width: 0; }
.profile-hero__name { overflow-wrap: anywhere; }
@media (max-width: 900px) { .profile-hero { grid-template-columns: 1fr; } .profile-hero__photo { position: relative; top: 0; aspect-ratio: 3 / 4; } }

.profile-hero__photo {
  position: sticky;
  top: 96px;
  border-radius: var(--r-xl);
  overflow: hidden;
  border: 3px solid var(--pr-orange-900);
  background: var(--pr-orange-200);
  box-shadow: 0 30px 60px -28px rgba(176, 56, 28, 0.5);
  aspect-ratio: 3 / 4;
}
.profile-hero__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  display: block;
}
.profile-hero__photo .tagrow {
  position: absolute;
  top: 16px;
  left: 16px;
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  z-index: 3;
}

/* ---------- Photo slider (hero) ---------- */
.slider { position: absolute; inset: 0; }
.slider__track {
  position: absolute;
  inset: 0;
  height: 100%;
}
.slider__slide {
  position: absolute;
  inset: 0;
  height: 100%;
  opacity: 0;
  transition: opacity .7s ease;
}
.slider__slide.is-on { opacity: 1; z-index: 1; }
@media (prefers-reduced-motion: reduce) { .slider__slide { transition: none; } }
.slider__slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  display: block;
}
.slider__arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  border: 2px solid var(--pr-orange-900);
  background: color-mix(in srgb, var(--pr-paper) 88%, transparent);
  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);
  color: var(--pr-orange-900);
  font-family: var(--ff-display-fat);
  font-size: 26px;
  line-height: 1;
  cursor: pointer;
  z-index: 3;
  transition: background .2s ease, transform .15s ease, opacity .2s ease;
}
.slider__arrow:hover { background: var(--pr-orange-900); color: var(--pr-orange-300); }
.slider__arrow:active { transform: translateY(-50%) scale(.92); }
.slider__arrow--prev { left: 14px; }
.slider__arrow--next { right: 14px; }
.slider__dots {
  position: absolute;
  left: 0; right: 0; bottom: 16px;
  display: flex;
  justify-content: center;
  gap: 9px;
  z-index: 3;
}
.slider__dot {
  width: 10px; height: 10px;
  border-radius: 50%;
  border: 2px solid var(--pr-paper);
  background: transparent;
  padding: 0;
  cursor: pointer;
  box-shadow: 0 1px 4px rgba(0,0,0,.35);
  transition: background .2s ease, transform .2s ease;
}
.slider__dot.is-on { background: var(--pr-paper); transform: scale(1.15); }
@media (hover: none) {
  .slider__arrow { width: 40px; height: 40px; font-size: 22px; }
}

.profile-hero__copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 18px;
  padding: clamp(8px, 2vw, 24px) 0;
}
.profile-hero__name {
  font-family: var(--ff-display-fat);
  font-weight: 400;
  font-size: clamp(60px, 9vw, 128px);
  line-height: 0.82;
  letter-spacing: -0.02em;
  text-transform: lowercase;
  color: var(--pr-orange-900);
  margin: 0;
}
.profile-hero__name::first-letter { text-transform: uppercase; }
.profile-hero__formal {
  font-family: var(--ff-bold);
  font-size: clamp(16px, 1.6vw, 21px);
  line-height: 1.3;
  color: var(--pr-rose);
}
.profile-hero__bio {
  font-size: clamp(16px, 1.35vw, 19px);
  line-height: 1.6;
  color: var(--pr-ink-700);
  margin: 0;
  max-width: 46ch;
}
.profile-hero__quick {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 4px;
}
.qfact {
  background: var(--pr-paper);
  border: 1.5px solid var(--pr-orange-900);
  border-radius: var(--r-md);
  padding: 10px 16px;
}
.qfact__label {
  font-family: var(--ff-bold);
  font-size: 10.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--pr-orange-700);
  margin-bottom: 2px;
}
.qfact__value {
  font-family: var(--ff-bold);
  font-size: 15px;
  color: var(--pr-ink-900);
}
.qfact--wide { flex: 1 1 100%; }

/* Proud-moment badge inside the hero copy column */
.hero-proud {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 6px;
  padding: 14px 18px;
  border: 2px solid var(--pr-orange-900);
  border-radius: var(--r-lg);
  background: var(--pr-orange-700);
  color: var(--pr-paper);
}
.hero-proud__medal {
  flex-shrink: 0;
  width: 46px; height: 46px;
  border-radius: 50%;
  background: var(--pr-yellow-500, #FFD23F);
  border: 2.5px solid var(--pr-paper);
  display: grid; place-items: center;
  font-size: 23px;
}
.hero-proud__label {
  font-family: var(--ff-bold);
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--pr-orange-100);
  margin-bottom: 2px;
}
.hero-proud__text {
  font-family: var(--ff-display-fat);
  font-weight: 400;
  font-size: clamp(17px, 1.7vw, 21px);
  line-height: 1.04;
  letter-spacing: -0.01em;
  text-transform: lowercase;
  margin: 0;
}
.hero-proud__text::first-letter { text-transform: uppercase; }

/* Soft note variant (e.g. a housemate who was never bred) */
.hero-proud--soft {
  background: var(--pr-cream);
  border-color: var(--pr-orange-900);
}
.hero-proud--soft .hero-proud__label { color: var(--pr-rose); }
.hero-proud--soft .hero-proud__text {
  color: var(--pr-ink-900);
  font-family: var(--ff-italic);
  font-style: italic;
  text-transform: none;
  font-size: clamp(14px, 1.4vw, 17px);
  line-height: 1.45;
}
.hero-proud--soft .hero-proud__text::first-letter { text-transform: none; }
.hero-proud__medal--heart {
  background: var(--pr-rose);
  color: var(--pr-paper);
  font-size: 22px;
}

/* Shared small heading for frameless meta blocks (health, loves) */
.meta-h {
  font-family: var(--ff-display-fat);
  font-weight: 400;
  font-size: 20px;
  line-height: 1;
  letter-spacing: -0.01em;
  text-transform: lowercase;
  color: var(--pr-orange-900);
  margin: 0 0 8px;
}
.meta-h::first-letter { text-transform: uppercase; }
.meta-h--ink { color: var(--pr-ink-900); }
.meta-h--rose { color: var(--pr-rose); }

/* Details + health as two separate cards side by side */
.factbox {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(14px, 2vw, 22px);
  margin: 6px 0 2px;
}
@media (max-width: 600px) { .factbox { grid-template-columns: 1fr; gap: 14px; } }

.factcard {
  padding: clamp(16px, 2.2vw, 24px) clamp(18px, 2.4vw, 26px);
  border: 1.5px solid var(--pr-orange-500);
  border-radius: var(--r-lg);
  min-width: 0;
}
.factcard--white { background: var(--pr-paper); }
.factcard--cream { background: var(--pr-cream); }

/* Frameless spec sheet (born / colour / ems / registry / sire / dam) */
.specs {
  margin: 0;
  padding: 0;
}
.spec {
  display: flex;
  align-items: baseline;
  gap: 10px;
  padding: 8px 0;
  border-bottom: 1px solid color-mix(in srgb, var(--pr-ink-900) 12%, transparent);
}
.spec:last-child { border-bottom: 0; }
.spec__k {
  /* matches .hline__test (HCM Echo): same colour & weight/size */
  font-family: var(--ff-bold);
  font-weight: 700;
  font-size: 16px;
  letter-spacing: 0;
  text-transform: none;
  color: var(--pr-ink-900);
  flex-shrink: 0;
  min-width: 92px;
}
.spec__v {
  font-family: var(--ff-bold);
  font-weight: 700;
  font-size: 15px;
  color: var(--pr-cocoa);
  text-align: left;
  margin: 0;
}

/* Frameless health list */
.healthlist { margin: 0; }
.hline {
  display: grid;
  grid-template-columns: 92px 102px auto;
  align-items: baseline;
  gap: 16px;
  padding: 8px 0;
  border-bottom: 1px solid color-mix(in srgb, var(--pr-ink-900) 12%, transparent);
}
.hline:last-child { border-bottom: 0; }
.hline__test {
  font-family: var(--ff-bold);
  font-weight: 700;
  font-size: 16px;
  color: var(--pr-ink-900);
}
.hline__year {
  font-family: var(--ff-bold);
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.03em;
  color: var(--pr-orange-700);
  white-space: nowrap;
}
.hline__status {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-family: var(--ff-bold);
  font-weight: 700;
  font-size: 14px;
  white-space: nowrap;
  justify-content: flex-start;
}
.hline__status .dot { width: 9px; height: 9px; border-radius: 50%; flex-shrink: 0; }
.hline--ok .hline__status { color: #2f6b34; }
.hline--ok .hline__status .dot { background: #3a8f42; }
.hline--pending .hline__status { color: var(--pr-orange-900); }
.hline--pending .hline__status .dot { background: var(--pr-orange-700); }
.hline--alert .hline__status { color: var(--pr-rose); }
.hline--alert .hline__status .dot { background: var(--pr-rose); }
@media (max-width: 480px) {
  .hline { grid-template-columns: 1fr auto; row-gap: 2px; }
  .hline__year { grid-column: 1; }
}

/* Frameless little-loves block inside the hero copy column */
.hero-loves {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(14px, 2vw, 22px);
  margin-top: 4px;
}
@media (max-width: 520px) { .hero-loves { grid-template-columns: 1fr; gap: 14px; } }
.hloves {
  padding: clamp(16px, 2.2vw, 24px) clamp(18px, 2.4vw, 26px);
  border: 1.5px solid var(--pr-orange-500);
  border-radius: var(--r-lg);
}
.hloves--food { background: var(--pr-orange-200); }
.hloves--play { background: var(--pr-orange-100); }
.hloves__list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 7px; }
.hloves__list li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--ff-bold);
  font-size: 15px;
  color: var(--pr-ink-900);
}
.hloves__rank {
  flex-shrink: 0;
  font-family: var(--ff-display-fat);
  font-weight: 400;
  font-size: 18px;
  line-height: 1;
  color: var(--pr-orange-700);
  width: 16px;
}
.hloves__bullet { flex-shrink: 0; color: var(--pr-rose); font-size: 13px; }


/* ---------- Generic profile section ---------- */
.profile-section { padding-top: clamp(48px, 7vw, 96px); }
.profile-section__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  margin-bottom: clamp(22px, 3vw, 40px);
}
.profile-h2 {
  font-family: var(--ff-display-fat);
  font-weight: 400;
  font-size: clamp(36px, 5vw, 68px);
  line-height: 0.9;
  letter-spacing: -0.015em;
  text-transform: lowercase;
  color: var(--pr-orange-900);
  margin: 0;
}
.profile-h2::first-letter { text-transform: uppercase; }
.profile-h2 .rose { color: var(--pr-rose); }
.profile-h2 .orange { color: var(--pr-orange-700); }

/* ---------- Parents / pedigree ---------- */
.parents {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}
@media (max-width: 720px) { .parents { grid-template-columns: 1fr; } }
.parent {
  position: relative;
  padding: 26px 28px;
  border: 2px solid var(--pr-orange-900);
  border-radius: var(--r-xl);
  background: var(--pr-paper);
  box-shadow: 0 14px 26px -20px rgba(125, 30, 24, 0.45);
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.parent--cream { background: var(--pr-cream); }
.parent__role {
  font-family: var(--ff-bold);
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--pr-orange-900);
}
.parent__name {
  font-family: var(--ff-display-fat);
  font-weight: 400;
  font-size: clamp(26px, 2.6vw, 38px);
  line-height: 0.98;
  letter-spacing: -0.01em;
  color: var(--pr-orange-900);
  margin: 4px 0 0;
}
.parent__link {
  margin-top: 8px;
  font-family: var(--ff-bold);
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--pr-rose);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  align-self: flex-start;
}
.parent__link span { transition: transform .2s ease; }
.parent__link:hover span { transform: translateX(3px); }

.pedigree-link {
  margin-top: 18px;
  display: inline-flex;
}

/* ---------- Heart-tree (pedigree, links to PawPeds) ---------- */
.htree {
  display: block;
  text-decoration: none;
  color: inherit;
  border: 2px solid var(--pr-orange-900);
  border-radius: var(--r-xl);
  background: var(--pr-paper);
  padding: clamp(22px, 3vw, 38px);
  box-shadow: 0 14px 30px -24px rgba(125, 30, 24, 0.45);
  transition: transform .3s cubic-bezier(.2,.7,.2,1), box-shadow .3s ease;
}
.htree:hover {
  transform: translateY(-4px);
  box-shadow: 0 28px 50px -26px rgba(176, 56, 28, 0.5);
}
.htree__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: clamp(20px, 3vw, 32px);
}
.htree__title {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: var(--ff-display-fat);
  font-weight: 400;
  font-size: clamp(26px, 3vw, 40px);
  line-height: 0.95;
  letter-spacing: -0.015em;
  text-transform: lowercase;
  color: var(--pr-orange-900);
  margin: 0;
}
.htree__title::first-letter { text-transform: uppercase; }
.htree__heart { color: var(--pr-rose); font-size: 0.85em; line-height: 1; }
.htree__hint {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--ff-bold);
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--pr-rose);
}
.htree__hint .arrow { transition: transform .2s ease; }
.htree:hover .htree__hint .arrow { transform: translateX(4px); }

.htree__grid {
  display: grid;
  grid-template-columns: 1.25fr 1fr 1fr;
  gap: clamp(14px, 2vw, 26px);
  align-items: stretch;
}
.htree__gen {
  display: flex;
  flex-direction: column;
  justify-content: space-around;
  gap: 12px;
  position: relative;
}
/* generation header */
.htree__genlabel {
  position: absolute;
  top: -26px;
  left: 0;
  font-family: var(--ff-bold);
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--pr-ink-500);
}

.htree__node {
  position: relative;
  border: 1.5px solid var(--pr-orange-900);
  border-radius: var(--r-md);
  background: var(--pr-cream);
  padding: 12px 14px;
}
.htree__node--self {
  background: var(--pr-orange-700);
  border-color: var(--pr-orange-900);
}
.htree__node--self .htree__name { color: var(--pr-paper); }
.htree__node--self .htree__role { color: var(--pr-orange-100); }
.htree__node--sire { background: var(--pr-paper); }
.htree__node--empty {
  background: transparent;
  border-style: dashed;
  border-color: var(--pr-orange-300);
}
.htree__role {
  font-family: var(--ff-bold);
  font-size: 9.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--pr-orange-700);
  margin-bottom: 3px;
}
.htree__name {
  font-family: var(--ff-bold);
  font-size: clamp(12px, 1.1vw, 14px);
  line-height: 1.2;
  color: var(--pr-ink-900);
}
.htree__node--empty .htree__name { color: var(--pr-orange-300); font-style: italic; }

/* connector stubs: each node in gen2/gen3 draws a short line to its left */
.htree__gen--2 .htree__node::before,
.htree__gen--3 .htree__node::before {
  content: "";
  position: absolute;
  top: 50%;
  left: calc(-1 * clamp(14px, 2vw, 26px) / 2 - 1px);
  width: calc(clamp(14px, 2vw, 26px) / 2);
  height: 2px;
  background: var(--pr-orange-300);
}
/* vertical rail grouping each generation's nodes */
.htree__gen--2::before,
.htree__gen--3::before {
  content: "";
  position: absolute;
  top: 12%;
  bottom: 12%;
  left: calc(-1 * clamp(14px, 2vw, 26px) / 2 - 1px);
  width: 2px;
  background: var(--pr-orange-300);
}

@media (max-width: 720px) {
  .htree__grid { grid-template-columns: 1fr; gap: 10px; }
  .htree__genlabel { position: static; display: block; margin-bottom: 6px; }
  .htree__gen { gap: 8px; }
  .htree__gen--2 .htree__node::before,
  .htree__gen--3 .htree__node::before,
  .htree__gen--2::before,
  .htree__gen--3::before { display: none; }
  .htree__gen--2, .htree__gen--3 { margin-top: 14px; }
}

/* ---------- Genetics stat tiles (reuses .stats / .stat) ---------- */
.genetics-stats { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 720px) { .genetics-stats { grid-template-columns: 1fr; } }
.stat__sub {
  font-family: var(--ff-bold);
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  opacity: 0.7;
  margin-top: 4px;
}

/* ---------- Pedigree (compact: heart-tree links to PawPeds + inline stats) ---------- */
.profile-section--tight { padding-top: clamp(32px, 4.5vw, 60px); }

.pedigree {
  display: flex;
  align-items: center;
  gap: clamp(16px, 2.5vw, 28px);
  border: 1.5px solid var(--pr-orange-300);
  border-radius: var(--r-lg);
  background: var(--pr-cream);
  padding: clamp(16px, 2vw, 22px);
  height: 152px;
}
@media (max-width: 680px) { .pedigree { flex-direction: column; height: auto; } }

.hearttree {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-shrink: 0;
  text-decoration: none;
  padding-right: clamp(16px, 2.5vw, 28px);
  border-right: 1.5px dashed var(--pr-orange-300);
  overflow: visible;
}
@media (max-width: 680px) { .hearttree { border-right: 0; border-bottom: 1.5px dashed var(--pr-orange-300); padding-right: 0; padding-bottom: 16px; } }

.ht-img {
  width: clamp(120px, 15vw, 168px);
  height: auto;
  display: block;
  transition: transform .4s cubic-bezier(.2,.7,.2,1);
}
.hearttree:hover .ht-img { transform: scale(1.06) rotate(-2deg); }

.hearttree__hint {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-family: var(--ff-bold);
  font-size: 13px;
  line-height: 1.3;
  letter-spacing: 0.02em;
  color: var(--pr-rose);
  max-width: 15ch;
}
.hearttree__hint .arrow { transition: transform .2s ease; }
.hearttree:hover .hearttree__hint .arrow { transform: translateX(4px); }

.pedigree__stats {
  display: flex;
  flex: 1;
  align-items: center;
  justify-content: space-around;
  gap: 12px;
  flex-wrap: wrap;
}
.pstat { display: flex; flex-direction: column; gap: 2px; }
.pstat__num {
  font-family: var(--ff-display-fat);
  font-weight: 400;
  font-size: clamp(26px, 3vw, 38px);
  line-height: 1;
  letter-spacing: -0.01em;
  color: var(--pr-orange-900);
}
.pstat__label {
  font-family: var(--ff-bold);
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--pr-ink-500);
}

/* ---------- Health (single framed list / opsomming) ---------- */
.healthbox {
  border: 1.5px solid var(--pr-orange-900);
  border-radius: var(--r-lg);
  background: var(--pr-paper);
  overflow: hidden;
}
/* Hero variant — sits in the copy column between facts and little loves */
.healthbox--hero { margin-top: 2px; }
.healthbox__head {
  font-family: var(--ff-display-fat);
  font-weight: 400;
  font-size: 22px;
  line-height: 1;
  letter-spacing: -0.01em;
  text-transform: lowercase;
  color: var(--pr-orange-900);
  padding: 13px clamp(16px, 2.2vw, 22px) 12px;
  border-bottom: 1.5px solid var(--pr-orange-300);
  background: var(--pr-cream);
}
.healthbox__head::first-letter { text-transform: uppercase; }

.healthbox__grid {
  display: grid;
  grid-template-columns: 1fr;
}
.hitem {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 13px clamp(16px, 2.2vw, 22px);
  border-bottom: 1px solid var(--pr-orange-200);
}
.hitem:last-child { border-bottom: 0; }

.hitem__main { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.hitem__test {
  font-family: var(--ff-bold);
  font-weight: 700;
  font-size: 16px;
  line-height: 1.1;
  color: var(--pr-ink-900);
}
.hitem__year {
  font-family: var(--ff-bold);
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.04em;
  color: var(--pr-orange-700);
}
.hitem__status {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-family: var(--ff-bold);
  font-weight: 700;
  font-size: 14px;
  white-space: nowrap;
  flex-shrink: 0;
}
.hitem__status .dot { width: 9px; height: 9px; border-radius: 50%; flex-shrink: 0; }
.hitem--ok .hitem__status { color: #2f6b34; }
.hitem--ok .hitem__status .dot { background: #3a8f42; }
.hitem--pending .hitem__status { color: var(--pr-orange-900); }
.hitem--pending .hitem__status .dot { background: var(--pr-orange-700); }
.hitem--alert { background: color-mix(in srgb, var(--pr-rose) 7%, var(--pr-paper)); }
.hitem--alert .hitem__status { color: var(--pr-rose); }
.hitem--alert .hitem__status .dot { background: var(--pr-rose); }

@media (max-width: 540px) {
  .hitem { padding: 12px 16px; }
}

/* Standalone (non-hero) framed list, kept for reuse */
.healthbox__row {
  display: grid;
  grid-template-columns: 1fr auto auto;
  align-items: center;
  gap: 16px;
  padding: 13px clamp(16px, 2.2vw, 24px);
  border-bottom: 1px solid var(--pr-orange-200);
}
.healthbox__row:last-child { border-bottom: 0; }
.healthbox__test { font-family: var(--ff-bold); font-size: 15px; color: var(--pr-ink-900); }
.healthbox__when { font-family: var(--ff-bold); font-size: 13px; color: var(--pr-orange-700); text-align: right; }
.healthbox__status {
  display: inline-flex; align-items: center; gap: 7px;
  font-family: var(--ff-bold); font-size: 14px; white-space: nowrap;
  min-width: 92px; justify-content: flex-end;
}
.healthbox__status .dot { width: 9px; height: 9px; border-radius: 50%; flex-shrink: 0; }
.healthbox__status--ok { color: #2f6b34; }
.healthbox__status--ok .dot { background: #3a8f42; }
.healthbox__status--pending { color: var(--pr-orange-900); }
.healthbox__status--pending .dot { background: var(--pr-orange-700); }
.healthbox__status--alert { color: var(--pr-rose); }
.healthbox__status--alert .dot { background: var(--pr-rose); }


/* ---------- Little loves (personality) ---------- */
.loves {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}
@media (max-width: 640px) { .loves { grid-template-columns: 1fr; } }
.love {
  border: 2px solid var(--pr-orange-900);
  border-radius: var(--r-xl);
  background: var(--pr-paper);
  padding: clamp(22px, 3vw, 32px);
  box-shadow: 0 14px 30px -24px rgba(125, 30, 24, 0.45);
}
.love--cream { background: var(--pr-cream); }
.love__title {
  font-family: var(--ff-display-fat);
  font-weight: 400;
  font-size: clamp(24px, 2.4vw, 34px);
  line-height: 0.95;
  letter-spacing: -0.015em;
  text-transform: lowercase;
  color: var(--pr-orange-900);
  margin: 0 0 16px;
}
.love__title::first-letter { text-transform: uppercase; }
.love__list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.love__list li {
  display: flex;
  align-items: center;
  gap: 14px;
  font-family: var(--ff-bold);
  font-size: clamp(16px, 1.5vw, 19px);
  color: var(--pr-ink-900);
}
.love__rank {
  flex-shrink: 0;
  font-family: var(--ff-display-fat);
  font-weight: 400;
  font-size: 26px;
  line-height: 1;
  color: var(--pr-orange-700);
  width: 30px;
}
.love__bullet { flex-shrink: 0; color: var(--pr-rose); font-size: 16px; }

/* ---------- Achievement note ---------- */
.achieve {
  display: flex;
  align-items: center;
  gap: clamp(18px, 3vw, 32px);
  border: 2px solid var(--pr-orange-900);
  border-radius: var(--r-xl);
  background: var(--pr-orange-700);
  color: var(--pr-paper);
  padding: clamp(22px, 3vw, 36px);
  flex-wrap: wrap;
}
.achieve__medal {
  flex-shrink: 0;
  width: 76px; height: 76px;
  border-radius: 50%;
  background: var(--pr-yellow-500, #FFD23F);
  border: 3px solid var(--pr-paper);
  display: grid;
  place-items: center;
  font-size: 38px;
  box-shadow: 0 8px 20px -8px rgba(0,0,0,.4);
}
.achieve__body { flex: 1 1 280px; }
.achieve__label {
  font-family: var(--ff-bold);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--pr-orange-100);
  margin-bottom: 6px;
}
.achieve__text {
  font-family: var(--ff-display-fat);
  font-weight: 400;
  font-size: clamp(22px, 2.6vw, 34px);
  line-height: 1.02;
  letter-spacing: -0.01em;
  text-transform: lowercase;
  margin: 0;
}
.achieve__text::first-letter { text-transform: uppercase; }

/* ---------- Health (compact status grid) ---------- */
.healthgrid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 12px;
}
.hcard {
  border: 1.5px solid var(--pr-orange-900);
  border-radius: var(--r-md);
  background: var(--pr-paper);
  padding: 14px 16px 13px;
}
.hcard__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
.hcard__test {
  font-family: var(--ff-bold);
  font-size: 13px;
  letter-spacing: 0.02em;
  color: var(--pr-ink-900);
}
.hcard__dot { width: 9px; height: 9px; border-radius: 50%; flex-shrink: 0; }
.hcard__status {
  font-family: var(--ff-display-fat);
  font-weight: 400;
  font-size: 20px;
  line-height: 1;
  letter-spacing: -0.01em;
  text-transform: lowercase;
  margin-top: 9px;
}
.hcard__status::first-letter { text-transform: uppercase; }
.hcard__when {
  font-family: var(--ff-body);
  font-size: 11.5px;
  color: var(--pr-ink-500);
  margin-top: 4px;
}
.hcard--ok .hcard__dot { background: #3a8f42; }
.hcard--ok .hcard__status { color: #2f6b34; }
.hcard--pending .hcard__dot { background: var(--pr-orange-700); }
.hcard--pending .hcard__status { color: var(--pr-orange-900); }
.hcard--alert { border-color: var(--pr-rose); background: color-mix(in srgb, var(--pr-rose) 7%, var(--pr-paper)); }
.hcard--alert .hcard__dot { background: var(--pr-rose); }
.hcard--alert .hcard__status { color: var(--pr-rose); }

/* ---------- Note callout (reuses story__quote idea) ---------- */
.profile-note {
  margin-top: 22px;
  padding: 26px 30px 26px 34px;
  background: var(--pr-cream);
  border: 2px solid var(--pr-orange-900);
  border-radius: var(--r-lg);
  position: relative;
}
.profile-note__label {
  font-family: var(--ff-bold);
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--pr-rose);
  margin-bottom: 8px;
}
.profile-note p {
  font-family: var(--ff-italic);
  font-style: italic;
  font-size: clamp(16px, 1.5vw, 20px);
  line-height: 1.5;
  color: var(--pr-ink-900);
  margin: 0;
  max-width: 60ch;
}

/* ---------- "Meet the others" rail ---------- */
.others {
  margin-top: clamp(20px, 3vw, 36px);
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
@media (max-width: 880px) { .others { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 460px) { .others { grid-template-columns: 1fr; } }
.othercard {
  display: flex;
  flex-direction: column;
  gap: 0;
  border: 2px solid var(--pr-orange-900);
  border-radius: var(--r-lg);
  background: var(--pr-paper);
  padding: 12px 12px 14px;
  box-shadow: var(--sh-1);
  transition: transform .3s cubic-bezier(.2,.7,.2,1), box-shadow .3s ease;
}
.othercard:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 40px -18px rgba(176, 56, 28, 0.4);
}
.othercard__photo {
  aspect-ratio: 4 / 4.4;
  border-radius: var(--r-md);
  overflow: hidden;
  background: var(--pr-orange-200);
}
.othercard__photo img { width: 100%; height: 100%; object-fit: contain; object-position: center; transition: transform .6s ease; }
.othercard:hover .othercard__photo img { transform: scale(1.04); }
.othercard__name {
  font-family: var(--ff-display-fat);
  font-weight: 400;
  font-size: 28px;
  line-height: 1;
  letter-spacing: -0.01em;
  color: var(--pr-orange-900);
  margin: 12px 0 0;
}
.othercard__meta {
  font-family: var(--ff-bold);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--pr-ink-500);
  margin-top: 3px;
}

/* Section spacing helper for the in-page rhythm */
.profile-lead {
  max-width: 52ch;
  font-size: clamp(15px, 1.3vw, 18px);
  line-height: 1.6;
  color: var(--pr-ink-700);
  margin: 0 0 6px;
}

/* =========================================================
   Profile hero — v2 layout
   Slider + food/play stacked on the left; on the right a
   2-col info grid: Details + Health, and heart-tree + genetics.
   ========================================================= */
.profile-hero--v2 { align-items: stretch; }
.profile-hero--v2 .profile-hero__media {
  display: flex;
  flex-direction: column;
  gap: clamp(14px, 2vw, 22px);
  height: 100%;
}
.profile-hero--v2 .profile-hero__photo {
  position: relative;
  top: 0;
  flex: 0 0 auto;
  aspect-ratio: 3 / 4;
}
.profile-hero--v2 .hero-loves {
  flex: 1 1 auto;
  align-items: stretch;
}
.profile-hero--v2 .hloves {
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.profile-hero--v2 .hero-loves { margin-top: 0; }

/* Narrow cards: align spec value with the year column of the health box below
   (health hline = 92px + 16px gap, so values start at the same 108px offset) */
.profile-hero--v2 .spec {
  display: grid;
  grid-template-columns: 92px auto;
  align-items: baseline;
  gap: 16px;
}
.profile-hero--v2 .spec__k { min-width: 0; color: var(--pr-orange-700); }

/* Right-hand info grid: 2×2 — Details + heart-tree on row 1, Health + genetics on row 2.
   margin-top:auto pushes the grid to the bottom of the copy column so its bottom
   edge lines up with the food/play boxes in the media column. */
.infogrid {
  display: grid;
  grid-template-columns: 1.12fr 0.88fr;
  gap: clamp(14px, 2vw, 22px);
  margin-top: 8px;
  align-items: start;
}
.profile-hero--v2 .infogrid { margin-top: 8px; }
/* Bottom row of the info grid (health + genetics) sits flush at the grid's
   bottom edge, so the health box doesn't float above the genetics blocks. */
.profile-hero--v2 .infogrid > .factcard--cream { align-self: end; }
/* Easy has no health block. Keep the heart-tree as prominent as on the other
   cats (top-right, full height of the details box) and run the genetics blocks
   as a single row across the bottom so there's no empty cell. */
.infogrid--nohealth { align-items: start; }
.infogrid--nohealth > .factcard--white { grid-column: 1; grid-row: 1; }
.infogrid--nohealth > .pedcard { grid-column: 2; grid-row: 1; align-self: stretch; }
.infogrid--nohealth > .genblocks {
  grid-column: 1 / -1;
  grid-row: 2;
  flex-direction: row;
  align-self: auto;
}
.infogrid--nohealth > .genblocks > .genblock { flex: 1 1 0; }

/* Easy: everything (intro, info-grid, food/play) stacks in the right column
   beside the slider. The column matches the slider height and the food/play
   boxes are pushed to the bottom so their bottom edge lines up with the
   slider's bottom edge. */
.profile-hero--loves-below { align-items: stretch; }
.profile-hero--loves-below .profile-hero__copy { justify-content: flex-start; }
.profile-hero--loves-below .hero-loves { flex: 0 0 auto; margin-top: auto; padding-top: clamp(14px, 2vw, 22px); }
.profile-hero--loves-below .hloves { justify-content: flex-start; }
/* Bottom-align the whole right column so the text block drops down with its
   normal gap above the Details box, and the info grid still lines up with the
   food/play boxes opposite it. */
.profile-hero--v2 .profile-hero__copy {
  justify-content: flex-end;
  padding-bottom: 0;
}
@media (max-width: 760px) { .infogrid { grid-template-columns: 1fr; } }

/* Mobile-only portrait that sits between the intro and the info grid */
.hero-portrait-mobile { display: none; }

/* Mobile stacking order (v2):
   1 slider · 2 name + intro · 3 portrait · 4 the rest · 5 food + play */
@media (max-width: 900px) {
  .profile-hero--v2 {
    display: flex;
    flex-direction: column;
    gap: 18px;
  }
  .profile-hero--v2 .profile-hero__media,
  .profile-hero--v2 .profile-hero__copy { display: contents; }

  .profile-hero--v2 .profile-hero__photo { order: 1; }
  .profile-hero--v2 .eyebrow,
  .profile-hero--v2 .profile-hero__name,
  .profile-hero--v2 .profile-hero__formal,
  .profile-hero--v2 .profile-hero__bio { order: 2; }
  .profile-hero--v2 .hero-portrait-mobile {
    order: 3;
    display: block;
    width: 100%;
    aspect-ratio: 3 / 4;
    object-fit: cover;
    border-radius: var(--r-lg);
    border: 1.5px solid var(--pr-orange-300);
  }
  .profile-hero--v2 .infogrid { order: 4; margin-top: 0; }
  .profile-hero--v2 .hero-loves { order: 5; }
}

/* Heart-tree card (sits next to Details) — frameless, centred in its row */
.pedcard {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
  text-align: center;
  text-decoration: none;
  background: transparent;
  border: 0;
  padding: 0;
  align-self: stretch;
  min-height: 0;
}
.pedcard .ht-img {
  flex: 1 1 0;
  min-height: 0;
  width: 100%;
  max-width: 280px;
  height: auto;
  object-fit: contain;
  object-position: center bottom;
}
.pedcard:hover .ht-img { transform: scale(1.05) rotate(-2deg); }
.pedcard .hearttree__hint { max-width: none; justify-content: center; }

/* Genetics blocks (below the heart-tree) */
.genblocks {
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-self: end;
}
.genblock {
  display: flex;
  flex-direction: column;
  gap: 2px;
  align-items: flex-start;
  text-align: left;
  border: 1.5px solid var(--pr-orange-500);
  border-radius: var(--r-lg);
  background: var(--pr-paper);
  padding: 12px 16px;
}
.genblock__num {
  font-family: var(--ff-display-fat, "Titan One"), Arial, sans-serif;
  font-size: clamp(22px, 2.4vw, 28px);
  line-height: 1;
  color: var(--pr-orange-700);
}
.genblock__label {
  font-family: var(--ff-bold);
  font-weight: 700;
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--pr-ink-500);
  line-height: 1.3;
}
