/* Texas Royal Yorkies — Family Tree */
:root {
  --navy-950: #060d18;
  --navy-900: #0a1628;
  --navy-800: #12203a;
  --navy-700: #1a2f52;
  --gold-400: #e0c35a;
  --gold-500: #c9a227;
  --gold-600: #a8841a;
  --cream: #f7f0e3;
  --cream-dim: #e8dfcf;
  --burgundy: #6b2d3c;
  --burgundy-soft: #8f3d52;
  --mist: rgba(247, 240, 227, 0.08);
  --text: #f7f0e3;
  --text-muted: rgba(247, 240, 227, 0.68);
  --success: #3d8b6e;
  --danger: #c45c5c;
  --info: #4a7ab5;
  --radius: 14px;
  --radius-sm: 8px;
  --shadow: 0 20px 60px rgba(0, 0, 0, 0.45);
  --font-display: "Cormorant Garamond", Georgia, serif;
  --font-body: "Outfit", system-ui, sans-serif;
  --header-h: 72px;
  --max: 1180px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-weight: 400;
  color: var(--text);
  background: var(--navy-900);
  line-height: 1.55;
  min-height: 100vh;
}
img, video { max-width: 100%; display: block; }
a { color: var(--gold-400); text-decoration: none; transition: color .2s, opacity .2s; }
a:hover { color: var(--cream); }
button, input, select, textarea { font: inherit; }
.skip-link {
  position: absolute; left: -999px; top: 0; background: var(--gold-500); color: var(--navy-900);
  padding: .5rem 1rem; z-index: 1000;
}
.skip-link:focus { left: 0; }

/* Header — sticky white bar */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255, 255, 255, 0.97);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(10, 22, 40, 0.1);
  box-shadow: 0 1px 12px rgba(10, 22, 40, 0.06);
}
.header-inner {
  /* Full-width bar so brand sits farther left and nav has room on the right */
  max-width: none;
  width: 100%;
  margin: 0;
  padding: 0 1.75rem 0 0.65rem;
  height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 2.5rem;
}
.brand {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  color: var(--navy-900);
  flex: 0 0 auto;
  margin-right: auto; /* push nav links away to the right */
}

/*
 * Original logo.png — full artwork (no circular badge crop).
 */
.brand-logo,
.footer-logo,
.logo-mark,
.feature-icon-logo {
  object-fit: contain;
  display: block;
  flex-shrink: 0;
  border-radius: 0;
  background: transparent;
  border: none;
  padding: 0;
  box-shadow: none;
}

.brand-logo {
  width: 96px;
  height: 96px;
  max-width: none;
}

.footer-logo {
  width: 96px;
  height: 96px;
  max-width: none;
}

.logo-mark {
  width: min(168px, 48vw);
  height: min(168px, 48vw);
  max-height: none;
  margin: 0 auto 1rem;
}

.logo-mark-lg {
  width: min(200px, 56vw);
  height: min(200px, 56vw);
  margin-bottom: 1.15rem;
}

.feature-icon-logo {
  width: 64px;
  height: 64px;
}

/* Header height can grow slightly with larger badge */
.site-header .header-inner {
  min-height: var(--header-h);
  height: auto;
  padding-top: .55rem;
  padding-bottom: .55rem;
  padding-left: 0.65rem;
  padding-right: 1.75rem;
}

.brand-crest {
  width: 42px; height: 42px; border-radius: 50%;
  display: grid; place-items: center;
  background: linear-gradient(145deg, var(--gold-400), var(--gold-600));
  color: var(--navy-900); font-size: 1.25rem;
  box-shadow: 0 0 0 2px rgba(201,162,39,.25);
}
.brand-text { display: flex; flex-direction: column; line-height: 1.1; }
.brand-name {
  font-family: var(--font-display);
  font-weight: 700; font-size: 1.65rem; letter-spacing: .02em;
  color: var(--navy-900);
}
.brand-tag {
  font-size: .7rem; letter-spacing: .18em; text-transform: uppercase;
  color: var(--gold-600); font-weight: 500;
}
.site-nav {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  flex-wrap: wrap;
  flex: 0 1 auto;
  justify-content: flex-end;
  margin-left: 1.5rem; /* extra air between brand name and links */
}
.site-nav a {
  color: rgba(10, 22, 40, 0.72); font-size: .92rem; font-weight: 500;
}
.site-nav a:hover, .site-nav a.is-active { color: var(--burgundy); }
.site-header .btn-ghost {
  border-color: rgba(10, 22, 40, 0.2);
  color: var(--navy-900) !important;
}
.site-header .btn-ghost:hover {
  border-color: var(--burgundy);
  color: var(--burgundy) !important;
}
.nav-user {
  color: rgba(10, 22, 40, 0.65); font-size: .85rem; opacity: 1;
  border-left: 1px solid rgba(10, 22, 40, 0.12); padding-left: 1rem;
}
.nav-toggle {
  display: none; background: none; border: 0; cursor: pointer; padding: .5rem;
  flex-direction: column; gap: 5px;
}
.nav-toggle span {
  display: block; width: 22px; height: 2px; background: var(--navy-900);
}

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .4rem;
  padding: .7rem 1.25rem; border-radius: 999px; border: 1px solid transparent;
  font-weight: 600; font-size: .92rem; cursor: pointer; transition: .2s;
  text-decoration: none; line-height: 1.2;
}
.btn-gold {
  background: linear-gradient(135deg, var(--gold-400), var(--gold-600));
  color: var(--navy-900) !important; border-color: transparent;
  box-shadow: 0 8px 24px rgba(201, 162, 39, 0.28);
}
.btn-gold:hover { filter: brightness(1.06); color: var(--navy-900) !important; }
.btn-ghost {
  background: transparent; border-color: rgba(247,240,227,.28); color: var(--cream) !important;
}
.btn-ghost:hover { border-color: var(--gold-500); color: var(--gold-400) !important; }
.btn-danger {
  background: rgba(196,92,92,.15); border-color: rgba(196,92,92,.45); color: #f0b4b4 !important;
}
.btn-sm { padding: .45rem .9rem; font-size: .82rem; }
.btn-block { width: 100%; }

/* Flash */
.flash {
  max-width: var(--max); margin: .75rem auto 0; padding: .75rem 1.1rem;
  border-radius: var(--radius-sm); font-size: .92rem;
}
.flash-success { background: rgba(61,139,110,.2); border: 1px solid rgba(61,139,110,.45); }
.flash-error { background: rgba(196,92,92,.18); border: 1px solid rgba(196,92,92,.45); }
.flash-info { background: rgba(74,122,181,.18); border: 1px solid rgba(74,122,181,.4); }

/* Cinematic hero */
.hero {
  position: relative;
  min-height: calc(100vh - var(--header-h));
  display: flex; align-items: flex-end;
  overflow: hidden;
  background: var(--navy-950);
}
.hero-videos {
  position: absolute; inset: 0;
}
.hero-video,
.hero-slide {
  position: absolute; inset: 0; width: 100%; height: 100%;
  opacity: 0; transition: opacity 1.2s ease;
  pointer-events: none;
}
.hero-video {
  object-fit: cover;
  filter: brightness(0.55) saturate(1.05);
  /* No native player chrome — seamless cinematic loop */
  pointer-events: none;
}
.hero-video::-webkit-media-controls,
.hero-video::-webkit-media-controls-enclosure,
.hero-video::-webkit-media-controls-panel,
.hero-video::-webkit-media-controls-start-playback-button {
  display: none !important;
  -webkit-appearance: none;
  opacity: 0;
  pointer-events: none;
}
.hero-video.is-active,
.hero-slide.is-active {
  opacity: 1;
  z-index: 1;
}
/* Active Facebook slide must receive clicks (play button) */
.hero-embed-slide.is-active {
  pointer-events: auto;
  z-index: 1;
}

