/* Emeritabull Whippets · styles
   Change --accent to recolour the whole site (e.g. #B9C4CF silver, #D4B48C sand). */
:root {
  --accent: #C8A96A;
  --bg: #0E1215;
  --bg-2: #12171B;
  --ink: #EDE8DF;
  --soft: #C9C3B8;
  --muted: #A39E95;
  --line: rgba(255, 255, 255, 0.10);
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); }
img { max-width: 100%; }
a { color: var(--ink); text-decoration: none; }
a:hover { color: var(--accent); }
a:focus-visible, button:focus-visible, .carousel:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
button { font-family: inherit; cursor: pointer; }
section[id], footer[id] { scroll-margin-top: 16px; }

/* photo slots: a striped placeholder until an image exists in /img */
.ph {
  position: relative;
  isolation: isolate; /* keeps the photo inside its own layer, so badges placed over it stay on top */
  overflow: hidden;
  background-color: #161B1F;
  background-image: repeating-linear-gradient(135deg, rgba(255,255,255,0.025) 0 1px, transparent 1px 14px);
  border: 1px solid var(--line);
}
.ph-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; z-index: 1; }

/* text helpers used by the script */
.muted { color: var(--muted); }
.soft { color: var(--soft); }
.small { font-size: 12px; }
.strong { font-weight: 600; }
.accent { color: var(--accent); }
.stack { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.gap8 { gap: 8px; }

/* results filters */
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  min-height: 44px; padding: 10px 16px;
  font-size: 13px; font-weight: 600; letter-spacing: 0.06em;
  background: transparent; color: var(--ink);
  border: 1px solid rgba(237, 232, 223, 0.25);
}
.chip:hover { border-color: var(--accent); }
.chip.on { background: var(--accent); color: var(--bg); border-color: var(--accent); }

/* results table */
.res-row {
  display: grid;
  grid-template-columns: 90px minmax(0, 1.6fr) minmax(0, 1.1fr) minmax(0, 1.1fr) minmax(0, 1.3fr);
  gap: 16px; padding: 16px 0;
  border-top: 1px solid var(--line);
  font-size: 14px; line-height: 1.45; align-items: baseline;
}
.res-row--4 { grid-template-columns: 90px minmax(0, 1.6fr) minmax(0, 1fr) minmax(0, 1.2fr); }
.res-empty { margin: 0; padding: 32px 0; border-top: 1px solid var(--line); color: var(--muted); }
.badges { display: flex; flex-wrap: wrap; gap: 6px; }
.badge { padding: 3px 8px; font-size: 12px; letter-spacing: 0.04em; color: var(--muted); }
.badge.hi { background: var(--accent); color: var(--bg); font-weight: 600; }

/* carousel */
.carousel { display: flex; flex-direction: column; gap: 16px; }
.car-stage { position: relative; aspect-ratio: 16 / 9; background: #161B1F; border: 1px solid var(--line); overflow: hidden; }
.car-stage img { width: 100%; height: 100%; object-fit: cover; display: block; }
.car-btn {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 52px; height: 52px; border-radius: 50%;
  border: 1px solid rgba(237, 232, 223, 0.5); background: rgba(14, 18, 21, 0.7); color: var(--ink);
  display: flex; align-items: center; justify-content: center;
}
.car-btn:hover { border-color: var(--accent); color: var(--accent); }
.car-prev { left: 16px; }
.car-next { right: 16px; }
.car-count { position: absolute; right: 16px; bottom: 16px; padding: 6px 12px; background: rgba(14, 18, 21, 0.75); font-size: 12px; letter-spacing: 0.14em; }
.car-caption { position: absolute; left: 16px; bottom: 16px; max-width: 70%; padding: 6px 12px; background: rgba(14, 18, 21, 0.75); font-size: 13px; }
.car-thumbs { display: flex; gap: 10px; overflow-x: auto; padding-bottom: 4px; }
.car-thumb { flex: 0 0 120px; height: 72px; padding: 0; background: #161B1F; overflow: hidden; border: 2px solid transparent; opacity: 0.55; }
.car-thumb[aria-current="true"] { border-color: var(--accent); opacity: 1; }
.car-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.carousel.single .car-btn, .carousel.single .car-thumbs { display: none; }

/* videos */
.video-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr)); gap: 24px; }
.video-card { display: flex; flex-direction: column; gap: 10px; }
.video-thumb { aspect-ratio: 16 / 9; display: flex; align-items: center; justify-content: center; }
.play {
  position: relative; z-index: 2;
  width: 64px; height: 64px; border-radius: 50%;
  border: 1px solid var(--accent); color: var(--accent); background: rgba(14, 18, 21, 0.6);
  display: flex; align-items: center; justify-content: center;
}
.video-card:hover .play { background: var(--accent); color: var(--bg); }

