:root {
  color-scheme: light;
  --ink: #3f2c27;
  --ink-soft: #6f5d55;
  --muted: #97867c;
  --cream: #fbf6ef;
  --cream-deep: #f3e9df;
  --paper: #fffdf9;
  --cocoa: #7a5a49;
  --cocoa-deep: #5b4035;
  --champagne: #c9a56d;
  --rose: #dfb9aa;
  --sage: #8b967d;
  --line: rgba(106, 75, 61, 0.16);
  --line-strong: rgba(106, 75, 61, 0.28);
  --shadow-soft: 0 22px 70px rgba(72, 49, 38, 0.08);
  --shadow-lifted: 0 28px 90px rgba(72, 49, 38, 0.14);
  --serif:
    "Songti SC", "STSong", "Noto Serif SC", "Source Han Serif SC", Georgia,
    serif;
  --sans:
    -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei",
    sans-serif;
  --header-height: 76px;
}

[hidden] {
  display: none !important;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-height) + 18px);
}

body {
  min-width: 320px;
  margin: 0;
  background:
    radial-gradient(
      circle at 6% 8%,
      rgba(226, 190, 173, 0.22),
      transparent 23rem
    ),
    radial-gradient(
      circle at 96% 22%,
      rgba(210, 183, 137, 0.14),
      transparent 25rem
    ),
    var(--cream);
  color: var(--ink);
  font-family: var(--sans);
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

body::before {
  position: fixed;
  z-index: -1;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140' viewBox='0 0 140 140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.025'/%3E%3C/svg%3E");
  content: "";
  pointer-events: none;
}

button,
input,
select {
  font: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

button {
  color: inherit;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  display: block;
  max-width: 100%;
}

button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible {
  outline: 3px solid rgba(122, 90, 73, 0.28);
  outline-offset: 3px;
}

.skip-link {
  position: fixed;
  z-index: 200;
  top: 12px;
  left: 12px;
  padding: 10px 14px;
  transform: translateY(-150%);
  border-radius: 999px;
  background: var(--ink);
  color: #fff;
}

.skip-link:focus {
  transform: translateY(0);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
  white-space: nowrap;
}

.desktop-only {
  display: none;
}

.site-header {
  position: sticky;
  z-index: 80;
  top: 0;
  display: flex;
  min-height: var(--header-height);
  padding: 12px max(18px, env(safe-area-inset-left));
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  border-bottom: 1px solid rgba(113, 83, 69, 0.1);
  background: rgba(255, 253, 249, 0.84);
  box-shadow: 0 10px 40px rgba(66, 43, 34, 0.04);
  backdrop-filter: blur(20px) saturate(1.08);
}

.preview-banner {
  position: relative;
  z-index: 12;
  display: flex;
  min-height: 52px;
  padding: 11px max(18px, env(safe-area-inset-left));
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 4px 12px;
  border-bottom: 1px solid rgba(154, 102, 44, 0.2);
  background: #fff1dc;
  color: #6f4825;
  text-align: center;
}

.preview-banner[hidden] {
  display: none;
}

.preview-banner strong {
  font-size: 13px;
}

.preview-banner span {
  font-size: 11px;
  line-height: 1.5;
}

.brand {
  display: inline-flex;
  min-width: 0;
  align-items: center;
  gap: 11px;
}

.brand-mark {
  display: inline-block;
  width: 46px;
  height: 46px;
  flex: 0 0 auto;
  overflow: hidden;
  border: 0;
  border-radius: 50%;
  background: transparent;
  box-shadow: none;
}

.brand-mark img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.brand-copy {
  display: grid;
  min-width: 0;
  gap: 1px;
}

.brand-copy strong {
  overflow: hidden;
  font-family: var(--serif);
  font-size: 15px;
  font-weight: 700;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.brand-copy small {
  color: var(--muted);
  font-size: 10px;
  letter-spacing: 0.08em;
}

.header-actions {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 7px;
}

.site-nav-more {
  position: relative;
}

.site-nav-more > summary {
  list-style: none;
}

.site-nav-more > summary::-webkit-details-marker {
  display: none;
}

.site-nav-more[open] > summary {
  border-color: var(--line);
  background: rgba(255, 255, 255, 0.9);
}

.site-nav-menu {
  position: absolute;
  z-index: 90;
  top: calc(100% + 10px);
  right: 0;
  display: grid;
  width: max-content;
  min-width: 210px;
  padding: 10px;
  gap: 3px;
  border: 1px solid rgba(113, 83, 69, 0.14);
  border-radius: 18px;
  background: rgba(255, 253, 249, 0.98);
  box-shadow: 0 18px 55px rgba(66, 43, 34, 0.16);
  backdrop-filter: blur(20px);
}

.site-nav-menu a,
.site-nav-menu button {
  display: flex;
  min-height: 42px;
  padding: 9px 12px;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  border: 0;
  border-radius: 12px;
  background: transparent;
  color: var(--ink);
  font: inherit;
  text-align: left;
  cursor: pointer;
}

.site-nav-menu a:hover,
.site-nav-menu button:hover {
  background: #f5ece3;
}

.site-nav-menu b {
  display: grid;
  min-width: 20px;
  height: 20px;
  padding: 0 6px;
  place-items: center;
  border-radius: 999px;
  background: var(--cocoa);
  color: white;
  font-size: 10px;
}

.quiet-button,
.header-contact {
  display: inline-flex;
  min-width: 42px;
  height: 42px;
  padding: 0 11px;
  align-items: center;
  justify-content: center;
  gap: 6px;
  border: 1px solid transparent;
  border-radius: 999px;
  background: transparent;
  cursor: pointer;
}

.quiet-button:hover {
  border-color: var(--line);
  background: rgba(255, 255, 255, 0.72);
}

.quiet-button > span:first-child {
  font-size: 21px;
  line-height: 1;
}

.quiet-button b {
  display: grid;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  place-items: center;
  border-radius: 999px;
  background: var(--cocoa);
  color: white;
  font-size: 10px;
  font-weight: 600;
}

.header-contact {
  padding: 0 18px;
  background: var(--cocoa);
  color: white;
  font-weight: 600;
}

.header-contact:link,
.header-contact:visited {
  background: var(--cocoa);
  color: white;
}

@media (hover: hover) {
  .header-contact:hover {
    border-color: transparent;
    background: #66463a;
    color: white;
  }
}

.header-contact:active {
  background: #56392f;
  color: white;
}

.eyebrow {
  display: inline-block;
  color: #9d7852;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.catalog-hero {
  position: relative;
  display: grid;
  min-height: calc(100svh - var(--header-height));
  padding: 54px 20px 72px;
  overflow: hidden;
  align-items: center;
  gap: 46px;
}

.catalog-hero::after {
  position: absolute;
  right: -18%;
  bottom: -8%;
  width: 70%;
  height: 45%;
  transform: rotate(-8deg);
  border-radius: 50%;
  background: radial-gradient(
    ellipse,
    rgba(225, 191, 176, 0.35),
    transparent 68%
  );
  content: "";
  filter: blur(8px);
  pointer-events: none;
}

.home-nursery-entry {
  width: min(1240px, calc(100% - 36px));
  margin: clamp(34px, 5vw, 68px) auto;
}

.home-nursery-card {
  position: relative;
  display: grid;
  min-height: 500px;
  padding: clamp(30px, 5vw, 68px);
  overflow: hidden;
  align-items: center;
  gap: clamp(30px, 5vw, 70px);
  border: 1px solid rgba(123, 94, 74, 0.14);
  border-radius: clamp(30px, 5vw, 58px) clamp(30px, 5vw, 58px) clamp(30px, 5vw, 58px) 18px;
  background:
    radial-gradient(circle at 16% 16%, rgba(255, 255, 255, 0.9), transparent 30%),
    radial-gradient(circle at 88% 18%, rgba(221, 188, 159, 0.48), transparent 27%),
    linear-gradient(135deg, #f3e6db 0%, #fffaf3 48%, #e9e5d2 100%);
  box-shadow: 0 28px 80px rgba(76, 53, 42, 0.1);
  color: var(--ink);
  text-decoration: none;
  isolation: isolate;
}

.home-nursery-card::before,
.home-nursery-card::after {
  position: absolute;
  z-index: -1;
  border: 1px solid rgba(150, 111, 80, 0.13);
  border-radius: 50%;
  content: "";
  pointer-events: none;
}

.home-nursery-card::before {
  right: -13%;
  bottom: -46%;
  width: 58%;
  aspect-ratio: 1;
}

.home-nursery-card::after {
  top: -24%;
  left: 35%;
  width: 34%;
  aspect-ratio: 1;
}

.home-nursery-copy {
  position: relative;
  z-index: 2;
  max-width: 570px;
}

.home-nursery-copy h2 {
  margin: 12px 0 18px;
  font-family: var(--serif);
  font-size: clamp(42px, 6vw, 66px);
  font-weight: 500;
  letter-spacing: -0.045em;
  line-height: 1.04;
}

.home-nursery-copy > p {
  max-width: 30em;
  margin: 0;
  color: var(--ink-soft);
  font-size: clamp(15px, 1.8vw, 18px);
  line-height: 1.85;
}

.home-nursery-meta {
  display: flex;
  margin-top: 30px;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px 24px;
}

.home-nursery-meta > span {
  color: #7e6b60;
  font-size: 13px;
}

.home-nursery-meta strong {
  display: inline-flex;
  min-height: 48px;
  padding: 0 20px;
  align-items: center;
  gap: 10px;
  border-radius: 999px;
  background: var(--cocoa);
  color: white;
  font-size: 14px;
  font-weight: 650;
  box-shadow: 0 13px 30px rgba(91, 60, 44, 0.18);
}

.home-nursery-meta strong span {
  font-size: 18px;
  transition: transform 180ms ease;
}

.home-nursery-gallery {
  display: grid;
  width: 100%;
  max-width: 610px;
  aspect-ratio: 1.14;
  grid-template-columns: minmax(0, 1.12fr) minmax(0, 0.78fr);
  grid-template-rows: repeat(2, minmax(0, 1fr));
  gap: clamp(10px, 1.5vw, 18px);
  justify-self: center;
}

.home-nursery-portrait {
  position: relative;
  min-width: 0;
  min-height: 0;
  margin: 0;
  overflow: hidden;
  border: 5px solid rgba(255, 253, 248, 0.78);
  background: #eadccf;
  box-shadow: 0 20px 48px rgba(75, 51, 40, 0.14);
}

.home-nursery-portrait:first-child {
  grid-row: 1 / 3;
  border-radius: 999px 999px 34px 34px;
}

.home-nursery-portrait:nth-child(2) {
  border-radius: 999px 999px 24px 24px;
}

.home-nursery-portrait:nth-child(3) {
  border-radius: 24px 24px 999px 999px;
}

.home-nursery-portrait .image-shell,
.home-nursery-portrait img {
  width: 100%;
  height: 100%;
}

.home-nursery-portrait img {
  display: block;
  object-fit: cover;
  transition: transform 600ms cubic-bezier(0.2, 0.65, 0.3, 1);
}

.home-nursery-portrait .photo-fallback {
  height: 100%;
}

.home-nursery-portrait figcaption {
  position: absolute;
  right: 12px;
  bottom: 12px;
  left: 12px;
  padding: 9px 12px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.52);
  border-radius: 999px;
  background: rgba(255, 250, 244, 0.82);
  color: #5e4539;
  font-family: var(--serif);
  font-size: 13px;
  font-weight: 600;
  text-align: center;
  text-overflow: ellipsis;
  white-space: nowrap;
  backdrop-filter: blur(10px);
}

.home-nursery-empty-mark {
  display: grid;
  grid-column: 1 / -1;
  grid-row: 1 / -1;
  place-items: center;
  border: 1px solid rgba(123, 94, 74, 0.15);
  border-radius: 999px 999px 36px 36px;
  background: rgba(255, 253, 248, 0.48);
  color: #876858;
  font-family: var(--serif);
  font-size: clamp(54px, 8vw, 96px);
  line-height: 0.72;
  text-align: center;
}

.home-nursery-empty-mark small {
  font-family: var(--sans);
  font-size: 10px;
  letter-spacing: 0.22em;
}

@media (hover: hover) {
  .home-nursery-card {
    transition:
      transform 220ms ease,
      box-shadow 220ms ease;
  }

  .home-nursery-card:hover {
    box-shadow: 0 34px 92px rgba(76, 53, 42, 0.15);
    transform: translateY(-3px);
  }

  .home-nursery-card:hover .home-nursery-portrait img {
    transform: scale(1.035);
  }

  .home-nursery-card:hover .home-nursery-meta strong span {
    transform: translateX(4px);
  }
}

.home-breeding-entry {
  position: relative;
  display: grid;
  width: min(1180px, calc(100% - 36px));
  margin: clamp(36px, 6vw, 76px) auto;
  padding: clamp(28px, 5vw, 64px);
  overflow: hidden;
  align-items: center;
  gap: 28px;
  border: 1px solid rgba(150, 111, 80, 0.15);
  border-radius: clamp(26px, 4vw, 44px);
  background:
    radial-gradient(circle at 84% 22%, rgba(238, 202, 157, 0.32), transparent 34%),
    linear-gradient(135deg, #fffaf3, #f8eee3);
  box-shadow: 0 24px 70px rgba(91, 61, 43, 0.08);
}

.home-breeding-entry[hidden] {
  display: none;
}

.home-breeding-copy {
  position: relative;
  z-index: 2;
}

.home-breeding-copy h2 {
  margin: 10px 0 14px;
  font-family: var(--serif);
  font-size: clamp(38px, 7vw, 72px);
  font-weight: 500;
  line-height: 1.04;
}

.home-breeding-copy p {
  max-width: 520px;
  margin: 0;
  color: var(--muted);
  font-size: clamp(15px, 2vw, 18px);
  line-height: 1.8;
}

.home-breeding-actions {
  display: flex;
  margin-top: 24px;
  align-items: center;
  flex-wrap: wrap;
  gap: 14px;
}

.home-breeding-actions > span {
  color: #8a6d5d;
  font-size: 13px;
}

.home-breeding-artwork {
  margin: 0;
  overflow: hidden;
  border: 6px solid rgba(255, 255, 255, 0.72);
  border-radius: 28px;
  background: #fff8ec;
  box-shadow: 0 18px 50px rgba(104, 72, 51, 0.13);
}

.home-breeding-artwork img {
  display: block;
  width: 100%;
  height: auto;
}

.hero-orbit {
  position: absolute;
  border: 1px solid rgba(186, 143, 84, 0.35);
  border-radius: 50%;
  pointer-events: none;
}

.hero-orbit-one {
  top: 8%;
  right: -34%;
  width: 84vw;
  height: 84vw;
}

.hero-orbit-two {
  right: -10%;
  bottom: 13%;
  width: 43vw;
  height: 43vw;
}

.hero-copy {
  position: relative;
  z-index: 2;
  max-width: 650px;
}

.hero-copy h1 {
  max-width: 8em;
  margin: 18px 0 24px;
  font-family: var(--serif);
  font-size: clamp(45px, 14vw, 84px);
  font-weight: 500;
  letter-spacing: -0.055em;
  line-height: 1.08;
}

.hero-copy > p {
  max-width: 34em;
  margin: 0;
  color: var(--ink-soft);
  font-size: 16px;
  line-height: 1.9;
}

.hero-actions {
  display: flex;
  margin-top: 34px;
  align-items: center;
  flex-wrap: wrap;
  gap: 13px 22px;
}

.primary-link,
.primary-button,
.secondary-button,
.text-action,
.square-button,
.icon-button,
.reset-link {
  border: 0;
  cursor: pointer;
}

.primary-link,
.primary-button,
.secondary-button {
  display: inline-flex;
  min-height: 48px;
  padding: 0 20px;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  font-weight: 650;
  transition:
    transform 160ms ease,
    box-shadow 160ms ease,
    background 160ms ease;
}

.primary-link,
.primary-button {
  background: linear-gradient(140deg, #85614f, #66463a);
  box-shadow: 0 14px 30px rgba(91, 60, 44, 0.18);
  color: white;
}

.primary-link:link,
.primary-link:visited,
.primary-button:link,
.primary-button:visited {
  background: linear-gradient(140deg, #85614f, #66463a);
  color: white;
}

.primary-link:hover,
.primary-button:hover {
  transform: translateY(-1px);
  box-shadow: 0 18px 35px rgba(91, 60, 44, 0.24);
}

.primary-link:active,
.primary-button:active {
  background: linear-gradient(140deg, #765443, #56392f);
  color: white;
  transform: translateY(0);
}

.primary-button.compact {
  min-height: 40px;
  padding: 0 16px;
  font-size: 13px;
}

.secondary-button {
  border: 1px solid var(--line-strong);
  background: rgba(255, 253, 249, 0.7);
  color: var(--cocoa-deep);
}

.secondary-button:hover {
  background: white;
  transform: translateY(-1px);
}

.text-action {
  padding: 10px 3px;
  background: transparent;
  color: var(--ink-soft);
  font-size: 13px;
}

.text-action span {
  padding-bottom: 2px;
  border-bottom: 1px solid var(--champagne);
  color: var(--ink);
  font-weight: 600;
}

.hero-gallery {
  position: relative;
  z-index: 1;
  display: grid;
  max-width: 550px;
  min-height: 470px;
  margin: 0 auto;
  align-items: end;
}

.hero-photo {
  margin: 0;
}

.hero-photo-main {
  width: 78%;
  margin-left: auto;
}

.hero-photo-main .image-shell {
  aspect-ratio: 4 / 5;
  border-radius: 48% 48% 22px 22px;
  box-shadow: var(--shadow-lifted);
}

.hero-photo-main figcaption {
  margin-top: 12px;
  color: var(--muted);
  font-family: var(--serif);
  font-size: 12px;
  text-align: right;
}

.hero-photo-side {
  position: absolute;
  left: 0;
  bottom: 13%;
  width: 39%;
}

.hero-photo-side .image-shell {
  aspect-ratio: 1;
  border: 7px solid rgba(255, 253, 249, 0.9);
  border-radius: 50%;
  box-shadow: 0 18px 55px rgba(74, 48, 36, 0.16);
}

.hero-seal {
  position: absolute;
  right: 1%;
  bottom: 16%;
  display: grid;
  width: 74px;
  height: 74px;
  place-content: center;
  border: 1px solid rgba(173, 127, 75, 0.45);
  border-radius: 50%;
  background: rgba(252, 246, 238, 0.86);
  color: var(--cocoa);
  font-family: var(--serif);
  font-size: 23px;
  line-height: 1;
  text-align: center;
  backdrop-filter: blur(10px);
}

.hero-seal small {
  font-family: var(--sans);
  font-size: 7px;
  letter-spacing: 0.1em;
}

.image-shell {
  position: relative;
  overflow: hidden;
  background:
    linear-gradient(
      145deg,
      rgba(228, 203, 185, 0.62),
      rgba(246, 238, 228, 0.92)
    ),
    var(--cream-deep);
}

.cat-photo-media {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: var(--photo-focus-x, 50%) var(--photo-focus-y, 50%);
}

.cat-photo-media.fit-contain {
  object-fit: contain;
  background: #efe8e0;
}

.photo-fallback {
  position: absolute;
  inset: 0;
  display: grid;
  padding: 20px;
  place-content: center;
  background:
    radial-gradient(
      circle at 28% 20%,
      rgba(255, 255, 255, 0.68),
      transparent 30%
    ),
    radial-gradient(
      circle at 78% 82%,
      rgba(219, 178, 159, 0.28),
      transparent 40%
    ),
    linear-gradient(145deg, #eee2d6, #faf5ee);
  color: rgba(86, 60, 49, 0.74);
  text-align: center;
}

.photo-fallback::before {
  display: grid;
  width: 66px;
  height: 66px;
  margin: 0 auto 12px;
  place-items: center;
  border: 1px solid rgba(122, 90, 73, 0.28);
  border-radius: 50%;
  content: "BC";
  font-family: var(--serif);
  font-size: 22px;
}

.photo-fallback strong,
.photo-fallback small {
  display: block;
}

.photo-fallback strong {
  font-family: var(--serif);
  font-size: 16px;
}

.photo-fallback small {
  margin-top: 5px;
  color: var(--muted);
  font-size: 10px;
  letter-spacing: 0.06em;
}

.catalog-section,
.recommendation-section,
.trust-strip,
.contact-panel,
.more-cats,
.profile-section,
.parents-section,
.detail-video-section,
.narrative-grid,
.story-intro {
  width: min(1240px, calc(100% - 36px));
  margin-inline: auto;
}

.catalog-section {
  padding: 76px 0 48px;
}

.recommendation-section {
  padding: 68px 0 10px;
}

body.is-selection-page .catalog-hero {
  display: none;
}

body.is-selection-page .recommendation-section {
  padding-top: clamp(64px, 8vw, 112px);
}

.recommendation-heading {
  max-width: 720px;
  margin-bottom: 28px;
}

.recommendation-heading > span {
  color: var(--cocoa);
  font-size: 12px;
  font-weight: 650;
  letter-spacing: 0.12em;
}

.recommendation-heading h2 {
  margin: 9px 0 10px;
  font-family: var(--serif);
  font-size: clamp(32px, 7vw, 50px);
  font-weight: 500;
  letter-spacing: -0.035em;
}

.recommendation-heading p {
  margin: 0;
  color: var(--ink-soft);
  line-height: 1.8;
}

.recommendation-grid {
  padding: 24px;
  border: 1px solid rgba(173, 127, 75, 0.24);
  border-radius: 28px;
  background:
    radial-gradient(
      circle at 92% 8%,
      rgba(232, 201, 168, 0.22),
      transparent 34%
    ),
    rgba(255, 253, 249, 0.82);
  box-shadow: var(--shadow-soft);
}

.recommendation-intent {
  display: grid;
  margin-top: 24px;
  padding: clamp(22px, 4vw, 34px);
  gap: 24px;
  border: 1px solid rgba(122, 90, 73, 0.2);
  border-radius: 28px;
  background: #fffdf9;
  box-shadow: var(--shadow-soft);
}

.recommendation-intent[hidden] {
  display: none;
}

.recommendation-intent-head {
  display: grid;
  grid-template-columns: minmax(220px, 0.7fr) minmax(280px, 1fr);
  align-items: end;
  gap: 28px;
}

.recommendation-intent-head span {
  color: var(--cocoa);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.1em;
}

.recommendation-intent-head h3 {
  margin: 6px 0 0;
  color: var(--ink);
  font-family: var(--serif);
  font-size: clamp(24px, 4vw, 34px);
  font-weight: 520;
}

.recommendation-intent-head p,
.recommendation-intent-submit p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 13px;
  line-height: 1.75;
}

.recommendation-intent.is-intent-sent .recommendation-intent-submit p,
.recommendation-intent.is-intent-error .recommendation-intent-submit p {
  padding: 12px 16px;
  border-radius: 14px;
  font-size: 15px;
  font-weight: 700;
}

.recommendation-intent.is-intent-sent .recommendation-intent-submit p {
  color: #3f6e46;
  background: #edf7ec;
  border: 1px solid #b9d8b8;
}

.recommendation-intent.is-intent-error .recommendation-intent-submit p {
  color: #9a483c;
  background: #fff1ee;
  border: 1px solid #e6b8af;
}

.recommendation-intent-slots {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.recommendation-intent-slots label {
  display: grid;
  gap: 9px;
}

.recommendation-intent-slots b {
  color: var(--ink);
  font-size: 13px;
}

.recommendation-intent-slots em,
.recommendation-intent-slots small {
  margin-left: 6px;
  font-size: 10px;
  font-style: normal;
  font-weight: 600;
}

.recommendation-intent-slots em {
  color: #a24f3f;
}

.recommendation-intent-slots small {
  color: var(--ink-faint);
}

.recommendation-intent-slots select {
  width: 100%;
  min-height: 48px;
  padding: 0 42px 0 14px;
  border: 1px solid rgba(122, 90, 73, 0.22);
  border-radius: 14px;
  background: #fff;
  color: var(--ink);
  font: inherit;
}

.recommendation-intent-slots select:focus {
  border-color: var(--cocoa);
  outline: 3px solid rgba(122, 90, 73, 0.11);
}

.recommendation-intent-submit {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.recommendation-intent-submit button {
  flex: 0 0 auto;
  min-height: 46px;
  padding: 0 24px;
  border: 0;
  border-radius: 999px;
  background: var(--cocoa-deep);
  color: #fff;
  cursor: pointer;
  font: inherit;
  font-weight: 700;
}

.recommendation-intent-submit button:disabled {
  cursor: wait;
  opacity: 0.62;
}

@media (max-width: 760px) {
  .recommendation-intent-head,
  .recommendation-intent-slots {
    grid-template-columns: 1fr;
  }

  .recommendation-intent-submit {
    align-items: stretch;
    flex-direction: column;
  }

  .recommendation-intent-submit button {
    width: 100%;
  }
}

.section-heading {
  display: grid;
  gap: 18px;
  margin-bottom: 32px;
}

.unavailable-interest {
  margin-top: 30px;
  padding-top: 26px;
  border-top: 1px solid rgba(122, 90, 73, 0.18);
}

.unavailable-interest .section-heading p {
  max-width: 720px;
  margin: 8px 0 0;
  color: var(--ink-soft);
  line-height: 1.7;
}

.section-heading h2,
.contact-panel h2,
.story-intro h2,
.dialog-head h2 {
  margin: 10px 0 0;
  font-family: var(--serif);
  font-size: clamp(31px, 8vw, 52px);
  font-weight: 500;
  letter-spacing: -0.035em;
  line-height: 1.2;
}

.section-heading > p,
.contact-panel p,
.dialog-head p {
  max-width: 40em;
  margin: 0;
  color: var(--ink-soft);
  line-height: 1.8;
}

.catalog-toolbar {
  display: grid;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: rgba(255, 253, 249, 0.75);
  box-shadow: var(--shadow-soft);
  gap: 12px;
  backdrop-filter: blur(16px);
}

.search-field {
  display: flex;
  min-height: 50px;
  padding: 0 16px;
  align-items: center;
  gap: 10px;
  border-radius: 15px;
  background: rgba(243, 235, 228, 0.72);
}

.search-field svg {
  width: 21px;
  height: 21px;
  fill: none;
  stroke: var(--muted);
  stroke-linecap: round;
  stroke-width: 1.6;
}

.search-field input {
  min-width: 0;
  width: 100%;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--ink);
}

.search-field input::placeholder {
  color: #a8988f;
}

.filter-chips {
  display: grid;
  padding: 4px;
  border-radius: 15px;
  background: rgba(243, 235, 228, 0.72);
  grid-template-columns: repeat(3, 1fr);
  gap: 3px;
}

.filter-chip {
  min-height: 42px;
  border: 0;
  border-radius: 12px;
  background: transparent;
  color: var(--ink-soft);
  cursor: pointer;
}

.filter-chip.is-active {
  background: var(--paper);
  box-shadow: 0 6px 18px rgba(72, 49, 38, 0.08);
  color: var(--ink);
  font-weight: 650;
}

.select-field {
  display: grid;
  gap: 5px;
}

.select-field span {
  padding-left: 3px;
  color: var(--muted);
  font-size: 10px;
  letter-spacing: 0.08em;
}

.select-field select {
  min-height: 48px;
  width: 100%;
  padding: 0 37px 0 13px;
  border: 1px solid var(--line);
  border-radius: 13px;
  outline: 0;
  background: rgba(255, 255, 255, 0.78);
  color: var(--ink);
}

.catalog-summary {
  display: flex;
  margin: 22px 2px;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  color: var(--muted);
  font-size: 12px;
}

.catalog-summary-actions,
.catalog-view-switch {
  display: flex;
  align-items: center;
  gap: 8px;
}

.catalog-view-switch {
  min-width: 0;
  margin: 0;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 253, 249, 0.56);
}

.catalog-view-switch button {
  min-height: 36px;
  padding: 0 14px;
  border-radius: 999px;
  background: transparent;
  color: var(--muted);
  font-size: 12px;
}

.catalog-view-switch button.is-active {
  background: var(--paper);
  box-shadow: 0 5px 16px rgba(72, 49, 38, 0.09);
  color: var(--ink);
  font-weight: 650;
}

.reset-link {
  padding: 8px 2px;
  background: transparent;
  color: var(--cocoa);
  font-size: 12px;
}

.cat-grid {
  display: grid;
  gap: 28px;
}

.litter-groups {
  display: grid;
  gap: 58px;
}

.catalog-flat-grid {
  align-items: start;
}

.catalog-pagination {
  display: flex;
  margin-top: 54px;
  align-items: center;
  justify-content: center;
  gap: 16px;
}

.catalog-pagination[hidden] {
  display: none;
}

.catalog-pagination .secondary-button {
  min-width: 112px;
}

.catalog-pagination span {
  min-width: 84px;
  color: var(--muted);
  font-size: 12px;
  text-align: center;
}

.catalog-pagination button:disabled {
  cursor: not-allowed;
  opacity: 0.38;
}

@media (max-width: 639px) {
  .catalog-summary {
    align-items: flex-start;
  }

  .catalog-summary-actions {
    flex-direction: column;
    align-items: flex-end;
  }

  .catalog-view-switch button {
    min-height: 40px;
    padding-inline: 12px;
  }

  .catalog-pagination {
    gap: 10px;
  }

  .catalog-pagination .secondary-button {
    min-width: 0;
    min-height: 44px;
    padding-inline: 18px;
  }
}

.litter-group {
  min-width: 0;
  padding-top: 28px;
  border-top: 1px solid var(--line);
}

.litter-group:first-child {
  padding-top: 0;
  border-top: 0;
}

.litter-group-head {
  display: flex;
  margin-bottom: 22px;
  align-items: end;
  justify-content: space-between;
  gap: 18px;
}

.litter-group-head p {
  margin: 0 0 6px;
  color: var(--cocoa);
  font-size: 11px;
  letter-spacing: 0.08em;
}

.litter-group-head h3 {
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(25px, 7vw, 38px);
  font-weight: 500;
  letter-spacing: -0.025em;
  line-height: 1.22;
}

.litter-group-head > span {
  flex: 0 0 auto;
  padding-bottom: 4px;
  color: var(--muted);
  font-size: 12px;
}

.litter-cat-grid {
  display: grid;
  overflow-x: auto;
  margin-inline: -18px;
  padding: 4px 18px 20px;
  grid-auto-columns: minmax(min(78vw, 310px), 1fr);
  grid-auto-flow: column;
  gap: 18px;
  overscroll-behavior-inline: contain;
  scroll-padding-inline: 18px;
  scroll-snap-type: inline mandatory;
  scrollbar-width: none;
}

.litter-cat-grid::-webkit-scrollbar {
  display: none;
}

.cat-card {
  position: relative;
  min-width: 0;
}

.litter-cat-grid .cat-card {
  scroll-snap-align: start;
  scroll-snap-stop: normal;
}

.cat-card-image-link {
  position: relative;
  display: block;
  overflow: hidden;
  border-radius: 180px 180px 20px 20px;
  background: var(--cream-deep);
  box-shadow: 0 18px 55px rgba(66, 43, 34, 0.08);
  isolation: isolate;
  transform: translateZ(0);
  -webkit-mask-image: -webkit-radial-gradient(white, black);
}

.cat-card-image-link .image-shell {
  aspect-ratio: 4 / 5;
}

.cat-card-image-link img {
  transform: translateZ(0) scale(var(--photo-scale, 1));
  transform-origin: var(--photo-focus-x, 50%) var(--photo-focus-y, 50%);
  transition: transform 500ms cubic-bezier(0.2, 0.65, 0.3, 1);
  backface-visibility: hidden;
  will-change: transform;
}

.cat-card:hover .cat-card-image-link img {
  transform: translateZ(0) scale(calc(var(--photo-scale, 1) + 0.025));
}

.parent-card .cat-photo-media,
.pedigree-cat-photo .cat-photo-media,
.home-nursery-portrait .cat-photo-media {
  transform: scale(var(--photo-scale, 1));
  transform-origin: var(--photo-focus-x, 50%) var(--photo-focus-y, 50%);
}

.availability-badge {
  position: absolute;
  z-index: 2;
  top: 16px;
  left: 16px;
  display: inline-flex;
  min-height: 30px;
  padding: 0 11px;
  align-items: center;
  border: 1px solid rgba(255, 255, 255, 0.58);
  border-radius: 999px;
  background: rgba(255, 253, 249, 0.84);
  color: var(--cocoa-deep);
  font-size: 11px;
  font-weight: 650;
  backdrop-filter: blur(12px);
}

.photo-count {
  position: absolute;
  z-index: 2;
  right: 15px;
  bottom: 15px;
  display: inline-flex;
  min-height: 30px;
  padding: 0 10px;
  align-items: center;
  border-radius: 999px;
  background: rgba(50, 35, 29, 0.62);
  color: white;
  font-size: 10px;
  backdrop-filter: blur(8px);
}

.cat-card-info {
  padding: 18px 4px 0;
}

.cat-card-title-row {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 12px;
}

.cat-card h3 {
  margin: 0;
  font-family: var(--serif);
  font-size: 28px;
  font-weight: 500;
}

.cat-card-price {
  padding-top: 4px;
  color: var(--cocoa-deep);
  font-family: var(--serif);
  font-size: 17px;
  white-space: nowrap;
}

.cat-card-meta {
  margin: 5px 0 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.6;
}

.cat-card-impression {
  min-height: 3.2em;
  margin: 12px 0 0;
  color: var(--ink-soft);
  font-family: var(--serif);
  font-size: 14px;
  line-height: 1.7;
}

.cat-card-actions {
  display: flex;
  margin-top: 14px;
  align-items: center;
  gap: 8px;
}

.cat-card-actions .detail-link {
  display: inline-flex;
  min-height: 42px;
  padding: 0 16px;
  flex: 1 1 auto;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: rgba(255, 253, 249, 0.5);
  font-size: 12px;
  font-weight: 600;
}

.square-button {
  display: grid;
  width: 44px;
  height: 44px;
  flex: 0 0 auto;
  place-items: center;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  background: rgba(255, 253, 249, 0.62);
  color: var(--cocoa-deep);
  font-size: 19px;
}

.square-button.is-active {
  border-color: var(--cocoa);
  background: var(--cocoa);
  color: white;
}

.empty-state {
  padding: 66px 24px;
  border: 1px solid var(--line);
  border-radius: 28px;
  background: rgba(255, 253, 249, 0.64);
  text-align: center;
}

.empty-mark {
  display: grid;
  width: 72px;
  height: 72px;
  margin: 0 auto 18px;
  place-items: center;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  color: var(--cocoa);
  font-family: var(--serif);
  font-size: 22px;
}

.empty-state h3 {
  margin: 0;
  font-family: var(--serif);
  font-size: 24px;
}

.empty-state p {
  margin: 10px auto 23px;
  color: var(--muted);
  line-height: 1.7;
}

.trust-strip {
  display: grid;
  padding: 48px 0 64px;
  border-top: 1px solid var(--line);
  gap: 32px;
}

.trust-strip article {
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr);
  gap: 4px 14px;
}

.trust-strip article > span {
  grid-row: span 2;
  color: var(--champagne);
  font-family: var(--serif);
  font-size: 22px;
}

.trust-strip h3 {
  margin: 0;
  font-family: var(--serif);
  font-size: 20px;
  font-weight: 600;
}

.trust-strip p {
  margin: 4px 0 0;
  color: var(--ink-soft);
  font-size: 13px;
  line-height: 1.75;
}

.contact-panel {
  display: grid;
  width: min(1180px, calc(100% - 36px));
  margin-bottom: 80px;
  padding: 42px 28px;
  overflow: hidden;
  border: 1px solid rgba(166, 120, 87, 0.22);
  border-radius: 34px;
  background:
    radial-gradient(
      circle at 92% 12%,
      rgba(229, 187, 169, 0.28),
      transparent 32%
    ),
    radial-gradient(
      circle at 10% 90%,
      rgba(210, 180, 130, 0.22),
      transparent 36%
    ),
    linear-gradient(145deg, #fffaf4, #f4e9df);
  box-shadow: var(--shadow-soft);
  gap: 28px;
}

.contact-panel-copy {
  display: grid;
  min-width: 0;
  align-content: center;
  gap: 24px;
}

.wechat-qr-card {
  width: min(100%, 300px);
  margin: 0 auto;
  padding: 10px;
  border: 1px solid rgba(166, 120, 87, 0.2);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 18px 44px rgba(82, 53, 39, 0.1);
}

.wechat-qr-card a,
.wechat-qr-card img {
  display: block;
  width: 100%;
}

.wechat-qr-card img {
  height: auto;
  border-radius: 17px;
}

.wechat-qr-card figcaption {
  padding: 10px 4px 3px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.6;
  text-align: center;
}

.contact-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}

.social-profile-link span {
  margin-left: 3px;
  font-size: 14px;
}

.site-footer {
  display: grid;
  padding: 32px max(20px, env(safe-area-inset-left))
    calc(34px + env(safe-area-inset-bottom));
  border-top: 1px solid var(--line);
  background: rgba(255, 253, 249, 0.52);
  gap: 18px;
}

.site-footer p {
  margin: 0;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.6;
}

.footer-contact-links {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 7px 16px;
}

.footer-contact-links a {
  color: var(--cocoa-deep);
  font-weight: 600;
}

.footer-contact-links a:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.footer-brand .brand-mark {
  width: 40px;
  height: 40px;
  border-radius: 50%;
}

.compare-tray {
  position: fixed;
  z-index: 70;
  right: 14px;
  bottom: calc(14px + env(safe-area-inset-bottom));
  left: 14px;
  display: flex;
  min-height: 70px;
  padding: 12px 13px 12px 16px;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border: 1px solid rgba(255, 255, 255, 0.55);
  border-radius: 20px;
  background: rgba(61, 42, 34, 0.92);
  box-shadow: 0 20px 60px rgba(52, 34, 27, 0.27);
  color: white;
  backdrop-filter: blur(18px);
}

.compare-tray[hidden] {
  display: none;
}

.compare-tray > div {
  display: grid;
  min-width: 0;
  gap: 3px;
}

.compare-tray strong {
  font-size: 13px;
}

.compare-tray > div > span:last-child {
  overflow: hidden;
  color: rgba(255, 255, 255, 0.66);
  font-size: 10px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

dialog {
  padding: 0;
  border: 0;
  color: var(--ink);
}

dialog::backdrop {
  background: rgba(50, 35, 29, 0.46);
  backdrop-filter: blur(6px);
}

.sheet-dialog,
.compare-dialog {
  width: min(720px, calc(100% - 24px));
  max-height: calc(100svh - 24px);
  padding: 24px;
  overflow: auto;
  border-radius: 28px;
  background: var(--paper);
  box-shadow: var(--shadow-lifted);
}

.compare-dialog {
  width: min(1040px, calc(100% - 24px));
}

.dialog-head {
  display: flex;
  margin-bottom: 24px;
  align-items: start;
  justify-content: space-between;
  gap: 16px;
}

.dialog-head h2 {
  font-size: 32px;
}

.dialog-head p {
  margin-top: 8px;
  font-size: 12px;
}

.icon-button {
  display: grid;
  width: 42px;
  height: 42px;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 50%;
  background: rgba(122, 90, 73, 0.08);
  font-size: 25px;
}

.saved-list {
  display: grid;
  gap: 10px;
}

.saved-item {
  display: grid;
  padding: 10px;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 17px;
  grid-template-columns: 70px minmax(0, 1fr) auto;
  gap: 12px;
}

.saved-item .image-shell {
  aspect-ratio: 1;
  border-radius: 13px;
}

.saved-item h3,
.saved-item p {
  margin: 0;
}

.saved-item h3 {
  font-family: var(--serif);
  font-size: 18px;
}

.saved-item p {
  margin-top: 3px;
  color: var(--muted);
  font-size: 11px;
}

.compare-empty {
  padding: 44px 12px;
  color: var(--muted);
  text-align: center;
}

.compare-scroll {
  display: none;
  overflow-x: auto;
}

.compare-mobile-list {
  display: grid;
  gap: 14px;
}

.compare-mobile-card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.78);
}

.compare-mobile-head {
  display: grid;
  padding: 12px;
  align-items: center;
  grid-template-columns: 62px minmax(0, 1fr) auto;
  gap: 11px;
}

.compare-mobile-head .image-shell {
  width: 62px;
  aspect-ratio: 1;
  border-radius: 15px;
}

.compare-mobile-head > div {
  display: grid;
  min-width: 0;
  gap: 3px;
}

.compare-mobile-head strong,
.compare-mobile-head span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.compare-mobile-head strong {
  font-family: var(--serif);
  font-size: 20px;
}

.compare-mobile-head span {
  color: var(--muted);
  font-size: 11px;
}

.compare-mobile-head button {
  min-width: 48px;
  min-height: 44px;
  padding: 0 10px;
  border-radius: 14px;
  background: rgba(122, 90, 73, 0.08);
  color: var(--cocoa);
  font-size: 12px;
}

.compare-mobile-facts {
  margin: 0;
  border-top: 1px solid var(--line);
}

.compare-mobile-facts > div {
  display: grid;
  padding: 11px 13px;
  border-bottom: 1px solid var(--line);
  grid-template-columns: 88px minmax(0, 1fr);
  gap: 12px;
}

.compare-mobile-facts > div:last-child {
  border-bottom: 0;
}

.compare-mobile-facts dt,
.compare-mobile-facts dd {
  margin: 0;
  line-height: 1.55;
}

.compare-mobile-facts dt {
  color: var(--muted);
  font-size: 11px;
}

.compare-mobile-facts dd {
  overflow-wrap: anywhere;
  font-size: 13px;
}

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

.compare-table th,
.compare-table td {
  padding: 14px 15px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

.compare-table th:first-child,
.compare-table td:first-child {
  position: sticky;
  z-index: 2;
  left: 0;
  width: 105px;
  background: var(--paper);
  color: var(--muted);
  font-size: 11px;
}

.compare-cat-head {
  min-width: 150px;
}

.compare-cat-head .image-shell {
  width: 82px;
  aspect-ratio: 1;
  margin-bottom: 9px;
  border-radius: 16px;
}

.compare-cat-head strong {
  display: block;
  font-family: var(--serif);
  font-size: 20px;
}

.compare-cat-head button {
  margin-top: 7px;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--muted);
  font-size: 10px;
  cursor: pointer;
}

.toast {
  position: fixed;
  z-index: 210;
  right: 50%;
  bottom: calc(96px + env(safe-area-inset-bottom));
  width: max-content;
  max-width: calc(100% - 36px);
  padding: 12px 17px;
  transform: translateX(50%);
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 999px;
  background: rgba(54, 37, 30, 0.92);
  box-shadow: 0 16px 45px rgba(40, 26, 21, 0.25);
  color: white;
  font-size: 12px;
  text-align: center;
  backdrop-filter: blur(12px);
}

.toast[hidden] {
  display: none;
}

.toast:empty {
  display: none;
}

/* Detail */
.detail-hero {
  width: min(1380px, 100%);
  margin: 0 auto;
  padding: 18px 0 50px;
}

.breadcrumbs {
  display: flex;
  width: min(1240px, calc(100% - 36px));
  margin: 0 auto 18px;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  color: var(--muted);
  font-size: 11px;
}

.breadcrumbs strong {
  color: var(--ink-soft);
}

.detail-hero-grid {
  display: grid;
  gap: 28px;
}

.detail-gallery {
  min-width: 0;
}

.gallery-stage {
  position: relative;
  overflow: hidden;
  background: #e9dfd6;
}

.gallery-track {
  display: flex;
  overflow-x: auto;
  overscroll-behavior-inline: contain;
  scrollbar-width: none;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
}

.gallery-track::-webkit-scrollbar,
.gallery-thumbs::-webkit-scrollbar {
  display: none;
}

.gallery-slide {
  position: relative;
  min-width: 100%;
  aspect-ratio: 4 / 5;
  scroll-snap-align: center;
  scroll-snap-stop: always;
  background: #e9dfd6;
  padding: 0;
  border: 0;
  cursor: zoom-in;
}

.gallery-slide .image-shell {
  width: 100%;
  height: 100%;
}

.gallery-slide img {
  object-fit: cover;
  background: #e9dfd6;
}

.gallery-arrow,
.gallery-expand,
.gallery-counter {
  position: absolute;
  z-index: 3;
}

.gallery-arrow {
  top: 50%;
  display: none;
  width: 46px;
  height: 46px;
  transform: translateY(-50%);
  border: 1px solid rgba(255, 255, 255, 0.45);
  border-radius: 50%;
  background: rgba(51, 35, 29, 0.38);
  color: white;
  font-size: 31px;
  line-height: 1;
  cursor: pointer;
  backdrop-filter: blur(8px);
}

.gallery-arrow-prev {
  left: 18px;
}

.gallery-arrow-next {
  right: 18px;
}

.gallery-expand {
  right: 16px;
  bottom: 16px;
  min-height: 38px;
  padding: 0 13px;
  border: 1px solid rgba(255, 255, 255, 0.46);
  border-radius: 999px;
  background: rgba(51, 35, 29, 0.52);
  color: white;
  cursor: pointer;
  backdrop-filter: blur(9px);
}

.gallery-counter {
  top: 15px;
  right: 15px;
  padding: 8px 10px;
  border-radius: 999px;
  background: rgba(51, 35, 29, 0.46);
  color: white;
  font-size: 10px;
  backdrop-filter: blur(9px);
}

.swipe-hint {
  position: absolute;
  z-index: 2;
  bottom: 18px;
  left: 16px;
  color: rgba(255, 255, 255, 0.88);
  font-size: 10px;
  text-shadow: 0 1px 9px rgba(46, 30, 24, 0.6);
}

.gallery-thumbs {
  display: flex;
  padding: 10px 14px 0;
  overflow-x: auto;
  gap: 8px;
  scrollbar-width: none;
}

.gallery-thumb {
  width: 62px;
  height: 62px;
  padding: 0;
  overflow: hidden;
  flex: 0 0 auto;
  border: 2px solid transparent;
  border-radius: 12px;
  background: #e8dfd7;
  cursor: pointer;
  opacity: 0.64;
}

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

.gallery-thumb .image-shell {
  width: 100%;
  height: 100%;
}

.gallery-thumb .photo-fallback {
  padding: 4px;
}

.gallery-thumb .photo-fallback::before {
  width: 25px;
  height: 25px;
  margin-bottom: 0;
  font-size: 9px;
}

.gallery-thumb .photo-fallback strong,
.gallery-thumb .photo-fallback small {
  display: none;
}

.detail-summary {
  padding: 10px 20px 0;
}

.availability-pill {
  display: inline-flex;
  min-height: 30px;
  margin-right: 8px;
  padding: 0 12px;
  align-items: center;
  border-radius: 999px;
  background: rgba(139, 150, 125, 0.16);
  color: #66705c;
  font-size: 11px;
  font-weight: 650;
}

.detail-summary h1 {
  margin: 19px 0 10px;
  font-family: var(--serif);
  font-size: clamp(52px, 14vw, 86px);
  font-weight: 500;
  letter-spacing: -0.055em;
  line-height: 1;
}

.detail-impression {
  max-width: 23em;
  margin: 0;
  color: var(--ink-soft);
  font-family: var(--serif);
  font-size: 18px;
  line-height: 1.75;
}

.summary-facts {
  display: grid;
  margin: 28px 0 0;
  padding: 20px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 17px;
}

.summary-facts div,
.profile-facts div {
  min-width: 0;
}

.summary-facts dt,
.profile-facts dt {
  color: var(--muted);
  font-size: 10px;
  letter-spacing: 0.06em;
}

.summary-facts dd,
.profile-facts dd {
  margin: 5px 0 0;
  overflow-wrap: anywhere;
  color: var(--ink);
  font-size: 14px;
  line-height: 1.5;
}

.summary-price {
  display: flex;
  padding: 23px 0 18px;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
}

.summary-price span {
  color: var(--muted);
  font-size: 11px;
}

.summary-price strong {
  font-family: var(--serif);
  font-size: 27px;
  font-weight: 500;
}

.summary-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.summary-actions .primary-button {
  flex: 1 1 auto;
}

.summary-note {
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 10px;
  line-height: 1.6;
  text-align: center;
}

.story-intro {
  display: grid;
  padding: 74px 0 52px;
  border-bottom: 1px solid var(--line);
  gap: 18px;
}

.story-number {
  color: var(--champagne);
  font-family: var(--serif);
  font-size: 24px;
}

.story-intro h2 {
  margin-top: 9px;
}

.story-intro > p {
  max-width: 36em;
  margin: 0;
  color: var(--ink-soft);
  font-family: var(--serif);
  font-size: 17px;
  line-height: 1.9;
}

.narrative-grid {
  display: grid;
  padding: 62px 0;
  gap: 18px;
}

.detail-video-section {
  display: grid;
  padding: 72px 0;
  border-top: 1px solid var(--line);
  align-items: center;
  gap: 28px;
}

.detail-video-section[hidden] {
  display: none;
}

.detail-video-copy {
  max-width: 560px;
}

.detail-video-copy > span {
  color: var(--cocoa);
  font-size: 11px;
  font-weight: 650;
  letter-spacing: 0.12em;
}

.detail-video-copy h2 {
  margin: 10px 0 12px;
  font-family: var(--serif);
  font-size: clamp(34px, 7vw, 54px);
  font-weight: 500;
  letter-spacing: -0.035em;
}

.detail-video-copy p {
  margin: 0;
  color: var(--ink-soft);
  line-height: 1.85;
}

.detail-video-frame {
  --detail-video-aspect-ratio: 9 / 16;
  width: min(100%, 430px);
  margin-inline: auto;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: clamp(24px, 5vw, 42px);
  background: #201713;
  box-shadow: 0 28px 70px rgba(50, 31, 24, 0.16);
}

.detail-video-frame video {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: var(--detail-video-aspect-ratio);
  background: #201713;
  object-fit: contain;
}

.detail-video-section[data-video-orientation="landscape"] .detail-video-frame {
  width: min(100%, 880px);
}

.narrative-card {
  position: relative;
  padding: 30px 24px 31px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: rgba(255, 253, 249, 0.64);
}

.narrative-card::before {
  position: absolute;
  top: -20px;
  right: -16px;
  color: rgba(201, 165, 109, 0.11);
  content: attr(data-index);
  font-family: var(--serif);
  font-size: 110px;
  line-height: 1;
}

.narrative-card h3 {
  position: relative;
  margin: 0 0 16px;
  font-family: var(--serif);
  font-size: 25px;
  font-weight: 500;
}

.narrative-card p {
  position: relative;
  margin: 0;
  color: var(--ink-soft);
  font-size: 14px;
  line-height: 1.95;
  white-space: pre-line;
}

.profile-section,
.parents-section {
  padding: 65px 0;
  border-top: 1px solid var(--line);
}

.compact-heading h2 {
  font-size: clamp(30px, 7vw, 44px);
}

.profile-facts {
  display: grid;
  margin: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: rgba(255, 253, 249, 0.65);
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.profile-facts div {
  min-height: 98px;
  padding: 20px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.profile-facts div:nth-child(2n) {
  border-right: 0;
}

.profile-facts dd {
  font-family: var(--serif);
  font-size: 17px;
}

.parents-grid {
  display: grid;
  gap: 18px;
}

.parent-card {
  display: grid;
  width: 100%;
  min-width: 0;
  padding: 0;
  overflow: hidden;
  appearance: none;
  color: inherit;
  text-decoration: none;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: rgba(255, 253, 249, 0.66);
  font: inherit;
  text-align: left;
}

.parent-card.is-link {
  cursor: pointer;
  transition:
    transform 180ms ease,
    border-color 180ms ease,
    box-shadow 180ms ease;
}

.parent-card.is-link:hover,
.parent-card.is-link:focus-visible {
  border-color: rgba(179, 137, 91, 0.48);
  outline: none;
  box-shadow: 0 18px 42px rgba(80, 53, 39, 0.09);
  transform: translateY(-2px);
}

.parent-card .image-shell {
  aspect-ratio: 4 / 3;
}

.parent-card-info {
  min-width: 0;
  padding: 20px;
}

.parent-card-info span {
  color: var(--champagne);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.16em;
}

.parent-card-info h3 {
  margin: 7px 0 4px;
  font-family: var(--serif);
  font-size: 28px;
  font-weight: 500;
}

.parent-card-info p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
}

.parent-card-info .parent-card-secondary {
  margin-top: 5px;
  color: var(--ink-soft);
  line-height: 1.6;
}

.parent-card-link {
  display: inline-flex;
  gap: 6px;
  align-items: center;
  margin-top: 18px;
  color: var(--brown);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.05em;
}

.parent-preview-dialog {
  width: min(720px, calc(100% - 28px));
  max-height: min(760px, calc(100dvh - 28px));
  padding: 0;
  overflow: auto;
  color: var(--ink);
  border: 1px solid rgba(179, 137, 91, 0.32);
  border-radius: 28px;
  background: var(--paper);
  box-shadow: 0 28px 90px rgba(55, 35, 26, 0.24);
}

.parent-preview-dialog::backdrop {
  background: rgba(39, 29, 24, 0.54);
  backdrop-filter: blur(5px);
}

.parent-preview-dialog .dialog-close {
  position: absolute;
  z-index: 2;
  top: 14px;
  right: 14px;
  width: 44px;
  height: 44px;
  color: var(--ink);
  font-size: 28px;
  border: 1px solid rgba(179, 137, 91, 0.24);
  border-radius: 50%;
  background: rgba(255, 253, 249, 0.88);
}

.parent-preview-photo {
  aspect-ratio: 4 / 3;
}

.parent-preview-copy {
  padding: 28px;
}

.parent-preview-copy > span {
  color: var(--champagne);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.16em;
}

.parent-preview-copy h2 {
  margin: 8px 0 24px;
  font-family: var(--serif);
  font-size: clamp(30px, 7vw, 46px);
  font-weight: 500;
}

.parent-preview-copy dl {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin: 0;
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}

.parent-preview-copy dl > div {
  min-width: 0;
  padding: 16px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.parent-preview-copy dt {
  color: var(--muted);
  font-size: 11px;
}

.parent-preview-copy dd {
  margin: 5px 0 0;
  overflow-wrap: anywhere;
  font-family: var(--serif);
  font-size: 17px;
}

@media (max-width: 520px) {
  .parent-preview-copy dl {
    grid-template-columns: 1fr;
  }
}

.closing-section {
  display: grid;
  width: min(1180px, calc(100% - 36px));
  margin: 0 auto 80px;
  padding: 55px 24px;
  overflow: hidden;
  border: 1px solid rgba(179, 137, 91, 0.23);
  border-radius: 34px;
  background:
    radial-gradient(circle at 90% 0, rgba(229, 190, 173, 0.28), transparent 32%),
    radial-gradient(
      circle at 8% 100%,
      rgba(187, 182, 144, 0.2),
      transparent 30%
    ),
    #fffaf3;
  box-shadow: var(--shadow-soft);
  text-align: center;
  scroll-margin-top: calc(var(--header-height) + 20px);
}

.closing-section blockquote {
  max-width: 22em;
  margin: 22px auto 30px;
  font-family: var(--serif);
  font-size: clamp(25px, 7vw, 40px);
  line-height: 1.55;
}

.detail-wechat-qr {
  margin-bottom: 28px;
}

.centered-actions {
  justify-content: center;
}

.more-cats {
  padding: 0 0 80px;
}

.text-link {
  color: var(--cocoa);
  font-size: 12px;
}

.compact-grid .cat-card:nth-child(n + 4) {
  display: none;
}

.mobile-cta {
  position: fixed;
  z-index: 65;
  right: 0;
  bottom: 0;
  left: 0;
  display: grid;
  padding: 10px 14px calc(10px + env(safe-area-inset-bottom));
  border-top: 1px solid var(--line);
  background: rgba(255, 253, 249, 0.91);
  box-shadow: 0 -12px 40px rgba(66, 43, 34, 0.09);
  grid-template-columns: 46px minmax(0, 1fr);
  gap: 10px;
  backdrop-filter: blur(18px);
}

.detail-footer {
  padding-bottom: calc(104px + env(safe-area-inset-bottom));
}

.lightbox-dialog {
  width: 100vw;
  max-width: none;
  height: 100svh;
  max-height: none;
  overflow: hidden;
  background: #211916;
  color: white;
}

.lightbox-dialog::backdrop {
  background: #211916;
}

.lightbox-head {
  position: absolute;
  z-index: 4;
  top: 0;
  right: 0;
  left: 0;
  display: flex;
  min-height: 68px;
  padding: calc(12px + env(safe-area-inset-top)) 16px 12px;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  background: linear-gradient(to bottom, rgba(26, 19, 16, 0.84), transparent);
}

.lightbox-head strong {
  overflow: hidden;
  font-family: var(--serif);
  text-overflow: ellipsis;
  white-space: nowrap;
}

.lightbox-head > span {
  margin-left: auto;
  color: rgba(255, 255, 255, 0.67);
  font-size: 11px;
}

.icon-button.light {
  background: rgba(255, 255, 255, 0.12);
  color: white;
}

.lightbox-stage {
  width: 100%;
  height: 100%;
}

.lightbox-stage .image-shell {
  width: 100%;
  height: 100%;
  background: #211916;
}

.lightbox-stage img {
  object-fit: contain;
  background: #211916;
}

.lightbox-stage .photo-fallback {
  background:
    radial-gradient(circle at 28% 18%, rgba(104, 79, 67, 0.52), transparent 30%),
    #211916;
  color: rgba(255, 255, 255, 0.82);
}

.lightbox-stage .photo-fallback::before {
  border-color: rgba(255, 255, 255, 0.34);
}

.lightbox-arrow {
  position: absolute;
  z-index: 3;
  top: 50%;
  display: none;
  width: 56px;
  height: 56px;
  transform: translateY(-50%);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.09);
  color: white;
  font-size: 36px;
  cursor: pointer;
  backdrop-filter: blur(10px);
}

.lightbox-arrow-prev {
  left: 24px;
}

.lightbox-arrow-next {
  right: 24px;
}

.lightbox-dialog > p {
  position: absolute;
  z-index: 3;
  right: 0;
  bottom: calc(12px + env(safe-area-inset-bottom));
  left: 0;
  margin: 0;
  color: rgba(255, 255, 255, 0.58);
  font-size: 10px;
  text-align: center;
}

.guide-page {
  width: min(1180px, calc(100% - 28px));
  margin: 0 auto;
  padding: 28px 0 92px;
}

.guide-hero {
  position: relative;
  display: grid;
  gap: 24px;
  padding: clamp(28px, 6vw, 72px);
  overflow: hidden;
  background:
    radial-gradient(
      circle at 88% 6%,
      rgba(208, 165, 143, 0.22),
      transparent 36%
    ),
    linear-gradient(145deg, #fffaf4, #f5eae1);
  border: 1px solid rgba(116, 83, 66, 0.13);
  border-radius: 30px;
}

.guide-hero::after {
  position: absolute;
  right: -70px;
  bottom: -90px;
  width: 260px;
  height: 260px;
  border: 1px solid rgba(145, 107, 85, 0.16);
  border-radius: 50%;
  content: "";
}

.guide-hero-copy {
  position: relative;
  z-index: 1;
}

.guide-hero h1 {
  max-width: 720px;
  margin: 12px 0 14px;
  color: var(--ink);
  font-weight: 500;
  font-size: clamp(42px, 8vw, 82px);
  font-family: var(--serif);
  line-height: 1.05;
  letter-spacing: -0.04em;
}

.guide-subtitle {
  margin: 0 0 14px;
  color: var(--cocoa-deep);
  font-weight: 600;
  font-size: clamp(18px, 2.6vw, 24px);
}

.guide-intro {
  max-width: 680px;
  margin: 0;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.9;
}

.guide-progress-card {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px 16px;
  align-self: end;
  padding: 22px;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(116, 83, 66, 0.13);
  border-radius: 22px;
  backdrop-filter: blur(18px);
}

.guide-progress-card > span {
  color: var(--muted);
  font-size: 13px;
}

.guide-progress-card > strong {
  color: var(--ink);
  font-size: 18px;
}

.guide-progress-track {
  grid-column: 1 / -1;
  height: 7px;
  overflow: hidden;
  background: rgba(112, 82, 65, 0.12);
  border-radius: 999px;
}

.guide-progress-track i {
  display: block;
  width: 0;
  height: 100%;
  background: linear-gradient(90deg, #9b7059, #d5a987);
  border-radius: inherit;
  transition: width 240ms ease;
}

.guide-progress-card .reset-link {
  grid-column: 1 / -1;
  justify-self: start;
  padding: 0;
}

.guide-tools {
  position: sticky;
  z-index: 12;
  top: calc(var(--header-height) + 10px);
  display: grid;
  gap: 10px;
  padding: 12px;
  margin: 18px 0 12px;
  background: rgba(251, 246, 239, 0.9);
  border: 1px solid rgba(116, 83, 66, 0.12);
  border-radius: 20px;
  box-shadow: 0 12px 34px rgba(72, 50, 39, 0.08);
  backdrop-filter: blur(18px);
}

.guide-search {
  min-height: 48px;
}

.guide-unfinished-toggle {
  display: flex;
  gap: 9px;
  align-items: center;
  min-height: 44px;
  padding: 0 14px;
  color: var(--ink);
  font-size: 13px;
  cursor: pointer;
  background: rgba(255, 255, 255, 0.62);
  border: 1px solid var(--line);
  border-radius: 14px;
}

.guide-unfinished-toggle input,
.guide-item-heading input {
  width: 20px;
  height: 20px;
  margin: 0;
  accent-color: var(--cocoa-deep);
}

.guide-section-nav {
  display: flex;
  gap: 8px;
  padding: 6px 0 18px;
  overflow-x: auto;
  scrollbar-width: none;
}

.guide-section-nav::-webkit-scrollbar {
  display: none;
}

.guide-section-nav button {
  flex: 0 0 auto;
  min-height: 42px;
  padding: 0 17px;
  color: var(--ink);
  white-space: nowrap;
  background: #fffdfa;
  border: 1px solid var(--line);
  border-radius: 999px;
  cursor: pointer;
}

.guide-section-nav button:hover {
  color: #fff;
  background: var(--cocoa-deep);
  border-color: var(--cocoa-deep);
}

.pedigree-hero {
  min-height: 54vh;
  padding: clamp(5rem, 10vw, 9rem) max(6vw, calc((100vw - 1240px) / 2));
  background:
    radial-gradient(
      circle at 78% 35%,
      rgba(195, 155, 123, 0.2),
      transparent 24%
    ),
    linear-gradient(135deg, #fffaf4, #f7ede3);
}

.pedigree-hero h1 {
  max-width: 900px;
  margin: 1.2rem 0;
  font-family: var(--font-display);
  font-size: clamp(3.2rem, 8vw, 7.5rem);
  font-weight: 400;
  line-height: 0.98;
  color: var(--ink);
}

.pedigree-hero p {
  max-width: 620px;
  margin: 0 0 2rem;
  color: var(--muted);
  font-size: clamp(1rem, 1.4vw, 1.25rem);
}

.pedigree-focus,
.pedigree-browser {
  padding: clamp(3.5rem, 7vw, 7rem) max(5vw, calc((100vw - 1240px) / 2));
}

.pedigree-focus {
  background: linear-gradient(180deg, #fffdfa, #f8eee5);
}

.pedigree-focus-heading {
  align-items: end;
}

.pedigree-focus-search {
  margin-bottom: 1rem;
}

.pedigree-view-switch {
  display: inline-grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.3rem;
  margin-top: 1.5rem;
  padding: 0.3rem;
  border: 1px solid rgba(138, 96, 75, 0.16);
  border-radius: 999px;
  background: rgba(255, 253, 250, 0.8);
}

.pedigree-view-switch button {
  min-width: 132px;
  min-height: 44px;
  padding: 0 1.2rem;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--muted);
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

.pedigree-view-switch button[aria-pressed="true"] {
  color: #fff;
  background: var(--cocoa-deep);
  box-shadow: 0 8px 24px rgba(77, 52, 42, 0.16);
}

[data-pedigree-view-panel][hidden] {
  display: none;
}

.pedigree-overview {
  margin-top: 1.5rem;
  border: 1px solid rgba(138, 96, 75, 0.16);
  border-radius: 34px;
  background: rgba(255, 253, 250, 0.96);
  box-shadow: 0 24px 70px rgba(77, 52, 42, 0.08);
}

.pedigree-overview-toolbar {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.25rem 1.5rem;
  border-bottom: 1px solid var(--line);
}

.pedigree-overview-toolbar > div {
  display: grid;
  gap: 0.25rem;
}
.pedigree-overview-toolbar strong {
  font-family: var(--font-display);
  font-size: clamp(1.45rem, 2.4vw, 2.1rem);
  font-weight: 400;
}
.pedigree-overview-toolbar span {
  color: var(--muted);
  font-size: 0.85rem;
}

.pedigree-component-picker {
  display: grid;
  flex: 0 0 auto;
  gap: 0.35rem;
  color: var(--muted);
  font-size: 0.75rem;
}
.pedigree-component-picker select {
  min-height: 42px;
  max-width: min(320px, 45vw);
  padding: 0 2.5rem 0 0.9rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  color: var(--ink);
  font: inherit;
}

.pedigree-overview-controls {
  display: flex;
  align-items: end;
  gap: 0.6rem;
}
.pedigree-links-toggle {
  min-height: 42px;
  padding: 0 0.9rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: transparent;
  color: var(--accent);
  cursor: pointer;
}
.pedigree-links-toggle[aria-pressed="true"] {
  color: #fff;
  background: var(--accent);
}

.pedigree-overview-viewport {
  overflow: auto;
  max-height: min(68vh, 760px);
  overscroll-behavior: contain;
  scrollbar-color: rgba(138, 96, 75, 0.42) transparent;
}

.pedigree-overview-board {
  position: relative;
  display: grid;
  width: max-content;
  min-width: 100%;
  min-height: 390px;
  grid-template-columns: repeat(
      var(--pedigree-generations),
      minmax(190px, 230px)
    );
  gap: 64px;
  padding: 1.4rem 2rem 2.2rem;
  isolation: isolate;
  background-image: linear-gradient(
    90deg,
    transparent 0,
    transparent calc(100% - 1px),
    rgba(138, 96, 75, 0.055) calc(100% - 1px)
  );
  background-size: 294px 100%;
}

.pedigree-overview-links {
  position: absolute;
  inset: 0;
  z-index: -1;
  overflow: visible;
  pointer-events: none;
}
.pedigree-overview-links path {
  fill: none;
  stroke: rgba(112, 81, 66, 0);
  stroke-width: 1.2;
}
.pedigree-overview-links path.is-mother {
  stroke: rgba(184, 126, 112, 0);
  stroke-dasharray: 4 3;
}
.pedigree-overview-links path.is-related {
  stroke: rgba(112, 81, 66, 0.68);
  stroke-width: 2.4;
}
.pedigree-overview-links path.is-mother.is-related {
  stroke: rgba(184, 100, 84, 0.72);
}
.pedigree-overview-board.show-all-links .pedigree-overview-links path {
  stroke: rgba(112, 81, 66, 0.18);
}
.pedigree-overview-board.show-all-links
  .pedigree-overview-links
  path.is-mother {
  stroke: rgba(184, 126, 112, 0.22);
}
.pedigree-overview-board.show-all-links
  .pedigree-overview-links
  path.is-related {
  stroke: rgba(112, 81, 66, 0.72);
}
.pedigree-overview-board.show-all-links
  .pedigree-overview-links
  path.is-mother.is-related {
  stroke: rgba(184, 100, 84, 0.76);
}

.pedigree-generation {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 0.65rem;
}

.pedigree-generation h3 {
  position: sticky;
  top: 0;
  z-index: 3;
  margin: -0.2rem 0 0.4rem;
  padding: 0.45rem 0.2rem;
  color: var(--accent);
  background: rgba(255, 253, 250, 0.94);
  font-size: 0.75rem;
  letter-spacing: 0.12em;
}

.pedigree-overview-cat.pedigree-tree-cat {
  display: grid;
  width: 100%;
  min-height: 70px;
  grid-template-columns: 46px minmax(0, 1fr);
  grid-template-rows: auto auto;
  justify-items: start;
  gap: 0.1rem 0.7rem;
  padding: 0.6rem;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.98);
  text-align: left;
  box-shadow: 0 8px 24px rgba(77, 52, 42, 0.055);
}

.pedigree-overview-cat .pedigree-tree-photo {
  grid-row: 1 / 3;
  width: 46px;
  height: 46px;
}
.pedigree-overview-cat strong,
.pedigree-overview-cat small {
  align-self: end;
}
.pedigree-overview-cat small {
  align-self: start;
}
.pedigree-overview-cat.is-selected {
  border-color: var(--accent);
  background: #f6e7da;
  box-shadow: 0 0 0 3px rgba(138, 96, 75, 0.09);
}

.pedigree-overview-hint {
  margin: 0;
  padding: 0.8rem 1.5rem 1rem;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.8rem;
}

.pedigree-branch-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin: clamp(2.5rem, 5vw, 4rem) 0 1rem;
}

.pedigree-branch-heading span {
  color: var(--accent);
  font-weight: 700;
  letter-spacing: 0.12em;
}
.pedigree-branch-heading p {
  margin: 0;
  color: var(--muted);
}

.pedigree-search-results {
  display: flex;
  gap: 0.55rem;
  flex-wrap: wrap;
  margin: 0 0 1.5rem;
}

.pedigree-search-results button {
  min-height: 40px;
  padding: 0 1rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  color: var(--ink);
  cursor: pointer;
}

.pedigree-search-results button:hover {
  color: #fff;
  background: var(--cocoa-deep);
}

.pedigree-tree-shell {
  scroll-margin-top: calc(var(--header-height) + 20px);
  overflow: hidden;
  padding: clamp(1.25rem, 3vw, 2.5rem);
  border: 1px solid rgba(138, 96, 75, 0.16);
  border-radius: 34px;
  background:
    radial-gradient(
      circle at 50% 12%,
      rgba(223, 191, 163, 0.3),
      transparent 28%
    ),
    rgba(255, 253, 250, 0.94);
  box-shadow: 0 24px 70px rgba(77, 52, 42, 0.09);
}

.pedigree-tree-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 1rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--line);
}

.pedigree-tree-heading span,
.pedigree-tree-role {
  color: var(--accent);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
}

.pedigree-tree-heading h3 {
  margin: 0.25rem 0 0;
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3.6rem);
  font-weight: 400;
}

.pedigree-profile-link {
  flex: 0 0 auto;
  color: var(--accent);
  text-underline-offset: 0.25rem;
}

.pedigree-ancestry {
  padding-top: 2rem;
}

.pedigree-tree-parents {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(1.2rem, 5vw, 5rem);
}

.pedigree-ancestor-branch {
  display: grid;
  justify-items: center;
  min-width: 0;
}

.pedigree-grandparents {
  display: grid;
  width: 100%;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.65rem;
}

.pedigree-ancestor-line {
  width: 52%;
  height: 30px;
  border-right: 1px solid rgba(138, 96, 75, 0.4);
  border-bottom: 1px solid rgba(138, 96, 75, 0.4);
  border-left: 1px solid rgba(138, 96, 75, 0.4);
  border-radius: 0 0 12px 12px;
}

.pedigree-tree-cat {
  display: grid;
  width: min(100%, 230px);
  min-width: 0;
  justify-items: center;
  gap: 0.28rem;
  padding: 0.9rem;
  border: 1px solid rgba(138, 96, 75, 0.16);
  border-radius: 22px;
  background: #fff;
  color: var(--ink);
  text-align: center;
  cursor: pointer;
}

.pedigree-tree-cat:hover {
  border-color: var(--accent);
  transform: translateY(-2px);
}

.pedigree-tree-cat.is-muted {
  background: rgba(255, 255, 255, 0.72);
}

.pedigree-tree-cat.is-missing {
  min-height: 88px;
  place-content: center;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.35);
  border-style: dashed;
  cursor: default;
}

.pedigree-tree-photo {
  display: grid;
  width: 68px;
  height: 68px;
  place-items: center;
  overflow: hidden;
  border-radius: 50%;
  background: #ead8ca;
  color: var(--accent);
  font-family: var(--font-display);
  font-size: 1.7rem;
}

.pedigree-tree-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.pedigree-tree-cat strong {
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.pedigree-tree-cat small {
  max-width: 100%;
  overflow: hidden;
  color: var(--muted);
  text-overflow: ellipsis;
  white-space: nowrap;
}

.pedigree-parent-union {
  display: block;
  width: 50%;
  height: 42px;
  margin: 0 auto;
  border-right: 1px solid rgba(138, 96, 75, 0.48);
  border-bottom: 1px solid rgba(138, 96, 75, 0.48);
  border-left: 1px solid rgba(138, 96, 75, 0.48);
  border-radius: 0 0 16px 16px;
}

.pedigree-tree-center {
  display: grid;
  justify-items: center;
}
.pedigree-tree-center .pedigree-tree-cat {
  border-color: rgba(138, 96, 75, 0.5);
  box-shadow: 0 12px 34px rgba(100, 65, 49, 0.14);
}

.pedigree-descendants {
  margin-top: 2.4rem;
}
.pedigree-descendants > h4 {
  margin: 0 0 1rem;
  font-family: var(--font-display);
  font-size: 1.8rem;
  font-weight: 400;
  text-align: center;
}

.pedigree-descendant-family {
  position: relative;
  padding-top: 1.2rem;
}

.pedigree-descendant-couple {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  gap: 0.8rem;
}

.pedigree-family-badge {
  padding: 0.55rem 0.85rem;
  border-radius: 999px;
  background: #8a604b;
  color: #fff;
  font-size: 0.78rem;
  white-space: nowrap;
}

.pedigree-tree-children {
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.8rem;
  margin-top: 42px;
  padding-top: 28px;
}

.pedigree-tree-children::before {
  position: absolute;
  top: 0;
  right: 10%;
  left: 10%;
  height: 1px;
  background: rgba(138, 96, 75, 0.42);
  content: "";
}

.pedigree-tree-children .pedigree-tree-cat {
  position: relative;
}
.pedigree-tree-children .pedigree-tree-cat::before {
  position: absolute;
  bottom: 100%;
  left: 50%;
  width: 1px;
  height: 29px;
  background: rgba(138, 96, 75, 0.42);
  content: "";
}

.pedigree-tree-leaf {
  margin: 2rem 0 0;
  color: var(--muted);
  text-align: center;
}
.pedigree-browser-note {
  margin: 1.5rem 0 2.5rem;
  color: var(--muted);
}

.pedigree-litter-intro {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 1rem;
  margin: 1.5rem 0 2rem;
  padding-bottom: 1.2rem;
  border-bottom: 1px solid var(--line);
}

.pedigree-litter-intro > div {
  display: grid;
  gap: 0.25rem;
}
.pedigree-litter-intro > div > span {
  color: var(--accent);
  font-weight: 700;
  letter-spacing: 0.12em;
}
.pedigree-litter-intro strong {
  font-family: var(--font-display);
  font-size: clamp(1.45rem, 2.4vw, 2rem);
  font-weight: 400;
}
.pedigree-litter-intro > span {
  color: var(--muted);
  white-space: nowrap;
}

.pedigree-directory {
  margin: 0;
  border-top: 1px solid var(--line);
  background: #fffdfa;
}

.pedigree-directory > summary {
  display: flex;
  min-height: 96px;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.2rem max(5vw, calc((100vw - 1240px) / 2));
  cursor: pointer;
  list-style: none;
}

.pedigree-directory > summary::-webkit-details-marker {
  display: none;
}
.pedigree-directory > summary::after {
  color: var(--accent);
  content: "展开 ↓";
  font-size: 0.85rem;
}
.pedigree-directory[open] > summary::after {
  content: "收起 ↑";
}
.pedigree-directory > summary > span:first-child {
  display: grid;
  gap: 0.2rem;
}
.pedigree-directory > summary small {
  color: var(--accent);
  font-weight: 700;
  letter-spacing: 0.12em;
}
.pedigree-directory > summary strong {
  font-family: var(--font-display);
  font-size: clamp(1.45rem, 2.4vw, 2rem);
  font-weight: 400;
}
.pedigree-directory > summary > span:last-of-type {
  margin-left: auto;
  color: var(--muted);
}

.pedigree-browser-heading {
  align-items: end;
}

.pedigree-search {
  display: grid;
  gap: 0.65rem;
  margin: 2rem 0 3rem;
  color: var(--muted);
  font-size: 0.9rem;
}

.pedigree-search input {
  width: min(100%, 720px);
  min-height: 54px;
  padding: 0 1.25rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.82);
  color: var(--ink);
  font: inherit;
  font-size: 1rem;
  outline: none;
}

.pedigree-search input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 4px rgba(138, 96, 75, 0.1);
}

.pedigree-families {
  display: grid;
  gap: 2rem;
}

.pedigree-family {
  padding: clamp(1.2rem, 3vw, 2rem);
  border: 1px solid var(--line);
  border-radius: 28px;
  background: rgba(255, 252, 248, 0.92);
  box-shadow: 0 18px 50px rgba(77, 52, 42, 0.06);
}

.pedigree-family-heading,
.pedigree-parents {
  display: flex;
  align-items: center;
}

.pedigree-family-heading {
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.4rem;
}

.pedigree-family-heading span,
.pedigree-family-heading > strong {
  color: var(--muted);
  font-size: 0.85rem;
  font-weight: 500;
}

.pedigree-family-heading h2 {
  margin: 0.25rem 0 0;
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 3vw, 2.7rem);
  font-weight: 400;
}

.pedigree-parents {
  gap: 0.75rem;
  padding: 1rem;
  border-radius: 22px;
  background: #f4e8dc;
}

.pedigree-heart {
  flex: 0 0 auto;
  color: var(--accent);
  font-family: var(--font-display);
  font-size: 1.7rem;
}

.pedigree-children {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.9rem;
  margin-top: 1rem;
}

.pedigree-cat {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 0.8rem;
  padding: 0.85rem;
  border: 1px solid rgba(138, 96, 75, 0.12);
  border-radius: 18px;
  background: #fff;
  color: inherit;
  text-decoration: none;
}

a.pedigree-cat:hover {
  border-color: rgba(138, 96, 75, 0.36);
  transform: translateY(-2px);
}

.pedigree-cat.is-compact {
  flex: 1 1 0;
  background: rgba(255, 255, 255, 0.72);
}

.pedigree-cat-photo {
  display: grid;
  flex: 0 0 58px;
  width: 58px;
  height: 58px;
  place-items: center;
  overflow: hidden;
  border-radius: 50%;
  background: #e8d5c5;
  color: var(--accent);
  font-family: var(--font-display);
  font-size: 1.5rem;
}

.pedigree-cat-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.pedigree-cat-copy {
  display: grid;
  min-width: 0;
  gap: 0.2rem;
}

.pedigree-cat-copy strong,
.pedigree-cat-copy small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.pedigree-cat-copy small {
  color: var(--muted);
}

@media (max-width: 900px) {
  .pedigree-children {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .pedigree-tree-children {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 560px) {
  .pedigree-hero {
    min-height: auto;
    padding-top: 6rem;
  }
  .pedigree-hero h1 {
    font-size: clamp(3rem, 15vw, 4.6rem);
  }
  .pedigree-family-heading {
    align-items: start;
  }
  .pedigree-family-heading > strong {
    white-space: nowrap;
  }
  .pedigree-parents {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
    padding: 0.7rem;
  }
  .pedigree-cat.is-compact {
    display: grid;
    justify-items: center;
    text-align: center;
  }
  .pedigree-cat.is-compact .pedigree-cat-copy small {
    display: none;
  }
  .pedigree-children {
    grid-template-columns: 1fr;
  }
  .pedigree-focus-heading,
  .pedigree-tree-heading {
    display: grid;
    align-items: start;
  }
  .pedigree-view-switch {
    display: grid;
    width: 100%;
  }
  .pedigree-view-switch button {
    min-width: 0;
    padding: 0 0.7rem;
  }
  .pedigree-overview {
    border-radius: 24px;
  }
  .pedigree-overview-toolbar {
    display: grid;
    align-items: start;
    padding: 1rem;
  }
  .pedigree-overview-controls {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
  }
  .pedigree-links-toggle {
    width: 100%;
  }
  .pedigree-component-picker select {
    width: 100%;
    max-width: none;
  }
  .pedigree-overview-board {
    grid-template-columns: repeat(var(--pedigree-generations), 174px);
    gap: 44px;
    padding: 1rem 1.2rem 1.5rem;
  }
  .pedigree-overview-viewport {
    max-height: 62vh;
  }
  .pedigree-branch-heading {
    display: grid;
  }
  .pedigree-branch-heading p {
    font-size: 0.85rem;
  }
  .pedigree-litter-intro {
    display: grid;
    align-items: start;
  }
  .pedigree-litter-intro > span {
    white-space: normal;
  }
  .pedigree-directory > summary {
    display: grid;
    min-height: 110px;
  }
  .pedigree-directory > summary > span:last-of-type {
    margin-left: 0;
    font-size: 0.82rem;
  }
  .pedigree-directory > summary::after {
    position: absolute;
    right: 5vw;
  }
  .pedigree-tree-shell {
    padding: 1rem;
    border-radius: 24px;
  }
  .pedigree-tree-parents {
    gap: 0.55rem;
  }
  .pedigree-grandparents {
    gap: 0.35rem;
  }
  .pedigree-tree-cat {
    padding: 0.65rem 0.35rem;
    border-radius: 17px;
  }
  .pedigree-tree-photo {
    width: 52px;
    height: 52px;
  }
  .pedigree-tree-cat small {
    display: none;
  }
  .pedigree-tree-role {
    font-size: 0.62rem;
  }
  .pedigree-descendant-couple {
    gap: 0.35rem;
  }
  .pedigree-family-badge {
    padding: 0.45rem 0.55rem;
    font-size: 0.68rem;
    white-space: normal;
    text-align: center;
  }
  .pedigree-tree-children {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.5rem;
  }
}

.guide-sections {
  display: grid;
  gap: 20px;
}

.guide-section {
  scroll-margin-top: calc(var(--header-height) + 92px);
  padding: clamp(22px, 4vw, 42px);
  background: rgba(255, 253, 250, 0.86);
  border: 1px solid rgba(116, 83, 66, 0.12);
  border-radius: 26px;
  box-shadow: 0 18px 50px rgba(68, 46, 35, 0.055);
}

.guide-section-warning {
  background: linear-gradient(
    135deg,
    rgba(255, 251, 244, 0.95),
    rgba(247, 232, 219, 0.9)
  );
  border-color: rgba(166, 100, 70, 0.22);
}

.guide-section-heading {
  display: grid;
  gap: 12px;
  padding-bottom: 22px;
  border-bottom: 1px solid var(--line);
}

.guide-section-heading span {
  color: var(--champagne);
  font-weight: 700;
  font-size: 11px;
  letter-spacing: 0.16em;
}

.guide-section-heading h2 {
  margin: 3px 0 0;
  color: var(--ink);
  font-weight: 500;
  font-size: clamp(28px, 4vw, 40px);
  font-family: var(--serif);
}

.guide-section-heading > p {
  max-width: 610px;
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.8;
}

.guide-item-grid {
  display: grid;
  gap: 12px;
  padding-top: 20px;
}

.guide-item {
  min-width: 0;
  padding: 18px;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(116, 83, 66, 0.11);
  border-radius: 18px;
  transition:
    transform 180ms ease,
    border-color 180ms ease,
    opacity 180ms ease;
}

.guide-item:hover {
  border-color: rgba(145, 101, 76, 0.28);
  transform: translateY(-2px);
}

.guide-item.is-complete {
  opacity: 0.62;
}

.guide-item.is-complete h3 {
  text-decoration: line-through;
  text-decoration-color: rgba(93, 66, 52, 0.35);
}

.guide-item-heading {
  display: flex;
  gap: 13px;
  align-items: flex-start;
}

.guide-item-heading input {
  flex: 0 0 auto;
  margin-top: 2px;
}

.guide-item-copy {
  min-width: 0;
}

.guide-item-copy h3 {
  margin: 0;
  color: var(--ink);
  font-weight: 650;
  font-size: 16px;
  line-height: 1.5;
}

.guide-item-copy p,
.guide-item-detail p {
  margin: 7px 0 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.8;
}

.guide-item-detail {
  padding-top: 14px;
  margin-top: 14px;
  border-top: 1px solid rgba(116, 83, 66, 0.1);
}

.guide-item-detail summary {
  width: max-content;
  color: var(--cocoa-deep);
  font-weight: 600;
  font-size: 12px;
  cursor: pointer;
}

.guide-timeline-step {
  display: grid;
  flex: 0 0 38px;
  width: 38px;
  height: 38px;
  color: #fff;
  font-weight: 700;
  font-size: 12px;
  place-items: center;
  background: var(--cocoa-deep);
  border-radius: 50%;
}

.guide-no-results,
.guide-empty {
  padding: 70px 22px;
  color: var(--muted);
  text-align: center;
}

.guide-medical-note {
  display: grid;
  gap: 10px;
  padding: clamp(24px, 5vw, 44px);
  margin-top: 22px;
  color: #513a2f;
  background: #f2e5da;
  border: 1px solid rgba(141, 94, 68, 0.18);
  border-radius: 26px;
}

.guide-medical-note strong {
  font-size: clamp(20px, 3vw, 28px);
  font-family: var(--serif);
}

.guide-medical-note p {
  max-width: 780px;
  margin: 0;
  font-size: 14px;
  line-height: 1.85;
}

.guide-medical-note .primary-button {
  width: fit-content;
  margin-top: 6px;
}

.guide-footer {
  margin-top: 0;
}

.about-page {
  width: min(1180px, calc(100% - 28px));
  margin: 0 auto;
  padding: 28px 0 92px;
}

.about-visual-hero {
  position: relative;
  min-height: min(78vh, 780px);
  overflow: hidden;
  border-radius: clamp(24px, 4vw, 38px);
  background: #75665e;
  box-shadow: 0 26px 70px rgba(60, 42, 33, 0.16);
}

.about-visual-hero::after {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(
      180deg,
      rgba(20, 15, 12, 0.04) 35%,
      rgba(20, 15, 12, 0.78) 100%
    ),
    linear-gradient(90deg, rgba(20, 15, 12, 0.18), transparent 52%);
  content: "";
  pointer-events: none;
}

.about-visual-hero picture,
.about-visual-hero img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.about-visual-hero img {
  object-fit: cover;
  object-position: center 52%;
}

.about-visual-overlay {
  position: absolute;
  z-index: 1;
  right: clamp(24px, 6vw, 72px);
  bottom: clamp(28px, 7vw, 74px);
  left: clamp(24px, 6vw, 72px);
  max-width: 850px;
  color: #fffaf5;
}

.about-visual-overlay .eyebrow {
  color: #f2d9c1;
}

.about-visual-overlay h1 {
  max-width: 850px;
  margin: 14px 0 16px;
  font-family: var(--serif);
  font-size: clamp(36px, 6.5vw, 72px);
  font-weight: 500;
  line-height: 1.08;
  text-wrap: balance;
}

.about-visual-overlay p {
  margin: 0;
  font-size: clamp(13px, 2vw, 16px);
  letter-spacing: 0.05em;
}

.about-fact-card {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  overflow: hidden;
  margin: 18px 0 0;
  border: 1px solid rgba(116, 83, 66, 0.13);
  border-radius: 22px;
  background: rgba(116, 83, 66, 0.13);
  backdrop-filter: blur(18px);
}

.about-space-section {
  padding: clamp(34px, 7vw, 80px) 0 0;
}

.about-space-intro {
  display: grid;
  gap: 12px;
  max-width: 820px;
  margin-bottom: clamp(24px, 5vw, 46px);
}

.about-space-intro > span {
  color: var(--champagne);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.16em;
}

.about-space-intro h2 {
  margin: 0;
  color: var(--ink);
  font-family: var(--serif);
  font-size: clamp(31px, 5vw, 52px);
  font-weight: 500;
  line-height: 1.17;
  text-wrap: balance;
}

.about-space-intro p {
  max-width: 720px;
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.9;
}

.about-space-grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: clamp(10px, 2vw, 22px);
}

.about-space-grid figure {
  position: relative;
  grid-column: span 5;
  min-width: 0;
  min-height: 460px;
  overflow: hidden;
  margin: 0;
  border-radius: clamp(18px, 3vw, 28px);
  background: #e8ded6;
}

.about-space-grid .about-space-wide {
  grid-column: span 7;
}

.about-space-grid img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transition: transform 700ms cubic-bezier(0.22, 1, 0.36, 1);
}

.about-space-grid figure:hover img {
  transform: scale(1.018);
}

.about-space-grid figcaption {
  position: absolute;
  right: 14px;
  bottom: 14px;
  padding: 8px 12px;
  border: 1px solid rgba(255, 255, 255, 0.32);
  border-radius: 999px;
  background: rgba(39, 29, 24, 0.5);
  color: #fffaf5;
  font-size: 11px;
  letter-spacing: 0.08em;
  backdrop-filter: blur(12px);
}

.about-fact-card div {
  min-width: 0;
  padding: 18px;
  background: rgba(255, 255, 255, 0.76);
}

.about-fact-card dt {
  margin-bottom: 7px;
  color: var(--muted);
  font-size: 11px;
  letter-spacing: 0.08em;
}

.about-fact-card dd {
  margin: 0;
  color: var(--ink);
  font-family: var(--serif);
  font-size: clamp(19px, 3vw, 26px);
}

.about-section {
  padding: clamp(24px, 5vw, 48px);
  margin-top: 22px;
  border: 1px solid rgba(116, 83, 66, 0.12);
  border-radius: 26px;
  background: rgba(255, 253, 250, 0.86);
  box-shadow: 0 18px 50px rgba(68, 46, 35, 0.055);
}

.about-section-heading {
  display: grid;
  gap: 10px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--line);
}

.about-section-heading > span {
  color: var(--champagne);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.16em;
}

.about-section-heading h2,
.about-proof h2 {
  max-width: 760px;
  margin: 0;
  color: var(--ink);
  font-family: var(--serif);
  font-size: clamp(29px, 5vw, 46px);
  font-weight: 500;
  line-height: 1.2;
}

.about-section-heading p,
.about-proof p {
  max-width: 780px;
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.85;
}

.about-method-grid {
  display: grid;
  gap: 12px;
  padding-top: 20px;
}

.about-method-grid article {
  min-width: 0;
  padding: 20px;
  border: 1px solid rgba(116, 83, 66, 0.11);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.72);
}

