/* ============================================================
   BOTTERKLOOF BORANE — Design System
   Heritage / Karoo aesthetic · Serif headings + clean sans body
   These tokens map 1:1 to a MudBlazor theme (see design-system.html)
   ============================================================ */

:root {
  /* ---- Colour ---- */
  --bone:       #F4EFE6;   /* page background */
  --bone-2:     #ECE4D5;   /* alternating section / wash */
  --paper:      #FBF8F2;   /* cards, surfaces */
  --green:      #3D4A3A;   /* primary — deep bushveld green */
  --green-700:  #2E392C;
  --green-300:  #6E7C64;
  --ochre:      #B5703C;   /* secondary — terracotta / ochre */
  --ochre-600:  #9A5C2E;
  --ochre-100:  #EBD9C6;
  --dust:       #C9BBA0;   /* muted — Karoo dust */
  --dust-2:     #DBD0BB;
  --espresso:   #2A241E;   /* ink / dark surfaces */
  --espresso-2: #221D18;

  --ink:        #2A241E;
  --ink-soft:   #5C5246;
  --ink-faint:  #8A8071;
  --line:       rgba(42, 36, 30, 0.12);
  --line-2:     rgba(42, 36, 30, 0.07);
  --on-dark:    #F1EADD;
  --on-dark-soft: #BDB29F;

  /* ---- Type ---- */
  --serif: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --sans:  "Hanken Grotesk", system-ui, -apple-system, sans-serif;

  /* ---- Radius / shadow (MudBlazor: rounded, subtle elevation) ---- */
  --r-sm: 4px;
  --r:    8px;
  --r-lg: 14px;
  --r-xl: 22px;
  --shadow-1: 0 1px 2px rgba(42,36,30,.06), 0 1px 3px rgba(42,36,30,.05);
  --shadow-2: 0 6px 18px -8px rgba(42,36,30,.18), 0 2px 6px rgba(42,36,30,.05);
  --shadow-3: 0 24px 48px -20px rgba(42,36,30,.28);

  /* ---- Layout ---- */
  --maxw: 1240px;
  --gutter: clamp(20px, 5vw, 64px);
  --appbar-h: 76px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--sans);
  color: var(--ink);
  background: var(--bone);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }

/* ---------- Typography ---------- */
h1, h2, h3, h4 {
  font-family: var(--serif);
  font-weight: 600;
  line-height: 1.04;
  margin: 0;
  letter-spacing: -0.01em;
  color: var(--ink);
  text-wrap: balance;
}
.display {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(2.8rem, 7vw, 5.5rem);
  line-height: 0.98;
  letter-spacing: -0.015em;
}
h1 { font-size: clamp(2.4rem, 5vw, 3.8rem); }
h2 { font-size: clamp(1.9rem, 3.6vw, 3rem); }
h3 { font-size: clamp(1.4rem, 2.2vw, 1.9rem); }
p  { margin: 0 0 1em; }
.lead {
  font-size: 1.2rem;
  line-height: 1.65;
  color: var(--ink-soft);
  max-width: 60ch;
}

.eyebrow {
  font-family: var(--sans);
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ochre-600);
  display: inline-flex;
  align-items: center;
  gap: 0.6em;
}
.eyebrow::before {
  content: "";
  width: 26px; height: 1.5px;
  background: var(--ochre); opacity: 0.7;
}
.eyebrow.center::before { display: none; }

.serif-num {
  font-family: var(--serif);
  font-weight: 500;
  font-variant-numeric: lining-nums;
}

/* ---------- Layout helpers ---------- */
.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 var(--gutter); }
.section { padding: clamp(44px, 6.5vw, 92px) 0; }
.section.tight { padding: clamp(16px, 2.2vw, 32px) 0; }
.bg-bone2 { background: var(--bone-2); }
.bg-green { background: var(--green); color: var(--on-dark); }
.bg-espresso { background: var(--espresso); color: var(--on-dark); }
.bg-green h1, .bg-green h2, .bg-green h3, .bg-espresso h1, .bg-espresso h2, .bg-espresso h3 { color: var(--on-dark); }

.grid { display: grid; gap: clamp(20px, 2.5vw, 34px); }
.cols-2 { grid-template-columns: repeat(2, 1fr); }
.cols-3 { grid-template-columns: repeat(3, 1fr); }
.cols-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 960px) { .cols-3, .cols-4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px)  { .cols-2, .cols-3, .cols-4 { grid-template-columns: 1fr; } }

.section-head { max-width: 64ch; margin-bottom: clamp(16px, 2.2vw, 28px); }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head .eyebrow { margin-bottom: 10px; }
.section-head h2 { margin-top: 0; }
.section-head .lead { margin-top: 14px; }
.section-head.center .lead { margin-left: auto; margin-right: auto; }