/* Facebook / embed reels — scale to fill cinematic hero (cover) */
.hero-embed-slide {
  overflow: hidden;
  background: #050a12;
}
.hero-fb-stage {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  overflow: hidden;
  /* Expanded hit area matching visual scale */
  pointer-events: auto;
}
.hero-fb-iframe {
  width: 267px;
  height: 476px;
  border: 0;
  max-width: none;
  transform-origin: center center;
  /* JS sets --fb-scale for cover fit; fallback for no-JS */
  transform: scale(var(--fb-scale, 2.8));
  filter: brightness(0.72) saturate(1.05);
  pointer-events: auto;
}

.hero-fallback {
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse at 30% 20%, rgba(201,162,39,.18), transparent 50%),
    radial-gradient(ellipse at 80% 70%, rgba(107,45,60,.25), transparent 45%),
    linear-gradient(160deg, #0a1628 0%, #1a2f52 45%, #0a1628 100%);
  z-index: 0;
}
.hero-fallback::after {
  content: "";
  position: absolute; inset: 0;
  background-image:
    radial-gradient(circle at 20% 80%, rgba(201,162,39,.08) 0 2px, transparent 3px),
    radial-gradient(circle at 70% 30%, rgba(247,240,227,.05) 0 1px, transparent 2px);
  background-size: 120px 120px, 80px 80px;
  opacity: .6;
  animation: drift 40s linear infinite;
}
@keyframes drift {
  from { transform: translate3d(0,0,0); }
  to { transform: translate3d(-40px, -30px, 0); }
}
.hero-overlay {
  position: absolute; inset: 0; z-index: 2;
  background:
    linear-gradient(180deg, rgba(6,13,24,.25) 0%, rgba(6,13,24,.1) 45%, rgba(6,13,24,.88) 100%),
    linear-gradient(90deg, rgba(6,13,24,.4), transparent 60%);
  /* Critical: do not block Facebook play button */
  pointer-events: none;
}
.hero-content {
  position: relative;
  z-index: 3;
  max-width: var(--max);
  width: 100%;
  margin: 0 auto;
  padding: 4rem 1.25rem 3.5rem;
  /* Pass clicks through empty space to the video underneath */
  pointer-events: none;
}
.hero-content a,
.hero-content .btn,
.hero-content button {
  pointer-events: auto;
}
.hero-eyebrow {
  display: inline-flex; align-items: center; gap: .5rem;
  letter-spacing: .22em; text-transform: uppercase; font-size: .72rem;
  color: var(--gold-400); font-weight: 600; margin-bottom: 1rem;
}
.hero-eyebrow::before {
  content: ""; width: 28px; height: 1px; background: var(--gold-500);
}
.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2.8rem, 7vw, 5.2rem);
  font-weight: 700; line-height: 1.02;
  margin: 0 0 1rem; letter-spacing: .01em;
  text-shadow: 0 8px 40px rgba(0,0,0,.5);
}
.hero-lead {
  max-width: 36rem; font-size: 1.15rem; color: var(--text-muted);
  font-weight: 300; margin: 0 0 1.75rem;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-bottom: 2rem; }
.hero-meta {
  display: flex; flex-wrap: wrap; gap: 1.5rem;
  font-size: .85rem; color: var(--text-muted);
}
.hero-meta strong { color: var(--cream); font-weight: 600; display: block; font-size: 1.1rem; }
.video-progress {
  position: absolute; bottom: 0; left: 0; right: 0; height: 3px; z-index: 4;
  background: rgba(247,240,227,.12);
  pointer-events: none;
}
.video-progress > span {
  display: block; height: 100%; width: 0;
  background: linear-gradient(90deg, var(--gold-600), var(--gold-400));
  transition: width .1s linear;
}
.video-dots {
  position: absolute; bottom: 1.25rem; right: 1.25rem; z-index: 4;
  display: flex; gap: .4rem;
  pointer-events: auto;
}
.video-dots button {
  width: 9px; height: 9px; border-radius: 50%; border: 0;
  background: rgba(247,240,227,.35); cursor: pointer; padding: 0;
}
.video-dots button.is-active { background: var(--gold-400); transform: scale(1.2); }

/* Sections */
.section { padding: 4.5rem 1.25rem; }
.section-inner { max-width: var(--max); margin: 0 auto; }
.section-head {
  display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between;
  gap: 1rem; margin-bottom: 2rem;
}
.section-kicker {
  letter-spacing: .2em; text-transform: uppercase; font-size: .72rem;
  color: var(--gold-500); font-weight: 600; margin: 0 0 .4rem;
}
.section h2 {
  font-family: var(--font-display); font-size: clamp(2rem, 4vw, 2.8rem);
  margin: 0; font-weight: 700; line-height: 1.15;
}
.section-sub { color: var(--text-muted); max-width: 34rem; margin: .5rem 0 0; }
.section-alt {
  background: linear-gradient(180deg, rgba(18,32,58,.65), rgba(10,22,40,0));
  border-top: 1px solid rgba(201,162,39,.1);
}

/* Cards / grid */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 1.25rem;
}
.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}
.feature-card, .dog-card, .panel {
  background: linear-gradient(160deg, rgba(26,47,82,.55), rgba(10,22,40,.9));
  border: 1px solid rgba(201,162,39,.16);
  border-radius: var(--radius);
  padding: 1.4rem;
  box-shadow: var(--shadow);
}
.feature-card h3 {
  font-family: var(--font-display); font-size: 1.45rem; margin: .4rem 0 .5rem;
}
.feature-icon {
  width: 44px; height: 44px; border-radius: 12px;
  display: grid; place-items: center;
  background: rgba(201,162,39,.12); color: var(--gold-400); font-size: 1.2rem;
}
.muted { color: var(--text-muted); }
.dog-card {
  padding: 0; overflow: hidden; transition: transform .25s, border-color .25s;
  display: flex; flex-direction: column;
}
.dog-card:hover {
  transform: translateY(-4px);
  border-color: rgba(201,162,39,.4);
}
.dog-card-photo {
  aspect-ratio: 1;
  background: var(--navy-800);
  position: relative; overflow: hidden;
}
.dog-card-photo img {
  width: 100%; height: 100%; object-fit: cover;
}
.dog-card-litter-count {
  position: absolute;
  top: 0.55rem;
  right: 0.55rem;
  left: auto;
  z-index: 2;
  padding: 0.28rem 0.6rem;
  border-radius: 999px;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--navy-900);
  background: linear-gradient(135deg, var(--gold-400), var(--gold-600));
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.35);
  line-height: 1.2;
}
.pup-parents {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  margin: 0;
  padding: 0.6rem 0.75rem;
  border-radius: var(--radius-sm);
  background: rgba(6, 13, 24, 0.4);
  border: 1px solid rgba(201, 162, 39, 0.18);
}
.pup-parent-row {
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  align-items: center;
  justify-content: flex-start;
  gap: 0.65rem;
  min-height: 1.35rem;
  width: 100%;
}
.pup-parent-label {
  flex: 0 0 2.75rem;
  width: 2.75rem;
  max-width: 2.75rem;
  margin: 0;
  padding: 0;
  font-size: 0.7rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--gold-500);
  font-weight: 700;
  line-height: 1.2;
  text-align: left;
}
.pup-parent-name {
  flex: 1 1 auto;
  min-width: 0;
  margin: 0;
  padding: 0;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--cream);
  line-height: 1.2;
  text-align: left;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.dog-card-body { padding: 1rem 1.1rem 1.2rem; flex: 1; display: flex; flex-direction: column; }