.about-method-grid article > span {
  display: inline-grid;
  width: 34px;
  height: 34px;
  margin-bottom: 18px;
  place-items: center;
  border-radius: 50%;
  background: var(--cocoa-deep);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
}

.about-method-grid h3 {
  margin: 0;
  color: var(--ink);
  font-size: 18px;
}

.about-method-grid p {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.85;
}

.about-method-grid .about-method-wide {
  background: linear-gradient(
    120deg,
    rgba(255, 255, 255, 0.9),
    rgba(242, 229, 218, 0.72)
  );
}

.about-story-grid {
  display: grid;
  gap: 14px;
  padding-top: 22px;
}

.about-story-grid article {
  min-width: 0;
  padding: clamp(20px, 3vw, 30px);
  border: 1px solid rgba(116, 83, 66, 0.11);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.72);
}

.about-story-grid strong {
  color: var(--champagne);
  font-size: 11px;
  letter-spacing: 0.12em;
}

.about-story-grid h3 {
  margin: 12px 0 9px;
  color: var(--ink);
  font-family: var(--serif);
  font-size: clamp(21px, 3vw, 28px);
  font-weight: 500;
  line-height: 1.3;
}

.about-story-grid p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.85;
}

.about-poem {
  display: grid;
  gap: 8px;
  padding: clamp(22px, 4vw, 34px);
  margin: 18px 0 0;
  border: 0;
  border-radius: 20px;
  background: linear-gradient(120deg, #f2e5da, rgba(255, 255, 255, 0.82));
}

.about-poem p {
  margin: 0;
  color: var(--ink);
  font-family: var(--serif);
  font-size: clamp(22px, 4vw, 34px);
  line-height: 1.45;
}

.about-poem cite {
  color: var(--muted);
  font-size: 12px;
  font-style: normal;
  letter-spacing: 0.06em;
}

.about-registration-record {
  display: grid;
  gap: 18px;
  padding: clamp(22px, 4vw, 34px);
  margin-top: 22px;
  border: 1px solid rgba(116, 83, 66, 0.14);
  border-radius: 22px;
  background: linear-gradient(125deg, #f0eadf, #fffdf9);
}

.about-registration-record span,
.about-genetic-archive span {
  color: var(--champagne);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.14em;
}

.about-registration-record h3,
.about-genetic-intro h3,
.about-genetic-archive h3 {
  margin: 10px 0 8px;
  color: var(--ink);
  font-family: var(--serif);
  font-size: clamp(22px, 3vw, 30px);
  font-weight: 500;
}

.about-registration-record p,
.about-genetic-intro p,
.about-genetic-archive p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.85;
}

.about-registration-record p strong {
  color: var(--ink);
}

.about-registration-privacy {
  align-self: end;
  padding: 16px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.7);
}