/* phone widths: the design's fixed minimums would overflow, so relax them */
@media (max-width: 720px) {
  [style*="minmax(340px"] { grid-template-columns: 1fr !important; }
  [style*="grid-column: span 2"] { grid-column: auto !important; }
  [style*="flex: 1 1 520px"], [style*="flex: 1 1 440px"], [style*="flex: 1 1 420px"], [style*="flex: 1 1 380px"] { flex-basis: 100% !important; }
  [style*="min-height: 520px"] { min-height: 320px !important; }
  [style*="left: -24px"] { left: 12px !important; }
  [style*="padding: 56px 48px"] { padding: 32px 24px !important; }
  [style*="padding: 112px 32px"], [style*="padding: 104px 32px"] { padding-top: 72px !important; padding-bottom: 72px !important; }
  [style*="padding: 20px 32px"], [style*="padding: 72px 32px"], [style*="padding: 32px;"], section > div, section[style*="padding"] { padding-left: 16px !important; padding-right: 16px !important; }
  .car-btn { width: 44px; height: 44px; }
}

/* ---------- brand word ---------- */
.brand-word { font-family: 'Cormorant Garamond', serif; font-size: 30px; font-weight: 600; letter-spacing: 0.01em; line-height: 1; }
.brand-word span { color: var(--accent); }

/* ---------- contact buttons + floating WhatsApp ---------- */
.contact-btns { display: flex; flex-wrap: wrap; gap: 12px; }
.cbtn {
  display: inline-flex; align-items: center; gap: 10px; min-height: 48px; padding: 0 22px;
  border: 1px solid rgba(237, 232, 223, 0.35); color: var(--ink);
  font-size: 13px; font-weight: 600; letter-spacing: 0.1em;
}
.cbtn:hover { border-color: var(--accent); color: var(--accent); }
.cbtn-gold { background: var(--accent); border-color: var(--accent); color: var(--bg); }
.cbtn-gold:hover { background: transparent; color: var(--accent); }
.wa-float {
  position: fixed; right: 20px; bottom: 20px; z-index: 40;
  width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center;
  background: var(--accent); color: var(--bg); box-shadow: 0 10px 30px rgba(0, 0, 0, 0.45);
}
.wa-float:hover { background: var(--ink); color: var(--bg); }

/* ---------- clickable dog cards ---------- */
a.ph { color: inherit; }
.dog-link .ph-img { transition: transform 0.9s ease; }
.dog-link:hover .ph-img { transform: scale(1.03); }
.dog-cta {
  position: absolute; left: 16px; bottom: 16px; z-index: 2;
  padding: 7px 12px; background: rgba(14, 18, 21, 0.78); border: 1px solid var(--accent);
  font-size: 11px; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--accent);
  opacity: 0; transition: opacity 0.4s ease;
}
.dog-link:hover .dog-cta, .dog-link:focus-visible .dog-cta { opacity: 1; }
@media (hover: none) { .dog-cta { opacity: 1; } }
.dog-name-link { color: inherit; }
.dog-name-link:hover { color: var(--accent); }