.dog-card h3 {
  font-family: var(--font-display); font-size: 1.35rem; margin: 0 0 .25rem;
  color: var(--cream);
}
.dog-card .meta { font-size: .82rem; color: var(--text-muted); margin-bottom: .6rem; }
.badge {
  display: inline-block; padding: .15rem .5rem; border-radius: 999px;
  font-size: .68rem; letter-spacing: .06em; text-transform: uppercase; font-weight: 600;
  background: rgba(201,162,39,.15); color: var(--gold-400); border: 1px solid rgba(201,162,39,.25);
}
.badge-female { background: rgba(143,61,82,.2); color: #e8a0b4; border-color: rgba(143,61,82,.35); }
.badge-male { background: rgba(74,122,181,.2); color: #9ec0e8; border-color: rgba(74,122,181,.35); }
.badge-breeder { background: rgba(201,162,39,.22); }
.badge-reserved {
  background: rgba(143, 61, 82, 0.25);
  color: #f0c0cd;
  border-color: rgba(143, 61, 82, 0.4);
}
.badge-external {
  background: rgba(56, 140, 158, 0.28);
  color: #9edceb;
  border-color: rgba(90, 180, 198, 0.5);
}
.badge-external--inline {
  font-size: 0.62rem;
  padding: 0.12rem 0.4rem;
  vertical-align: middle;
  margin-left: 0.2rem;
}

/* External Breeder cards — teal frame, distinct from royal gold TRY line */
.dog-card--external {
  border-color: rgba(90, 175, 195, 0.42);
  background: linear-gradient(160deg, rgba(22, 58, 72, 0.72), rgba(8, 20, 36, 0.94));
  box-shadow: 0 10px 28px rgba(20, 90, 110, 0.22);
}
.dog-card--external:hover {
  border-color: rgba(120, 210, 225, 0.7);
  transform: translateY(-4px);
}
.dog-card--external .dog-card-photo {
  box-shadow: inset 0 0 0 2px rgba(90, 175, 195, 0.25);
}
.dog-card--external h3 {
  color: #e8f7fb;
}
.dog-card-line-tag {
  position: absolute;
  top: 0.55rem;
  left: 0.55rem;
  right: auto;
  z-index: 2;
  padding: 0.28rem 0.55rem;
  border-radius: 999px;
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: #062028;
  background: linear-gradient(135deg, #7ed4e6, #3a9fb5);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.35);
  line-height: 1.2;
}

/* My Kennel / Our Dogs line section headers */
.kennel-line-banner {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.1rem 1.25rem;
  border-radius: var(--radius);
  border: 1px solid rgba(201, 162, 39, 0.22);
  margin-bottom: 1.25rem;
}
.kennel-line-banner h2 {
  font-family: var(--font-display);
  font-size: clamp(1.55rem, 2.5vw, 2rem);
  margin: 0.15rem 0 0;
}
.kennel-line-banner--try {
  background: linear-gradient(120deg, rgba(201, 162, 39, 0.12), rgba(18, 32, 58, 0.55));
  border-color: rgba(201, 162, 39, 0.35);
}
.kennel-line-banner--external {
  background: linear-gradient(120deg, rgba(56, 140, 158, 0.18), rgba(12, 28, 42, 0.7));
  border-color: rgba(90, 175, 195, 0.4);
}
.kennel-line-banner--external .section-kicker {
  color: #7ec9d8;
}

.profile-hero--external .profile-photo {
  border-color: rgba(90, 180, 200, 0.55);
  box-shadow: 0 10px 32px rgba(30, 110, 130, 0.28);
}
.external-line-note {
  margin: 0.65rem 0 0;
  max-width: 36rem;
  padding: 0.55rem 0.75rem;
  border-radius: 10px;
  font-size: 0.9rem;
  color: #b7e6f0;
  background: rgba(40, 110, 128, 0.22);
  border: 1px solid rgba(90, 175, 195, 0.35);
}

/* Tree — filters: label ABOVE field for all three columns, fields on one baseline */
.tree-toolbar {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  margin-bottom: 0.75rem;
  width: 100%;
}
.tree-filters {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.85rem 1.1rem;
  width: 100%;
  align-items: stretch;
}
.tree-field {
  display: flex !important;
  flex-direction: column !important;
  flex-wrap: nowrap !important;
  align-items: stretch !important;
  justify-content: flex-start;
  gap: 0.4rem;
  min-width: 0;
  width: 100%;
}
.tree-field-label {
  display: block !important;
  float: none !important;
  position: static !important;
  width: 100% !important;
  margin: 0 !important;
  padding: 0 !important;
  height: 1.1rem;
  line-height: 1.1rem;
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--gold-400);
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.tree-field-control {
  display: block !important;
  position: relative;
  width: 100%;
  margin: 0;
  padding: 0;
  float: none;
}
/* Shared field chrome (also keep .form-control for other pages) */
.form-control {
  background: rgba(6,13,24,.65);
  border: 1px solid rgba(247,240,227,.18);
  color: var(--cream);
  border-radius: var(--radius-sm);
  padding: 0.65rem 0.85rem;
  min-width: 0;
  width: 100%;
  box-sizing: border-box;
}
.tree-field-input,
.tree-field-control > input.tree-field-input,
.tree-field-control > select.tree-field-input {
  display: block !important;
  float: none !important;
  width: 100% !important;
  max-width: 100% !important;
  height: 2.75rem !important;
  min-height: 2.75rem !important;
  max-height: 2.75rem !important;
  margin: 0 !important;
  padding: 0 0.85rem !important;
  box-sizing: border-box !important;
  background: rgba(6,13,24,.65);
  border: 1px solid rgba(247,240,227,.18);
  color: var(--cream);
  border-radius: var(--radius-sm);
  font-size: 0.95rem;
  line-height: 1.25;
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
}
.tree-field-control > select.tree-field-input {
  background-image:
    linear-gradient(45deg, transparent 50%, var(--gold-400) 50%),
    linear-gradient(135deg, var(--gold-400) 50%, transparent 50%),
    linear-gradient(rgba(6,13,24,.65), rgba(6,13,24,.65));
  background-position: calc(100% - 1.05rem) 50%, calc(100% - 0.7rem) 50%, 0 0;
  background-size: 0.35rem 0.35rem, 0.35rem 0.35rem, 100% 100%;
  background-repeat: no-repeat;
  padding-right: 2rem !important;
}
.tree-toolbar-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
}
.form-control:focus,
.tree-field-input:focus {
  outline: 2px solid rgba(201,162,39,.45);
  border-color: var(--gold-500);
}
@media (max-width: 800px) {
  .tree-filters {
    grid-template-columns: 1fr;
  }
}
.tree-search-results {
  position: absolute;
  z-index: 30;
  left: 0;
  right: 0;
  top: calc(100% + 0.25rem);
  margin: 0;
  padding: 0.35rem 0;
  list-style: none;
  max-height: 16rem;
  overflow: auto;
  background: rgba(10, 20, 36, 0.98);
  border: 1px solid rgba(201, 162, 39, 0.35);
  border-radius: var(--radius-sm);
  box-shadow: 0 14px 36px rgba(0, 0, 0, 0.45);
}
.tree-search-results[hidden] { display: none; }
.tree-search-results li button {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.1rem;
  width: 100%;
  border: 0;
  background: transparent;
  color: var(--cream);
  text-align: left;
  padding: 0.55rem 0.85rem;
  cursor: pointer;
  font: inherit;
}
.tree-search-results li button:hover,
.tree-search-results li button.is-active {
  background: rgba(201, 162, 39, 0.14);
}
.tree-search-results .tree-hit-name {
  font-family: var(--font-display);
  font-size: 1.05rem;
  color: var(--cream);
}
.tree-search-results .tree-hit-meta {
  font-size: 0.8rem;
  color: var(--cream-dim);
}
.tree-search-hint {
  margin: 0 0 0.5rem;
  min-height: 1.25rem;
  font-size: 0.9rem;
}
.tree-litter-roster {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin: 0 0 1rem;
  padding: 0.75rem 0.85rem;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(201, 162, 39, 0.28);
  background: rgba(10, 22, 40, 0.55);
}
.tree-litter-roster[hidden] { display: none; }
.tree-litter-roster-title {
  flex: 1 0 100%;
  margin: 0 0 0.15rem;
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--gold-400);
  font-weight: 600;
}
.tree-litter-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.35rem 0.65rem 0.35rem 0.35rem;
  border-radius: 999px;
  border: 1px solid rgba(201, 162, 39, 0.35);
  background: rgba(18, 32, 58, 0.9);
  color: var(--cream);
  cursor: pointer;
  font: inherit;
  text-decoration: none;
}
.tree-litter-chip:hover,
.tree-litter-chip.is-active {
  border-color: var(--gold-500);
  background: rgba(201, 162, 39, 0.16);
  box-shadow: 0 0 0 1px rgba(201, 162, 39, 0.35);
}
.tree-litter-chip img {
  width: 1.75rem;
  height: 1.75rem;
  min-width: 1.75rem;
  min-height: 1.75rem;
  max-width: 1.75rem;
  max-height: 1.75rem;
  flex: 0 0 1.75rem;
  border-radius: 50%;
  object-fit: cover;
  object-position: center center;
  display: block;
  background: rgba(0, 0, 0, 0.25);
}
.tree-litter-chip strong {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.95rem;
}
.tree-litter-chip span.muted {
  font-size: 0.75rem;
}
.tree-node.is-litter-match .tree-node-card {
  box-shadow: 0 0 0 2px rgba(201, 162, 39, 0.85), 0 10px 28px rgba(0, 0, 0, 0.35);
}
.tree-node.is-litter-pup .tree-node-card {
  box-shadow: 0 0 0 2px rgba(201, 162, 39, 0.95), 0 12px 30px rgba(0, 0, 0, 0.4);
}
.tree-node.is-litter-dim {
  opacity: 0.22;
  filter: grayscale(0.4);
  pointer-events: none;
}
.tree-node.is-litter-dim.is-focus {
  opacity: 1;
  filter: none;
  pointer-events: auto;
}
.tree-stage {
  position: relative;
  background:
    radial-gradient(circle at center, rgba(201,162,39,.06), transparent 55%),
    linear-gradient(180deg, rgba(18,32,58,.8), rgba(6,13,24,.95));
  border: 1px solid rgba(201,162,39,.18);
  border-radius: var(--radius);
  min-height: 640px;
  overflow: hidden;
  touch-action: none;
}
.tree-canvas-wrap {
  width: 100%; height: 640px; overflow: hidden; cursor: grab; position: relative;
}
.tree-canvas-wrap.is-dragging { cursor: grabbing; }
.tree-world {
  position: absolute; left: 0; top: 0;
  transform-origin: 0 0;
  will-change: transform;
  transition: transform 0.35s ease;
}
.tree-canvas-wrap.is-dragging .tree-world,
.tree-canvas-wrap.is-zooming .tree-world {
  transition: none;
}
.tree-svg {
  position: absolute; left: 0; top: 0; overflow: visible; pointer-events: none;
}
.tree-svg path {
  fill: none;
  stroke: rgba(201,162,39,.35);
  stroke-width: 2;
}
.tree-node {
  position: absolute;
  width: 150px;
  min-width: 150px;
  max-width: 150px;
  transform: translate(-50%, -50%);
  text-align: center;
  cursor: pointer;
  z-index: 2;
  box-sizing: border-box;
}
.tree-node-card {
  width: 100%;
  min-height: 168px;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  align-items: center;
  background: linear-gradient(160deg, #1a2f52, #0a1628);
  border: 1px solid rgba(201,162,39,.3);
  border-radius: 16px;
  padding: .55rem .55rem .7rem;
  box-shadow: 0 12px 30px rgba(0,0,0,.4);
  transition: border-color .2s, transform .2s, box-shadow .2s;
}
.tree-node:hover .tree-node-card,
.tree-node.is-focus .tree-node-card {
  border-color: var(--gold-400);
  transform: translateY(-2px);
  box-shadow: 0 16px 40px rgba(201,162,39,.18);
}
.tree-node.is-focus .tree-node-card {
  outline: 2px solid rgba(201,162,39,.55);
}
/* Fixed circle for every dog photo — uploads crop to fill, never stretch unevenly */
.tree-node-photo {
  position: relative;
  width: 86px;
  height: 86px;
  min-width: 86px;
  min-height: 86px;
  max-width: 86px;
  max-height: 86px;
  flex: 0 0 86px;
  margin: 0 auto .45rem;
  border-radius: 50%;
  overflow: hidden;
  border: 2px solid rgba(201,162,39,.45);
  background: var(--navy-800);
  box-sizing: border-box;
}
.tree-node-photo img {
  position: absolute;
  inset: 0;
  width: 100% !important;
  height: 100% !important;
  max-width: none !important;
  max-height: none !important;
  object-fit: cover;
  object-position: center center;
  display: block;
}
.tree-node-name {
  font-family: var(--font-display); font-size: 1.05rem; font-weight: 600;
  color: var(--cream); line-height: 1.15; margin: 0;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.tree-node-sub {
  font-size: .7rem; color: var(--text-muted); margin-top: .15rem;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
/* External Breeder nodes on the family tree */
.tree-node--external .tree-node-card {
  border-color: rgba(90, 175, 195, 0.5);
  background: linear-gradient(160deg, #163a48, #0a1628);
  box-shadow: 0 12px 30px rgba(20, 90, 110, 0.35);
  position: relative;
  padding-top: 1.15rem;
}
.tree-node--external:hover .tree-node-card,
.tree-node--external.is-focus .tree-node-card {
  border-color: rgba(120, 210, 225, 0.75);
  box-shadow: 0 16px 40px rgba(40, 140, 160, 0.28);
}
.tree-node--external.is-focus .tree-node-card {
  outline: 2px solid rgba(90, 180, 200, 0.55);
}
.tree-node--external .tree-node-photo {
  border-color: rgba(90, 180, 200, 0.55);
}
.tree-node-external-tag {
  position: absolute;
  top: 0.35rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  padding: 0.12rem 0.45rem;
  border-radius: 999px;
  font-size: 0.58rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: #062028;
  background: linear-gradient(135deg, #7ed4e6, #3a9fb5);
  white-space: nowrap;
  line-height: 1.2;
}
.tree-node--external .tree-node-sub {
  color: #8ec9d8;
}
.side-panel--external {
  border-color: rgba(90, 175, 195, 0.4);
  background: linear-gradient(160deg, rgba(22, 58, 72, 0.75), rgba(10, 22, 40, 0.95));
}
.side-panel--external .photo {
  border-color: rgba(90, 180, 200, 0.5);
}
.tree-litter-chip--external {
  border-color: rgba(90, 175, 195, 0.45);
}
.ancestry-card--external {
  border-color: rgba(90, 175, 195, 0.4);
  background: rgba(22, 58, 72, 0.35);
}
.child-chip--external img {
  border-color: rgba(90, 180, 200, 0.55);
}
.litter-parent--external {
  border-color: rgba(90, 175, 195, 0.4);
  background: rgba(22, 58, 72, 0.25);
}
.tree-hint {
  position: absolute; left: 1rem; bottom: 1rem; z-index: 5;
  font-size: .78rem; color: var(--text-muted);
  background: rgba(6,13,24,.7); padding: .4rem .7rem; border-radius: 999px;
  border: 1px solid rgba(247,240,227,.1);
}
.pedigree-panel {
  display: grid; grid-template-columns: 1fr 320px; gap: 1.25rem; align-items: start;
}
.side-panel {
  background: linear-gradient(160deg, rgba(26,47,82,.7), rgba(10,22,40,.95));
  border: 1px solid rgba(201,162,39,.18);
  border-radius: var(--radius);
  padding: 1.25rem;
  position: sticky; top: calc(var(--header-h) + 1rem);
}
.side-panel .photo {
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  object-position: center center;
  border-radius: 12px;
  border: 1px solid rgba(201,162,39,.25);
  margin-bottom: 1rem;
  background: var(--navy-800);
}
.side-panel h2 {
  font-family: var(--font-display); font-size: 1.7rem; margin: 0 0 .35rem;
}
.kv { display: grid; grid-template-columns: 100px 1fr; gap: .35rem .5rem; font-size: .88rem; margin: .85rem 0; }
.kv dt { color: var(--text-muted); }
.kv dd { margin: 0; }
.side-actions { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: 1rem; }

/* Profile page */
.profile-hero {
  display: grid; grid-template-columns: 280px 1fr; gap: 2rem; align-items: start;
}
.profile-photo {
  width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 20px;
  border: 2px solid rgba(201,162,39,.35); background: var(--navy-800);
  box-shadow: var(--shadow);
}
.profile-title {
  font-family: var(--font-display); font-size: clamp(2rem, 4vw, 3rem); margin: 0;
}
.ancestry-row {
  display: grid; grid-template-columns: 1fr auto 1fr; gap: 1rem; align-items: stretch;
  margin-top: 2rem;
}
.ancestry-card {
  background: rgba(18,32,58,.7); border: 1px solid rgba(201,162,39,.15);
  border-radius: var(--radius); padding: 1rem; text-align: center;
}
.ancestry-card img {
  width: 72px; height: 72px; border-radius: 50%; object-fit: cover; margin: 0 auto .5rem;
  border: 2px solid rgba(201,162,39,.3);
}
.ancestry-mid {
  display: flex; align-items: center; justify-content: center;
  color: var(--gold-500); font-family: var(--font-display); font-size: 1.2rem;
}
.children-strip {
  display: flex; gap: .75rem; overflow-x: auto; padding: .5rem 0 1rem;
}
.child-chip {
  flex: 0 0 auto; width: 110px; text-align: center; color: inherit;
}
.child-chip img {
  width: 72px; height: 72px; border-radius: 50%; object-fit: cover; margin: 0 auto .35rem;
  border: 2px solid rgba(201,162,39,.3);
}

/* Forms */
.form-card {
  max-width: 480px; margin: 2rem auto; padding: 2rem;
  background: linear-gradient(160deg, rgba(26,47,82,.7), rgba(10,22,40,.95));
  border: 1px solid rgba(201,162,39,.2); border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.form-card h1 {
  font-family: var(--font-display); font-size: 2rem; margin: 0 0 .5rem; text-align: center;
}
.form-group { margin-bottom: 1rem; }
.form-group label {
  display: block; font-size: .82rem; color: var(--text-muted); margin-bottom: .35rem; font-weight: 500;
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: .75rem; }
.form-actions { display: flex; flex-wrap: wrap; gap: .6rem; margin-top: 1.25rem; }
.form-wide { max-width: 720px; }
.help { font-size: .8rem; color: var(--text-muted); margin-top: .25rem; }
.table-wrap { overflow-x: auto; }
table.data {
  width: 100%; border-collapse: collapse; font-size: .9rem;
}
table.data th, table.data td {
  text-align: left; padding: .7rem .6rem;
  border-bottom: 1px solid rgba(247,240,227,.08);
}
table.data th { color: var(--gold-400); font-weight: 600; font-size: .78rem; letter-spacing: .06em; text-transform: uppercase; }
table.data tr:hover td { background: rgba(247,240,227,.03); }

/* About */
.about-split {
  display: grid; grid-template-columns: 1.1fr .9fr; gap: 2rem; align-items: center;
}
.about-panel {
  border-radius: var(--radius);
  padding: 2rem;
  background:
    linear-gradient(145deg, rgba(201,162,39,.12), transparent 50%),
    linear-gradient(160deg, rgba(26,47,82,.8), rgba(10,22,40,.95));
  border: 1px solid rgba(201,162,39,.2);
}
.quote {
  font-family: var(--font-display); font-size: 1.55rem; font-style: italic;
  line-height: 1.35; margin: 0 0 1rem; color: var(--cream);
}
.stat-row {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; margin-top: 2rem;
}
.stat {
  text-align: center; padding: 1.1rem;
  border-radius: var(--radius-sm);
  background: rgba(6,13,24,.4); border: 1px solid rgba(201,162,39,.12);
}
.stat strong {
  display: block; font-family: var(--font-display); font-size: 1.8rem; color: var(--gold-400);
}

/* Footer — light background so original black logo reads clearly */
.site-footer {
  margin-top: 3rem;
  border-top: 1px solid rgba(10, 22, 40, 0.1);
  background: #ffffff;
  color: var(--navy-900);
}
.footer-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 2.5rem 1.25rem 1.5rem;
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
}
.footer-brand {
  display: flex;
  gap: 1rem;
  align-items: center;
}
.footer-brand strong {
  color: var(--navy-900);
  font-family: var(--font-display);
  font-size: 1.35rem;
}
.footer-brand p {
  margin: .25rem 0;
  color: rgba(10, 22, 40, 0.72);
  font-size: .92rem;
}
.footer-brand .muted {
  color: rgba(10, 22, 40, 0.55) !important;
}
.footer-logo {
  /* Keep black artwork visible on white */
  background: #ffffff;
  border-radius: 8px;
}
.footer-links { display: flex; flex-wrap: wrap; gap: .75rem 1.25rem; align-content: start; }
.footer-links a { color: rgba(10, 22, 40, 0.7); }
.footer-note {
  grid-column: 1 / -1;
  font-size: .82rem;
  color: rgba(10, 22, 40, 0.55);
  border-top: 1px solid rgba(10, 22, 40, 0.08);
  padding-top: 1rem;
  margin: 0;
}
.footer-bar {
  max-width: var(--max);
  margin: 0 auto;
  padding: .9rem 1.25rem 1.4rem;
  display: flex;
  justify-content: space-between;
  font-size: .8rem;
  color: rgba(10, 22, 40, 0.55);
  border-top: 1px solid rgba(10, 22, 40, 0.06);
}
.footer-bar a {
  color: var(--burgundy);
}
.footer-bar a:hover {
  color: var(--navy-900);
}

/* Empty / utility */
.empty-state {
  text-align: center; padding: 3rem 1rem; color: var(--text-muted);
}
.page-hero {
  padding: 2.5rem 1.25rem 0;
  max-width: var(--max); margin: 0 auto;
}
.page-hero h1 {
  font-family: var(--font-display); font-size: clamp(2rem, 4vw, 2.8rem); margin: 0;
}

/* Yorkie Reunions */
.reunions-layout {
  display: grid;
  gap: 1.5rem;
  max-width: 720px;
  margin: 0 auto;
}
.reunion-compose .dash-section-title { margin: 0.15rem 0 0.35rem; }
.reunion-compose--guest { text-align: center; }
.reunion-post { padding: 0; overflow: hidden; }
.reunion-post-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.9rem 1.1rem;
  border-bottom: 1px solid rgba(201, 162, 39, 0.12);
}
.reunion-author { color: var(--cream); font-size: 1rem; }
.reunion-when { display: block; font-size: 0.8rem; margin-top: 0.15rem; }
.reunion-photo {
  background: var(--navy-950);
  max-height: 520px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}
.reunion-photo img {
  width: 100%;
  max-height: 520px;
  object-fit: contain;
  display: block;
}
.reunion-caption {
  margin: 0;
  padding: 1rem 1.1rem 0.35rem;
  color: var(--cream-dim);
  line-height: 1.55;
  white-space: pre-wrap;
}
.reunion-comments {
  padding: 0.85rem 1.1rem 1.15rem;
  border-top: 1px solid rgba(201, 162, 39, 0.1);
}
.reunion-comment-list {
  list-style: none;
  margin: 0 0 1rem;
  padding: 0;
  display: grid;
  gap: 0.75rem;
}
.reunion-comment-list li {
  padding: 0.55rem 0.75rem;
  border-radius: var(--radius-sm);
  background: rgba(6, 13, 24, 0.4);
  border: 1px solid rgba(201, 162, 39, 0.12);
}
.reunion-comment-list li p {
  margin: 0.25rem 0 0;
  color: var(--cream-dim);
  font-size: 0.92rem;
  line-height: 1.45;
}
.reunion-comment-form textarea { width: 100%; }
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

/* Contact */
.contact-layout {
  display: grid;
  grid-template-columns: minmax(240px, 320px) 1fr;
  gap: 1.5rem;
  align-items: start;
}
.contact-card {
  text-align: center;
  position: sticky;
  top: calc(var(--header-h) + 1rem);
}
.contact-card-title {
  font-family: var(--font-display);
  font-size: 1.65rem;
  margin: 0.25rem 0 1.25rem;
}
.contact-details {
  list-style: none;
  margin: 0;
  padding: 0;
  text-align: left;
  display: grid;
  gap: 1rem;
}
.contact-details li {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  padding: 0.75rem 0.9rem;
  border-radius: var(--radius-sm);
  background: rgba(6, 13, 24, 0.35);
  border: 1px solid rgba(201, 162, 39, 0.15);
}
.contact-label {
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold-500);
  font-weight: 600;
}
.contact-details a {
  color: var(--cream);
  font-weight: 500;
  word-break: break-word;
}
.contact-details a:hover { color: var(--gold-400); }
.contact-form-wrap h2 { color: var(--cream); }
.hp-field {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}
.contact-form { position: relative; }

/* Purchase path under Contact sidebar — left-aligned steps */
.contact-card .purchase-path-box {
  text-align: left;
}
.contact-card .purchase-path-box .section-kicker {
  text-align: left;
}
.contact-card .purchase-path-list {
  list-style-position: outside;
  margin: 0.35rem 0 1rem;
  padding-left: 1.35rem;
  text-align: left;
}
.contact-card .purchase-path-list li {
  text-align: left;
  margin: 0.35rem 0;
}

@media (max-width: 900px) {
  .contact-layout { grid-template-columns: 1fr; }
  .contact-card { position: static; }
}

/* Category navigation pills */
.category-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1.15rem;
}
.category-pill {
  display: inline-flex;
  align-items: center;
  padding: 0.45rem 0.95rem;
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-muted) !important;
  border: 1px solid rgba(247, 240, 227, 0.2);
  background: rgba(6, 13, 24, 0.35);
  transition: 0.2s;
}
.category-pill:hover {
  color: var(--gold-400) !important;
  border-color: rgba(201, 162, 39, 0.45);
}
.category-pill.is-active {
  color: var(--navy-900) !important;
  background: linear-gradient(135deg, var(--gold-400), var(--gold-600));
  border-color: transparent;
}

/* Prior litters */
.litter-card-head {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1.25rem;
  margin-bottom: 0.85rem;
  align-items: flex-start;
}
.litter-title {
  font-family: var(--font-display);
  font-size: 1.65rem;
  margin: 0.15rem 0 0;
  color: var(--cream);
}
.litter-parents {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}
.litter-parent {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.4rem 0.7rem 0.4rem 0.4rem;
  border-radius: 999px;
  background: rgba(6, 13, 24, 0.4);
  border: 1px solid rgba(201, 162, 39, 0.2);
  color: inherit;
  min-width: 0;
}
.litter-parent img {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid rgba(201, 162, 39, 0.35);
}
.litter-parent span {
  display: flex;
  flex-direction: column;
  font-size: 0.92rem;
  font-weight: 600;
  line-height: 1.15;
}
.litter-parent small {
  font-size: 0.65rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gold-500);
  font-weight: 600;
}