/* ---------- Buttons ---------- */
.btn {
  font-family: var(--sans);
  font-size: 0.92rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  display: inline-flex;
  align-items: center;
  gap: 0.6em;
  padding: 0.85em 1.5em;
  border-radius: var(--r);
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: all .2s ease;
  line-height: 1;
  white-space: nowrap;
}
.btn svg { width: 17px; height: 17px; }
.btn-primary { background: var(--green); color: var(--on-dark); }
.btn-primary:hover { background: var(--green-700); transform: translateY(-1px); box-shadow: var(--shadow-2); }
.btn-ochre { background: var(--ochre); color: #fff; }
.btn-ochre:hover { background: var(--ochre-600); transform: translateY(-1px); box-shadow: var(--shadow-2); }
.btn-outline { background: transparent; border-color: var(--ink); color: var(--ink); }
.btn-outline:hover { background: var(--ink); color: var(--bone); }
.btn-ghost { background: transparent; color: var(--ink); padding-left: 0.4em; padding-right: 0.4em; }
.btn-ghost:hover { color: var(--ochre-600); }
.on-dark .btn-outline { border-color: rgba(241,234,221,.5); color: var(--on-dark); }
.on-dark .btn-outline:hover { background: var(--on-dark); color: var(--green); }
/* Hero buttons read on any image: give the outline button a dark glass backing */
.hero .btn-outline { background: rgba(20,16,12,.42); -webkit-backdrop-filter: blur(5px); backdrop-filter: blur(5px); border-color: rgba(241,234,221,.75); color: var(--on-dark); }
.hero .btn-outline:hover { background: var(--on-dark); color: var(--green); border-color: var(--on-dark); }

/* ---------- Chips / badges ---------- */
.chip {
  display: inline-flex; align-items: center; gap: 0.45em;
  font-family: var(--sans); font-size: 0.74rem; font-weight: 600;
  letter-spacing: 0.05em; text-transform: uppercase;
  padding: 0.42em 0.8em; border-radius: 100px;
  background: var(--dust-2); color: var(--ink-soft);
}
.chip.green { background: rgba(61,74,58,.12); color: var(--green); }
.chip.ochre { background: var(--ochre-100); color: var(--ochre-600); }
.chip.dot::before { content:""; width:6px; height:6px; border-radius:50%; background: currentColor; }
.chip.avail::before { content:""; width:7px; height:7px; border-radius:50%; background:#5b8f4e; }
.chip.avail { background: rgba(91,143,78,.14); color:#3f6e34; }
.chip.sold { background: rgba(122,59,46,.12); color:#7A3B2E; }

/* ---------- Cards ---------- */
.card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  overflow: hidden;
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
.card.hover:hover { transform: translateY(-4px); box-shadow: var(--shadow-2); border-color: var(--dust); }
.card-body { padding: 22px 24px 26px; }
.card-title { font-family: var(--serif); font-size: 1.5rem; font-weight: 600; margin-bottom: 2px; }
.card-meta { font-size: 0.82rem; color: var(--ink-faint); letter-spacing: 0.04em; text-transform: uppercase; font-weight: 600; }

/* spec list (key/value rows) */
.spec { display: grid; grid-template-columns: auto 1fr; gap: 2px 18px; font-size: 0.95rem; }
.spec dt { color: var(--ink-faint); }
.spec dd { margin: 0; text-align: right; font-weight: 600; font-variant-numeric: tabular-nums; }
.spec .row { display: contents; }
.spec-line { border-top: 1px solid var(--line-2); }

/* ---------- Image placeholders (swap for real photos) ---------- */
.ph {
  position: relative;
  background-color: var(--dust-2);
  background-image: repeating-linear-gradient(45deg,
      rgba(42,36,30,.05) 0, rgba(42,36,30,.05) 1px,
      transparent 1px, transparent 11px);
  display: flex; align-items: center; justify-content: center;
  color: var(--ink-faint);
  overflow: hidden;
}
.ph::after {
  content: attr(data-label);
  font-family: ui-monospace, "SF Mono", Menlo, monospace;
  font-size: 0.7rem; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--ink-faint);
  background: rgba(251,248,242,.78);
  padding: 6px 11px; border-radius: 100px;
  border: 1px solid var(--line);
}
.ph.rounded { border-radius: var(--r-lg); }
.ph.dark { background-color: #4a4136; }
.ph.dark::after { background: rgba(34,29,24,.6); color: var(--on-dark-soft); border-color: rgba(255,255,255,.12); }
.ratio-43 { aspect-ratio: 4/3; }
.ratio-11 { aspect-ratio: 1/1; }
.ratio-32 { aspect-ratio: 3/2; }
.ratio-169 { aspect-ratio: 16/9; }
.ratio-34 { aspect-ratio: 3/4; }

/* ---------- AppBar (chrome.js injects this) ---------- */
.appbar {
  position: sticky; top: 0; z-index: 50;
  height: var(--appbar-h);
  background: rgba(244,239,230,.82);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.appbar .wrap { display: flex; align-items: center; gap: 28px; height: 100%; }
.appbar.on-dark { background: rgba(34,29,24,.88); border-bottom-color: rgba(255,255,255,.08); }
.brand { display: flex; align-items: center; gap: 14px; margin-right: auto; }
.brand .mark { height: 52px; width: auto; flex: none; }
@media (max-width: 600px) { .brand .mark { height: 44px; } }
.brand .name { line-height: 1.05; }
.brand .name b { font-family: var(--serif); font-weight: 600; font-size: 1.32rem; letter-spacing: -0.01em; display:block; white-space: nowrap; }
.brand .name span { font-size: 0.6rem; letter-spacing: 0.26em; text-transform: uppercase; color: var(--ink-faint); font-weight: 600; white-space: nowrap; }
.appbar.on-dark .brand .name span { color: var(--on-dark-soft); }

.nav { display: flex; align-items: center; gap: 6px; }
.nav a {
  font-size: 0.9rem; font-weight: 500; letter-spacing: 0.01em;
  padding: 9px 14px; border-radius: var(--r);
  color: var(--ink-soft); transition: all .18s ease; position: relative;
}
.nav a:hover { color: var(--ink); background: rgba(42,36,30,.05); }
.nav a.active { color: var(--green); font-weight: 600; }
.nav a.active::after {
  content:""; position:absolute; left:14px; right:14px; bottom:2px;
  height:2px; background: var(--ochre); border-radius:2px;
}
.appbar.on-dark .nav a { color: var(--on-dark-soft); }
.appbar.on-dark .nav a:hover { color: var(--on-dark); background: rgba(255,255,255,.06); }
.appbar.on-dark .nav a.active { color: var(--on-dark); }
.appbar-actions { display: flex; align-items: center; gap: 14px; }
.login-link { font-size: 0.86rem; font-weight: 600; color: var(--ink-soft); }
.login-link:hover { color: var(--ochre-600); }
.appbar.on-dark .login-link { color: var(--on-dark-soft); }
.menu-btn { display:none; background:none; border:none; cursor:pointer; padding:8px; color: var(--ink); }

@media (max-width: 1024px) {
  .nav, .login-link, .appbar-actions { display: none; }
  .menu-btn { display: inline-flex; }
}
.m-nav { display: none; flex-direction: column; gap: 4px; padding: 12px var(--gutter) 22px; background: var(--bone); border-bottom: 1px solid var(--line); }
.m-nav.open { display: flex; }
.m-nav a { padding: 11px 6px; font-size: 1rem; font-weight: 500; color: var(--ink-soft); border-bottom: 1px solid var(--line-2); }
.m-nav a.active { color: var(--green); font-weight: 600; }
.appbar.on-dark + .m-nav { } /* m-nav always light for legibility */

/* breadcrumbs */
.crumbs { display: flex; align-items: center; gap: 9px; font-size: 0.82rem; color: var(--ink-faint); flex-wrap: wrap; }
.crumbs a:hover { color: var(--ochre-600); }
.crumbs .sep { opacity: 0.5; }
.crumbs b { color: var(--ink-soft); font-weight: 600; }

/* ---------- Footer ---------- */
.footer { background: var(--espresso); color: var(--on-dark-soft); padding: clamp(56px,7vw,88px) 0 32px; }
.footer h4 { color: var(--on-dark); font-family: var(--sans); font-size: 0.78rem; letter-spacing: 0.18em; text-transform: uppercase; font-weight: 700; margin-bottom: 18px; }
.footer a { color: var(--on-dark-soft); display: block; padding: 5px 0; font-size: 0.95rem; transition: color .15s; }
.footer a:hover { color: var(--on-dark); }
.footer .foot-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.4fr; gap: 40px; }
@media (max-width: 860px) { .footer .foot-grid { grid-template-columns: 1fr 1fr; gap: 36px; } }
@media (max-width: 520px) { .footer .foot-grid { grid-template-columns: 1fr; } }
.footer .foot-brand .display { color: var(--on-dark); font-size: 2.2rem; margin-bottom: 14px; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.1); margin-top: 56px; padding-top: 26px; display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-size: 0.82rem; color: var(--on-dark-soft); }

/* ---------- Misc ---------- */
.divider { height: 1px; background: var(--line); border: 0; margin: 0; }
.kicker-rule { width: 54px; height: 3px; background: var(--ochre); border-radius: 3px; margin-bottom: 26px; }
.center-stack { display: flex; flex-direction: column; align-items: center; }
.btn-row { display: flex; gap: 14px; flex-wrap: wrap; }
.muted { color: var(--ink-soft); }
.stat-num { font-family: var(--serif); font-weight: 500; font-size: clamp(2.6rem,4vw,3.6rem); line-height: 1; color: var(--green); }
.on-dark .stat-num { color: var(--on-dark); }
.tag-row { display: flex; gap: 8px; flex-wrap: wrap; }

/* simple fade-up on load */
@media (prefers-reduced-motion: no-preference) {
  .reveal { opacity: 0; transform: translateY(16px); animation: fadeUp .7s cubic-bezier(.2,.7,.3,1) forwards; }
  .reveal.d1 { animation-delay: .08s; }
  .reveal.d2 { animation-delay: .16s; }
  .reveal.d3 { animation-delay: .24s; }
  .reveal.d4 { animation-delay: .32s; }
  @keyframes fadeUp { to { opacity: 1; transform: none; } }
}

/* ============================================================
   PAGE COMPONENTS
   ============================================================ */

/* ---- Hero ---- */
.hero { position: relative; min-height: 86vh; display: flex; flex-direction: column; justify-content: flex-end; color: var(--on-dark); overflow: hidden; }
.hero-slides { position: absolute; inset: 0; }
.hero-slide { position: absolute; inset: 0; background-size: cover; background-position: center; opacity: 0; transition: opacity 1.1s ease; }
.hero-slide.active { opacity: 1; }
.hero-tint { position: absolute; inset: 0; pointer-events: none; background: #14100C; opacity: var(--hero-tint, 0.12); }
.hero-scrim { position: absolute; inset: 0; pointer-events: none; background:
  linear-gradient(90deg, rgba(26,22,18,.84) 0%, rgba(26,22,18,.58) 40%, rgba(26,22,18,.15) 74%, rgba(26,22,18,0) 100%),
  linear-gradient(0deg, rgba(26,22,18,.82) 0%, rgba(26,22,18,.12) 38%, rgba(26,22,18,0) 55%),
  linear-gradient(180deg, rgba(26,22,18,.5) 0%, rgba(26,22,18,0) 22%); }
.hero-inner { position: relative; padding: clamp(40px,8vw,90px) 0 clamp(20px,3vw,34px); }
.hero-inner .eyebrow { margin-bottom: 22px; }
.hero-inner .lead { margin-top: 20px; }

/* hero slideshow controls */
.hero-controls { position: relative; padding-bottom: clamp(14px,2vw,22px); }
.hero-controls-row { display: flex; align-items: center; gap: 16px; }
.hero-arrow { width: 44px; height: 44px; border-radius: 50%; border: 1.5px solid rgba(241,234,221,.4); background: rgba(26,22,18,.3); color: var(--on-dark); display: inline-flex; align-items: center; justify-content: center; cursor: pointer; transition: all .2s ease; backdrop-filter: blur(4px); }
.hero-arrow:hover { background: var(--ochre); border-color: var(--ochre); }
.hero-arrow svg { width: 20px; height: 20px; }
.hero-dots { display: flex; gap: 9px; }
.hero-dot { width: 34px; height: 4px; border-radius: 3px; border: none; background: rgba(241,234,221,.32); cursor: pointer; padding: 0; transition: background .2s ease; }
.hero-dot.active { background: var(--ochre); }

.hero-stats { position: relative; border-top: 1px solid rgba(255,255,255,.16); background: rgba(34,29,24,.35); backdrop-filter: blur(4px); }
.hero-stats-row { display: flex; gap: clamp(24px,6vw,80px); padding: 26px 0; flex-wrap: wrap; }
.hero-stats-row > div { display: flex; flex-direction: column; gap: 4px; }
.hs-label { font-size: 0.8rem; letter-spacing: 0.04em; color: var(--on-dark-soft); text-transform: uppercase; font-weight: 600; }
.hero-stats .stat-num { color: var(--on-dark); }

/* ---- Intro ---- */
.intro-grid { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: clamp(36px,5vw,80px); align-items: center; }
.intro-media { position: relative; }
.intro-badge { position: absolute; bottom: -22px; left: -22px; background: var(--ochre); color: #fff; border-radius: var(--r-lg); padding: 18px 22px; display: flex; align-items: center; gap: 14px; box-shadow: var(--shadow-2); }
.intro-badge .serif-num { font-size: 2.6rem; line-height: 1; }
.intro-badge span:last-child { font-size: 0.78rem; line-height: 1.25; font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase; opacity: .92; }
@media (max-width: 860px) { .intro-grid { grid-template-columns: 1fr; } .intro-media { max-width: 460px; } .intro-badge { left: auto; right: 22px; } }

/* ---- Trait cards ---- */
.trait-ico { display: inline-flex; align-items: center; justify-content: center; width: 52px; height: 52px; border-radius: 50%; background: rgba(61,74,58,.1); color: var(--green); margin-bottom: 18px; }
.trait-ico svg { width: 26px; height: 26px; }
.trait-title { font-size: 1.32rem; margin-bottom: 10px; }
.trait .card-body { padding: 26px 24px 28px; }

/* ---- Animal card ---- */
.animal-card { display: block; }

/* ---- Sale tiles ---- */
.sale-tile { display: block; background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.14); border-radius: var(--r-lg); overflow: hidden; transition: all .25s ease; }
.sale-tile:hover { transform: translateY(-4px); background: rgba(255,255,255,.09); }
.sale-tile-body { padding: 22px 24px 26px; }
.sale-link { display: inline-block; margin-top: 16px; color: var(--ochre); font-weight: 600; font-size: 0.9rem; letter-spacing: 0.03em; }
.bg-green .ph.dark { background-color: #34402f; }

/* ---- Heritage ---- */
.heritage-grid { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: clamp(36px,5vw,72px); align-items: center; }
@media (max-width: 860px) { .heritage-grid { grid-template-columns: 1fr; } }
.mini-stat { display: flex; flex-direction: column; gap: 4px; }
.mini-stat .hs-label { font-weight: 600; text-transform: uppercase; font-size: 0.78rem; }

/* ---- Page head (interior pages) ---- */
.page-head { padding: clamp(10px,1.4vw,16px) 0 clamp(10px,1.4vw,16px); background: var(--bone-2); border-bottom: 1px solid var(--line); }
.page-head .crumbs { margin-bottom: 16px; }
.page-head .crumbs:last-child { margin-bottom: 0; }
.page-head-row { display: flex; justify-content: space-between; align-items: flex-end; gap: 36px; flex-wrap: wrap; }

/* ---- Filter bar ---- */
.filter-bar { position: sticky; top: var(--appbar-h); z-index: 20; background: rgba(244,239,230,.9); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.filter-inner { display: flex; justify-content: space-between; align-items: center; gap: 20px; padding: 14px 0; flex-wrap: wrap; }
.filter-chips { display: flex; gap: 9px; flex-wrap: wrap; }
.fchip { font-family: var(--sans); font-size: 0.86rem; font-weight: 600; border: 1px solid var(--line); background: var(--paper); color: var(--ink-soft); padding: 8px 15px; border-radius: 100px; cursor: pointer; transition: all .18s ease; display: inline-flex; align-items: center; gap: 8px; }
.fchip span { font-size: 0.74rem; color: var(--ink-faint); font-variant-numeric: tabular-nums; }
.fchip:hover { border-color: var(--dust); }
.fchip.active { background: var(--green); color: var(--on-dark); border-color: var(--green); }
.fchip.active span { color: var(--on-dark-soft); }
.sortbox { display: inline-flex; align-items: center; gap: 10px; font-size: 0.85rem; color: var(--ink-faint); font-weight: 600; }
.sortbox select { font-family: var(--sans); font-size: 0.88rem; font-weight: 600; color: var(--ink); background: var(--paper); border: 1px solid var(--line); border-radius: var(--r); padding: 8px 12px; cursor: pointer; }
.load-more { text-align: center; margin-top: clamp(40px,5vw,64px); }

/* ---- Animal detail ---- */
.animal-layout { display: grid; grid-template-columns: 1.4fr 0.85fr; gap: clamp(28px,3.5vw,52px); align-items: start; }
@media (max-width: 920px) { .animal-layout { grid-template-columns: 1fr; } }
.gallery-main { border-radius: var(--r-lg); }
.thumbs { display: grid; grid-template-columns: repeat(4,1fr); gap: 12px; margin-top: 12px; }
.thumbs .ph { border-radius: var(--r); cursor: pointer; }
.info-card { position: sticky; top: calc(var(--appbar-h) + 20px); background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 28px 28px 30px; box-shadow: var(--shadow-1); }
.info-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 0; margin: 22px 0 24px; border-top: 1px solid var(--line); }
.info-stats > div { padding: 14px 4px; border-bottom: 1px solid var(--line-2); }
.info-stats > div:nth-child(odd) { border-right: 1px solid var(--line-2); padding-right: 16px; }
.info-stats > div:nth-child(even) { padding-left: 16px; }
.info-stats dt { font-size: 0.76rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink-faint); font-weight: 600; margin-bottom: 3px; }
.info-stats dd { margin: 0; font-family: var(--serif); font-size: 1.5rem; font-weight: 600; }
.info-cta .btn svg { margin-right: 4px; }

.detail-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(36px,5vw,72px); align-items: start; }
@media (max-width: 820px) { .detail-grid { grid-template-columns: 1fr; gap: 40px; } }
.perf-table { width: 100%; border-collapse: collapse; font-size: 0.95rem; }
.perf-table th { text-align: left; font-family: var(--sans); font-size: 0.74rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-faint); font-weight: 700; padding: 0 0 12px; border-bottom: 1.5px solid var(--line); }
.perf-table th:not(:first-child), .perf-table td:not(:first-child) { text-align: right; font-variant-numeric: tabular-nums; }
.perf-table td { padding: 13px 0; border-bottom: 1px solid var(--line-2); }
.perf-table td:first-child { font-weight: 500; }
.perf-table td:nth-child(2) { font-weight: 700; color: var(--green); }
.perf-table tr:hover td { color: var(--ink); }

/* ---- Pedigree explorer (interactive, pan/zoom family tree) ---- */
.ped-explorer { position: relative; }
.ped-viewport {
    position: relative; height: 500px; overflow: hidden;
    background:
        radial-gradient(circle at 1px 1px, var(--line-2) 1px, transparent 0) 0 0 / 26px 26px,
        var(--bone-2);
    border: 1px solid var(--line); border-radius: var(--r-lg);
    cursor: grab; touch-action: none; user-select: none;
}
.ped-viewport.grabbing { cursor: grabbing; }
.ped-canvas { position: absolute; top: 0; left: 0; transform-origin: 0 0; will-change: transform; transition: opacity .2s ease; }
/* Re-root sequence (no jump): the canvas is hidden INSTANTLY on click (transition:none here, so the
   old tree vanishes at once rather than flashing or teleporting), then once boranPed.recenter has
   centred the new tree the class is removed and the base .2s opacity transition fades it in. Only
   opacity ever transitions - never transform - so dragging/panning stays instant. */
.ped-canvas.is-loading { opacity: 0; transition: none; pointer-events: none; }
.ped-links { position: absolute; top: 0; left: 0; overflow: visible; pointer-events: none; }
.ped-links path { fill: none; stroke: var(--dust); stroke-width: 2; }

.ped-node {
    position: absolute; display: flex; align-items: center; gap: 10px; overflow: hidden;
    background: var(--paper); border: 1px solid var(--line); border-left: 3px solid var(--dust);
    border-radius: var(--r); padding: 8px 10px; box-shadow: var(--shadow-1);
    cursor: pointer; transition: box-shadow .16s ease, border-color .16s ease;
}
.ped-node.sire { border-left-color: var(--green); }
.ped-node.dam { border-left-color: var(--ochre); }
.ped-node.progeny { border-left-color: var(--green-300); }
.ped-node.is-focus { border: 1px solid var(--ochre); border-left: 3px solid var(--ochre); background: var(--ochre-100); box-shadow: var(--shadow-2); cursor: default; }
.ped-node.is-empty { cursor: default; box-shadow: none; border-style: dashed; border-left-color: var(--dust); background: var(--bone-2); }
.ped-node.is-empty b { color: var(--ink-faint); font-weight: 500; font-style: italic; }
.ped-node:not(.is-focus):not(.is-empty):hover { border-color: var(--green-300); box-shadow: var(--shadow-2); }
.ped-node:focus-visible { outline: 2px solid var(--ochre); outline-offset: 2px; }

.pn-thumb { position: relative; flex: 0 0 auto; width: 42px; height: 42px; border-radius: var(--r-sm); overflow: hidden; background: var(--dust-2); display: grid; place-items: center; }
.pn-thumb img { width: 100%; height: 100%; object-fit: cover; }
.pn-thumb .img-placeholder { width: 100%; height: 100%; }
.pn-thumb .img-placeholder-label { display: none; }
.pn-thumb .img-placeholder-mark { width: 22px; height: auto; opacity: .5; }
.pn-thumb-empty { background: var(--line-2); }

.pn-body { min-width: 0; flex: 1; }
.pn-tag { font-size: 0.6rem; letter-spacing: 0.1em; text-transform: uppercase; font-weight: 700; color: var(--ink-faint); display: block; line-height: 1; margin-bottom: 2px; }
.ped-node.is-focus .pn-tag { color: var(--ochre-600); }
.pn-body b { font-family: var(--serif); font-size: 1.05rem; font-weight: 600; display: block; line-height: 1.12; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pn-body em { font-style: normal; font-size: 0.72rem; color: var(--ink-faint); font-variant-numeric: tabular-nums; display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.pn-more { position: absolute; top: 5px; right: 6px; width: 16px; height: 16px; border-radius: 50%; background: var(--green); color: var(--paper); font-size: 0.7rem; font-weight: 700; line-height: 16px; text-align: center; }

.ped-controls { position: absolute; top: 12px; right: 12px; z-index: 2; display: flex; flex-direction: column; gap: 6px; }
.ped-ctl {
    width: 36px; height: 36px; display: grid; place-items: center; padding: 0;
    background: var(--paper); border: 1px solid var(--line); border-radius: 50%;
    color: var(--ink-soft); font-size: 1.2rem; line-height: 1; cursor: pointer;
    box-shadow: var(--shadow-1); transition: background .16s ease, color .16s ease;
}
.ped-ctl:hover { background: var(--green); color: var(--paper); border-color: var(--green); }
.ped-ctl svg { display: block; }
.ped-ctl-fs .fs-collapse { display: none; }
.ped-hint { text-align: center; font-size: 0.78rem; color: var(--ink-faint); margin: 12px 0 0; }

/* Full screen: the explorer fills the screen and the viewport grows to fill it. */
.ped-explorer:fullscreen { background: var(--bone); display: flex; flex-direction: column; }
.ped-explorer:fullscreen .ped-viewport { flex: 1 1 auto; height: auto; border: none; border-radius: 0; }
.ped-explorer:fullscreen .ped-hint { margin: 0; padding: 10px 0; }
.ped-explorer:fullscreen .ped-ctl-fs .fs-expand { display: none; }
.ped-explorer:fullscreen .ped-ctl-fs .fs-collapse { display: block; }

/* Info button on the focused node + its popup - full screen only (out of full screen the
   page already shows the full profile below the tree). */
.pn-info { display: none; position: absolute; top: 5px; right: 6px; width: 18px; height: 18px; padding: 0; border: none; border-radius: 50%; background: var(--green); color: var(--paper); cursor: pointer; place-items: center; }
.pn-info:hover { background: var(--green-700); }
.pn-info svg { display: block; }
.ped-explorer:fullscreen .ped-node.is-focus .pn-info { display: grid; }

.ped-info-overlay { display: none; position: absolute; inset: 0; z-index: 10; }
.ped-explorer:fullscreen .ped-info-overlay { display: block; }
.ped-info-backdrop { position: absolute; inset: 0; background: rgba(42, 36, 30, .55); }
.ped-info-pop {
    position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
    width: min(460px, 92vw); max-height: 88vh; overflow: auto;
    background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-lg);
    box-shadow: var(--shadow-3);
}
.ped-info-photo { border-radius: var(--r-lg) var(--r-lg) 0 0; }
.ped-info-text { padding: 18px 22px 24px; }
.ped-info-text h3 { font-family: var(--serif); font-size: 1.7rem; font-weight: 600; line-height: 1.05; margin: 8px 0 0; }
.ped-info-text .info-stats { margin: 18px 0 0; }
.ped-info-text .info-stats dd { font-size: 1.3rem; }
.ped-info-desc { margin: 16px 0 0; color: var(--ink-soft); font-size: 0.92rem; line-height: 1.55; }
.ped-info-close {
    position: absolute; top: 10px; right: 10px; z-index: 1; width: 32px; height: 32px;
    display: grid; place-items: center; padding: 0; border: none; border-radius: 50%;
    background: var(--paper); color: var(--ink); font-size: 1.5rem; line-height: 1; cursor: pointer;
    box-shadow: var(--shadow-1);
}
.ped-info-close:hover { background: var(--bone-2); }

@media (max-width: 720px) { .ped-viewport { height: 380px; } }

/* ---- For Sale ---- */
.seg-tabs { display: inline-flex; gap: 4px; background: var(--dust-2); padding: 4px; border-radius: 100px; }
.seg-tab { font-family: var(--sans); font-size: 0.9rem; font-weight: 600; border: none; background: transparent; color: var(--ink-soft); padding: 9px 22px; border-radius: 100px; cursor: pointer; transition: all .18s ease; display: inline-flex; align-items: center; gap: 8px; }
.seg-tab span { font-size: 0.74rem; opacity: 0.7; font-variant-numeric: tabular-nums; }
.seg-tab.active { background: var(--green); color: var(--on-dark); box-shadow: var(--shadow-1); }
.price-row { display: flex; justify-content: space-between; align-items: baseline; margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--line-2); }
.price-row span { font-size: 0.76rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink-faint); font-weight: 600; }
.price-row b { font-family: var(--serif); font-size: 1.3rem; font-weight: 600; color: var(--ochre-600); }

.listing-stack { display: flex; flex-direction: column; gap: 16px; }
.listing-row { display: grid; grid-template-columns: 92px 1fr auto auto; gap: 24px; align-items: center; background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 18px 24px; transition: box-shadow .2s; }
.listing-row:hover { box-shadow: var(--shadow-2); }
.lr-media { width: 92px; aspect-ratio: 1; border-radius: var(--r); }
.lr-body h3 { font-size: 1.5rem; }
.lr-title-link { color: inherit; text-decoration: none; transition: color .2s; }
.lr-title-link:hover { color: var(--ochre-600); }
.lr-spec { display: flex; gap: 28px; margin: 0; }
.lr-spec dt { font-size: 0.72rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink-faint); font-weight: 600; }
.lr-spec dd { margin: 2px 0 0; font-family: var(--serif); font-size: 1.4rem; font-weight: 600; }
@media (max-width: 800px) { .listing-row { grid-template-columns: 72px 1fr; row-gap: 16px; } .lr-spec { grid-column: 1 / -1; } .listing-row .btn { grid-column: 1 / -1; justify-content: center; } }
.semen-card .card-body { padding-top: 20px; }
.enquire-strip { display: flex; justify-content: space-between; align-items: center; gap: 32px; flex-wrap: wrap; }