/* ---------- dog portfolio overlay ---------- */
body.locked { overflow: hidden; }
.profile { position: fixed; inset: 0; z-index: 100; overflow-y: auto; background: var(--bg); font-family: 'Manrope', system-ui, sans-serif; color: var(--ink); }
.pf-inner { max-width: 1320px; margin: 0 auto; display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.9fr); gap: 48px; padding: 88px 32px 64px; }
.pf-close { position: fixed; top: 20px; right: 20px; z-index: 5; width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center; background: rgba(14, 18, 21, 0.8); border: 1px solid rgba(237, 232, 223, 0.35); color: var(--ink); }
.pf-close:hover { border-color: var(--accent); color: var(--accent); }
.pf-gallery { display: flex; flex-direction: column; gap: 14px; position: sticky; top: 88px; align-self: start; }
.pf-stage { position: relative; height: min(72vh, 760px); background: #0A0C0E; border: 1px solid var(--line); }
.pf-stage img { width: 100%; height: 100%; object-fit: contain; display: block; }
.pf-stage .pf-prev { left: 14px; }
.pf-stage .pf-next { right: 14px; }
.pf-stage.single .car-btn, .pf-stage.single .car-count { display: none; }
.pf-stage.empty::before { content: 'No photos yet'; position: absolute; inset: 0; display: grid; place-items: center; color: var(--muted); font-size: 13px; letter-spacing: 0.14em; text-transform: uppercase; }
.pf-info { display: flex; flex-direction: column; gap: 18px; }
.pf-kicker { margin: 0; font-size: 12px; letter-spacing: 0.28em; color: var(--accent); text-transform: uppercase; }
.pf-name { margin: 0; font-family: 'Cormorant Garamond', serif; font-weight: 600; font-size: clamp(34px, 3.6vw, 52px); line-height: 1.05; }
#pf-titles { display: flex; flex-direction: column; gap: 8px; }
.pf-pedigree p { margin: 0; font-size: 14px; line-height: 1.7; color: var(--muted); }
.pf-record { margin-top: 10px; border-top: 1px solid var(--accent); padding-top: 18px; }
.pf-record-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 6px 20px; }
.pf-record-head h3 { margin: 0; font-size: 12px; letter-spacing: 0.28em; color: var(--accent); font-weight: 600; }
.pf-sum { margin: 0; font-size: 13px; color: var(--muted); }
.pf-res { display: flex; flex-direction: column; gap: 6px; padding: 14px 0; border-bottom: 1px solid var(--line); font-size: 14px; line-height: 1.5; }
.pf-res-top { display: flex; justify-content: space-between; gap: 16px; }
.pf-res-date { font-size: 12px; color: var(--muted); white-space: nowrap; }
.badge.pf-grade { color: var(--ink); }
@media (max-width: 900px) {
  .pf-inner { grid-template-columns: 1fr; padding: 76px 16px 48px; gap: 28px; }
  .pf-gallery { position: static; }
  .pf-stage { height: min(60vh, 520px); }
  .pf-close { top: 12px; right: 12px; }
  .wa-float { right: 14px; bottom: 14px; width: 52px; height: 52px; }
}

/* results on phones: one card per show instead of a wide table */
@media (max-width: 720px) {
  #results [style*="min-width: 900px"] { min-width: 0 !important; }
  #results [style*="min-width: 900px"] > div:first-child { display: none !important; }
  #results [style*="overflow-x: auto"] { overflow: visible !important; }
  .res-row { grid-template-columns: 1fr; gap: 4px; padding: 18px 0; }
  .res-row > span:first-child { font-size: 12px; letter-spacing: 0.12em; color: var(--accent); }
  .res-row .gap8 { margin-top: 6px; }
}

/* awards summary (results section) */
.res-stats{display:grid;grid-template-columns:repeat(auto-fit,minmax(230px,1fr));gap:1px;background:var(--line,rgba(255,255,255,.1));border:1px solid var(--line,rgba(255,255,255,.1))}
.stat-group{background:#12171B;padding:22px 24px;display:flex;flex-direction:column;gap:14px}
.stat-group h3{margin:0;font-size:11px;font-weight:600;letter-spacing:.24em;text-transform:uppercase;color:var(--accent)}
.stat-list{margin:0;padding:0;list-style:none;display:flex;flex-direction:column}
.stat-list li{display:flex;align-items:baseline;gap:10px;padding:8px 0;border-bottom:1px solid rgba(255,255,255,.06);font-size:14px}
.stat-list li:last-child{border-bottom:0}
.stat-label{flex:1;color:#EDE8DF}
.stat-placed{font-size:11px;color:#A39E95;white-space:nowrap}
.stat-num{font-family:'Cormorant Garamond',serif;font-size:26px;font-weight:600;line-height:1;color:var(--accent);min-width:36px;text-align:right}
.stat-list li.zero .stat-label,.stat-list li.zero .stat-num{color:#5d5a55}