.about-registration-certificate {
  grid-column: 1 / -1;
  overflow: hidden;
  margin: 0;
  border: 1px solid rgba(116, 83, 66, 0.12);
  border-radius: 18px;
  background: #fff;
}

.about-registration-certificate a,
.about-registration-certificate img {
  display: block;
  width: 100%;
}

.about-registration-certificate img {
  height: auto;
}

.about-registration-certificate figcaption {
  padding: 11px 14px 13px;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.5;
  text-align: center;
}

.about-genetic-intro {
  max-width: 780px;
  padding-top: 32px;
}

.about-genetic-grid {
  display: grid;
  align-items: start;
  gap: 14px;
  padding-top: 18px;
}

.about-genetic-card {
  min-width: 0;
  overflow: hidden;
  border: 1px solid rgba(116, 83, 66, 0.12);
  border-radius: 20px;
  background: #fff;
}

.about-genetic-card > div:first-child {
  padding: 20px;
}

.about-genetic-card > div:first-child > span {
  display: inline-grid;
  width: 32px;
  height: 32px;
  place-items: center;
  border-radius: 50%;
  background: var(--cocoa-deep);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
}

.about-genetic-card h3 {
  margin: 14px 0 7px;
  color: var(--ink);
  font-family: var(--serif);
  font-size: 25px;
  font-weight: 500;
}