/* ---- Gallery masonry ---- */
.masonry { column-count: 3; column-gap: clamp(16px,2vw,24px); }
@media (max-width: 900px) { .masonry { column-count: 2; } }
@media (max-width: 560px) { .masonry { column-count: 1; } }
.m-item { break-inside: avoid; margin: 0 0 clamp(16px,2vw,24px); }
.m-item .ph { border-radius: var(--r-lg); transition: filter .2s, transform .25s; cursor: pointer; }
.m-item:hover .ph { filter: brightness(1.04); transform: translateY(-2px); }
.m-item figcaption { font-size: 0.84rem; color: var(--ink-faint); padding: 10px 4px 0; font-weight: 500; }
.m-item figcaption span { color: var(--ochre-600); font-weight: 600; }

/* ---- About / breed page ---- */
.timeline { display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(18px,2.5vw,32px); position: relative; }
.timeline::before { content:""; position:absolute; top: 7px; left: 6px; right: 6px; height: 2px; background: var(--dust); }
.tl-item { position: relative; padding-top: 30px; }
.tl-item::before { content:""; position:absolute; top: 0; left: 0; width: 15px; height: 15px; border-radius: 50%; background: var(--ochre); border: 3px solid var(--bone-2); }
.tl-year { font-family: var(--serif); font-size: 1.5rem; font-weight: 600; color: var(--ochre-600); display: block; margin-bottom: 6px; }
.tl-item h3 { font-size: 1.3rem; line-height: 1.14; margin-bottom: 11px; }
@media (max-width: 820px) { .timeline { grid-template-columns: 1fr 1fr; } .timeline::before { display:none; } }
@media (max-width: 480px) { .timeline { grid-template-columns: 1fr; } }