/* Slightly tighter nav on mid screens */
@media (max-width: 1100px) {
  .site-nav { gap: 0.75rem; }
  .site-nav a { font-size: 0.86rem; }
}

/* Admin sales + calendar */
.sale-pay-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.75rem;
}
.sale-pay-card {
  border: 1px solid rgba(201, 162, 39, 0.22);
  border-radius: var(--radius-sm);
  padding: 0.75rem;
  background: rgba(6, 13, 24, 0.35);
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  font-size: 0.9rem;
}
.sale-pay-card strong { color: var(--gold-400); font-size: 0.95rem; }
.sale-pay-card label { display: flex; flex-direction: column; gap: 0.2rem; font-size: 0.78rem; color: var(--text-muted); }
.sale-pay-card label.chk { flex-direction: row; align-items: center; gap: 0.4rem; color: var(--cream); font-size: 0.88rem; }
.seller-locked {
  padding: 0.85rem 1rem;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(201, 162, 39, 0.25);
  background: rgba(6, 13, 24, 0.35);
}
.signature-preview {
  font-family: "Segoe Script", "Brush Script MT", "Great Vibes", cursive;
  font-size: 2rem;
  color: var(--cream);
  margin: 0.5rem 0 0;
  line-height: 1.1;
}
.cal-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
}
.cal-month-title {
  font-family: var(--font-display);
  font-size: 1.8rem;
  margin: 0;
}
.cal-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.25rem;
  margin-bottom: 0.85rem;
  font-size: 0.85rem;
  color: var(--text-muted);
}
.cal-legend .dot {
  display: inline-block;
  width: 0.65rem;
  height: 0.65rem;
  border-radius: 50%;
  margin-right: 0.35rem;
  vertical-align: middle;
}
.cal-legend .dot.gold { background: var(--gold-500); }
.cal-legend .dot.green { background: #3d8b6e; }
.cal-legend .dot.amber { background: #c9a227; }
.cal-legend .dot.blue { background: #6eb6e0; }
.cal-legend .dot.burgundy { background: #8f3d52; }
.cal-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 2px;
  background: rgba(201, 162, 39, 0.15);
  border: 1px solid rgba(201, 162, 39, 0.2);
  border-radius: var(--radius);
  overflow: hidden;
}
.cal-dow {
  background: rgba(10, 22, 40, 0.95);
  padding: 0.55rem 0.35rem;
  text-align: center;
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gold-400);
  font-weight: 600;
}
.cal-cell {
  background: rgba(18, 32, 58, 0.92);
  min-height: 6.5rem;
  padding: 0.35rem;
  vertical-align: top;
}
.cal-cell.is-empty { background: rgba(10, 22, 40, 0.65); min-height: 6.5rem; }
.cal-cell.is-today { outline: 1px solid rgba(201, 162, 39, 0.65); outline-offset: -1px; }
.cal-daynum {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--cream-dim);
  margin-bottom: 0.25rem;
}
.cal-events { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.2rem; }
.cal-ev { font-size: 0.68rem; line-height: 1.25; border-radius: 4px; padding: 0.15rem 0.3rem; }
.cal-ev a { color: inherit; display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cal-ev-gold { background: rgba(201, 162, 39, 0.22); color: #f0d98a; }
.cal-ev-green { background: rgba(61, 139, 110, 0.28); color: #b7e6d2; }
.cal-ev-amber { background: rgba(201, 162, 39, 0.35); color: #ffe9a8; }
.cal-ev-blue { background: rgba(110, 182, 224, 0.28); color: #c5e7f8; }
.cal-ev-burgundy { background: rgba(143, 61, 82, 0.35); color: #f0c0cd; }
@media (max-width: 960px) {
  .sale-pay-grid { grid-template-columns: 1fr; }
  .cal-cell { min-height: 4.5rem; }
  .cal-ev a { white-space: normal; }
  section .section-inner[style*="grid-template-columns:1.1fr"] {
    grid-template-columns: 1fr !important;
  }
}
.pill-row { display: flex; flex-wrap: wrap; gap: .4rem; margin: .75rem 0; }

/* —— Purchase workflow —— */
.wf-stepper {
  list-style: none;
  margin: 0 0 .75rem;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: .35rem;
  counter-reset: none;
}
.wf-step {
  display: flex;
  align-items: center;
  gap: .35rem;
  padding: .35rem .55rem;
  border-radius: 999px;
  border: 1px solid rgba(201, 162, 39, 0.22);
  background: rgba(6, 13, 24, 0.45);
  font-size: .72rem;
  font-weight: 500;
  color: var(--text-muted);
  min-width: 0;
}
.wf-step-n {
  width: 1.35rem;
  height: 1.35rem;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: .68rem;
  font-weight: 700;
  background: rgba(247, 240, 227, 0.08);
  color: var(--cream-dim);
  flex-shrink: 0;
}
.wf-step-label { white-space: nowrap; }
.wf-step.is-done {
  border-color: rgba(61, 139, 110, 0.45);
  color: #b7e6d2;
}
.wf-step.is-done .wf-step-n { background: rgba(61, 139, 110, 0.45); color: #fff; }
.wf-step.is-current {
  border-color: rgba(201, 162, 39, 0.75);
  background: rgba(201, 162, 39, 0.14);
  color: var(--gold-400);
  box-shadow: 0 0 0 1px rgba(201, 162, 39, 0.2);
}
.wf-step.is-current .wf-step-n { background: var(--gold-500); color: var(--navy-900); }
.wf-pickup-hint { margin: .25rem 0 0; font-size: .88rem; }
.wf-progress-bar {
  height: 6px;
  border-radius: 99px;
  background: rgba(247, 240, 227, 0.1);
  overflow: hidden;
  margin: .65rem 0 .35rem;
}
.wf-progress-bar > span {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, var(--burgundy-soft), var(--gold-500));
  border-radius: 99px;
  transition: width .35s ease;
}
.wf-checklist {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: .45rem;
}
.wf-checklist li {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: .4rem .55rem;
  padding: .4rem .55rem;
  border-radius: var(--radius-sm);
  background: rgba(6, 13, 24, 0.35);
  border: 1px solid rgba(201, 162, 39, 0.12);
  font-size: .9rem;
}
.wf-checklist li.is-done { border-color: rgba(61, 139, 110, 0.35); }
.wf-check-mark {
  font-weight: 700;
  width: 1.1rem;
  color: var(--gold-400);
}
.wf-checklist li.is-done .wf-check-mark { color: #6fcf9e; }
.wf-check-detail { font-size: .8rem; }
.wf-subhead {
  font-family: var(--font-display);
  font-size: 1.15rem;
  margin: 1.15rem 0 .5rem;
  color: var(--cream);
}
.wf-hero-panel { overflow: hidden; }
.wf-hero-top {
  display: flex;
  gap: 1.15rem;
  align-items: flex-start;
  flex-wrap: wrap;
}
.wf-hero-photo {
  width: 120px;
  height: 120px;
  border-radius: var(--radius);
  overflow: hidden;
  flex-shrink: 0;
  border: 1px solid rgba(201, 162, 39, 0.25);
  background: var(--navy-800);
}
.wf-hero-photo img { width: 100%; height: 100%; object-fit: cover; }
.wf-hero-photo--sm { width: 72px; height: 72px; }
.wf-two-col, .wf-admin-grid, .pickup-grid, .care-grid {
  display: grid;
  gap: 1.25rem;
  grid-template-columns: 1fr 1fr;
}
.care-grid { grid-template-columns: 1fr 1fr; }
.terms-list {
  margin: .35rem 0 0;
  padding-left: 1.15rem;
  color: var(--text-muted);
}
.terms-list li { margin: .3rem 0; }
.terms-box {
  padding: .85rem 1rem;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(201, 162, 39, 0.18);
  background: rgba(6, 13, 24, 0.3);
}
.wf-flag-row {
  font-size: .68rem;
  letter-spacing: .04em;
  color: var(--gold-400);
  margin-top: .15rem;
  font-weight: 600;
}
.wf-notify-bar { margin-top: 1.25rem; padding-top: 1rem; border-top: 1px solid rgba(201, 162, 39, 0.15); }
.wf-current-label {
  font-weight: 600;
  color: var(--gold-400);
  margin: 0 0 .35rem;
}
.pickup-dl {
  display: grid;
  grid-template-columns: 7.5rem 1fr;
  gap: .45rem .75rem;
  margin: 0 0 1rem;
}
.pickup-dl dt { color: var(--gold-400); font-size: .78rem; text-transform: uppercase; letter-spacing: .06em; margin: 0; }
.pickup-dl dd { margin: 0; color: var(--cream); }
.chk { display: flex; align-items: center; gap: .45rem; cursor: pointer; font-size: .92rem; }

/* —— Dashboard sections (inquiries, pipeline, calendar, members) —— */
.dash-section,
.pipe-panel {
  scroll-margin-top: calc(var(--header-h) + 1rem);
}
.dash-inq-grid { display: grid; gap: 1.25rem; grid-template-columns: 1fr; }
.dash-inq-grid.has-detail { grid-template-columns: 1.05fr 1fr; }
@media (max-width: 900px) {
  .dash-inq-grid.has-detail { grid-template-columns: 1fr; }
}
table.data tr.is-selected td {
  background: rgba(201, 162, 39, 0.1);
}

/* Shared section header: same typeface + size on every Dashboard block */
.dash-section-head,
.pipe-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: .75rem;
}
.dash-section-head > div:first-child,
.pipe-head > div:first-child {
  min-width: 0;
  flex: 1 1 14rem;
}
.dash-section-title,
.pipe-title {
  font-family: var(--font-display);
  font-size: 1.65rem;
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: 0.01em;
  margin: 0.15rem 0 0.4rem;
  color: var(--cream);
}
.dash-section-sub,
.pipe-sub {
  margin: 0;
  max-width: 40rem;
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 400;
  line-height: 1.5;
}
.dash-section-head .section-kicker,
.pipe-head .section-kicker {
  margin: 0 0 0.1rem;
}
.pipe-head-actions { margin: 0; }

/* Dashboard year totals */
.year-totals-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}
.year-total-card {
  padding: 1.15rem 1.25rem;
  border-radius: var(--radius);
  border: 1px solid rgba(201, 162, 39, 0.18);
  background: rgba(6, 13, 24, 0.35);
}
.year-total-card.is-current {
  border-color: rgba(201, 162, 39, 0.45);
  background: linear-gradient(145deg, rgba(201, 162, 39, 0.12), rgba(6, 13, 24, 0.4));
  box-shadow: 0 0 0 1px rgba(201, 162, 39, 0.08);
}
.year-total-label {
  font-family: var(--font-display);
  font-size: 1.75rem;
  margin: 0.15rem 0 0.35rem;
  color: var(--cream);
}
.year-total-amount {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3vw, 2.35rem);
  font-weight: 700;
  color: var(--gold-400);
  margin: 0 0 0.85rem;
  line-height: 1.1;
}
.year-total-breakdown {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.4rem;
}
.year-total-breakdown li {
  display: flex;
  justify-content: space-between;
  gap: 0.75rem;
  font-size: 0.9rem;
  color: var(--text-muted);
  border-top: 1px solid rgba(247, 240, 227, 0.08);
  padding-top: 0.4rem;
}
.year-total-breakdown li strong {
  color: var(--cream);
  font-weight: 600;
  white-space: nowrap;
}
@media (max-width: 720px) {
  .year-totals-grid { grid-template-columns: 1fr; }
}

/* Spacemail block on Dashboard */
.spacemail-card {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
  padding: 1rem 1.15rem;
  border-radius: var(--radius);
  border: 1px solid rgba(201, 162, 39, 0.2);
  background: linear-gradient(135deg, rgba(18, 32, 58, 0.95), rgba(10, 22, 40, 0.88));
}
.spacemail-meta { min-width: 0; flex: 1 1 16rem; }
.spacemail-address {
  display: inline-block;
  margin-top: .2rem;
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 600;
  color: var(--gold-400);
  word-break: break-all;
}
.spacemail-actions {
  margin: 0;
  flex-wrap: wrap;
}
.pipe-summary {
  display: flex;
  flex-wrap: wrap;
  gap: .45rem .65rem;
  margin: 0 0 1.15rem;
  padding: .65rem .85rem;
  border-radius: var(--radius-sm);
  background: rgba(6, 13, 24, 0.4);
  border: 1px solid rgba(201, 162, 39, 0.15);
  font-size: .85rem;
  color: var(--text-muted);
}
.pipe-summary-item strong { color: var(--gold-400); font-weight: 600; }
.pipe-summary-item.is-step {
  padding: .15rem .5rem;
  border-radius: 999px;
  background: rgba(201, 162, 39, 0.12);
  color: var(--cream-dim);
}
.pipe-list {
  display: grid;
  gap: .85rem;
}
.pipe-card {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 1rem;
  align-items: center;
  padding: 1rem 1.1rem;
  border-radius: var(--radius);
  border: 1px solid rgba(201, 162, 39, 0.16);
  background: linear-gradient(135deg, rgba(18, 32, 58, 0.95), rgba(10, 22, 40, 0.9));
  transition: border-color .2s, box-shadow .2s;
}
.pipe-card:hover {
  border-color: rgba(201, 162, 39, 0.35);
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.25);
}
.pipe-card.is-urgent {
  border-color: rgba(196, 92, 92, 0.55);
  box-shadow: 0 0 0 1px rgba(196, 92, 92, 0.2);
}
.pipe-card.is-complete { opacity: 0.85; }
.pipe-card-main {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  min-width: 0;
}
.pipe-photo {
  width: 64px;
  height: 64px;
  border-radius: var(--radius-sm);
  overflow: hidden;
  flex-shrink: 0;
  border: 1px solid rgba(201, 162, 39, 0.25);
  background: var(--navy-800);
}
.pipe-photo img { width: 100%; height: 100%; object-fit: cover; }
.pipe-body { flex: 1; min-width: 0; }
.pipe-top {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: .5rem .75rem;
  align-items: flex-start;
}
.pipe-buyer {
  font-family: var(--font-display);
  font-size: 1.25rem;
  margin: 0;
  color: var(--cream);
  line-height: 1.2;
}
.pipe-puppy { margin: .2rem 0 0; font-size: .88rem; }
.pipe-badges {
  display: flex;
  flex-wrap: wrap;
  gap: .35rem;
  align-items: center;
  justify-content: flex-end;
}
.pipe-step-badge {
  display: inline-block;
  padding: .28rem .65rem;
  border-radius: 999px;
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: .02em;
  background: rgba(201, 162, 39, 0.18);
  color: var(--gold-400);
  border: 1px solid rgba(201, 162, 39, 0.35);
  max-width: 16rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.pipe-bar { margin: .55rem 0 .35rem; max-width: 28rem; }
.pipe-next {
  margin: 0 0 .5rem;
  font-size: .9rem;
  color: var(--cream-dim);
}
.pipe-next.is-urgent { color: #f0a0a0; font-weight: 500; }
.pipe-next-label {
  display: inline-block;
  font-size: .68rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--gold-400);
  margin-right: .25rem;
}
.pipe-chips {
  display: flex;
  flex-wrap: wrap;
  gap: .3rem;
}
.pipe-chip {
  font-size: .68rem;
  font-weight: 500;
  padding: .18rem .45rem;
  border-radius: 999px;
  border: 1px solid rgba(247, 240, 227, 0.12);
  color: var(--text-muted);
  background: rgba(6, 13, 24, 0.35);
}
.pipe-chip.is-done {
  color: #b7e6d2;
  border-color: rgba(61, 139, 110, 0.4);
  background: rgba(61, 139, 110, 0.15);
}
.pipe-actions {
  display: flex;
  flex-direction: column;
  gap: .35rem;
  align-items: stretch;
  min-width: 8.5rem;
}

@media (max-width: 900px) {
  .wf-two-col, .wf-admin-grid, .pickup-grid, .care-grid {
    grid-template-columns: 1fr;
  }
  .wf-step-label { font-size: .68rem; }
  .pickup-dl { grid-template-columns: 1fr; gap: .15rem; }
  .pickup-dl dt { margin-top: .45rem; }
  .pipe-card {
    grid-template-columns: 1fr;
  }
  .pipe-actions {
    flex-direction: row;
    flex-wrap: wrap;
    min-width: 0;
  }
  .pipe-step-badge { max-width: 100%; white-space: normal; }
}

/* —— Site stats (Admin Dashboard) —— */
.stats-kpi-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 0.75rem;
  margin: 0 0 1.25rem;
}
.stats-kpi {
  background: rgba(6, 13, 24, 0.45);
  border: 1px solid rgba(201, 162, 39, 0.22);
  border-radius: var(--radius-sm);
  padding: 0.85rem 0.95rem;
}
.stats-kpi-value {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 2.5vw, 1.95rem);
  font-weight: 600;
  margin: 0.15rem 0 0;
  color: var(--cream);
  line-height: 1.15;
}
.stats-kpi-unit {
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--cream-dim);
  margin-left: 0.15rem;
}
.stats-spark {
  display: flex;
  align-items: flex-end;
  gap: 3px;
  height: 64px;
  padding: 0.35rem 0.25rem;
  border-radius: var(--radius-sm);
  background: rgba(6, 13, 24, 0.35);
  border: 1px solid rgba(201, 162, 39, 0.12);
}
.stats-spark-bar {
  flex: 1 1 0;
  min-width: 3px;
  background: linear-gradient(180deg, var(--gold-400), rgba(201, 162, 39, 0.35));
  border-radius: 2px 2px 0 0;
  opacity: 0.9;
}
.stats-panels-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem 1.25rem;
}
.stats-panel {
  background: rgba(6, 13, 24, 0.3);
  border: 1px solid rgba(201, 162, 39, 0.14);
  border-radius: var(--radius-sm);
  padding: 0.9rem 1rem 1rem;
}
.stats-panel-title {
  font-family: var(--font-display);
  font-size: 1.2rem;
  margin: 0 0 0.75rem;
  color: var(--gold-400);
}
.stats-bars {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.55rem;
}
.stats-bar-meta {
  display: flex;
  justify-content: space-between;
  gap: 0.75rem;
  font-size: 0.88rem;
  margin-bottom: 0.2rem;
}
.stats-bar-track {
  height: 0.4rem;
  border-radius: 999px;
  background: rgba(247, 240, 227, 0.08);
  overflow: hidden;
}
.stats-bar-track > span {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, rgba(201, 162, 39, 0.45), var(--gold-500));
  border-radius: 999px;
}
.stats-list {
  list-style: none;
  margin: 0;
  padding: 0;
  counter-reset: stats;
}
.stats-list li {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 0.75rem;
  padding: 0.4rem 0;
  border-bottom: 1px solid rgba(247, 240, 227, 0.06);
  font-size: 0.9rem;
  counter-increment: stats;
}
.stats-list li::before {
  content: counter(stats) ".";
  color: var(--gold-400);
  font-size: 0.78rem;
  min-width: 1.25rem;
}
.stats-list-label {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.btn.is-active-stats {
  border-color: var(--gold-500);
  color: var(--gold-400);
  background: rgba(201, 162, 39, 0.12);
}
@media (max-width: 1100px) {
  .stats-kpi-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 720px) {
  .stats-kpi-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stats-panels-grid { grid-template-columns: 1fr; }
}

/* Responsive */
@media (max-width: 960px) {
  .feature-grid, .about-split, .pedigree-panel, .profile-hero, .footer-inner {
    grid-template-columns: 1fr;
  }
  .side-panel { position: static; }
  .ancestry-row { grid-template-columns: 1fr; }
  .ancestry-mid { padding: .25rem 0; }
  .stat-row { grid-template-columns: 1fr; }
}
@media (max-width: 780px) {
  .nav-toggle { display: flex; }
  .site-nav {
    display: none; position: absolute; top: 100%; left: 0; right: 0;
    background: rgba(255, 255, 255, 0.98); flex-direction: column; align-items: stretch;
    padding: 1rem 1.25rem 1.25rem; border-bottom: 1px solid rgba(10, 22, 40, 0.1);
    box-shadow: 0 12px 24px rgba(10, 22, 40, 0.08);
    gap: .85rem;
  }
  .site-nav.is-open { display: flex; }
  .nav-user { border: 0; padding: 0; }
  .form-row { grid-template-columns: 1fr; }
  .tree-canvas-wrap, .tree-stage { min-height: 520px; height: 520px; }
  .tree-canvas-wrap { height: 520px; }
}