.about-genetic-card p {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.8;
}

.about-genetic-card a,
.about-genetic-archive a {
  display: block;
  background: #eff0e9;
}

.about-genetic-card img,
.about-genetic-archive img {
  display: block;
  width: 100%;
  height: auto;
  transition: opacity 180ms ease;
}

.about-genetic-card a:hover img,
.about-genetic-archive a:hover img {
  opacity: 0.9;
}

.about-report-pages {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  background: rgba(116, 83, 66, 0.1);
}

.about-genetic-archive {
  display: grid;
  gap: 14px;
  padding: 20px;
  margin-top: 18px;
  border: 1px solid rgba(116, 83, 66, 0.12);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.68);
}

.about-genetic-archive > div {
  align-self: center;
}

.about-genetic-archive figure {
  overflow: hidden;
  margin: 0;
  border: 1px solid rgba(116, 83, 66, 0.1);
  border-radius: 16px;
  background: #fff;
}

.about-genetic-archive figcaption {
  padding: 12px 14px;
  color: var(--ink);
  font-size: 11px;
}

.about-health-boundary {
  padding: 20px;
  margin-top: 18px;
  border-left: 3px solid var(--champagne);
  border-radius: 0 16px 16px 0;
  background: rgba(242, 229, 218, 0.64);
}