.why-stat p { color: var(--on-dark-soft); margin: 12px 0 0; font-size: 0.96rem; }
.why-stat .stat-num { color: var(--ochre); }

.soe-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
@media (max-width: 520px) { .soe-grid { grid-template-columns: 1fr; } }
.soe-item { background: var(--paper); border: 1px solid var(--line); border-left: 3px solid var(--green); border-radius: var(--r); padding: 16px 18px; }
.soe-item b { font-family: var(--serif); font-size: 1.3rem; font-weight: 600; display: block; margin-bottom: 4px; }
.soe-item p { margin: 0; font-size: 0.92rem; }

.land-row { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }
.land-chip { font-family: var(--serif); font-size: 1.5rem; font-weight: 500; color: var(--on-dark); padding: 12px 28px; border: 1px solid rgba(255,255,255,.18); border-radius: 100px; transition: all .2s ease; }
.land-chip:hover { background: var(--ochre); border-color: var(--ochre); color: #fff; }

/* ---- Enquire landscape band (full-bleed Karoo panorama) ---- */
.enquire-band { position: relative; background-image: url('../images/karoo-pano.png'); background-size: cover; background-position: center 38%; padding: clamp(72px,11vw,150px) 0; overflow: hidden; }
.enquire-scrim { position: absolute; inset: 0; pointer-events: none;
  background:
    linear-gradient(90deg, rgba(24,20,16,.96) 0%, rgba(24,20,16,.92) 38%, rgba(24,20,16,.62) 68%, rgba(24,20,16,.32) 100%),
    linear-gradient(0deg, rgba(24,20,16,.55) 0%, rgba(24,20,16,0) 60%),
    linear-gradient(0deg, rgba(24,20,16,.25), rgba(24,20,16,.25)); }
.enquire-content { position: relative; max-width: 38ch; }
@media (max-width: 680px) { .enquire-band { background-position: 30% 40%; } .enquire-scrim { background: linear-gradient(0deg, rgba(24,20,16,.95) 0%, rgba(24,20,16,.7) 55%, rgba(24,20,16,.55) 100%); } }

/* ============================================================
   App shell additions (Blazor)
   ============================================================ */
.page-root { display: flex; flex-direction: column; min-height: 100vh; }
.page-root > main { flex: 1 0 auto; }
.page-root > .footer { flex: none; }

/* Mobile nav via CSS checkbox-hack (works in SSR + Interactive, no JS) */
.m-nav-toggle:checked ~ .m-nav { display: flex; }
.menu-btn { cursor: pointer; }

/* MudBlazor lives under our serif/sans tokens; keep Mud dialogs/snackbars on top */
.mud-popover-provider, .mud-dialog-container { font-family: var(--sans); }

/* ============================================================
   Image fills, hero slideshow, lightbox (Blazor components)
   ============================================================ */
.ph { position: relative; }
.ph > img.card-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.ph:has(img.card-img)::after { display: none; }
.card .ph { border-top-left-radius: var(--r-lg); border-top-right-radius: var(--r-lg); }

/* Hero crossfade: any number of slides, advanced by a component timer (the
   active slide carries .active). First slide is visible before the circuit
   connects so SSR/prerender shows an image. */
.hero-slides:has(.hero-slide:only-child) .hero-slide,
.hero-slide:first-child { opacity: 1; }
.hero-slide.active { opacity: 1; }
.hero-slides:has(.hero-slide.active) .hero-slide:first-child:not(.active) { opacity: 0; }

/* Lightbox */
.lightbox { position: fixed; inset: 0; z-index: 2000; background: rgba(20,16,12,.92); display: flex; align-items: center; justify-content: center; gap: 12px; padding: 24px; }
.lightbox-fig { margin: 0; max-width: 90vw; max-height: 88vh; display: flex; flex-direction: column; align-items: center; gap: 12px; }
.lightbox-fig img { max-width: 90vw; max-height: 80vh; object-fit: contain; border-radius: var(--r); box-shadow: var(--shadow-3); }
.lightbox-fig figcaption { color: var(--on-dark-soft); font-size: 0.95rem; }
.lightbox-close { position: absolute; top: 18px; right: 24px; background: none; border: none; color: var(--on-dark); font-size: 2.4rem; line-height: 1; cursor: pointer; }
.lightbox-nav { background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.25); color: var(--on-dark); width: 52px; height: 52px; border-radius: 50%; font-size: 1.8rem; cursor: pointer; flex: none; transition: background .15s; }
.lightbox-nav:hover { background: var(--ochre); border-color: var(--ochre); }
.m-item { cursor: pointer; }

