/* Horse Alley Herd — front.css. The .csm design system, database-rendered. (c) 2026 Horse Alley. */

/* ---- Salient flattening: only on full horse pages, where the page IS the block ---- */
body.single-csrh_horse #ajax-content-wrap .container,
body.single-csrh_horse #ajax-content-wrap .main-content,
body.single-csrh_horse #ajax-content-wrap .row,
body.single-csrh_horse #ajax-content-wrap .vc_row,
body.single-csrh_horse #ajax-content-wrap .wpb_row,
body.single-csrh_horse #ajax-content-wrap .wpb_column,
body.single-csrh_horse #ajax-content-wrap .vc_column-inner,
body.single-csrh_horse #ajax-content-wrap .wpb_wrapper,
body.single-csrh_horse #ajax-content-wrap article,
body.single-csrh_horse #ajax-content-wrap .post-content{
  width:100% !important;max-width:100% !important;min-width:0 !important;
  padding-left:0 !important;padding-right:0 !important;
  margin-left:0 !important;margin-right:0 !important;
  left:0 !important;right:auto !important;transform:none !important;
  overflow:visible !important;float:none !important;
}
body.single-csrh_horse, body.single-csrh_horse #ajax-content-wrap,
body.single-csrh_horse .container-wrap{background:#f4ecdb !important;overflow-x:clip !important;padding:0 !important;margin:0 !important}

/* ============================ TOKENS ============================ */
.csm{
  /* ---- client palette: change these four values to re-skin the whole plugin ---- */
  --brand:#a3c53a;          /* bright accent: rules, borders, small marks   */
  --brand-deep:#5f6f11;     /* readable accent: headings, money, links      */
  --brand-mid:#616a21;      /* buttons, pills, solid fills                  */
  --brand-dark:#002a00;     /* deepest tone                                 */
  --parch:#f5f7ea;--parch-2:#eaefda;--card:#fbfcf3;
  --ink:#36312b;--ink-mute:rgba(54,49,43,.66);--ink-faint:rgba(54,49,43,.42);
  --gold-deep:var(--brand-mid);--gold-deep-2:#6f7a26;
  --line-l:rgba(97,106,33,.32);--line-l-soft:rgba(54,49,43,.12);
  --night:var(--brand-dark);--night-2:#06330a;--night-3:#0d4014;
  --gold:var(--brand);--copper:var(--brand-mid);--champagne:#eef3dc;
  --mute-d:rgba(238,243,220,.62);--faint-d:rgba(238,243,220,.40);
  --line-d:rgba(168,204,40,.24);--line-d-soft:rgba(238,243,220,.10);
  --body:inherit;
  --mono:inherit;--head:inherit;
  --script:inherit;
  --wrap:1180px;--pad:clamp(20px,5vw,72px);
  position:relative;background:var(--parch);color:var(--ink);
  font-size:clamp(15px,1.05vw,17px);line-height:1.6;
  -webkit-font-smoothing:antialiased;overflow-x:clip;
  width:100% !important;max-width:none !important;margin:0 !important;
}
.csm--embed{background:transparent;overflow:visible;padding:clamp(30px,5vh,60px) 0}
.csm *{box-sizing:border-box;margin:0;padding:0}
.csm img{max-width:100%;display:block}
.csm a{color:inherit;text-decoration:none}
.csm ul,.csm ol{list-style:none!important;margin:0;padding:0}
.csm li{list-style:none!important}
.csm li::marker{content:""!important;color:transparent;font-size:0}
.csm ::selection{background:var(--gold-deep);color:var(--parch)}
.csm-wrap{max-width:var(--wrap);margin:0 auto;padding-left:var(--pad);padding-right:var(--pad)}
.csm-eyebrow{font-size:.72rem;letter-spacing:.34em;text-transform:uppercase;color:var(--gold-deep);display:inline-flex;align-items:center;gap:.7em}
.csm-eyebrow::before{content:"";width:26px;height:1px;background:var(--gold-deep);opacity:.7}
.csm-eyebrow--script{text-transform:none!important;letter-spacing:0!important;font-weight:400!important;font-size:clamp(1.15rem,1.8vw,1.5rem);line-height:1!important}
.csm-eyebrow--script::before{display:none!important}
.csm h2.csm-h{font-weight:700!important;letter-spacing:-.01em!important;line-height:1.12!important;font-size:clamp(1.7rem,4.4vw,3rem)!important;color:var(--ink)!important;margin-top:14px}
.csm h2.csm-h em{font-style:normal;color:var(--gold-deep)!important}
.csm h2.csm-h a{color:inherit;border-bottom:2px solid var(--line-l)}
.csm-head{max-width:760px;margin-bottom:clamp(36px,6vh,64px)}
.csm-head>p{margin-top:18px;color:var(--ink-mute);max-width:56ch}
.csm-dark{--parch:var(--night);--parch-2:var(--night-2);--card:var(--night-3);
  --ink:var(--champagne);--ink-mute:var(--mute-d);--ink-faint:var(--faint-d);
  --gold-deep:var(--gold);--gold-deep-2:var(--gold);
  --line-l:var(--line-d);--line-l-soft:var(--line-d-soft);
  background:var(--night);color:var(--champagne)}
.csm-dark.csm-sect--alt{background:var(--night-2)}
.csm [data-reveal]{opacity:0;transform:translateY(26px);transition:opacity .9s cubic-bezier(.16,1,.3,1),transform .9s cubic-bezier(.16,1,.3,1)}
.csm [data-reveal].is-in{opacity:1;transform:none}
.csm [data-reveal][data-delay="1"]{transition-delay:.08s}
.csm [data-reveal][data-delay="2"]{transition-delay:.16s}
.csm [data-reveal][data-delay="3"]{transition-delay:.24s}

/* ============================ HERO ============================ */
.csm-hero{position:relative;min-height:100svh;display:flex;align-items:flex-end;overflow:hidden;background:var(--night)}
.csm-hero__media{position:absolute;inset:0}
.csm-hero__media img{width:100%!important;height:100%!important;max-width:none!important;object-fit:cover;object-position:center 38%}
.csm-hero__scrim{position:absolute;inset:0;z-index:2;background:radial-gradient(120% 80% at 80% 8%,rgba(199,154,75,.14),transparent 55%),linear-gradient(180deg,rgba(14,13,11,.38) 0%,rgba(14,13,11,.08) 34%,rgba(14,13,11,.48) 70%,rgba(11,9,8,.94) 100%)}
.csm-hero__topscrim{position:absolute;top:0;left:0;right:0;height:clamp(120px,20vh,210px);z-index:2;background:linear-gradient(180deg,rgba(0,0,0,.55) 0%,rgba(0,0,0,.32) 38%,rgba(0,0,0,.12) 70%,transparent 100%);pointer-events:none}
.csm-hero__inner{position:relative;z-index:3;width:100%;padding:0 var(--pad) clamp(58px,11vh,128px) clamp(34px,7vw,104px)}
.csm-pill{display:inline-flex;align-items:center;gap:.65em;font-size:.72rem;letter-spacing:.16em;text-transform:uppercase;color:var(--gold);border:1px solid rgba(199,154,75,.55);background:rgba(14,13,11,.55);-webkit-backdrop-filter:blur(8px);backdrop-filter:blur(8px);padding:9px 18px;border-radius:40px}
.csm-pill::before{content:"";width:6px;height:6px;border-radius:50%;background:var(--gold);box-shadow:0 0 8px var(--gold)}
@media(max-width:480px){.csm-pill{font-size:.55rem;letter-spacing:.06em;padding:7px 12px}}
.csm-hero h1{font-weight:800!important;font-size:clamp(2.2rem,7.4vw,5.4rem)!important;line-height:.98!important;letter-spacing:-.02em!important;margin-top:22px!important;color:var(--gold)!important;text-shadow:0 2px 40px rgba(199,154,75,.18)}
.csm-hero h1 .ln{display:block;overflow:hidden;padding-bottom:.06em}
.csm-hero h1 .ln span{display:block;color:var(--gold);background:linear-gradient(176deg,#fbf2dd 0%,#c2dd55 44%,var(--gold) 76%,var(--copper) 100%);-webkit-background-clip:text;background-clip:text;-webkit-text-fill-color:transparent;animation:csmRise 1.2s cubic-bezier(.16,1,.3,1) both}
.csm-hero h1 .ln:nth-child(2) span{animation-delay:.12s}
@keyframes csmRise{from{transform:translateY(108%)}to{transform:translateY(0)}}
.csm-hero__sub{font-weight:400;font-size:clamp(1.5rem,3.2vw,2.4rem);line-height:1.1;color:var(--champagne);margin-top:14px;padding-left:.35em;opacity:0;animation:csmFade 1s ease .55s forwards}
.csm-hero__meta{display:flex;flex-wrap:wrap;gap:14px 26px;margin-top:34px;align-items:center;font-size:.78rem;letter-spacing:.06em;color:var(--champagne);opacity:0;animation:csmFade 1s ease .75s forwards}
.csm-hero__meta b{color:var(--gold);font-weight:500}
.csm-hero__meta i{width:5px;height:5px;background:var(--gold);transform:rotate(45deg);display:inline-block}
@keyframes csmFade{to{opacity:1}}
.csm-hero__cue{position:absolute;bottom:22px;left:50%;transform:translateX(-50%);z-index:3;font-size:.62rem;letter-spacing:.3em;text-transform:uppercase;color:var(--faint-d);display:flex;flex-direction:column;align-items:center;gap:8px;opacity:0;animation:csmFade 1s ease 1.2s forwards}
.csm-hero__cue::after{content:"";width:1px;height:38px;background:linear-gradient(var(--gold),transparent);animation:csmCue 2s ease-in-out infinite}
@keyframes csmCue{0%,100%{transform:scaleY(.4);opacity:.4;transform-origin:top}50%{transform:scaleY(1);opacity:1;transform-origin:top}}

/* ============================ SECTIONS ============================ */
.csm-sect{padding:clamp(70px,11vh,140px) 0;position:relative}
.csm-sect--alt{background:var(--parch-2)}
.csm-essence{display:grid;grid-template-columns:1.05fr .95fr;gap:clamp(34px,5vw,72px);align-items:center}
.csm-essence__fig{margin:0;border-radius:5px;overflow:hidden;border:1px solid var(--line-l);box-shadow:0 26px 60px rgba(60,45,20,.20);position:relative}
.csm-essence__fig img{width:100%!important;height:auto!important;max-width:100%!important;filter:saturate(1.04) contrast(1.02)}
.csm-essence__plate{position:absolute;left:14px;bottom:14px;font-size:.66rem;letter-spacing:.18em;text-transform:uppercase;color:#f6eeda;background:rgba(20,16,12,.62);padding:7px 13px;border-radius:3px}
@media(max-width:860px){.csm-essence{grid-template-columns:1fr;gap:30px}}
.csm-lede{color:var(--ink-mute);max-width:56ch;margin-top:16px}
.csm-lede b{color:var(--ink);font-weight:600}
.csm-spec{list-style:none;margin-top:clamp(24px,4vh,36px)}
.csm-spec li{display:flex;justify-content:space-between;gap:18px;padding:13px 0;border-bottom:1px solid var(--line-l-soft);font-size:.95rem}
.csm-spec li:last-child{border-bottom:none}
.csm-spec li span:first-child{font-size:.7rem;letter-spacing:.1em;text-transform:uppercase;color:var(--ink-mute);white-space:nowrap;padding-top:2px}
.csm-spec li span:last-child{color:var(--ink);text-align:right}
.csm-spec li span:last-child a{border-bottom:1px solid var(--line-l)}
.csm-spec li span:last-child em{display:block;font-style:normal;font-size:.66rem;color:var(--gold-deep);margin-top:3px}

/* produce ledger */
.csm-line{display:grid;grid-template-columns:repeat(2,1fr);gap:0 clamp(30px,5vw,64px)}
.csm-line__row{display:flex;justify-content:space-between;gap:18px;align-items:baseline;padding:13px 0;border-bottom:1px solid var(--line-d-soft)}
.csm-line__row b{font-size:.9rem;font-weight:600;letter-spacing:-.01em;color:var(--champagne)}
.csm-line__row b a{border-bottom:1px solid var(--line-d)}
.csm-line__row em{font-size:.66rem;color:var(--faint-d);font-style:normal;display:block;margin-top:3px;letter-spacing:.02em}
.csm-line__row .e{font-size:.86rem;color:var(--gold);white-space:nowrap}
@media(max-width:680px){.csm-line{grid-template-columns:1fr}}
.csm-line__more{margin-top:22px;font-size:.74rem;letter-spacing:.1em;text-transform:uppercase;color:var(--mute-d)}
.csm-btn{display:inline-flex;align-items:center;gap:12px;background:var(--gold);color:var(--night);font-size:.8rem;letter-spacing:.12em;text-transform:uppercase;padding:16px 28px;border-radius:3px;margin-top:30px;transition:background .3s,transform .3s;border:0;cursor:pointer}
.csm-btn:hover{background:#e0b968;transform:translateY(-2px);color:var(--night)}
.csm-btn i{font-style:normal}
.csm-btn--ghost{background:transparent;border:1px solid var(--gold-deep);color:var(--gold-deep)}

/* pedigree */
.csm-ped-scroll{overflow-x:auto;-webkit-overflow-scrolling:touch}
.csm-ped{display:grid;grid-template-columns:1.4fr 1fr 1fr;gap:8px;min-width:680px}
.csm-pcol{display:grid;gap:8px}
.csm-pcol--g1{grid-template-rows:1fr 1fr}
.csm-pcol--g2{grid-template-rows:repeat(4,1fr)}
.csm-pcol--g3{grid-template-rows:repeat(8,1fr)}
.csm-pn{background:var(--night-3);border:1px solid var(--line-d-soft);border-left:2px solid var(--gold);border-radius:2px;padding:12px 14px;display:flex;flex-direction:column;justify-content:center}
.csm-pn--g1{border-left-color:var(--gold);background:var(--night-2)}
.csm-pn--g3{border-left-color:var(--line-d);background:transparent}
.csm-pn b{font-size:.82rem;line-height:1.15;color:var(--champagne);font-weight:600;letter-spacing:-.01em}
.csm-pn--g1 b{font-size:1.18rem;color:var(--gold)}
.csm-pn small{font-size:.64rem;color:var(--gold);letter-spacing:.04em;margin-top:5px}
.csm-pn span{font-size:.6rem;color:var(--faint-d);margin-top:3px}
.csm-ped-hint{display:none}
@media(max-width:780px){.csm-ped-hint{display:block;font-size:.68rem;color:var(--gold);letter-spacing:.1em;text-transform:uppercase;margin-bottom:14px}}

/* show record */
.csm-record{display:grid;grid-template-columns:.9fr 1.1fr;gap:clamp(34px,5vw,72px);align-items:center}
.csm-record__num{font-weight:700;font-size:clamp(2.4rem,6vw,4.2rem);line-height:1;letter-spacing:-.02em;color:var(--gold-deep)}
.csm-record__num small{display:block;font-size:.74rem;letter-spacing:.14em;text-transform:uppercase;color:var(--ink-mute);margin-top:14px}
.csm-record__fig{margin:28px 0 0;border-radius:5px;overflow:hidden;border:1px solid var(--line-l);box-shadow:0 22px 55px rgba(60,45,20,.18)}
.csm-record__fig img{width:100%!important;height:auto!important;max-width:100%!important}
.csm-hl li{display:flex;gap:14px;padding:12px 0;border-bottom:1px solid var(--line-l-soft);font-size:.94rem;color:var(--ink)}
.csm-hl li:last-child{border-bottom:none}
.csm-hl li::before{content:"✦";color:var(--gold-deep);font-size:.7rem;line-height:1.9;flex:0 0 auto}
.csm-hl li b{font-weight:600}
@media(max-width:860px){.csm-record{grid-template-columns:1fr;gap:30px}}

/* foal cards */
.csm-foals{display:grid;grid-template-columns:repeat(3,1fr);gap:clamp(14px,2vw,22px)}
.csm-foals--one{grid-template-columns:minmax(0,440px);justify-content:center}
.csm-foal{position:relative;display:block;border-radius:5px;overflow:hidden;border:1px solid var(--line-l-soft);background:var(--card);transition:transform .35s cubic-bezier(.16,1,.3,1),box-shadow .35s}
a.csm-foal:hover{transform:translateY(-4px);box-shadow:0 22px 48px rgba(60,45,20,.22)}
.csm-foal__ph{display:block;aspect-ratio:4/3;overflow:hidden;background:#ddd2ba}
.csm-foal__ph img{width:100%!important;height:100%!important;max-width:none!important;object-fit:cover;transition:transform .8s cubic-bezier(.16,1,.3,1)}
a.csm-foal:hover .csm-foal__ph img{transform:scale(1.045)}
.csm-foal__body{display:block;padding:16px 17px 18px}
.csm-foal__body b{font-weight:600;font-size:.92rem;letter-spacing:-.01em;color:var(--ink);display:block}
.csm-foal__body em{font-style:normal;font-size:.64rem;letter-spacing:.04em;color:var(--ink-mute);display:block;margin-top:6px;line-height:1.55}
.csm-foal__badge{position:absolute;top:12px;left:12px;font-size:.6rem;letter-spacing:.14em;text-transform:uppercase;color:var(--night);background:linear-gradient(135deg,#c2dd55,var(--brand) 60%,#a9663a);padding:5px 10px;border-radius:3px;z-index:2}
@media(max-width:960px){.csm-foals{grid-template-columns:repeat(2,1fr)}}
@media(max-width:560px){.csm-foals{grid-template-columns:1fr}}

/* broodmare grid */
.csm-mares{display:grid;grid-template-columns:repeat(3,1fr);gap:clamp(18px,2.4vw,28px)}
.csm-marecard{position:relative;display:block;border-radius:5px;overflow:hidden;border:1px solid var(--line-l-soft);background:var(--card);transition:transform .35s cubic-bezier(.16,1,.3,1),box-shadow .35s}
.csm-marecard::before{content:"";position:absolute;top:0;left:0;right:0;height:3px;z-index:2;background:linear-gradient(90deg,var(--copper),#c2dd55 40%,var(--gold-deep) 75%,var(--copper));opacity:.9}
.csm-marecard:hover{transform:translateY(-4px);box-shadow:0 22px 48px rgba(60,45,20,.22)}
.csm-marecard__ph{display:block;aspect-ratio:3/4;overflow:hidden;background:#ddd2ba}
.csm-marecard__ph img{width:100%!important;height:100%!important;max-width:none!important;object-fit:cover;transition:transform .8s cubic-bezier(.16,1,.3,1)}
.csm-marecard:hover .csm-marecard__ph img{transform:scale(1.045)}
.csm-marecard__body{display:block;padding:20px 18px 22px;text-align:center}
.csm-marecard__body b{font-weight:700;font-size:1.3rem;line-height:1.2;letter-spacing:-.01em;color:var(--ink);display:block}
.csm-marecard__body em{font-style:normal;font-size:.64rem;letter-spacing:.14em;text-transform:uppercase;color:var(--gold-deep);display:block;margin-top:8px}
.csm-marecard__body i{font-style:normal;font-size:.85rem;color:var(--ink-mute);display:block;margin-top:7px}
.csm-marecard__body u{text-decoration:none;font-size:.72rem;color:var(--gold-deep);display:flex;align-items:center;justify-content:center;gap:.5em;margin-top:13px;padding-top:12px;border-top:1px solid var(--line-l-soft)}
.csm-marecard__body u::before{content:"✦";font-size:.6rem}
.csm-marecard__mem{position:absolute;top:12px;left:12px;font-size:.6rem;letter-spacing:.14em;text-transform:uppercase;color:#f6eeda;background:rgba(20,16,12,.72);padding:5px 10px;border-radius:3px;z-index:2}
.csm-marecard.is-memorial .csm-marecard__ph img{filter:grayscale(.5) sepia(.12)}
@media(max-width:900px){.csm-mares{grid-template-columns:repeat(2,1fr)}}
@media(max-width:540px){.csm-mares{grid-template-columns:1fr}}

/* foal page: condensed dam card */
.csm-damcard{display:grid;grid-template-columns:.8fr 1.2fr;gap:clamp(24px,4vw,48px);align-items:center;background:var(--card);border:1px solid var(--line-l-soft);border-radius:5px;padding:clamp(20px,3vw,36px)}
.csm-damcard__ph{display:block;border-radius:4px;overflow:hidden}
.csm-damcard__ph img{width:100%!important;height:auto!important;max-width:100%!important}
.csm-damcard__cred{display:inline-block;font-size:.66rem;letter-spacing:.16em;text-transform:uppercase;color:var(--gold-deep);border:1px solid var(--line-l);border-radius:40px;padding:6px 13px;margin-bottom:14px}
.csm-damcard__body p{color:var(--ink-mute);margin-bottom:8px}
.csm-damcard__body p b{color:var(--gold-deep)}
@media(max-width:760px){.csm-damcard{grid-template-columns:1fr}}

/* closer */
.csm-cine{position:relative;min-height:70svh;display:flex;align-items:flex-end;overflow:hidden;background:var(--night)}
.csm-cine__bg{position:absolute;inset:-9% 0;z-index:0;background-size:cover;background-position:center 40%;will-change:transform}
.csm-cine__veil{position:absolute;inset:0;z-index:1;background:linear-gradient(90deg,rgba(8,7,5,.86) 0%,rgba(8,7,5,.42) 50%,rgba(8,7,5,.22) 78%,rgba(8,7,5,.6) 100%),linear-gradient(180deg,rgba(14,13,11,.6),transparent 30%,transparent 58%,rgba(11,9,8,.92))}
.csm-cine__inner{position:relative;z-index:2;width:100%;max-width:var(--wrap);margin:0 auto;padding:clamp(60px,9vh,110px) var(--pad)}
.csm-cine__stmt{font-weight:700!important;font-size:clamp(1.9rem,5vw,3.6rem)!important;line-height:1.08!important;letter-spacing:-.015em!important;color:var(--champagne)!important;max-width:18ch;margin:0}
.csm-cine__stmt em{font-style:normal;color:var(--gold)!important}

/* ============================ FRONTEND MANAGER ============================ */
.csrh-mgr__ok{color:#2c7a3f;background:#e6f4ea;border:1px solid #bfe3c8;border-radius:4px;padding:10px 16px;margin-bottom:18px}
.csrh-mgr__head{display:flex;flex-wrap:wrap;justify-content:space-between;align-items:center;gap:16px;margin-bottom:26px}
.csrh-mgr__head .csm-h{margin-top:0}
.csrh-mgr__actions .csm-btn{margin-top:0}
.csrh-mgr__group{font-size:.76rem;letter-spacing:.2em;text-transform:uppercase;color:var(--gold-deep);margin:34px 0 12px;display:flex;align-items:center;gap:14px}
.csrh-mgr__group::after{content:"";flex:1;height:1px;background:var(--line-l-soft)}
.csrh-mgr__rows{display:flex;flex-direction:column;gap:8px}
.csrh-mgr__row{display:flex;align-items:center;gap:16px;background:var(--card);border:1px solid var(--line-l-soft);border-radius:5px;padding:10px 14px}
.csrh-mgr__ph{width:52px;height:52px;border-radius:4px;overflow:hidden;background:#ddd2ba;flex:0 0 auto}
.csrh-mgr__ph img{width:100%!important;height:100%!important;object-fit:cover}
.csrh-mgr__name{flex:1;min-width:0}
.csrh-mgr__name b{font-weight:600;font-size:.94rem;display:block}
.csrh-mgr__name em{font-style:normal;font-size:.66rem;color:var(--ink-mute);display:block;margin-top:3px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.csrh-mgr__st{font-size:.62rem;letter-spacing:.1em;text-transform:uppercase;padding:5px 11px;border-radius:30px;border:1px solid var(--line-l)}
.csrh-st--sold{opacity:.6}.csrh-st--deceased{opacity:.5}
.csrh-st--expected{color:var(--gold-deep);border-color:var(--gold-deep)}
.csrh-mgr__btn{font-size:.7rem;letter-spacing:.1em;text-transform:uppercase;background:var(--gold-deep);color:var(--parch);padding:9px 16px;border-radius:3px}
.csrh-mgr__btn--view{background:transparent;color:var(--gold-deep);border:1px solid var(--line-l)}
.csrh-mgr__back{font-size:.74rem;letter-spacing:.08em;text-transform:uppercase;color:var(--gold-deep)}
.csrh-mgr__form{max-width:640px;margin-top:22px}
.csrh-f{margin-bottom:18px;position:relative}
.csrh-f2{display:grid;grid-template-columns:1fr 1fr;gap:18px}
.csrh-f label{display:block;font-size:.68rem;letter-spacing:.14em;text-transform:uppercase;color:var(--ink-mute);margin-bottom:7px}
.csrh-f input[type=text],.csrh-f input[type=number],.csrh-f input[type=url],.csrh-f select,.csrh-f textarea{width:100%;font-size:1rem;color:var(--ink);background:#fff;border:1px solid var(--line-l);border-radius:4px;padding:13px 15px}
.csrh-f input:focus,.csrh-f select:focus{outline:2px solid var(--gold-deep);outline-offset:1px}
.csrh-hint{display:block;font-size:.78rem;color:var(--ink-faint);margin-top:6px}
.csrh-mgr__danger{margin-top:26px;background:transparent;border:1px solid #b3443e;color:#b3443e;font-size:.7rem;letter-spacing:.1em;text-transform:uppercase;padding:10px 18px;border-radius:3px;cursor:pointer}

/* parent picker (shared with wp-admin) */
.csrh-picker{position:relative}
.csrh-picker-state{position:absolute;right:10px;top:34px;font-size:.62rem;letter-spacing:.08em;text-transform:uppercase;color:#9a9a9a;background:#fff;padding:2px 6px}
.csrh-picker-state.is-linked{color:#2c7a3f}
.csrh-picker-list{position:absolute;z-index:60;left:0;right:0;top:calc(100% + 4px);background:#fff;border:1px solid #cfc4a8;border-radius:5px;box-shadow:0 14px 34px rgba(40,30,10,.18);max-height:280px;overflow:auto}
.csrh-picker-item{display:flex;justify-content:space-between;gap:12px;width:100%;text-align:left;background:none;border:0;border-bottom:1px solid #f0e9d8;padding:11px 14px;cursor:pointer;font:inherit}
.csrh-picker-item:hover,.csrh-picker-item.is-active{background:#f7f0df}
.csrh-picker-item small{color:#8a6a24;font-size:.68rem;white-space:nowrap}
.csrh-picker-item--add{color:#8a6a24;font-weight:600}

@media(prefers-reduced-motion:reduce){
  .csm *{animation:none!important;transition:none!important}
  .csm [data-reveal]{opacity:1!important;transform:none!important}
  .csm-hero h1 .ln span{transform:none!important}
}

/* ---- Embed hardening: shortcode output sits inside Salient content columns,
        where #ajax-content-wrap ID rules beat plain class selectors. ---- */
html body .csm p{margin:0 !important;padding:0 !important;line-height:1.6 !important}
html body .csm .csm-head>p{margin-top:18px !important}
html body .csm .csm-lede{margin-top:16px !important}
html body .csm .csm-damcard__body p{margin-bottom:8px !important}
html body .csm a{color:inherit !important;text-decoration:none !important;box-shadow:none !important;border-bottom:none;font-style:normal !important}
html body .csm .csm-btn{color:var(--night) !important}
html body .csm .csrh-mgr__btn{color:var(--parch) !important}
html body .csm .csrh-mgr__btn--view{color:var(--gold-deep) !important}
html body .csm .csrh-mgr__back{color:var(--gold-deep) !important}
html body .csm .csm-marecard__body u{text-decoration:none !important}
html body .csm ul,html body .csm li{margin:0 !important;padding:0 !important;list-style:none !important}
html body .csm img{border:0 !important;box-shadow:none !important}

/* featured champion cards — exact prototype recipe */
.csm-champs{display:grid;grid-template-columns:1fr 1fr;gap:clamp(16px,2.5vw,28px);margin-bottom:clamp(40px,6vh,64px)}
.csm-champ{position:relative;display:block;background:var(--night-3,#1c1815);border:1px solid var(--line-d,rgba(199,154,75,.22));border-radius:5px;padding:clamp(24px,3.4vw,40px);overflow:hidden;transition:transform .35s cubic-bezier(.16,1,.3,1),border-color .35s}
.csm-champ::after{content:"";position:absolute;inset:0;background:radial-gradient(90% 90% at 100% 0%,rgba(199,154,75,.12),transparent 60%);pointer-events:none}
.csm-champ:hover{transform:translateY(-4px);border-color:rgba(199,154,75,.5)}
.csm-champ__pill{display:inline-block;font-size:.64rem;letter-spacing:.22em;text-transform:uppercase;color:var(--night,#0b0908);background:linear-gradient(135deg,#c2dd55,var(--gold,var(--brand)) 60%,var(--copper,#a9663a));padding:6px 12px;border-radius:3px;margin-bottom:16px}
.csm-champ__view{position:absolute;top:20px;right:20px;font-size:.66rem;letter-spacing:.14em;text-transform:uppercase;color:var(--gold,var(--brand)) !important;opacity:.85;z-index:1}
.csm-champ__name{font-weight:700;font-size:clamp(1.25rem,2.2vw,1.7rem);letter-spacing:-.01em;color:var(--champagne,#efe6d3);line-height:1.15;margin:0}
.csm-champ__name a{color:inherit !important}
.csm-champ__meta{font-style:normal;font-size:.7rem;letter-spacing:.06em;color:var(--gold,var(--brand));margin:8px 0 0 !important}
.csm-champ__money{font-weight:600;font-size:clamp(1.5rem,2.8vw,2.1rem);color:var(--gold,var(--brand));letter-spacing:-.01em;margin:18px 0 0 !important}
.csm-champ__label{display:block;font-size:.64rem;letter-spacing:.14em;text-transform:uppercase;color:var(--mute-d,#8d8478);margin-top:6px}
.csm-champ__desc{color:var(--mute-d,#8d8478);font-size:.9rem;line-height:1.65;margin:14px 0 0 !important;max-width:44ch}
@media(max-width:760px){.csm-champs{grid-template-columns:1fr}}

/* female line thread */
.csm-thread{position:relative;margin:clamp(8px,2vh,20px) 0 0;padding-left:34px}
.csm-thread::before{content:"";position:absolute;left:7px;top:8px;bottom:8px;width:1px;background:linear-gradient(180deg,var(--gold-deep),rgba(138,106,36,.25))}
.csm-gen{position:relative;padding:0 0 clamp(30px,4.5vh,50px)}
.csm-gen:last-child{padding-bottom:0}
.csm-gen::before{content:"";position:absolute;left:-31px;top:6px;width:9px;height:9px;border-radius:50%;border:2px solid var(--gold-deep);background:var(--parch)}
.csm-gen__tag{display:block;font-size:.62rem;letter-spacing:.18em;text-transform:uppercase;color:var(--gold-deep);margin-bottom:8px}
.csm-gen__name{font-weight:700;font-size:clamp(1.2rem,2vw,1.6rem);letter-spacing:-.01em;color:var(--ink);margin:0}
.csm-gen__name em{font-style:normal;color:var(--gold-deep)}
.csm-gen__stat{font-size:.72rem;letter-spacing:.08em;color:var(--ink-mute);margin:7px 0 0 !important}
.csm-gen__body{font-size:.95rem;line-height:1.7;color:var(--ink-soft);max-width:560px;margin:10px 0 0 !important}
.csm-gen__body b{font-weight:700;color:var(--ink)}

/* sibling strip */
.csm-sibs{margin-top:clamp(34px,5vh,56px)}
.csm-sibs__label{display:block;font-size:.62rem;letter-spacing:.2em;text-transform:uppercase;color:var(--ink-faint);padding-bottom:12px;border-bottom:1px solid var(--line-l-soft);margin-bottom:16px}
.csm-sibs__row{display:grid;grid-template-columns:repeat(5,1fr);gap:12px}
.csm-sib{background:var(--card);border:1px solid var(--line-l-soft);border-radius:4px;padding:14px 14px 15px}
.csm-sib b{display:block;font-weight:700;font-size:.85rem;line-height:1.25;color:var(--ink)}
.csm-sib em{display:block;font-style:normal;font-size:.78rem;color:var(--gold-deep);margin-top:6px}
.csm-sib span{display:block;font-size:.6rem;line-height:1.5;letter-spacing:.04em;color:var(--ink-faint);margin-top:7px}
@media(max-width:960px){.csm-sibs__row{grid-template-columns:repeat(3,1fr)}}
@media(max-width:600px){.csm-sibs__row{grid-template-columns:repeat(2,1fr)}}

/* champ cards vs embed hardening: re-assert at hardening-tier specificity */
html body .csm .csm-champ__view{color:var(--gold,var(--brand)) !important}
html body .csm .csm-champ__meta{margin:8px 0 0 !important}
html body .csm .csm-champ__money{margin:18px 0 0 !important}
html body .csm .csm-champ__desc{margin:14px 0 0 !important}

/* structural padding armor: Salient targets bare article/section tags at ID specificity */
html body .csm .csm-champ{padding:clamp(24px,3.4vw,40px) !important;margin:0 !important}
html body .csm section.csm-sect{padding:clamp(70px,11vh,140px) 0 !important;margin:0 !important}
html body .csm .csm-champ .csm-champ__pill{letter-spacing:.22em !important}
body #ajax-content-wrap .csm .csm-champ{padding:clamp(24px,3.4vw,40px) !important;margin:0 !important}
body #ajax-content-wrap .csm section.csm-sect{padding:clamp(70px,11vh,140px) 0 !important}

/* gallery — justified rows: ratio-reserved frames, no crops, no layout shift */
.csm-gal{display:flex;flex-wrap:wrap;gap:clamp(12px,1.6vw,20px)}
.csm-gal::after{content:"";flex-grow:999999}
.csm-gal__it{position:relative;margin:0 !important;overflow:hidden;border-radius:5px;border:1px solid var(--line-l-soft);background:#ddd2ba;cursor:zoom-in;min-width:150px;flex-shrink:1}
.csm-gal__it img{width:100% !important;height:100% !important;max-width:none !important;object-fit:cover;display:block;transition:transform .8s cubic-bezier(.16,1,.3,1)}
.csm-gal__it:hover img{transform:scale(1.03)}
@media(max-width:520px){.csm-gal__it{flex-basis:100% !important;min-width:100%}}
html body .csm .csm-gal__it{padding:0 !important}
body #ajax-content-wrap .csm .csm-gal__it img{width:100% !important;height:100% !important}

/* lightbox */
.csm-light{position:fixed;inset:0;z-index:99999;background:rgba(11,9,8,.94);display:flex;align-items:center;justify-content:center;opacity:0;pointer-events:none;transition:opacity .3s}
.csm-light.is-open{opacity:1;pointer-events:auto}
.csm-light img{max-width:90vw;max-height:84vh;border-radius:4px;box-shadow:0 30px 90px rgba(0,0,0,.6)}
.csm-light__x,.csm-light__p,.csm-light__n{position:absolute;background:none;border:0;color:var(--champagne,#efe6d3);cursor:pointer;padding:14px;letter-spacing:.1em}
.csm-light__x{top:18px;right:22px;font-size:1.1rem}
.csm-light__p{left:14px;top:50%;transform:translateY(-50%);font-size:1.5rem}
.csm-light__n{right:14px;top:50%;transform:translateY(-50%);font-size:1.5rem}
.csm-light__c{position:absolute;bottom:20px;left:50%;transform:translateX(-50%);font-size:.66rem;letter-spacing:.2em;color:var(--gold,var(--brand))}
.csm-light__x:hover,.csm-light__p:hover,.csm-light__n:hover{color:var(--gold,var(--brand))}



/* broodmare grid: break out of the content column to use the viewport */
.csm--embed .csm-mares{width:min(1560px,95vw);position:relative;left:50%;transform:translateX(-50%)}
html body .csm .csm-marecard__body, html body .csm .csm-marecard__body b, html body .csm .csm-marecard__body em, html body .csm .csm-marecard__body i{text-align:center !important}

/* pedigree identity line */
.csm-ped-id{font-size:.98rem;letter-spacing:.02em;color:var(--mute-d,#8d8478);margin:10px 0 0 !important}
html body .csm .csm-ped-id{margin:10px 0 0 !important}



/* pedigree grid — reference recipe, four generations */
.csm-ped{display:grid;grid-template-columns:1.4fr 1fr 1fr;gap:8px;min-width:680px}
.csm-pcol{display:grid;gap:8px}
.csm-pcol--g1{grid-template-rows:1fr 1fr}
.csm-pcol--g2{grid-template-rows:repeat(4,1fr)}
.csm-pcol--g3{grid-template-rows:repeat(8,1fr)}
html body .csm .csm-pn{background:var(--night-3);border:1px solid var(--line-d,rgba(199,154,75,.22));border-left:2px solid var(--gold,var(--brand));border-radius:2px;padding:12px 14px;display:flex;flex-direction:column;justify-content:center;margin:0 !important}
html body .csm .csm-pn--g1{border-left-color:var(--brand);background:var(--night-2)}
.csm-pn b{font-size:.82rem;line-height:1.15;color:var(--champagne,#efe6d3);font-weight:600;letter-spacing:-.01em}
.csm-pn--g1 b{font-size:1.18rem;color:var(--brand)}
.csm-pn small{font-size:.64rem;color:var(--gold,var(--brand));letter-spacing:.04em;margin-top:5px}
.csm-pn span{font-size:.6rem;line-height:1.5;color:var(--bone-mute);margin-top:3px}



/* second designated show-record photo */
html body .csm .csm-record__fig .csm-record__fig2{margin-top:14px !important}

/* at-a-glance: catalog plate refinement */
.csm-spec-lte{display:flex;align-items:baseline;gap:14px;margin-top:clamp(18px,3vh,26px);padding:16px 20px;background:rgba(215,168,80,.08);border-left:2px solid var(--brand);border-radius:2px}
.csm-spec-lte b{font-size:clamp(1.5rem,2.6vw,2.1rem);letter-spacing:-.01em;color:var(--ink,#221c14);font-weight:700}
.csm-spec-lte small{font-size:.66rem;letter-spacing:.1em;text-transform:uppercase;color:var(--ink-mute)}
html body .csm .csm-spec li span:last-child{font-weight:600;font-size:1.02rem;line-height:1.45;text-align:right}
html body .csm .csm-spec li span:last-child a{color:inherit;border-bottom:1px solid rgba(215,168,80,.55);text-decoration:none}
html body .csm .csm-spec li span:last-child a:hover{color:#8a6420;border-bottom-color:#8a6420}
html body .csm .csm-spec li span:last-child em{display:block;font-style:normal;font-weight:400;font-size:.66rem;color:var(--ink-mute);margin-top:4px;letter-spacing:.02em}
html body .csm .csm-spec li{border-bottom:1px solid rgba(120,95,50,.16)}
/* portrait mat frame */
html body .csm .csm-essence__fig{border:1px solid rgba(60,45,20,.28);padding:10px;background:#fffdf9;border-radius:4px}
html body .csm .csm-essence__fig img{border-radius:2px}
html body .csm .csm-essence__fig::after{content:"";position:absolute;inset:-14px 14px 14px -14px;border:1px solid rgba(215,168,80,.4);border-radius:4px;z-index:-1;pointer-events:none}
html body .csm .csm-essence__plate{left:10px;right:10px;bottom:10px}

/* at-a-glance breathing room — must out-specify our own .csm li reset (which is !important) */
html body .csm .csm-spec{margin-top:clamp(30px,4.5vh,44px) !important}
html body .csm .csm-spec li{padding:17px 0 !important;gap:26px !important;margin:0 !important;line-height:1.45 !important}
html body .csm .csm-spec li span:last-child{font-weight:600 !important;font-size:1.02rem !important;line-height:1.45 !important;text-align:right !important}
html body .csm .csm-spec li span:last-child em{margin-top:6px !important;display:block !important}
html body .csm .csm-spec-lte{margin-top:clamp(24px,4vh,34px) !important;margin-bottom:6px !important;padding:22px 26px !important;gap:18px !important}
/* belt-and-suspenders for the live Salient wrapper */
body #ajax-content-wrap .csm .csm-spec li{padding:17px 0 !important;gap:26px !important}
body #ajax-content-wrap .csm .csm-spec-lte{padding:22px 26px !important}


/* type tuning: condensed display face carries more size, tighter tracking */
html body .csm .csm-h{font-weight:700;letter-spacing:0;text-transform:uppercase}
html body .csm .csm-pn b{font-weight:700;letter-spacing:.01em}
html body .csm .csm-pn--g1 b{font-weight:700}
html body .csm .csm-eyebrow--script{letter-spacing:.01em;font-style:normal}

/* mare cards: layout only — typography comes from the theme */
html body .csm .csm-mares{display:grid;grid-template-columns:repeat(3,1fr);gap:38px}
@media(max-width:980px){html body .csm .csm-mares{grid-template-columns:repeat(2,1fr)}}
@media(max-width:640px){html body .csm .csm-mares{grid-template-columns:1fr}}
html body .csm .csm-marecard{display:block;background:#fff;border:0;border-radius:0;padding:0 0 28px;overflow:hidden;text-align:center;box-shadow:0 6px 22px rgba(54,49,43,.06);transform:none}
html body .csm .csm-marecard:hover{box-shadow:0 12px 30px rgba(54,49,43,.12)}
html body .csm .csm-marecard__phlink{display:block}
html body .csm .csm-marecard__ph{display:block;aspect-ratio:4/5;overflow:hidden;border:2px solid var(--brand);margin:0}
html body .csm .csm-marecard__ph img{width:100%;height:100%;object-fit:cover;display:block;margin:0 !important}
html body .csm .csm-marecard__body{padding:22px 20px 0;display:flex;flex-direction:column;align-items:center;gap:0}
html body .csm .csm-marecard__pdf{line-height:0;margin-bottom:14px;display:inline-block}
html body .csm .csm-marecard__btn{display:inline-block;background:var(--brand-mid) !important;color:#fff !important;font-size:15px;font-weight:700;letter-spacing:.03em;text-transform:uppercase;padding:13px 32px;border-radius:100px;text-decoration:none;transition:background .25s}
html body .csm .csm-marecard__btn:hover{background:var(--brand-deep) !important;color:#fff !important}
html body .csm .csm-marecard__mem{font-size:.66rem;letter-spacing:.16em;text-transform:uppercase;color:#8a2f2f;margin-bottom:12px}

/* ============ clean: the dark sections run white ============ */
html body .csm .csm-dark{
  --parch:#ffffff;--parch-2:#f7f9ef;--card:#ffffff;
  --ink:#36312b;--ink-mute:rgba(54,49,43,.66);--ink-faint:rgba(54,49,43,.42);
  --gold-deep:var(--brand-deep);--gold-deep-2:var(--brand-mid);
  --line-l:rgba(97,106,33,.30);--line-l-soft:rgba(54,49,43,.12);
  background:#ffffff;color:#36312b}
html body .csm .csm-dark.csm-sect--alt{background:#f7f9ef}
html body .csm .csm-dark .csm-h em,html body .csm .csm-dark .csm-eyebrow,
html body .csm .csm-dark .csm-eyebrow--script{color:var(--brand-deep)}
/* featured produce cards: white plates with the ranch green */
html body .csm .csm-dark .csm-champ{background:#ffffff;border:1px solid var(--brand);border-radius:0;box-shadow:0 10px 30px rgba(54,49,43,.07)}
html body .csm .csm-dark .csm-champ::after{display:none}
html body .csm .csm-dark .csm-champ:hover{border-color:var(--brand-deep);transform:translateY(-3px)}
html body .csm .csm-dark .csm-champ__name,html body .csm .csm-dark .csm-champ__name a{color:#36312b !important}
html body .csm .csm-dark .csm-champ__meta{color:var(--brand-mid)}
html body .csm .csm-dark .csm-champ__money{color:var(--brand-deep)}
html body .csm .csm-dark .csm-champ__label,html body .csm .csm-dark .csm-champ__desc{color:rgba(54,49,43,.62)}
html body .csm .csm-dark .csm-champ__view{color:var(--brand-mid) !important}
html body .csm .csm-dark .csm-champ__pill{color:#ffffff;background:var(--brand-mid)}
/* ledger rows */
/* the section is white now, so every dark-mode variable must resolve light-appropriate */
html body .csm .csm-dark{
  --champagne:#36312b;--mute-d:rgba(54,49,43,.68);--faint-d:rgba(54,49,43,.52);
  --gold:var(--brand-deep);--copper:var(--brand-mid);
  --night:#ffffff;--night-2:#f7f9ef;--night-3:#fbfcf3;
  --line-d:rgba(97,106,33,.26);--line-d-soft:rgba(54,49,43,.14)}
/* produce ledger: real class names this time */
html body .csm .csm-dark .csm-line__row{border-bottom-color:rgba(97,106,33,.22)}
html body .csm .csm-dark .csm-line__row b,html body .csm .csm-dark .csm-line__row b a{color:#36312b}
html body .csm .csm-dark .csm-line__row em{color:rgba(54,49,43,.66)}
html body .csm .csm-dark .csm-line__row .e{color:var(--brand-deep);font-weight:600}
html body .csm .csm-dark .csm-line__more{color:rgba(54,49,43,.62)}
/* pedigree cells on white */
html body .csm .csm-dark .csm-pn{background:#fbfcf3;border:1px solid rgba(97,106,33,.22);border-left:2px solid var(--brand)}
html body .csm .csm-dark .csm-pn--g1{background:#f4f7e6;border-left-color:var(--brand-deep)}
html body .csm .csm-dark .csm-pn b{color:#36312b}
html body .csm .csm-dark .csm-pn--g1 b{color:var(--brand-deep)}
html body .csm .csm-dark .csm-pn small{color:var(--brand-mid)}
html body .csm .csm-dark .csm-pn span{color:rgba(54,49,43,.62)}
html body .csm .csm-dark .csm-ped-id,html body .csm .csm-dark .csm-ped-hint{color:rgba(54,49,43,.55)}

/* ============ sold graphic: applied wherever status is sold ============ */
html body .csm .csm-sold{position:absolute;top:10px;right:10px;z-index:3;width:33%;max-width:132px;pointer-events:none;line-height:0}
html body .csm .csm-sold img{width:100%;height:auto;display:block;margin:0 !important;filter:drop-shadow(0 3px 8px rgba(0,0,0,.28))}
html body .csm .csm-foal,html body .csm .csm-marecard,html body .csm .csm-marecard__phlink{position:relative}
html body .csm .csm-hero .csm-sold{top:auto;bottom:26px;right:26px;width:22%;max-width:180px}
html body .csm .csm-foal.is-sold .csm-foal__ph img{filter:saturate(.92)}
html body .csm .csm-soldyear{font-weight:700;text-transform:uppercase;letter-spacing:.05em;color:var(--brand-deep);font-size:1.4rem;margin:38px 0 16px !important}

/* featured produce cards — designed for the white section */
html body .csm .csm-dark .csm-champ{padding:clamp(26px,3vw,38px);box-shadow:0 12px 34px rgba(54,49,43,.09)}
html body .csm .csm-dark .csm-champ__pill{display:inline-block;background:var(--brand-mid);color:#fff;font-size:.62rem;font-weight:400;letter-spacing:.16em;text-transform:uppercase;padding:7px 13px;border-radius:2px;margin-bottom:18px;max-width:100%}
html body .csm .csm-dark .csm-champ__name{font-weight:700;font-size:clamp(1.45rem,2.4vw,2rem);text-transform:uppercase;letter-spacing:.01em;line-height:1.08}
html body .csm .csm-dark .csm-champ__meta{font-size:.72rem;letter-spacing:.1em;text-transform:uppercase;color:var(--brand-mid);margin-top:9px !important}
html body .csm .csm-dark .csm-champ__money{font-weight:700;font-size:clamp(2rem,3.6vw,2.9rem);color:var(--brand-deep);letter-spacing:-.01em;margin:20px 0 0 !important;line-height:1}
html body .csm .csm-dark .csm-champ__label{font-size:.6rem;letter-spacing:.2em;color:rgba(54,49,43,.55);margin-top:8px}
html body .csm .csm-dark .csm-champ__desc{margin:20px 0 0 !important;padding-top:18px;border-top:1px solid rgba(97,106,33,.22);font-size:.86rem;line-height:1.7;color:rgba(54,49,43,.72)}
html body .csm .csm-dark .csm-champ__view{letter-spacing:.12em}

/* identity section: credential headline (not shouted) and her own record */
html body .csm .csm-h--cred{text-transform:none !important;font-weight:400 !important;font-size:clamp(1.5rem,2.7vw,2.15rem);line-height:1.22;letter-spacing:0;color:#36312b}
html body .csm .csm-ownrec{margin-top:clamp(26px,4vh,38px)}
html body .csm .csm-ownrec__h{font-size:.68rem !important;font-weight:400 !important;letter-spacing:.2em;text-transform:uppercase;color:var(--brand-mid);margin:0 0 14px !important}
html body .csm .csm-ownrec__list{list-style:none;margin:0 !important;padding:0 !important}
html body .csm .csm-ownrec__list li{padding:11px 0 11px 18px;border-bottom:1px solid rgba(97,106,33,.18);font-size:.92rem;line-height:1.5;color:rgba(54,49,43,.86);position:relative;margin:0 !important}
html body .csm .csm-ownrec__list li:last-child{border-bottom:0}
html body .csm .csm-ownrec__list li::before{content:"";position:absolute;left:0;top:19px;width:7px;height:1px;background:var(--brand)}


/* mare card headings: layout only — font family, size, weight and colour come from the theme
   so they can be controlled in the Customizer like any other h2/h4/h6 */
html body .csm .csm-marecard__name{margin:0 0 10px !important;padding:0 !important;line-height:1.15 !important}
html body .csm .csm-marecard__name a{color:inherit !important;text-decoration:none;border:0 !important}
html body .csm .csm-marecard__ycs{margin:0 0 8px !important;padding:0 !important;line-height:1.3 !important}
html body .csm .csm-marecard__cross{margin:0 0 18px !important;padding:0 !important;line-height:1.35 !important}
/* the PDF icon is a small badge, never a full-width image */
html body .csm .csm-marecard__pdf img,
body #ajax-content-wrap .csm .csm-marecard__pdf img{width:30px !important;max-width:30px !important;height:auto !important;min-width:0 !important;display:block;margin:0 auto !important;transition:opacity .2s}
html body .csm .csm-marecard__pdf:hover img{opacity:.72}
html body .csm .csm-marecard__pdf{display:inline-block;line-height:0;margin-bottom:12px !important}

/* produce ledger: read down the left column, then down the right */
html body .csm .csm-line{display:block !important;column-count:2;column-gap:clamp(34px,5vw,70px)}
html body .csm .csm-line__row{break-inside:avoid;-webkit-column-break-inside:avoid;page-break-inside:avoid}
@media(max-width:680px){html body .csm .csm-line{column-count:1}}

/* produce record: readable type throughout */
html body .csm .csm-dark .csm-line__row{padding:15px 0}
html body .csm .csm-dark .csm-line__row b{font-size:1.06rem;line-height:1.25}
html body .csm .csm-dark .csm-line__row em{font-size:.82rem;margin-top:5px}
html body .csm .csm-dark .csm-line__row .e{font-size:1.02rem;font-weight:600}
html body .csm .csm-dark .csm-line__more{font-size:.86rem}
html body .csm .csm-dark .csm-champ__pill{font-size:.72rem;letter-spacing:.12em;padding:8px 15px}
html body .csm .csm-dark .csm-champ__meta{font-size:.82rem}
html body .csm .csm-dark .csm-champ__label{font-size:.7rem;letter-spacing:.16em}
html body .csm .csm-dark .csm-champ__desc{font-size:1rem;line-height:1.65}
html body .csm .csm-dark .csm-champ__view{font-size:.76rem}

/* earnings as the anchor between the facts and her record (Third Edge treatment) */
html body .csm .csm-earn{margin:clamp(26px,4vh,36px) 0 0 !important;padding-top:clamp(22px,3vh,30px);border-top:1px solid rgba(97,106,33,.28)}
html body .csm .csm-earn__label{display:block;font-size:.68rem;letter-spacing:.2em;text-transform:uppercase;color:rgba(54,49,43,.6);margin-bottom:6px}
html body .csm .csm-earn__num{display:block;font-weight:900 !important;font-size:clamp(2.6rem,5.2vw,4rem);line-height:1;letter-spacing:-.01em;color:var(--brand-deep)}
html body .csm .csm-ownrec{margin-top:clamp(24px,3.6vh,34px) !important;padding-top:clamp(20px,3vh,26px);border-top:1px solid rgba(97,106,33,.28)}
html body .csm .csm-ownrec__list li{font-size:1rem}

/* heavier earnings numeral; no rule under the final fact row */
body #ajax-content-wrap .csm .csm-earn__num{font-weight:900 !important}
html body .csm .csm-spec li:last-child{border-bottom:0 !important}

/* every section after The Broodmare runs white */
html body .csm .csm-sect ~ .csm-sect,
body #ajax-content-wrap .csm .csm-sect ~ .csm-sect{background:#ffffff !important}
html body .csm .csm-sect ~ .csm-sect.csm-sect--alt{background:#ffffff !important}

/* gallery: a justified row that actually fills the width, at a size worth the photography */
html body .csm .csm-gal{gap:clamp(14px,1.4vw,20px)}
html body .csm .csm-gal--fill::after{display:none;content:none}      /* no spacer when it all fits one row */
html body .csm .csm-gal__it{border-radius:2px;border:1px solid rgba(97,106,33,.22);background:#eef1e4;min-width:200px;max-height:520px}
html body .csm .csm-gal__it::after{content:"";position:absolute;inset:0;box-shadow:inset 0 0 0 1px rgba(255,255,255,.35);pointer-events:none}
html body .csm .csm-gal__it:hover{border-color:var(--brand)}
html body .csm .csm-gal__it img{transition:transform .9s cubic-bezier(.16,1,.3,1)}
html body .csm .csm-gal__it:hover img{transform:scale(1.045)}
@media(max-width:640px){html body .csm .csm-gal__it{min-width:100%;flex-basis:100% !important}}

/* broodmare pages lead with what she produces; her own record closes the page */
html body .csm-page--mare{display:flex;flex-direction:column}
html body .csm-page--mare .csm-hero{order:0}
html body .csm-page--mare #pedigree{order:1}
html body .csm-page--mare #identity{order:2}
html body .csm-page--mare #produce{order:3}
html body .csm-page--mare #foals{order:4}
html body .csm-page--mare #femaleline{order:5}
html body .csm-page--mare #gallery{order:6}
html body .csm-page--mare #record,html body .csm-page--mare #dam{order:7}

/* sold produce: present and credited, visibly subordinate to what's available */
html body .csm .csm-alsohead{margin:clamp(40px,6vh,64px) 0 clamp(18px,2.4vh,26px);padding-top:clamp(24px,3vh,32px);border-top:1px solid rgba(97,106,33,.22)}
html body .csm .csm-alsohead__h{margin:0 0 4px !important;font-size:1.15rem;letter-spacing:.02em;color:var(--brand-deep)}
html body .csm .csm-alsohead__note{margin:0 !important;font-size:.82rem;letter-spacing:.08em;text-transform:uppercase;color:rgba(54,49,43,.55)}
html body .csm .csm-foals--sold{opacity:.9}
html body .csm .csm-foals--sold .csm-foal{transform:scale(.97);transform-origin:top center}
html body .csm .csm-foals--sold .csm-foal:hover{transform:scale(1)}
html body .csm .csm-foals--sold .csm-foal__ph img{filter:saturate(.94)}
html body .csm .csm-foals--sold .csm-sold{width:28%;max-width:104px}

/* sold produce: a compact record list with thumbnails, not a shop window */
html body .csm .csm-soldlist{list-style:none;margin:0 !important;padding:0 !important;display:grid;grid-template-columns:repeat(2,1fr);gap:0 clamp(30px,4vw,56px)}
@media(max-width:760px){html body .csm .csm-soldlist{grid-template-columns:1fr}}
html body .csm .csm-soldlist__it{margin:0 !important;border-bottom:1px solid rgba(97,106,33,.18)}
html body .csm .csm-soldlist__it a{display:flex;align-items:center;gap:14px;padding:11px 0;text-decoration:none;color:inherit}
html body .csm .csm-soldlist__ph{flex:0 0 auto;width:54px;height:54px;overflow:hidden;border:1px solid rgba(97,106,33,.25);background:#eef1e4}
html body .csm .csm-soldlist__ph img{width:100% !important;height:100% !important;object-fit:cover;display:block;margin:0 !important}
html body .csm .csm-soldlist__txt{flex:1 1 auto;min-width:0}
html body .csm .csm-soldlist__txt b{display:block;font-size:.98rem;line-height:1.25;color:#36312b}
html body .csm .csm-soldlist__txt em{display:block;font-style:normal;font-size:.78rem;line-height:1.35;color:rgba(54,49,43,.62);margin-top:2px}
html body .csm .csm-soldlist__meta{flex:0 0 auto;text-align:right;display:flex;flex-direction:column;align-items:flex-end;gap:3px}
html body .csm .csm-soldlist__meta b{font-size:.9rem;color:var(--brand-deep)}
html body .csm .csm-soldlist__tag{font-size:.62rem;letter-spacing:.16em;text-transform:uppercase;color:rgba(54,49,43,.5)}
html body .csm .csm-soldlist__it a:hover .csm-soldlist__ph{border-color:var(--brand)}
html body .csm .csm-soldlist__it a:hover b{color:var(--brand-deep)}


/* pedigree opens the page like a sale-catalogue plate: identity beside the portrait, table beneath */
html body .csm #pedigree .csm-pedhead{display:grid;grid-template-columns:minmax(0,1fr) minmax(220px,300px);gap:clamp(26px,3.5vw,48px);align-items:end;margin-bottom:clamp(26px,3.6vh,42px)}
html body .csm #pedigree .csm-pedhead>*{align-self:end}
html body .csm #pedigree .csm-pedhead .csm-head{margin-bottom:0 !important;max-width:none;padding-bottom:0}
html body .csm #pedigree .csm-essence__fig{margin:0 !important;width:100%;max-width:300px;justify-self:end;aspect-ratio:4/5}
html body .csm #pedigree .csm-essence__fig img{width:100% !important;height:100% !important;object-fit:cover}
html body .csm #pedigree .csm-essence__plate{font-size:.6rem;letter-spacing:.14em}
@media(max-width:860px){
  html body .csm #pedigree .csm-pedhead{grid-template-columns:1fr}
  html body .csm #pedigree .csm-essence__fig{justify-self:start;max-width:100%}
}
/* the performance section runs full width when no action shot is designated */
html body .csm .csm-essence--solo{grid-template-columns:1fr !important;max-width:900px}

/* text fallback when no PDF icon graphic exists in the media library */
html body .csm .csm-marecard__pdftxt{display:inline-block;font-size:.62rem;letter-spacing:.16em;padding:4px 9px;border:1px solid rgba(97,106,33,.4);color:var(--brand-deep)}