.about-health-boundary strong {
  display: block;
  margin-bottom: 7px;
  color: var(--ink);
  font-size: 14px;
}

.about-health-boundary p {
  max-width: 860px;
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.85;
}

.about-feeding-section {
  padding: clamp(42px, 8vw, 88px) 0 0;
}

.about-feeding-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(9px, 1.6vw, 18px);
}

.about-feeding-grid figure {
  position: relative;
  min-width: 0;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  margin: 0;
  border-radius: clamp(15px, 2.4vw, 24px);
  background: #e9dfd7;
}

.about-feeding-grid img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 700ms cubic-bezier(0.22, 1, 0.36, 1);
}

.about-feeding-grid figure:hover img {
  transform: scale(1.018);
}

.about-feeding-grid figcaption {
  position: absolute;
  right: 10px;
  bottom: 10px;
  left: 10px;
  padding: 10px 12px;
  border: 1px solid rgba(255, 255, 255, 0.26);
  border-radius: 14px;
  background: rgba(39, 29, 24, 0.56);
  color: #fffaf5;
  font-size: 11px;
  line-height: 1.4;
  backdrop-filter: blur(12px);
}

.about-feeding-note {
  max-width: 820px;
  margin: 18px 0 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.8;
}

.about-process-timeline {
  display: grid;
  gap: 0;
  padding: 8px 0 0;
  margin: 0;
  list-style: none;
}

.about-process-timeline li {
  position: relative;
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  gap: 16px;
  padding: 20px 0;
}

.about-process-timeline li:not(:last-child)::after {
  position: absolute;
  top: 54px;
  bottom: -10px;
  left: 20px;
  width: 1px;
  background: rgba(116, 83, 66, 0.18);
  content: "";
}

.about-process-timeline li > span {
  position: relative;
  z-index: 1;
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border-radius: 50%;
  background: var(--cocoa-deep);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
}