/* Herd search field */
.herd-search { font-family: var(--sans); font-size: 0.9rem; color: var(--ink); background: var(--paper); border: 1px solid var(--line); border-radius: var(--r); padding: 9px 14px; min-width: 240px; }
.herd-search:focus { outline: none; border-color: var(--ochre); }

/* Breed-page prose (rendered InfoPage HTML) */
.info-prose h2 { font-size: clamp(1.7rem,3vw,2.4rem); margin: 36px 0 14px; }
.info-prose h2:first-child { margin-top: 0; }
.info-prose h3 { font-size: 1.3rem; margin: 24px 0 10px; }
.info-prose p { color: var(--ink-soft); margin: 0 0 1em; }
.info-prose ul { color: var(--ink-soft); padding-left: 1.2em; margin: 0 0 1em; }
.info-prose li { margin-bottom: 4px; }
.info-prose b, .info-prose strong { color: var(--ink); }

/* Contact / enquiry form */
.contact-card { background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-lg); padding: clamp(24px,3vw,40px); box-shadow: var(--shadow-1); }
.contact-aside { padding-top: 10px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin-bottom: 24px; }
.form-field { display: flex; flex-direction: column; gap: 6px; }
.form-field.full { grid-column: 1 / -1; }
.form-field label { font-size: 0.78rem; font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase; color: var(--ink-faint); }
.form-field input, .form-field textarea { font-family: var(--sans); font-size: 1rem; color: var(--ink); background: var(--bone); border: 1px solid var(--line); border-radius: var(--r); padding: 11px 14px; width: 100%; }
.form-field input:focus, .form-field textarea:focus { outline: none; border-color: var(--ochre); background: var(--paper); }
.field-error { color: var(--color-error, #B04444); font-size: 0.82rem; }
@media (max-width: 620px) { .form-grid { grid-template-columns: 1fr; } }

/* For-sale teaser icon tiles */
.sale-tile-icon .sale-tile-body { padding: 34px 28px 30px; }
.sale-ico { display: inline-flex; align-items: center; justify-content: center; width: 56px; height: 56px; border-radius: 50%; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.16); color: var(--ochre); margin-bottom: 18px; }
.sale-ico svg { width: 28px; height: 28px; }

/* Readable prose column for breed/story content */
.prose-narrow { max-width: 70ch; margin: 0 auto; }
.prose-narrow .soe-intro { font-size: 1.2rem; line-height: 1.6; color: var(--ink-soft); margin-bottom: 8px; }
.soe-prose { columns: 2; column-gap: 48px; }
.soe-prose h3 { font-size: 1.05rem; font-family: var(--sans); font-weight: 700; letter-spacing: 0.02em; color: var(--green); margin: 18px 0 4px; break-after: avoid; }
.soe-prose h3:first-child { margin-top: 0; }
.soe-prose p { font-size: 0.95rem; color: var(--ink-soft); margin: 0 0 12px; break-inside: avoid; }
@media (max-width: 760px) { .soe-prose { columns: 1; } }

/* Breed page banner + SOE intro spans the columns */
.breed-banner { position: relative; min-height: 320px; background-size: cover; background-position: center; display: flex; align-items: flex-end; padding-bottom: 28px; }
.breed-banner-scrim { position: absolute; inset: 0; background: linear-gradient(0deg, rgba(26,22,18,.7) 0%, rgba(26,22,18,.15) 60%, rgba(26,22,18,.3) 100%); }
.breed-banner .wrap { position: relative; }
.soe-prose .soe-intro { column-span: all; }

/* Breed page: editorial figures, featured strip, pull-quote, inset landscape */
.breed-figure { margin: 0; }
.breed-figure .ph { border-radius: var(--r-lg); overflow: hidden; box-shadow: var(--shadow-2); }
.breed-figure figcaption { font-size: 0.86rem; color: var(--ink-faint); padding: 12px 4px 0; font-weight: 500; }
.breed-figure figcaption span { color: var(--ochre-600); font-weight: 600; }
.breed-sticky { position: sticky; top: calc(var(--appbar-h) + 24px); }

.breed-quote { max-width: 30ch; margin: 0 auto; text-align: center; }
.breed-quote p { font-family: var(--serif); font-size: clamp(1.6rem,3.2vw,2.4rem); line-height: 1.3; color: var(--on-dark); font-style: italic; margin: 0; }
.breed-quote cite { display: block; margin-top: 18px; font-style: normal; font-size: 0.95rem; letter-spacing: .08em; text-transform: uppercase; color: var(--ochre); }

.breed-inset { position: relative; min-height: 380px; background-size: cover; background-position: center 40%; border-radius: 0; }
.breed-inset-scrim { position: absolute; inset: 0; background: linear-gradient(0deg, rgba(26,22,18,.55) 0%, rgba(26,22,18,.1) 55%, rgba(26,22,18,.25) 100%); }

/* Dark/transparent header (home hero): brand name + logo must read light */
.appbar.on-dark .brand { color: var(--on-dark); }
.appbar.on-dark .brand .name b { color: var(--on-dark); }
.appbar.on-dark .brand .name span { color: var(--on-dark-soft); }
.appbar.on-dark .login-link { color: var(--on-dark-soft); }
.appbar.on-dark .login-link:hover { color: var(--on-dark); }

/* ============================================================
   Admin
   ============================================================ */
.flex-between { display: flex; justify-content: space-between; align-items: center; }
.text-muted { color: var(--ink-faint); }
.admin-bar { background: var(--espresso); border-bottom: 1px solid rgba(255,255,255,.08); position: sticky; top: var(--appbar-h); z-index: 30; }
.admin-bar-inner { display: flex; align-items: center; gap: 22px; padding: 12px 0; flex-wrap: wrap; }
.admin-brand { font-family: var(--serif); font-size: 1.1rem; color: var(--on-dark); font-weight: 600; }
.admin-links { display: flex; gap: 4px; flex-wrap: wrap; }
.admin-links a { font-size: 0.88rem; font-weight: 500; color: var(--on-dark-soft); padding: 7px 12px; border-radius: var(--r); transition: all .15s ease; }
.admin-links a:hover { color: var(--on-dark); background: rgba(255,255,255,.07); }
.admin-links a.active { color: var(--on-dark); background: rgba(201,164,94,.25); }

/* Admin pages: tighten the gap between the sticky admin bar and the page heading
   (the section's clamp(48px,6vw,84px) top padding is too much under the dark bar).
   Targets the section that immediately follows the admin bar - all admin pages. */
.admin-bar + .section.tight { padding-top: 22px; }
.admin-stat .stat-num { color: var(--green); }
.admin-stat .card-body { text-align: center; padding: 24px; }

/* ---- Admin animals gallery ---- */
.adm-toolbar { display: flex; justify-content: space-between; align-items: center; gap: 16px 24px; flex-wrap: wrap; margin-bottom: 28px; }

.adm-animal { display: flex; flex-direction: column; }
.adm-animal-media { position: relative; display: block; }
.adm-animal-media .ph { border-radius: var(--r-lg) var(--r-lg) 0 0; }
.adm-badges { position: absolute; inset: 10px 10px auto 10px; display: flex; justify-content: space-between; align-items: flex-start; gap: 8px; pointer-events: none; }
.adm-badge {
  font-family: var(--sans); font-size: 0.64rem; font-weight: 700;
  letter-spacing: 0.07em; text-transform: uppercase;
  padding: 5px 9px; border-radius: 100px;
  background: rgba(251,248,242,.92); color: var(--ink-soft);
  border: 1px solid var(--line); backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px);
  display: inline-flex; align-items: center; gap: 5px; max-width: 60%;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.adm-badge.live { background: rgba(91,143,78,.94); color: #fff; border-color: transparent; }
.adm-badge.live .dot { width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.adm-badge.hidden { background: rgba(42,36,30,.74); color: var(--on-dark); border-color: transparent; }
.adm-badge.owned { background: rgba(181,112,60,.94); color: #fff; border-color: transparent; }

.adm-animal-body { padding: 14px 16px 14px; display: flex; flex-direction: column; gap: 12px; flex: 1; }
.adm-animal-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; }
.adm-animal-title { font-family: var(--serif); font-size: 1.22rem; font-weight: 600; line-height: 1.1; color: var(--ink); display: block; }
.adm-animal-title:hover { color: var(--ochre-600); }
.adm-animal-meta { font-size: 0.74rem; color: var(--ink-faint); letter-spacing: 0.03em; text-transform: uppercase; font-weight: 600; margin-top: 4px; }
.adm-actions { display: flex; align-items: center; gap: 4px; margin-top: auto; padding-top: 12px; border-top: 1px solid var(--line-2); }

.adm-pager { display: flex; align-items: center; justify-content: center; gap: 20px; margin-top: clamp(28px,4vw,44px); font-size: 0.86rem; }

/* ---- Admin report thumbnail ---- */
.rep-thumb { position: relative; width: 58px; aspect-ratio: 4 / 3; border-radius: var(--r-sm); overflow: hidden; background: var(--bone-2); }
.rep-thumb .img-placeholder-label { display: none; }
.rep-thumb .img-placeholder-mark { width: 50%; }

/* ---- Report full-screen mode ---- */
/* .section.tight.report-fs: higher specificity than .section.tight so the tight
   full-screen padding actually wins (otherwise the section's ~84px padding returns). */
.section.tight.report-fs { position: fixed; inset: 0; z-index: 1300; background: var(--bone); padding: 8px 0; margin: 0; overflow: hidden; }
.report-fs-wrap { max-width: none; padding: 0 14px; height: 100%; display: flex; flex-direction: column; overflow: hidden; }
.report-fs-bar { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding-bottom: 8px; flex: none; }
.report-fs-title { font-family: var(--serif); font-size: 1.5rem; font-weight: 600; }
/* The grid fills the space left under the toolbar; only its own container scrolls. */
.report-fs .rep-grid { flex: 1; min-height: 0; margin: 0; display: flex; flex-direction: column; }
/* Let flex size the scroll area (override Mud's inline height:100%) so the container
   fills the screen and the pager stays pinned at the bottom - no wasted space. */
.report-fs .rep-grid .mud-table-container { flex: 1 1 auto; min-height: 0; height: auto !important; max-height: none !important; overflow: auto; }
.report-fs .rep-grid .mud-table-pagination { flex: none; }

/* Report grid: let the 24 columns keep readable widths and scroll horizontally
   instead of being squashed to fit the container. */
.rep-grid .mud-table-container { overflow-x: auto; overflow-y: auto; }
.rep-grid .mud-table-root { min-width: 2600px; }

/* ============================================================
   Auth pages (login etc.)
   ============================================================ */
.auth-wrap { display: flex; justify-content: center; }
.auth-card { width: 100%; max-width: 440px; }
.auth-remember { display: flex; align-items: center; gap: 8px; margin-top: 16px; font-size: 0.92rem; color: var(--ink-soft); }

/* Status banner, shared by the auth pages and the account area */
.alert { padding: 12px 14px; border-radius: var(--r); font-size: 0.92rem; margin-bottom: 16px; }
.alert-danger { background: rgba(176,68,68,.12); color: #8f2f2f; }
.alert-success { background: rgba(91,143,78,.14); color: #3f6e34; }

/* ============================================================
   Account / Manage area
   ============================================================ */
.account-shell { display: grid; grid-template-columns: 210px 1fr; gap: clamp(24px,3vw,48px); align-items: start; }
@media (max-width: 800px) { .account-shell { grid-template-columns: 1fr; } }
.account-nav { display: flex; flex-direction: column; gap: 4px; position: sticky; top: calc(var(--appbar-h) + 20px); }
@media (max-width: 800px) { .account-nav { flex-direction: row; position: static; margin-bottom: 8px; } }
.account-nav a { font-family: var(--sans); font-size: 0.95rem; font-weight: 600; color: var(--ink-soft); text-decoration: none; padding: 10px 14px; border-radius: var(--r); border-left: 3px solid transparent; }
.account-nav a:hover { background: var(--bone-2); color: var(--ink); }
.account-nav a.active { background: var(--ochre-100); color: var(--ochre-600); border-left-color: var(--ochre); }
.account-card { background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-lg); padding: clamp(22px,3vw,34px); box-shadow: var(--shadow-1); max-width: 640px; }
.account-card h2 { margin: 0 0 4px; }
.account-form .form-field { margin-bottom: 18px; }
.account-form .form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
@media (max-width: 620px) { .account-form .form-row { grid-template-columns: 1fr; } }
.account-form input:disabled { background: var(--bone-2); color: var(--ink-faint); cursor: not-allowed; }
.account-section-title { font-family: var(--serif); font-size: 1.3rem; margin: 30px 0 16px; padding-top: 22px; border-top: 1px solid var(--line); }
.account-section-title.first { border-top: none; padding-top: 0; margin-top: 0; }
.account-check { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; font-size: 0.95rem; color: var(--ink-soft); }
.account-check input { width: 18px; height: 18px; accent-color: var(--green); flex: 0 0 auto; }
.account-hint { font-size: 0.85rem; color: var(--ink-faint); margin: 2px 0 14px; }
.account-photo { display: flex; align-items: center; gap: 18px; margin-bottom: 18px; }
.account-photo .form-field { flex: 1; margin-bottom: 0; }
.account-photo-img { width: 84px; height: 84px; border-radius: 50%; object-fit: cover; border: 1px solid var(--line); flex: 0 0 auto; }
.account-photo-empty { width: 84px; height: 84px; border-radius: 50%; display: grid; place-items: center; background: var(--bone-2); color: var(--ink-faint); font-size: 0.78rem; border: 1px dashed var(--line); flex: 0 0 auto; }

/* Validation styling for scaffolded Identity inputs site-wide */
.validation-message, .field-validation-error { color: #B04444; font-size: 0.82rem; }
.input-validation-error { border-color: #B04444 !important; }

/* ============================================================
   Mobile burger menu: solid dark panel + light items (always legible)
   ============================================================ */
.m-nav { background: var(--espresso); border-bottom: 1px solid rgba(255,255,255,.10); }
.m-nav a { color: var(--on-dark); font-weight: 500; border-bottom: 1px solid rgba(255,255,255,.08); }
.m-nav a:hover { color: #fff; }
.m-nav a.active { color: var(--ochre); font-weight: 600; }
/* Burger icon must read on both the light and the dark (home hero) app bar */
.menu-btn { color: var(--ink); }
.appbar.on-dark .menu-btn { color: var(--on-dark); }

/* ============================================================
   Branded "no photo" placeholder (AnimalPhoto component)
   ============================================================ */
.img-placeholder {
    position: absolute; inset: 0;
    display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px;
    background:
        repeating-linear-gradient(45deg, rgba(42,36,30,.04) 0, rgba(42,36,30,.04) 1px, transparent 1px, transparent 12px),
        radial-gradient(circle at 50% 38%, var(--dust-2), var(--dust));
}
.img-placeholder-mark { width: 44%; max-width: 130px; opacity: .45; }
.img-placeholder-label {
    font-family: var(--sans); font-size: 0.7rem; font-weight: 600;
    letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-faint);
}
.ph:has(.img-placeholder)::after { display: none; }

/* ============================================================
   Animal photo fit: cards use 16:9 cover (keeps the animal's width / nose,
   crops only sky+grass); detail uses contain to show the whole photo.
   ============================================================ */
.card-img-contain { object-fit: contain !important; }
.ph:has(.card-img-contain) { background-image: none; background-color: var(--bone-2); }

/* ============================================================
   Mobile hero: stack image (full landscape band) above the text
   so the whole animal shows instead of a zoomed, side-cropped slice.
   ============================================================ */
@media (max-width: 640px) {
    .hero { min-height: 0; display: flex; flex-direction: column; }
    .hero-slides { position: relative; inset: auto; width: 100%; aspect-ratio: 16 / 10; flex: none; }
    .hero-scrim, .hero-tint { display: none; }
    .hero-inner { position: static; background: var(--espresso); padding: 30px var(--gutter) 26px; }
    .hero-inner .display { font-size: clamp(2.2rem, 11vw, 3rem); }
    .hero-stats { background: var(--espresso); border-top: 1px solid rgba(255,255,255,.14); }
    .hero-stats-row { padding: 20px 0; }
}

/* ============================================================
   Admin content screens (sales, news, gallery, hero, profile)
   ============================================================ */

/* Page header: title left, primary action right */
.adm-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px 24px; flex-wrap: wrap; margin-bottom: 16px; }
.adm-head .section-head { margin-bottom: 0; }
.adm-note { margin: 0 0 22px; font-size: 0.92rem; max-width: 70ch; line-height: 1.55; }

/* Data grids: framed, calm, generous rows */
.adm-grid-paper { border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; background: var(--paper); }
.adm-grid.mud-table { background: transparent; }
.adm-grid .mud-table-head th { background: var(--bone-2); color: var(--ink-soft); font-family: var(--sans); font-weight: 700; font-size: 0.72rem; letter-spacing: 0.06em; text-transform: uppercase; border-bottom: 1px solid var(--line); }
.adm-grid .mud-table-row { transition: background .14s ease; }
.adm-grid .mud-table-row:hover { background: var(--bone); }
.adm-grid td.mud-table-cell { border-bottom: 1px solid var(--line-2); padding-top: 12px; padding-bottom: 12px; font-size: 0.92rem; }
.adm-cell-strong { font-weight: 600; color: var(--ink); }

/* Empty state */
.adm-empty { text-align: center; padding: 48px 24px; color: var(--ink-faint); }
.adm-empty .mud-icon-root { font-size: 2.6rem; opacity: .5; margin-bottom: 10px; }
.adm-empty p { margin: 0; font-size: 0.95rem; color: var(--ink-soft); }

/* Dialog title row */
.adm-dlg-title { display: flex; align-items: center; gap: 10px; font-family: var(--serif); font-size: 1.45rem; font-weight: 600; color: var(--ink); }
.adm-dlg-title .mud-icon-root { color: var(--ochre); }

/* Fieldset label inside forms */
.adm-fieldset-label { font-family: var(--sans); font-size: 0.72rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-faint); padding-top: 8px; border-top: 1px solid var(--line-2); }

/* Gallery upload dropzone */
.adm-dropzone-wrap { display: block; margin: 4px 0 30px; }
.adm-dropzone { display: flex; align-items: center; gap: 18px; padding: 24px 26px; border: 2px dashed var(--dust); border-radius: var(--r-lg); background: var(--paper); cursor: pointer; transition: border-color .18s ease, background .18s ease; }
.adm-dropzone:hover { border-color: var(--ochre); background: var(--bone); }
.adm-dropzone.disabled { opacity: .55; cursor: not-allowed; border-color: var(--line); }
.adm-dropzone.busy { border-color: var(--ochre); }
.adm-dropzone .mud-icon-root { color: var(--ochre); font-size: 2.2rem; }
.adm-dropzone-title { display: block; font-family: var(--serif); font-size: 1.25rem; font-weight: 600; color: var(--ink); }
.adm-dropzone-sub { display: block; font-size: 0.86rem; color: var(--ink-soft); margin-top: 2px; }

/* Gallery photo cards */
.adm-gallery-grid { margin-top: 6px; }
.adm-photo { display: flex; flex-direction: column; }
.adm-photo.is-hidden { opacity: .6; }
.adm-photo .ph { position: relative; }
.adm-photo-badge { position: absolute; top: 10px; left: 10px; background: rgba(42,36,30,.78); color: var(--on-dark); font-family: var(--sans); font-size: 0.66rem; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; padding: 4px 9px; border-radius: 100px; }
.adm-photo-body { padding: 12px 14px 14px; display: flex; flex-direction: column; gap: 8px; }
.adm-photo-actions { display: flex; align-items: center; gap: 2px; }

/* Hero slide rows */
.adm-hero-list { display: flex; flex-direction: column; gap: 14px; }
.adm-hero-row { display: flex; align-items: center; gap: 18px; padding: 14px 16px; border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--paper); }
.adm-hero-row.is-hidden { opacity: .6; }
.adm-hero-thumb { position: relative; flex: none; width: 150px; aspect-ratio: 16 / 9; border-radius: var(--r); overflow: hidden; background: var(--bone-2); }
.adm-hero-thumb img { width: 100%; height: 100%; object-fit: cover; }
.adm-hero-fields { flex: 1; display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.adm-hero-fields .mud-input-control { min-width: 220px; flex: 1; }
.adm-hero-tools { display: flex; align-items: center; gap: 2px; flex: none; }
@media (max-width: 700px) {
  .adm-hero-row { flex-wrap: wrap; }
  .adm-hero-thumb { width: 100%; aspect-ratio: 16 / 7; }
}

/* Profile photo */
.adm-profile-photo { display: flex; flex-direction: column; align-items: stretch; gap: 6px; }
.adm-profile-photo img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: var(--r-lg); border: 1px solid var(--line); }
.adm-profile-photo-empty { width: 100%; aspect-ratio: 1; border-radius: var(--r-lg); border: 1px dashed var(--dust); background: var(--bone-2); display: flex; align-items: center; justify-content: center; color: var(--ink-faint); }
.adm-profile-photo-empty .mud-icon-root { font-size: 3rem; opacity: .6; }

/* ============================================================
   The Boran breed page (ported from the-boran handoff layout)
   ============================================================ */

/* Hero band over a photo */
.breed-hero { position: relative; background: var(--espresso); color: var(--on-dark); overflow: hidden; }
.breed-hero .shot { position: absolute; inset: 0; }
.breed-hero .shot img { width: 100%; height: 100%; object-fit: cover; object-position: 28% 30%; }
.breed-hero-scrim { position: absolute; inset: 0; background:
    linear-gradient(90deg, rgba(26,22,18,.92) 0%, rgba(26,22,18,.72) 42%, rgba(26,22,18,.30) 78%, rgba(26,22,18,.12) 100%),
    linear-gradient(0deg, rgba(26,22,18,.7) 0%, rgba(26,22,18,0) 50%); }
.breed-hero-inner { position: relative; padding: clamp(56px,10vw,128px) 0 clamp(40px,6vw,72px); }
.breed-hero .crumbs { margin-bottom: 26px; color: var(--on-dark-soft); }
.breed-hero .crumbs a:hover { color: var(--ochre); }
.breed-hero .crumbs b { color: var(--on-dark); }
.breed-hero h1 { color: var(--on-dark); max-width: 15ch; margin: 16px 0 0; line-height: 1.05; }
.breed-hero .lead { color: var(--on-dark-soft); margin-top: 30px; max-width: 52ch; }

/* Generic photo frame */
.shot { position: relative; overflow: hidden;
  background-color: var(--dust-2);
  background-image: repeating-linear-gradient(45deg, rgba(42,36,30,.05) 0, rgba(42,36,30,.05) 1px, transparent 1px, transparent 11px); }
.shot img { display: block; width: 100%; height: 100%; object-fit: cover; }
.shot.rounded { border-radius: var(--r-lg); }

/* Lead-in measure widths */
.measure { max-width: 64ch; }
.measure-narrow { max-width: 54ch; }

/* Domestication / origin cards */
.origin-cards { display: grid; grid-template-columns: repeat(3,1fr); gap: clamp(16px,2vw,24px); }
@media (max-width: 760px) { .origin-cards { grid-template-columns: 1fr; } }
.origin-card { background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 26px 26px 28px; }
.origin-card .epoch { font-family: var(--serif); font-weight: 600; font-size: 2rem; color: var(--ochre-600); line-height: 1; }
.origin-card h3 { font-size: 1.32rem; margin: 14px 0 8px; }
.origin-card p { margin: 0; font-size: 0.96rem; color: var(--ink-soft); }
.origin-card .where { font-size: 0.78rem; letter-spacing: 0.06em; text-transform: uppercase; font-weight: 600; color: var(--ink-faint); margin-bottom: 4px; display: block; }

/* Genetic make-up proportion bar */
.gene-panel { background: var(--espresso); color: var(--on-dark); border-radius: var(--r-xl); padding: clamp(30px,4vw,52px); }
.gene-panel .eyebrow { color: var(--ochre); }
.gene-panel h3 { color: var(--on-dark); font-size: clamp(1.6rem,2.6vw,2.2rem); margin: 14px 0 6px; }
.gene-panel .sub { color: var(--on-dark-soft); max-width: 56ch; margin: 0 0 30px; font-size: 0.98rem; }
.gene-bar { display: flex; height: 64px; border-radius: var(--r); overflow: hidden; box-shadow: 0 1px 0 rgba(255,255,255,.06); }
.gene-seg { display: flex; align-items: flex-end; padding: 12px 16px; color: #fff; font-variant-numeric: tabular-nums; transition: flex-grow .2s; }
.gene-seg b { font-family: var(--serif); font-size: 1.5rem; font-weight: 600; line-height: 1; }
.gene-seg.indicus { background: var(--green-300); }
.gene-seg.euro    { background: var(--ochre); }
.gene-seg.african { background: var(--dust); color: var(--espresso); }
.gene-legend { display: flex; flex-wrap: wrap; gap: 14px 30px; margin-top: 22px; }
.gene-legend div { display: flex; align-items: center; gap: 10px; font-size: 0.92rem; color: var(--on-dark-soft); }
.gene-legend i { width: 13px; height: 13px; border-radius: 3px; flex: none; }
.gene-foot { display: grid; grid-template-columns: repeat(3,1fr); gap: 22px; margin-top: 34px; padding-top: 30px; border-top: 1px solid rgba(255,255,255,.14); }
@media (max-width: 720px) { .gene-foot { grid-template-columns: 1fr; gap: 20px; } }
.gene-foot .stat-num { color: var(--ochre); font-size: clamp(2rem,3vw,2.6rem); }
.gene-foot p { color: var(--on-dark-soft); margin: 8px 0 0; font-size: 0.92rem; }

/* Vertical history timeline */
.vtimeline { display: grid; gap: 0; max-width: 760px; }
.vt-item { display: grid; grid-template-columns: 132px 1fr; gap: clamp(20px,3vw,40px); padding: 0 0 38px; position: relative; }
.vt-item:last-child { padding-bottom: 0; }
.vt-item::before { content: ""; position: absolute; left: 139px; top: 14px; bottom: -10px; width: 2px; background: var(--dust); }
.vt-item:last-child::before { display: none; }
.vt-date { text-align: right; font-family: var(--serif); font-weight: 600; font-size: 1.18rem; color: var(--ochre-600); line-height: 1.2; padding-top: 2px; position: relative; }
.vt-date::after { content: ""; position: absolute; right: -19px; top: 7px; width: 14px; height: 14px; border-radius: 50%; background: var(--ochre); border: 3px solid var(--bone-2); z-index: 1; }
.vt-body h3 { font-size: 1.3rem; margin: 0 0 8px; }
.vt-body p { margin: 0; color: var(--ink-soft); font-size: 0.98rem; }
@media (max-width: 620px) {
  .vt-item { grid-template-columns: 1fr; gap: 6px; padding-left: 22px; }
  .vt-item::before { left: 4px; top: 18px; }
  .vt-date { text-align: left; }
  .vt-date::after { right: auto; left: -22px; top: 6px; }
}

/* Pull quote */
.pullquote { border-left: 3px solid var(--ochre); padding: 4px 0 4px 28px; margin: 0; }
.pullquote p { font-family: var(--serif); font-style: italic; font-weight: 500; font-size: clamp(1.4rem,2.4vw,1.9rem); line-height: 1.3; color: var(--ink); margin: 0 0 16px; text-wrap: pretty; }
.pullquote cite { font-style: normal; font-size: 0.85rem; letter-spacing: 0.06em; text-transform: uppercase; font-weight: 600; color: var(--ink-faint); }

/* Recognition callout */
.recognise { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin-top: 40px; }
@media (max-width: 620px) { .recognise { grid-template-columns: 1fr; } }
.recognise div { background: var(--paper); border: 1px solid var(--line); border-top: 3px solid var(--green); border-radius: var(--r); padding: 20px 22px; }
.recognise .d { font-family: var(--serif); font-size: 1.6rem; font-weight: 600; color: var(--green); margin-bottom: 4px; }
.recognise .t { font-size: 0.95rem; color: var(--ink-soft); }

/* Why Boran numbered reason cards */
.reasons { display: grid; grid-template-columns: repeat(2,1fr); gap: clamp(16px,2vw,22px); }
@media (max-width: 760px) { .reasons { grid-template-columns: 1fr; } }
.reason { background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 26px 28px 28px; display: grid; grid-template-columns: auto 1fr; gap: 0 22px; transition: box-shadow .2s, border-color .2s; }
.reason:hover { box-shadow: var(--shadow-2); border-color: var(--dust); }
.reason .n { grid-row: 1 / 3; font-family: var(--serif); font-weight: 600; font-size: 2.4rem; line-height: 0.9; color: var(--dust); font-variant-numeric: lining-nums; min-width: 1.4em; }
.reason h3 { font-size: 1.28rem; align-self: center; }
.reason p { margin: 10px 0 0; grid-column: 2; color: var(--ink-soft); font-size: 0.96rem; }

/* Herd cards - landscape so the whole animal shows (contain, no cropping) */
.herd-row { display: grid; grid-template-columns: repeat(3,1fr); gap: clamp(18px,2.4vw,28px); }
@media (max-width: 820px) { .herd-row { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .herd-row { grid-template-columns: 1fr; } }
.herd-card { display: block; }
.herd-card .shot { aspect-ratio: 3/2; }
.herd-card .shot img { object-fit: contain; transition: transform .4s ease; }
.herd-card:hover .shot img { transform: scale(1.03); }
.herd-card .cap { padding: 16px 4px 0; }
.herd-card .sex { font-size: 0.72rem; letter-spacing: 0.1em; text-transform: uppercase; font-weight: 700; color: var(--ochre-600); }
.herd-card h3 { font-size: 1.35rem; margin: 5px 0 3px; }
.herd-card .reg { font-size: 0.86rem; color: var(--ink-faint); font-variant-numeric: tabular-nums; }

/* Standard of Excellence reference */
.std-group { margin-top: 8px; }
.std-group + .std-group { margin-top: clamp(34px,4vw,52px); }
.std-group > h3 { font-size: 1.05rem; font-family: var(--sans); font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ochre-600); margin-bottom: 20px; padding-bottom: 12px; border-bottom: 1.5px solid var(--line); }
.std-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(18px,2.4vw,30px) clamp(28px,4vw,56px); }
@media (max-width: 720px) { .std-grid { grid-template-columns: 1fr; } }
.std-item b { font-family: var(--serif); font-size: 1.28rem; font-weight: 600; display: block; margin-bottom: 5px; }
.std-item p { margin: 0; font-size: 0.96rem; color: var(--ink-soft); line-height: 1.55; }

/* Bilingual stud history */
.lang-toggle { display: inline-flex; gap: 4px; background: var(--dust-2); padding: 4px; border-radius: 100px; margin-bottom: 30px; }
.lang-toggle button { font-family: var(--sans); font-size: 0.86rem; font-weight: 600; border: none; background: transparent; color: var(--ink-soft); padding: 8px 22px; border-radius: 100px; cursor: pointer; transition: all .18s ease; }
.lang-toggle button.active { background: var(--green); color: var(--on-dark); box-shadow: var(--shadow-1); }
.story-grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: clamp(36px,5vw,72px); align-items: start; }
@media (max-width: 900px) { .story-grid { grid-template-columns: 1fr; } }
.story-prose p { color: var(--ink-soft); }
.story-prose .lead { color: var(--ink); }
.buy-list { list-style: none; margin: 28px 0 0; padding: 22px 24px; background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-lg); }
.buy-list li { display: flex; justify-content: space-between; gap: 16px; align-items: baseline; padding: 12px 0; border-bottom: 1px solid var(--line-2); }
.buy-list li:last-child { padding-bottom: 0; border-bottom: 0; }
.buy-list li:first-child { padding-top: 0; }
.buy-list .who { font-weight: 600; }
.buy-list .who span { display: block; font-size: 0.82rem; color: var(--ink-faint); font-weight: 400; margin-top: 2px; }
.buy-list .amt { font-family: var(--serif); font-size: 1.3rem; font-weight: 600; color: var(--ochre-600); white-space: nowrap; }
.story-aside { position: sticky; top: calc(var(--appbar-h) + 24px); }
.story-aside .shot { aspect-ratio: 4/5; }
/* Jock (5596): head is on the left, so anchor the crop left to keep it in frame */
.story-aside .shot img { object-position: left center; }
.story-aside figcaption { font-size: 0.84rem; color: var(--ink-faint); padding: 12px 4px 0; }
.story-aside figcaption span { color: var(--ochre-600); font-weight: 600; }