.about-process-timeline h3 {
  margin: 1px 0 7px;
  color: var(--ink);
  font-size: 17px;
}

.about-process-timeline p {
  max-width: 760px;
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.85;
}

.about-policy-note {
  padding: 20px;
  margin-top: 10px;
  border: 1px solid rgba(141, 94, 68, 0.16);
  border-radius: 18px;
  background: #f3e7dc;
}

.about-policy-note strong {
  display: block;
  margin-bottom: 8px;
  color: var(--ink);
  font-size: 15px;
}

.about-policy-note p {
  max-width: 820px;
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.85;
}

.about-proof {
  display: grid;
  gap: 24px;
  padding: clamp(26px, 6vw, 58px);
  margin-top: 22px;
  border: 1px solid rgba(141, 94, 68, 0.18);
  border-radius: 26px;
  background:
    radial-gradient(
      circle at 92% 10%,
      rgba(255, 255, 255, 0.5),
      transparent 34%
    ),
    #f2e5da;
}

.about-proof h2 {
  margin: 10px 0 12px;
}

.about-proof-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}

.about-faq-list {
  display: grid;
  gap: 10px;
  padding-top: 20px;
}

.about-faq-list details {
  padding: 0 18px;
  border: 1px solid rgba(116, 83, 66, 0.12);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.7);
}

.about-faq-list summary {
  padding: 17px 30px 17px 0;
  color: var(--ink);
  font-size: 15px;
  font-weight: 650;
  line-height: 1.5;
  cursor: pointer;
}

.about-faq-list p {
  max-width: 820px;
  margin: -2px 0 18px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.85;
}

.about-source-note {
  padding: 22px;
  margin-top: 22px;
  border: 1px dashed rgba(116, 83, 66, 0.22);
  border-radius: 20px;
  color: var(--muted);
}

.about-source-note strong {
  display: block;
  margin-bottom: 7px;
  color: var(--ink);
  font-size: 14px;
}

.about-source-note p {
  margin: 0;
  font-size: 12px;
  line-height: 1.8;
}

@media (min-width: 720px) {
  .compare-mobile-list {
    display: none;
  }

  .compare-scroll {
    display: block;
  }

  .guide-tools {
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
  }

  .guide-unfinished-toggle {
    min-width: 160px;
  }

  .guide-section-heading {
    grid-template-columns: minmax(0, 0.7fr) minmax(260px, 0.8fr);
    align-items: end;
  }

  .guide-section-checklist .guide-item-grid,
  .guide-section-training .guide-item-grid,
  .guide-section-article .guide-item-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

  .about-method-grid .about-method-wide {
    grid-column: 1 / -1;
  }

  .about-story-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .about-registration-record {
    grid-template-columns: minmax(0, 1fr) minmax(280px, 0.72fr);
  }

  .about-genetic-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .about-genetic-archive {
    grid-template-columns: minmax(220px, 0.8fr) repeat(2, minmax(0, 1fr));
  }

  .about-feeding-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .about-fact-card {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

@media (max-width: 719px) {
  .about-visual-hero {
    min-height: 630px;
  }

  .about-visual-hero img {
    object-position: 49% center;
  }

  .about-visual-overlay h1 {
    font-size: clamp(35px, 10vw, 48px);
  }

  .about-space-grid {
    grid-template-columns: 1fr;
  }

  .about-space-grid figure,
  .about-space-grid .about-space-wide {
    grid-column: 1;
    min-height: 0;
    aspect-ratio: 4 / 5;
  }

  .about-feeding-grid figcaption {
    font-size: 10px;
  }

  .compare-dialog {
    position: fixed;
    inset: auto 0 0;
    width: 100%;
    max-width: none;
    max-height: calc(100dvh - 12px);
    margin: 0;
    padding: 18px 14px calc(18px + env(safe-area-inset-bottom));
    border-radius: 28px 28px 0 0;
  }

  .compare-dialog .dialog-head {
    position: sticky;
    z-index: 3;
    top: -18px;
    margin: -18px -14px 14px;
    padding: 18px 14px 12px;
    border-bottom: 1px solid var(--line);
    background: rgba(255, 253, 249, 0.96);
    backdrop-filter: blur(16px);
  }

  .compare-dialog .dialog-head h2 {
    font-size: 26px;
  }
}

@media (min-width: 960px) {
  .guide-page {
    padding-top: 44px;
  }

  .guide-hero {
    grid-template-columns: minmax(0, 1.6fr) minmax(280px, 0.54fr);
    align-items: end;
  }

  .guide-section-checklist .guide-item-grid,
  .guide-section-training .guide-item-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .about-page {
    padding-top: 44px;
  }

  .about-proof {
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: end;
  }
}

@media (min-width: 640px) {
  .catalog-hero {
    padding-inline: 36px;
  }

  .cat-grid,
  .parents-grid,
  .narrative-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .detail-video-section {
    grid-template-columns: minmax(260px, 0.8fr) minmax(320px, 1fr);
    gap: clamp(42px, 8vw, 110px);
  }

  .detail-video-section[data-video-orientation="landscape"] {
    grid-template-columns: minmax(0, 1fr);
  }

  .detail-video-section[data-video-orientation="landscape"] .detail-video-copy {
    max-width: 760px;
  }

  .detail-video-section[data-video-orientation="landscape"]
    .detail-video-frame {
    margin-inline: 0;
  }

  .litter-cat-grid {
    overflow: visible;
    margin-inline: 0;
    padding: 0;
    grid-auto-columns: unset;
    grid-auto-flow: row;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 28px;
    scroll-snap-type: none;
  }

  .catalog-toolbar {
    grid-template-columns: minmax(260px, 1.3fr) minmax(230px, 0.9fr);
  }

  .select-field {
    grid-template-columns: 42px minmax(0, 1fr);
    align-items: center;
  }

  .select-field span {
    padding-left: 0;
  }

  .gallery-stage {
    border-radius: 0 28px 28px 0;
  }

  .gallery-arrow,
  .lightbox-arrow {
    display: block;
  }

  .profile-facts {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .profile-facts div:nth-child(2n) {
    border-right: 1px solid var(--line);
  }

  .profile-facts div:nth-child(3n) {
    border-right: 0;
  }
}

@media (min-width: 900px) {
  :root {
    --header-height: 84px;
  }

  .desktop-only {
    display: inline-flex;
  }

  .site-header {
    padding-inline: clamp(28px, 4vw, 64px);
  }

  .brand-mark {
    width: 50px;
    height: 50px;
  }

  .brand-copy strong {
    font-size: 17px;
  }

  .home-breeding-entry {
    grid-template-columns: minmax(0, 1fr) minmax(360px, 0.78fr);
  }

  .home-nursery-card {
    grid-template-columns: minmax(0, 0.98fr) minmax(470px, 1.02fr);
    gap: clamp(34px, 4vw, 52px);
  }

  .catalog-hero {
    grid-template-columns: minmax(0, 1fr) minmax(430px, 0.86fr);
    padding: 72px clamp(42px, 7vw, 120px) 92px;
  }

  .hero-orbit-one {
    right: -13%;
    width: 54vw;
    height: 54vw;
  }

  .hero-orbit-two {
    width: 28vw;
    height: 28vw;
  }

  .hero-copy h1 {
    font-size: clamp(68px, 6vw, 98px);
  }

  .section-heading {
    grid-template-columns: minmax(0, 1fr) minmax(300px, 0.7fr);
    align-items: end;
  }

  .catalog-toolbar {
    grid-template-columns: minmax(280px, 1.6fr) minmax(240px, 0.95fr) minmax(
        180px,
        0.65fr
      ) minmax(190px, 0.72fr);
    align-items: end;
  }

  .select-field {
    display: grid;
    grid-template-columns: 1fr;
    align-items: stretch;
  }

  .cat-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: clamp(24px, 3vw, 42px);
  }

  .litter-cat-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: clamp(24px, 3vw, 42px);
  }

  .trust-strip {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 44px;
  }

  .contact-panel {
    padding: 56px 60px;
    grid-template-columns: minmax(0, 1fr) minmax(220px, 300px);
    align-items: center;
    gap: clamp(42px, 7vw, 96px);
  }

  .site-footer {
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
  }

  .site-footer p {
    max-width: 520px;
    text-align: right;
  }

  .compare-tray {
    right: 28px;
    left: auto;
    width: min(470px, calc(100% - 56px));
  }

  .detail-hero {
    padding-top: 26px;
  }

  .detail-hero-grid {
    grid-template-columns: minmax(0, 1.32fr) minmax(360px, 0.68fr);
    align-items: start;
    gap: 0;
  }

  .detail-summary {
    position: sticky;
    top: calc(var(--header-height) + 30px);
    padding: 42px clamp(34px, 4vw, 70px);
  }

  .gallery-slide {
    aspect-ratio: 4 / 4.6;
    max-height: calc(100svh - var(--header-height) - 90px);
  }

  .story-intro {
    grid-template-columns: 70px minmax(260px, 0.86fr) minmax(320px, 0.9fr);
    align-items: start;
    gap: 28px;
  }

  .story-intro h2 {
    font-size: clamp(38px, 4vw, 56px);
  }

  .story-intro > p {
    padding-top: 23px;
  }

  .narrative-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 22px;
  }

  .narrative-card {
    min-height: 290px;
    padding: 40px;
  }

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

  .parent-card {
    grid-template-columns: minmax(210px, 0.8fr) minmax(0, 1.2fr);
    align-items: center;
  }

  .parent-card .image-shell {
    width: 100%;
    height: 100%;
    min-height: 280px;
    aspect-ratio: auto;
  }

  .parent-card-info {
    padding: 30px;
  }

  .mobile-cta {
    display: none;
  }

  .detail-footer {
    padding-bottom: 34px;
  }
}

@media (min-width: 1180px) {
  .cat-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .litter-cat-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .compact-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .narrative-grid {
    grid-template-columns: 1.1fr 0.9fr 0.9fr;
  }

  .narrative-card:first-child {
    grid-row: span 2;
  }

  .narrative-card:first-child p {
    font-size: 15px;
  }

  .profile-facts {
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }

  .profile-facts div:nth-child(3n) {
    border-right: 1px solid var(--line);
  }

  .profile-facts div:nth-child(5n) {
    border-right: 0;
  }
}

.consult-widget {
  position: fixed;
  z-index: 160;
  right: 24px;
  bottom: calc(24px + env(safe-area-inset-bottom));
  font-family: var(--sans);
}

.consult-launcher-shell {
  display: flex;
  align-items: center;
  gap: 7px;
}

.consult-dock-toggle {
  display: none;
}

.consult-launcher {
  display: flex;
  min-height: 54px;
  padding: 8px 19px 8px 10px;
  align-items: center;
  gap: 9px;
  border: 1px solid rgba(255, 255, 255, 0.5);
  border-radius: 999px;
  background: linear-gradient(135deg, var(--cocoa-deep), #8c624f);
  box-shadow: 0 18px 48px rgba(65, 40, 31, 0.3);
  color: #fff;
  cursor: pointer;
}

.consult-launcher span {
  display: grid;
  width: 36px;
  height: 36px;
  place-items: center;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.14);
  font-size: 19px;
}

.consult-launcher strong {
  font-size: 14px;
  letter-spacing: 0.04em;
}

.consult-launcher:hover {
  transform: translateY(-2px);
  box-shadow: 0 22px 54px rgba(65, 40, 31, 0.35);
}

.consult-nudge {
  position: absolute;
  right: 0;
  bottom: 66px;
  width: max-content;
  max-width: 220px;
  padding: 10px 14px;
  border: 1px solid rgba(122, 90, 73, 0.13);
  border-radius: 15px 15px 4px;
  background: var(--paper);
  box-shadow: var(--shadow-soft);
  color: var(--ink-soft);
  font-size: 12px;
}

.consult-panel {
  position: absolute;
  right: 0;
  bottom: 0;
  display: grid;
  width: min(390px, calc(100vw - 32px));
  height: min(650px, calc(100svh - 40px));
  overflow: hidden;
  border: 1px solid rgba(122, 90, 73, 0.16);
  border-radius: 28px;
  background: var(--paper);
  box-shadow: 0 32px 100px rgba(55, 35, 28, 0.24);
  grid-template-rows: auto auto minmax(0, 1fr) auto auto auto auto auto;
}

.is-consult-open .consult-launcher,
.is-consult-open .consult-nudge {
  visibility: hidden;
  pointer-events: none;
}

.consult-head {
  display: flex;
  min-height: 74px;
  padding: 13px 14px 13px 16px;
  align-items: center;
  justify-content: space-between;
  background:
    radial-gradient(
      circle at 12% 10%,
      rgba(255, 255, 255, 0.13),
      transparent 48%
    ),
    linear-gradient(135deg, #51392f, #805a49);
  color: #fff;
}

.consult-head-brand {
  display: flex;
  align-items: center;
  gap: 11px;
}

.consult-head-brand img {
  width: 39px;
  height: 39px;
  padding: 5px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  object-fit: contain;
}

.consult-head-brand div {
  display: grid;
  gap: 3px;
}

.consult-head-brand strong {
  font-family: var(--serif);
  font-size: 17px;
  letter-spacing: 0.04em;
}

.consult-head-brand span {
  color: rgba(255, 255, 255, 0.68);
  font-size: 10px;
  letter-spacing: 0.12em;
}

.consult-head-actions {
  display: flex;
  align-items: center;
  gap: 6px;
}

.consult-head-actions button {
  min-width: 38px;
  height: 38px;
  padding: 0 10px;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  cursor: pointer;
  font-size: 11px;
}

.consult-head-actions button:last-child {
  width: 38px;
  font-size: 25px;
  font-weight: 300;
  line-height: 1;
}

.consult-context {
  display: flex;
  padding: 8px 12px;
  gap: 8px;
  border-bottom: 1px solid rgba(122, 90, 73, 0.1);
  background: #fffaf4;
}

.consult-context button {
  padding: 6px 10px;
  border: 1px solid rgba(122, 90, 73, 0.16);
  border-radius: 999px;
  background: #fff;
  color: var(--cocoa-deep);
  cursor: pointer;
  font-size: 10px;
}

.consult-context b {
  margin-left: 3px;
  font-variant-numeric: tabular-nums;
}

.consult-human-status {
  padding: 8px 14px;
  border-top: 1px solid rgba(122, 90, 73, 0.09);
  border-bottom: 1px solid rgba(122, 90, 73, 0.09);
  background: #f3ecfa;
  color: #6f4a82;
  font-size: 10px;
  text-align: center;
}

.consult-thread {
  min-height: 0;
  padding: 18px 16px 10px;
  overflow-y: auto;
  overscroll-behavior: contain;
  background:
    linear-gradient(rgba(255, 253, 249, 0.88), rgba(255, 253, 249, 0.88)),
    radial-gradient(
      circle at 12% 20%,
      rgba(223, 185, 170, 0.2),
      transparent 40%
    );
  scrollbar-color: rgba(122, 90, 73, 0.24) transparent;
  scrollbar-width: thin;
}

.consult-message {
  display: grid;
  margin-bottom: 14px;
  gap: 10px;
}

.consult-message-user {
  justify-items: end;
}

.consult-bubble {
  width: fit-content;
  max-width: 88%;
  padding: 11px 13px;
  border: 1px solid var(--line);
  border-radius: 6px 17px 17px;
  background: #fff;
  box-shadow: 0 8px 26px rgba(72, 49, 38, 0.05);
  color: var(--ink-soft);
  font-size: 13px;
  line-height: 1.65;
}

.consult-message-user .consult-bubble {
  border-color: transparent;
  border-radius: 17px 6px 17px 17px;
  background: var(--cocoa-deep);
  color: #fff;
}

.consult-attachment-image {
  display: block;
  width: min(100%, 280px);
  max-height: 220px;
  margin-bottom: 8px;
  border-radius: 12px;
  object-fit: cover;
}

.consult-markdown {
  min-width: 0;
  overflow-wrap: anywhere;
}

.consult-markdown > :first-child {
  margin-top: 0;
}

.consult-markdown > :last-child {
  margin-bottom: 0;
}

.consult-markdown p,
.consult-markdown ul,
.consult-markdown ol,
.consult-markdown blockquote,
.consult-markdown pre,
.consult-markdown .consult-latex-block {
  margin: 0 0 0.7em;
}

.consult-markdown ul,
.consult-markdown ol {
  padding-left: 1.45em;
}

.consult-markdown blockquote {
  padding-left: 0.8em;
  color: color-mix(in srgb, currentColor 74%, transparent);
  border-left: 3px solid color-mix(in srgb, currentColor 24%, transparent);
}

.consult-markdown pre {
  max-width: 100%;
  padding: 10px 12px;
  overflow-x: auto;
  background: color-mix(in srgb, currentColor 7%, transparent);
  border-radius: 10px;
  white-space: pre;
}

.consult-markdown code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 0.88em;
}

.consult-markdown :not(pre) > code {
  padding: 0.12em 0.35em;
  background: color-mix(in srgb, currentColor 8%, transparent);
  border-radius: 4px;
}

.consult-markdown a {
  color: inherit;
  font-weight: 650;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.consult-markdown hr {
  margin: 0.8em 0;
  border: 0;
  border-top: 1px solid color-mix(in srgb, currentColor 18%, transparent);
}

.consult-markdown-table-scroll {
  max-width: 100%;
  margin: 0 0 0.7em;
  overflow-x: auto;
}

.consult-markdown table {
  width: max-content;
  min-width: 100%;
  border-collapse: collapse;
  font-size: 0.94em;
}

.consult-markdown th,
.consult-markdown td {
  min-width: 72px;
  padding: 6px 9px;
  text-align: left;
  border: 1px solid color-mix(in srgb, currentColor 16%, transparent);
}

.consult-markdown th {
  background: color-mix(in srgb, currentColor 6%, transparent);
  font-weight: 700;
}

.consult-latex {
  display: inline-block;
  max-width: 100%;
  overflow-x: auto;
  vertical-align: middle;
}

.consult-markdown > .consult-latex-block {
  display: block;
  text-align: center;
}

.consult-latex math {
  font-size: 1.06em;
}

.consult-bubble p {
  margin: 0;
  white-space: pre-wrap;
}

.consult-follow-up {
  margin-top: 7px;
  color: var(--cocoa);
  font-weight: 650;
}

.consult-recommendations {
  display: grid;
  width: 100%;
  gap: 9px;
}

.consult-recommendation {
  display: grid;
  width: 100%;
  padding: 9px;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 17px;
  background: #fff;
  box-shadow: 0 10px 30px rgba(72, 49, 38, 0.06);
  grid-template-columns: 74px minmax(0, 1fr);
  gap: 10px;
}

.consult-recommendation-photo {
  width: 74px;
  height: 86px;
  border-radius: 12px;
}

.consult-recommendation-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.consult-recommendation-copy {
  display: grid;
  min-width: 0;
  gap: 3px;
}

.consult-recommendation-copy strong {
  font-family: var(--serif);
  font-size: 15px;
}

.consult-recommendation-copy span {
  overflow: hidden;
  color: var(--muted);
  font-size: 10px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.consult-recommendation-copy p {
  display: -webkit-box;
  margin: 3px 0 0;
  overflow: hidden;
  color: var(--ink-soft);
  font-size: 11px;
  line-height: 1.5;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.consult-recommendation-actions {
  display: flex;
  padding-top: 1px;
  grid-column: 2;
  gap: 7px;
}

.consult-recommendation-actions a,
.consult-recommendation-actions button {
  padding: 6px 10px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: transparent;
  color: var(--cocoa-deep);
  cursor: pointer;
  font-size: 10px;
  font-weight: 650;
}

.consult-recommendation-actions a {
  border-color: var(--cocoa-deep);
  background: var(--cocoa-deep);
  color: #fff;
}

.consult-recommendation-actions button.is-active {
  border-color: #b04d67;
  color: #963e58;
  background: #fff2f5;
}

.consult-handoff {
  display: grid;
  width: 100%;
  padding: 13px;
  border: 1px solid rgba(201, 165, 109, 0.34);
  border-radius: 17px;
  background: linear-gradient(145deg, #fbf4e9, #fffaf3);
  gap: 10px;
}

.consult-handoff > div:first-child {
  display: grid;
  gap: 3px;
}

.consult-handoff span {
  color: #9a7043;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.13em;
}

.consult-handoff p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 11px;
  line-height: 1.55;
}

.consult-handoff > div:last-child {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.consult-handoff a,
.consult-handoff button {
  padding: 7px 10px;
  border: 1px solid rgba(122, 90, 73, 0.22);
  border-radius: 999px;
  background: #fff;
  color: var(--cocoa-deep);
  cursor: pointer;
  font-size: 10px;
  font-weight: 650;
}

.consult-handoff button {
  border-color: #7d9b72;
  background: #7d9b72;
  color: #fff;
}

.consult-typing {
  display: flex;
  min-height: 34px;
  padding: 4px 18px 8px;
  align-items: center;
  gap: 4px;
  color: var(--muted);
  font-size: 10px;
}

.consult-typing i {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  animation: consult-pulse 1s infinite ease-in-out;
  background: var(--rose);
}

.consult-typing i:nth-child(2) {
  animation-delay: 0.14s;
}

.consult-typing i:nth-child(3) {
  margin-right: 4px;
  animation-delay: 0.28s;
}

@keyframes consult-pulse {
  0%,
  60%,
  100% {
    transform: translateY(0);
    opacity: 0.45;
  }

  30% {
    transform: translateY(-3px);
    opacity: 1;
  }
}

.consult-quick-actions {
  display: flex;
  padding: 4px 14px 9px;
  overflow-x: auto;
  gap: 7px;
  scrollbar-width: none;
}

.consult-quick-actions::-webkit-scrollbar {
  display: none;
}

.consult-quick-actions button {
  flex: 0 0 auto;
  padding: 7px 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--cream);
  color: var(--cocoa-deep);
  cursor: pointer;
  font-size: 10px;
}

.consult-form {
  display: grid;
  margin: 0 13px;
  padding: 7px;
  align-items: end;
  border: 1px solid var(--line-strong);
  border-radius: 17px;
  background: #fff;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 7px;
}

.consult-attachment-preview {
  position: relative;
  width: 72px;
  grid-column: 1 / -1;
}

.consult-attachment-preview img {
  display: block;
  width: 72px;
  height: 72px;
  border-radius: 12px;
  object-fit: cover;
}

.consult-attachment-preview button {
  position: absolute;
  top: -7px;
  right: -7px;
  min-width: 22px;
  min-height: 22px;
  padding: 0;
  border-radius: 50%;
}

.consult-form .consult-image-button {
  min-width: 48px;
  padding: 7px 8px;
  background: var(--cream);
  color: var(--cocoa-deep);
  font-size: 10px;
}

.consult-form:focus-within {
  border-color: rgba(122, 90, 73, 0.55);
  box-shadow: 0 0 0 3px rgba(122, 90, 73, 0.08);
}

.consult-form textarea {
  width: 100%;
  min-height: 36px;
  max-height: 92px;
  padding: 8px 6px;
  resize: none;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--ink);
  font: 12px / 1.55 var(--sans);
}

.consult-form button {
  min-width: 58px;
  min-height: 36px;
  padding: 7px 11px;
  border: 0;
  border-radius: 12px;
  background: var(--cocoa-deep);
  color: #fff;
  cursor: pointer;
  font-size: 11px;
  font-weight: 650;
}

.consult-form button:disabled {
  cursor: wait;
  opacity: 0.65;
}

.consult-privacy {
  margin: 0;
  padding: 8px 12px 11px;
  color: var(--muted);
  font-size: 9px;
  text-align: center;
}

.has-compare-tray .consult-widget {
  bottom: calc(112px + env(safe-area-inset-bottom));
}

@media (min-width: 720px) {
  .consult-panel {
    position: fixed;
    right: 24px;
    bottom: calc(24px + env(safe-area-inset-bottom));
    height: min(650px, calc(100dvh - 48px - env(safe-area-inset-bottom)));
  }

  .has-compare-tray .consult-panel,
  body[data-page="detail"].has-compare-tray .consult-panel {
    bottom: calc(112px + env(safe-area-inset-bottom));
    height: min(650px, calc(100dvh - 136px - env(safe-area-inset-bottom)));
  }
}

@media (min-width: 720px) and (max-height: 760px) {
  .consult-head {
    min-height: 62px;
    padding-block: 9px;
  }

  .consult-head-brand img {
    width: 34px;
    height: 34px;
  }

  .consult-context {
    padding-block: 6px;
  }

  .consult-thread {
    padding: 12px 12px 7px;
  }

  .consult-message {
    margin-bottom: 10px;
    gap: 7px;
  }

  .consult-recommendation {
    padding: 7px;
    grid-template-columns: 60px minmax(0, 1fr);
    gap: 8px;
  }

  .consult-recommendation-photo {
    width: 60px;
    height: 68px;
  }

  .consult-handoff {
    padding: 9px;
    gap: 7px;
  }

  .consult-quick-actions {
    padding-block: 3px 6px;
  }

  .consult-privacy {
    padding-block: 5px 7px;
  }
}

@media (max-width: 899px) {
  .site-header .brand-copy {
    display: none;
  }
}

@media (max-width: 719px) {
  .site-footer {
    padding: 26px max(20px, env(safe-area-inset-left))
      calc(132px + env(safe-area-inset-bottom));
    gap: 13px;
  }

  .footer-contact-links {
    align-items: flex-start;
    flex-direction: column;
    gap: 5px;
  }

  .consult-widget {
    right: 14px;
    bottom: calc(18px + env(safe-area-inset-bottom));
    touch-action: none;
    transition:
      left 180ms ease,
      right 180ms ease;
  }

  body[data-page="about"] .consult-dock-toggle,
  body[data-page="about"] .consult-launcher strong {
    display: none;
  }

  body[data-page="about"] .consult-launcher {
    min-width: 58px;
    padding: 8px 11px;
  }

  .consult-widget.is-consult-dragging {
    transition: none;
  }

  .consult-launcher-shell {
    gap: 5px;
  }

  .consult-widget[data-consult-side="left"] .consult-launcher-shell {
    flex-direction: row-reverse;
  }

  .consult-dock-toggle {
    display: grid;
    width: 30px;
    height: 40px;
    padding: 0;
    place-items: center;
    border: 1px solid rgba(122, 90, 73, 0.18);
    border-radius: 999px;
    background: rgba(255, 253, 249, 0.94);
    box-shadow: 0 8px 24px rgba(65, 40, 31, 0.16);
    color: var(--cocoa-deep);
    cursor: pointer;
    font-size: 24px;
    line-height: 1;
  }

  .consult-launcher {
    user-select: none;
    -webkit-user-select: none;
  }

  .is-consult-docked .consult-dock-toggle,
  .is-consult-docked .consult-launcher strong {
    display: none;
  }

  .is-consult-docked .consult-launcher {
    min-width: 58px;
    padding: 8px 11px;
  }

  .is-consult-docked[data-consult-side="left"] .consult-launcher {
    justify-content: flex-end;
  }

  .consult-nudge {
    display: none;
  }

  body[data-page="detail"] .consult-widget {
    bottom: calc(84px + env(safe-area-inset-bottom));
  }

  .has-compare-tray .consult-widget,
  body[data-page="detail"].has-compare-tray .consult-widget {
    bottom: calc(104px + env(safe-area-inset-bottom));
  }

  .consult-panel {
    position: fixed;
    z-index: 170;
    inset: 0;
    width: 100%;
    height: 100dvh;
    border: 0;
    border-radius: 0;
    background: #f5f1ed;
    box-shadow: none;
  }

  .is-consult-open {
    overflow: hidden;
  }

  .consult-thread {
    padding: 16px 12px 10px;
    background: #f5f1ed;
  }

  .consult-bubble {
    max-width: 84%;
    border: 0;
    border-radius: 6px;
    box-shadow: none;
    font-size: 15px;
    line-height: 1.55;
  }

  .consult-message-user .consult-bubble {
    border-radius: 6px;
    background: #8a6653;
  }

  .consult-head {
    min-height: calc(58px + env(safe-area-inset-top));
    padding: calc(9px + env(safe-area-inset-top)) 12px 9px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
    background: linear-gradient(135deg, #51392f, #805a49);
    color: #fff;
  }

  .consult-head-brand img {
    width: 36px;
    height: 36px;
    border-color: rgba(255, 255, 255, 0.2);
    background: rgba(255, 255, 255, 0.09);
  }

  .consult-head-brand strong {
    font-family: var(--sans);
    font-size: 16px;
  }

  .consult-head-brand span {
    color: rgba(255, 255, 255, 0.7);
    letter-spacing: 0.06em;
  }

  .consult-head-actions button {
    background: transparent;
    color: #fff;
    font-size: 12px;
  }

  .consult-context {
    padding: 7px 10px;
    border-color: rgba(0, 0, 0, 0.07);
    background: #fffaf4;
  }

  .consult-context button {
    min-height: 34px;
    padding-inline: 12px;
    border-color: rgba(0, 0, 0, 0.1);
    background: #fff;
  }

  .consult-recommendation,
  .consult-handoff {
    border-color: rgba(0, 0, 0, 0.09);
    border-radius: 8px;
    box-shadow: none;
  }

  .consult-typing,
  .consult-quick-actions,
  .consult-human-status {
    background: #f5f1ed;
  }

  .consult-quick-actions {
    padding: 6px 10px 8px;
  }

  .consult-quick-actions button {
    min-height: 34px;
    border-color: rgba(0, 0, 0, 0.1);
    background: #fff;
  }

  .consult-form {
    margin: 0;
    padding: 8px 10px;
    border-width: 1px 0 0;
    border-color: rgba(0, 0, 0, 0.08);
    border-radius: 0;
    background: #fffaf6;
  }

  .consult-form:focus-within {
    border-color: rgba(0, 0, 0, 0.08);
    box-shadow: none;
  }

  .consult-form textarea {
    min-height: 40px;
    padding: 9px 10px;
    border-radius: 6px;
    background: #fff;
    font-size: 15px;
  }

  .consult-form button {
    min-width: 64px;
    min-height: 40px;
    border-radius: 6px;
    font-size: 14px;
  }

  .consult-privacy {
    padding: 5px 10px calc(7px + env(safe-area-inset-bottom));
    background: #fffaf6;
    color: #999;
  }
}

.nursery-hero {
  background:
    radial-gradient(
      circle at 18% 22%,
      rgba(238, 199, 174, 0.32),
      transparent 34%
    ),
    linear-gradient(135deg, #fbf1e7 0%, #fffaf4 54%, #f4e6da 100%);
}

.nursery-seal {
  border-color: rgba(151, 105, 80, 0.38);
  background: rgba(255, 250, 244, 0.78);
}

.nursery-note {
  width: min(1240px, calc(100% - 36px));
  margin: 0 auto;
  padding: 76px 0 18px;
}

.nursery-note > p,
.nursery-list-heading span {
  margin: 0;
  color: var(--cocoa);
  font-size: 11px;
  letter-spacing: 0.12em;
}

.nursery-note > h2 {
  max-width: 12em;
  margin: 10px 0 34px;
  font-family: var(--serif);
  font-size: clamp(31px, 7vw, 52px);
  font-weight: 500;
  letter-spacing: -0.035em;
  line-height: 1.2;
}

.nursery-steps {
  display: grid;
  gap: 12px;
}

.nursery-steps article {
  min-width: 0;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 26px 26px 26px 10px;
  background: rgba(255, 253, 249, 0.66);
}

.nursery-steps span {
  color: var(--cocoa);
  font-family: var(--serif);
  font-size: 12px;
}

.nursery-steps h3 {
  margin: 20px 0 8px;
  font-family: var(--serif);
  font-size: 23px;
  font-weight: 500;
}

.nursery-steps p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 13px;
  line-height: 1.8;
}

.nursery-list-section {
  padding-top: 58px;
}

.nursery-list-heading {
  align-items: end;
}

.nursery-list-heading > p {
  color: var(--muted);
  font-size: 12px;
}

.nursery-grid .cat-card-image-link {
  background: linear-gradient(160deg, #f5e6d9, #fffaf3);
}

.nursery-contact {
  margin-top: 52px;
}

.graduate-hero {
  background:
    radial-gradient(
      circle at 20% 24%,
      rgba(218, 190, 154, 0.28),
      transparent 34%
    ),
    linear-gradient(135deg, #f7eee3 0%, #fffaf4 52%, #eadfd0 100%);
}

.graduate-seal {
  border-color: rgba(126, 91, 66, 0.38);
  background: rgba(255, 250, 244, 0.82);
}

.graduate-note {
  width: min(1240px, calc(100% - 36px));
  margin: 0 auto;
  padding: 76px 0 8px;
}

.graduate-note > p:first-child,
.graduate-list-heading span {
  margin: 0;
  color: var(--cocoa);
  font-size: 11px;
  letter-spacing: 0.12em;
}

.graduate-note > h2 {
  max-width: 13em;
  margin: 10px 0 22px;
  font-family: var(--serif);
  font-size: clamp(31px, 7vw, 52px);
  font-weight: 500;
  letter-spacing: -0.035em;
  line-height: 1.2;
}

.graduate-note-copy {
  max-width: 44em;
  margin: 0;
  color: var(--ink-soft);
  font-size: 14px;
  line-height: 1.9;
}

.graduate-list-section {
  padding-top: 54px;
}

.graduate-list-heading {
  align-items: end;
}

.graduate-list-heading > p {
  color: var(--muted);
  font-size: 12px;
}

.graduate-grid .cat-card-image-link {
  background: linear-gradient(160deg, #efe3d4, #fffaf3);
}

.graduate-grid .cat-card-actions {
  grid-template-columns: minmax(0, 1fr);
}

/* Breeding plan: the decorative layer is deliberately cat-free. Every cat
   visible below is a real archive photo rendered by the public publisher. */
.breeding-page {
  --breeding-background-scale: 100%;
  --breeding-background-x: 50%;
  --breeding-background-y: 50%;
  --breeding-decoration-scale: 1;
  --breeding-hero-title-min: 48px;
  --breeding-hero-title-fluid: 8vw;
  --breeding-hero-title-max: 98px;
  --breeding-body-min: 15px;
  --breeding-body-fluid: 2vw;
  --breeding-body-max: 18px;
  --breeding-pair-title-min: 25px;
  --breeding-pair-title-fluid: 4vw;
  --breeding-pair-title-max: 46px;
  --breeding-parent-name-min: 28px;
  --breeding-parent-name-fluid: 4vw;
  --breeding-parent-name-max: 46px;

  overflow: hidden;
  background:
    radial-gradient(
      circle at 12% 8%,
      rgba(231, 186, 151, 0.18),
      transparent 30%
    ),
    linear-gradient(180deg, #fffaf4 0%, #fbf4ea 58%, #fffaf5 100%);
}

.breeding-font-songti {
  font-family: var(--serif);
}

.breeding-font-heiti {
  font-family: "PingFang SC", "Microsoft YaHei", sans-serif;
}

.breeding-font-kaiti {
  font-family: "Kaiti SC", "STKaiti", serif;
}

.breeding-font-fangsong {
  font-family: "FangSong SC", "STFangsong", serif;
}

.breeding-font-yuan {
  font-family: "Yuanti SC", "STYuanti", "PingFang SC", sans-serif;
}

[data-breeding-eyebrow]:empty,
[data-breeding-intro]:empty,
[data-breeding-note]:empty {
  display: none;
}

.breeding-background-ivory {
  background:
    radial-gradient(
      circle at 14% 9%,
      rgba(209, 172, 132, 0.14),
      transparent 31%
    ),
    linear-gradient(180deg, #fffaf1 0%, #f8edda 60%, #fffaf4 100%);
}

.breeding-background-blush {
  background:
    radial-gradient(circle at 12% 8%, rgba(224, 163, 157, 0.2), transparent 31%),
    linear-gradient(180deg, #fff8f4 0%, #fae9e0 60%, #fff8f4 100%);
}

.breeding-hero {
  position: relative;
  display: grid;
  min-height: min(760px, 82vh);
  grid-template-columns: minmax(0, 1.05fr) minmax(280px, 0.95fr);
  align-items: center;
  gap: clamp(32px, 7vw, 108px);
  width: min(1320px, calc(100% - 40px));
  margin: 0 auto;
  padding: clamp(88px, 12vw, 160px) 0;
}

.breeding-hero::before,
.breeding-hero::after {
  position: absolute;
  z-index: 0;
  border: 1px solid rgba(160, 116, 83, 0.2);
  border-radius: 50%;
  content: "";
  pointer-events: none;
}

.breeding-hero::before {
  top: 12%;
  right: -17%;
  width: min(700px, 62vw);
  aspect-ratio: 1;
}

.breeding-hero::after {
  right: -4%;
  bottom: 4%;
  width: min(410px, 38vw);
  aspect-ratio: 1;
}

.breeding-hero-copy,
.breeding-hero-art {
  position: relative;
  z-index: 1;
}

.breeding-hero-copy h1 {
  max-width: 9.5em;
  margin: 18px 0 26px;
  color: var(--ink);
  font-family: inherit;
  font-size: clamp(
    var(--breeding-hero-title-min),
    var(--breeding-hero-title-fluid),
    var(--breeding-hero-title-max)
  );
  font-weight: 500;
  letter-spacing: -0.06em;
  line-height: 1.04;
}

.breeding-hero-copy p {
  max-width: 37em;
  margin: 0 0 34px;
  color: var(--ink-soft);
  font-size: clamp(
    var(--breeding-body-min),
    var(--breeding-body-fluid),
    var(--breeding-body-max)
  );
  line-height: 1.9;
}

.breeding-hero-art {
  position: relative;
  display: grid;
  min-height: 420px;
  place-items: center;
  border-radius: 48% 48% 44% 44%;
  background:
    linear-gradient(rgba(255, 250, 244, 0.2), rgba(255, 250, 244, 0.2)),
    url("./breeding/watercolor-ivory-v1.jpg") var(--breeding-background-x)
    var(--breeding-background-y) / cover no-repeat;
  box-shadow: 0 34px 80px rgba(91, 64, 46, 0.11);
}

.breeding-background-ivory .breeding-hero-art,
.breeding-background-ivory .breeding-pair-card {
  background-image:
    radial-gradient(
      circle at 18% 15%,
      rgba(213, 178, 141, 0.2),
      transparent 30%
    ),
    linear-gradient(150deg, rgba(255, 252, 245, 0.96), rgba(242, 226, 204, 0.9));
}

.breeding-background-blush .breeding-hero-art,
.breeding-background-blush .breeding-pair-card {
  background-image:
    radial-gradient(
      circle at 16% 14%,
      rgba(225, 159, 154, 0.23),
      transparent 30%
    ),
    linear-gradient(150deg, rgba(255, 250, 246, 0.96), rgba(246, 220, 212, 0.9));
}

.breeding-hero-art::after {
  position: absolute;
  right: -6%;
  bottom: -5%;
  width: 150px;
  aspect-ratio: 1;
  border: 2px solid rgba(132, 144, 104, 0.22);
  border-radius: 78% 22% 70% 30%;
  content: "";
  pointer-events: none;
  transform: rotate(-19deg) scale(var(--breeding-decoration-scale));
}

.breeding-decoration-paw .breeding-hero-art::after {
  border: 0;
  border-radius: 50%;
  background:
    radial-gradient(
      circle at 50% 64%,
      rgba(151, 106, 85, 0.2) 0 20%,
      transparent 21%
    ),
    radial-gradient(
      circle at 31% 34%,
      rgba(151, 106, 85, 0.2) 0 9%,
      transparent 10%
    ),
    radial-gradient(
      circle at 50% 22%,
      rgba(151, 106, 85, 0.2) 0 9%,
      transparent 10%
    ),
    radial-gradient(
      circle at 69% 34%,
      rgba(151, 106, 85, 0.2) 0 9%,
      transparent 10%
    );
}

.breeding-decoration-minimal .breeding-hero-art::after {
  display: none;
}

.breeding-hero-monogram {
  display: grid;
  place-items: center;
}

.breeding-hero-monogram > span {
  display: grid;
  width: 132px;
  aspect-ratio: 1;
  place-items: center;
  border: 1px solid rgba(127, 91, 65, 0.25);
  border-radius: 50%;
  color: var(--cocoa);
  font-family: var(--serif);
  font-size: 40px;
}

.breeding-hero-monogram > i {
  width: 1px;
  height: 68px;
  background: rgba(127, 91, 65, 0.3);
}

.breeding-hero-monogram > b {
  color: rgba(91, 64, 46, 0.7);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.3em;
  line-height: 2;
  text-align: center;
}

.breeding-has-group .breeding-hero-art {
  align-content: center;
  gap: 20px;
  padding: clamp(24px, 4vw, 48px);
}

.breeding-has-group .breeding-hero-monogram {
  opacity: 0.7;
  transform: scale(0.62);
  transform-origin: center top;
}

.breeding-group-portrait {
  display: grid;
  place-items: center;
  width: 100%;
  padding: 20px 0 0;
}

.breeding-group-artwork {
  position: relative;
  width: min(var(--breeding-group-artwork-width, 62%), 620px);
  overflow: hidden;
  aspect-ratio: 4 / 3;
  border: 6px solid rgba(255, 251, 244, 0.95);
  border-radius: clamp(22px, 4vw, 42px);
  background: #eadfd1;
  box-shadow: 0 20px 44px rgba(82, 55, 40, 0.16);
}

.breeding-group-artwork .image-shell,
.breeding-group-artwork img {
  display: block;
  width: 100%;
  height: 100%;
}

.breeding-group-artwork img {
  object-fit: cover;
  object-position: var(--breeding-photo-x) var(--breeding-photo-y);
  transform: scale(var(--breeding-photo-scale));
  transform-origin: var(--breeding-photo-x) var(--breeding-photo-y);
}

.breeding-group-artwork.breeding-photo-bounds .image-shell {
  position: absolute;
  top: var(--breeding-photo-top);
  left: var(--breeding-photo-left);
  display: block;
  width: var(--breeding-photo-width);
  height: var(--breeding-photo-height);
}

.breeding-group-artwork.breeding-photo-bounds img {
  position: absolute;
  top: 50%;
  left: 50%;
  display: block;
  width: 100%;
  height: 100%;
  max-width: none;
  max-height: none;
  object-fit: fill;
  transform: translate(-50%, -50%);
}

.breeding-philosophy {
  display: grid;
  grid-template-columns: 130px minmax(0, 1fr) minmax(230px, 0.45fr);
  gap: 30px;
  align-items: start;
  width: min(1320px, calc(100% - 40px));
  margin: 0 auto;
  padding: 44px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.breeding-philosophy > span {
  color: var(--cocoa);
  font-size: 11px;
  letter-spacing: 0.18em;
}

.breeding-philosophy > p {
  margin: 0;
  color: var(--ink);
  font-family: var(--serif);
  font-size: clamp(22px, 3vw, 34px);
  line-height: 1.45;
}

.breeding-philosophy > small {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.8;
}

.breeding-pairs-section {
  width: min(1320px, calc(100% - 40px));
  margin: 0 auto;
  padding: clamp(84px, 11vw, 150px) 0;
}

.breeding-pairs-heading {
  align-items: end;
}

.breeding-pairs-heading > p {
  max-width: 34em;
  color: var(--muted);
  line-height: 1.8;
}

.breeding-plan-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(18px, 2.4vw, 32px);
  margin-top: clamp(42px, 6vw, 72px);
}

.breeding-pair-card {
  position: relative;
  overflow: hidden;
  padding: clamp(22px, 2.5vw, 34px);
  border: 1px solid rgba(127, 91, 65, 0.16);
  border-radius: clamp(24px, 3vw, 38px);
  background:
    linear-gradient(rgba(255, 251, 245, 0.78), rgba(255, 251, 245, 0.78)),
    url("./breeding/watercolor-ivory-v1.jpg") center / cover no-repeat;
  box-shadow: 0 24px 72px rgba(91, 64, 46, 0.07);
}

.breeding-pair-card:nth-child(even) {
  background-position: center 35%;
}

.breeding-pair-heading {
  display: block;
  padding-bottom: clamp(18px, 2.5vw, 28px);
}

.breeding-pair-heading span,
.breeding-parent-role {
  color: var(--cocoa);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.18em;
}

.breeding-pair-heading h2 {
  margin: 8px 0 0;
  color: var(--ink);
  font-family: inherit;
  font-size: clamp(23px, 2.2vw, 32px);
  font-weight: 500;
}

.breeding-pair-parents {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 40px minmax(0, 1fr);
  align-items: center;
  gap: clamp(7px, 1vw, 12px);
}

.breeding-parent {
  min-width: 0;
  color: inherit;
  text-decoration: none;
}

.breeding-parent-photo {
  position: relative;
  overflow: hidden;
  aspect-ratio: 4 / 5;
  margin-bottom: 13px;
  border-radius: 46% 46% 20px 20px;
  background: #eee3d6;
  box-shadow: 0 20px 44px rgba(82, 55, 40, 0.12);
}

.breeding-parent-photo .image-shell,
.breeding-parent-photo img {
  display: block;
  width: 100%;
  height: 100%;
  aspect-ratio: 4 / 5;
}

.breeding-parent-photo img {
  object-fit: cover;
  object-position: var(--breeding-photo-x) var(--breeding-photo-y);
  transform: scale(var(--breeding-photo-scale));
  transform-origin: var(--breeding-photo-x) var(--breeding-photo-y);
  transition: transform 420ms ease;
}

.breeding-parent-photo.breeding-photo-bounds .image-shell {
  position: absolute;
  top: var(--breeding-photo-top);
  left: var(--breeding-photo-left);
  display: block;
  width: var(--breeding-photo-width);
  height: var(--breeding-photo-height);
}

.breeding-parent-photo.breeding-photo-bounds img {
  position: absolute;
  top: 50%;
  left: 50%;
  display: block;
  width: 100%;
  height: 100%;
  max-width: none;
  max-height: none;
  object-fit: fill;
  transform: translate(-50%, -50%);
  transition: transform 420ms ease;
}

.breeding-parent[href]:hover .breeding-parent-photo img {
  transform: scale(var(--breeding-photo-hover-scale));
}

.breeding-parent[href]:hover
  .breeding-parent-photo.breeding-photo-bounds
  img {
  transform: translate(-50%, -50%) scale(1.025);
}

.breeding-parent h3 {
  margin: 6px 0 4px;
  overflow: hidden;
  color: var(--ink);
  font-family: inherit;
  font-size: clamp(20px, 1.8vw, 27px);
  font-weight: 500;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.breeding-parent p {
  min-height: 1.5em;
  margin: 0;
  overflow: hidden;
  color: var(--muted);
  font-size: 13px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.breeding-pair-bond {
  display: grid;
  place-items: center;
  color: var(--cocoa);
}

.breeding-pair-bond span {
  display: grid;
  width: 40px;
  aspect-ratio: 1;
  place-items: center;
  border: 1px solid rgba(127, 91, 65, 0.28);
  border-radius: 50%;
  background: rgba(255, 250, 244, 0.72);
  font-family: var(--serif);
  font-size: 22px;
}

.breeding-pair-bond small {
  margin-top: 12px;
  font-size: 8px;
  letter-spacing: 0.22em;
}

.breeding-closing {
  width: min(900px, calc(100% - 40px));
  margin: 0 auto;
  padding: 20px 0 clamp(100px, 13vw, 180px);
  text-align: center;
}

.breeding-closing h2 {
  margin: 18px auto 24px;
  color: var(--ink);
  font-family: var(--serif);
  font-size: clamp(34px, 6vw, 66px);
  font-weight: 500;
  letter-spacing: -0.04em;
  line-height: 1.18;
}

.breeding-closing > p {
  max-width: 40em;
  margin: 0 auto 34px;
  color: var(--ink-soft);
  line-height: 1.9;
}

.breeding-closing > div {
  display: flex;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
}

@media (min-width: 640px) {
  .nursery-steps {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .nursery-list-heading {
    grid-template-columns: minmax(0, 1fr) auto;
  }

  .graduate-list-heading {
    grid-template-columns: minmax(0, 1fr) auto;
  }
}

@media (max-width: 760px) {
  .breeding-hero {
    min-height: auto;
    grid-template-columns: 1fr;
    padding: 74px 0 50px;
  }

  .breeding-hero-art {
    min-height: 290px;
  }

  .breeding-philosophy {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .breeding-pair-heading {
    display: block;
  }

  .breeding-pair-heading h2 {
    margin-top: 9px;
  }

  .breeding-plan-grid {
    grid-template-columns: 1fr;
  }

  .breeding-pair-parents {
    grid-template-columns: minmax(0, 1fr) 38px minmax(0, 1fr);
    gap: 8px;
  }

  .breeding-parent-photo {
    margin-bottom: 14px;
    border-radius: 46% 46% 18px 18px;
  }

  .breeding-parent h3 {
    font-size: 26px;
  }

  .breeding-parent p {
    font-size: 11px;
  }

  .breeding-pair-bond span {
    width: 36px;
    font-size: 21px;
  }

  .breeding-pair-bond small {
    display: none;
  }
}

@media (min-width: 761px) and (max-width: 1120px) {
  .breeding-plan-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .site-header .brand-copy {
    display: none;
  }

  .site-header {
    gap: 8px;
  }

  .header-actions {
    gap: 1px;
  }

  .quiet-button,
  .header-contact {
    min-width: 40px;
    padding-inline: 8px;
  }

  .site-nav-menu {
    position: fixed;
    top: calc(var(--header-height) - 4px);
    right: 12px;
    left: 12px;
    width: auto;
  }
}

@media (max-width: 420px) {
  .brand-copy strong {
    max-width: 150px;
  }

  .brand-copy small {
    display: none;
  }

  .header-actions {
    gap: 0;
  }

  .quiet-button {
    padding-inline: 7px;
  }

  .hero-gallery {
    min-height: 390px;
  }

  .cat-grid {
    gap: 34px;
  }

  .summary-facts {
    grid-template-columns: 1fr 1fr;
  }
}

.entity-summary {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1.7fr) auto;
  gap: 18px;
  align-items: center;
  width: min(1180px, calc(100% - 32px));
  margin: 18px auto 0;
  padding: 20px 22px;
  border: 1px solid rgba(116, 83, 66, 0.16);
  border-radius: 22px;
  background: rgba(255, 250, 244, 0.82);
  box-shadow: 0 16px 42px rgba(68, 45, 34, 0.07);
}

.entity-summary div {
  display: grid;
  gap: 5px;
}

.entity-summary span {
  color: var(--champagne);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.16em;
}

.entity-summary strong {
  color: var(--ink);
  font-family: var(--serif);
  font-size: clamp(18px, 2.2vw, 24px);
  font-weight: 500;
  line-height: 1.35;
}

.entity-summary p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 13px;
  line-height: 1.75;
}

.entity-summary a {
  color: var(--cocoa-deep);
  font-size: 13px;
  font-weight: 700;
  text-decoration: underline;
  text-decoration-color: rgba(116, 83, 66, 0.28);
  text-underline-offset: 5px;
}

.entity-summary-about {
  width: 100%;
}

.entity-summary-about {
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1.7fr);
}

.about-evidence-guide a {
  color: var(--cocoa-deep);
  font-weight: 700;
  text-decoration-color: rgba(116, 83, 66, 0.28);
  text-underline-offset: 4px;
}

.entity-summary-pedigree {
  display: block;
  margin-top: 26px;
  color: var(--ink-soft);
  font-size: 14px;
  line-height: 1.8;
  text-align: center;
}

.evidence-article {
  width: min(1040px, calc(100% - 28px));
  margin: 0 auto;
  padding: clamp(44px, 7vw, 86px) 0 100px;
}

.evidence-hero {
  padding: clamp(34px, 7vw, 72px);
  border: 1px solid rgba(116, 83, 66, 0.13);
  border-radius: clamp(26px, 4vw, 42px);
  background:
    radial-gradient(circle at 90% 12%, rgba(198, 153, 119, 0.18), transparent 35%),
    #fffaf4;
  box-shadow: 0 26px 70px rgba(60, 42, 33, 0.1);
}

.evidence-hero h1,
.evidence-section h2 {
  color: var(--ink);
  font-family: var(--serif);
  font-weight: 500;
  letter-spacing: -0.035em;
  text-wrap: balance;
}

.evidence-hero h1 {
  max-width: 12em;
  margin: 14px 0 24px;
  font-size: clamp(42px, 7vw, 76px);
  line-height: 1.08;
}

.evidence-direct-answer {
  max-width: 780px;
  margin: 0;
  color: var(--ink-soft);
  font-size: clamp(16px, 2.2vw, 20px);
  line-height: 1.9;
}

.evidence-direct-answer strong {
  color: var(--cocoa-deep);
}

.evidence-byline {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  overflow: hidden;
  margin: 34px 0 0;
  border: 1px solid rgba(116, 83, 66, 0.12);
  border-radius: 16px;
  background: rgba(116, 83, 66, 0.12);
}

.evidence-byline div {
  padding: 14px 16px;
  background: rgba(255, 255, 255, 0.76);
}

.evidence-byline dt {
  color: var(--muted);
  font-size: 10px;
  letter-spacing: 0.1em;
}

.evidence-byline dd {
  margin: 5px 0 0;
  color: var(--ink);
  font-size: 13px;
  line-height: 1.5;
}

.evidence-toc {
  display: flex;
  gap: 10px 18px;
  align-items: center;
  margin: 18px 0 0;
  padding: 17px 22px;
  overflow-x: auto;
  border: 1px solid rgba(116, 83, 66, 0.12);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.74);
  white-space: nowrap;
}

.evidence-toc strong {
  color: var(--ink);
  font-family: var(--serif);
}

.evidence-toc a {
  color: var(--cocoa-deep);
  font-size: 13px;
}

.evidence-section {
  padding: clamp(56px, 8vw, 92px) clamp(4px, 3vw, 30px) 0;
  scroll-margin-top: calc(var(--header-height) + 18px);
}

.evidence-section h2 {
  max-width: 16em;
  margin: 12px 0 24px;
  font-size: clamp(32px, 5vw, 54px);
  line-height: 1.15;
}

.evidence-section > p {
  max-width: 800px;
  color: var(--ink-soft);
  font-size: 16px;
  line-height: 1.9;
}

.evidence-steps {
  display: grid;
  gap: 14px;
  padding: 0;
  list-style: none;
  counter-reset: evidence-step;
}

.evidence-steps li {
  position: relative;
  display: grid;
  grid-template-columns: minmax(170px, 0.7fr) minmax(0, 1.8fr);
  gap: 24px;
  padding: 24px 26px 24px 76px;
  border: 1px solid rgba(116, 83, 66, 0.13);
  border-radius: 20px;
  background: rgba(255, 250, 244, 0.72);
  counter-increment: evidence-step;
}

.evidence-steps li::before {
  position: absolute;
  top: 21px;
  left: 24px;
  display: grid;
  width: 34px;
  aspect-ratio: 1;
  place-items: center;
  border-radius: 50%;
  color: #fffaf4;
  background: var(--cocoa-deep);
  content: counter(evidence-step, decimal-leading-zero);
  font-size: 10px;
}

.evidence-steps strong {
  color: var(--ink);
  font-family: var(--serif);
  font-size: 22px;
  font-weight: 500;
}

.evidence-steps p {
  margin: 0;
  color: var(--ink-soft);
  line-height: 1.8;
}

.evidence-table-wrap {
  overflow-x: auto;
  border: 1px solid rgba(116, 83, 66, 0.14);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.78);
}

.evidence-table-wrap table {
  width: 100%;
  min-width: 700px;
  border-collapse: collapse;
}

.evidence-table-wrap th,
.evidence-table-wrap td {
  padding: 18px 20px;
  border-bottom: 1px solid rgba(116, 83, 66, 0.12);
  color: var(--ink-soft);
  line-height: 1.75;
  text-align: left;
  vertical-align: top;
}

.evidence-table-wrap thead th,
.evidence-table-wrap tbody th {
  color: var(--ink);
}

.evidence-table-wrap tbody tr:last-child th,
.evidence-table-wrap tbody tr:last-child td {
  border-bottom: 0;
}

.evidence-boundary {
  margin: clamp(54px, 8vw, 88px) clamp(4px, 3vw, 30px) 0;
  padding: clamp(26px, 5vw, 44px);
  border-left: 5px solid var(--cocoa-deep);
  border-radius: 0 24px 24px 0;
  color: #513a2f;
  background: #f2e5da;
}

.evidence-boundary strong,
.evidence-case-grid strong,
.evidence-review-note strong {
  color: var(--ink);
  font-family: var(--serif);
  font-size: clamp(21px, 3vw, 28px);
  font-weight: 500;
}

.evidence-boundary p,
.evidence-case-grid p,
.evidence-review-note p {
  margin: 10px 0 0;
  line-height: 1.85;
}

.evidence-case-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin: 28px 0;
}

.evidence-case-grid article {
  padding: 26px;
  border: 1px solid rgba(116, 83, 66, 0.13);
  border-radius: 20px;
  background: rgba(255, 250, 244, 0.72);
}

.evidence-faq {
  display: grid;
  gap: 10px;
}

.evidence-faq details {
  border: 1px solid rgba(116, 83, 66, 0.13);
  border-radius: 18px;
  background: rgba(255, 250, 244, 0.72);
}

.evidence-faq summary {
  padding: 20px 22px;
  color: var(--ink);
  font-family: var(--serif);
  font-size: 20px;
  cursor: pointer;
}

.evidence-faq p {
  margin: 0;
  padding: 0 22px 22px;
  color: var(--ink-soft);
  line-height: 1.85;
}

.evidence-sources ol {
  display: grid;
  gap: 12px;
  max-width: 820px;
  padding-left: 24px;
}

.evidence-sources li {
  padding-left: 6px;
  color: var(--muted);
  line-height: 1.75;
}

.evidence-sources a {
  color: var(--cocoa-deep);
  overflow-wrap: anywhere;
  text-decoration: underline;
  text-decoration-color: rgba(116, 83, 66, 0.25);
  text-underline-offset: 4px;
}

.evidence-review-note {
  margin: clamp(56px, 8vw, 90px) clamp(4px, 3vw, 30px) 0;
  padding: 28px;
  border: 1px dashed rgba(116, 83, 66, 0.35);
  border-radius: 20px;
  color: var(--ink-soft);
}

@media (max-width: 760px) {
  .entity-summary {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .evidence-byline,
  .evidence-case-grid {
    grid-template-columns: 1fr;
  }

  .evidence-steps li {
    grid-template-columns: 1fr;
    gap: 8px;
    padding: 68px 20px 22px;
  }

  .evidence-steps li::before {
    top: 20px;
    left: 20px;
  }

  .evidence-toc {
    margin-inline: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}
