.hp-section{padding:22px;border:1px solid white;border-radius:22px;background:#ffffffba;margin-bottom:16px}
.hp-section h3{font:400 21px/1.3 Manrope,sans-serif;margin:0 0 14px;letter-spacing:-.5px}
.hp-section-heading{display:flex;justify-content:space-between;gap:12px;align-items:center;flex-wrap:wrap}
.hp-section-heading h3{margin:0}
.hp-source-tag{font-size:12px;background:#e5ead9;border-radius:99px;padding:6px 10px;color:#485634}
.hp-muted{font-size:12px;line-height:1.6;color:#656a5e}
.hp-facts{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px;margin:18px 0 0}
.hp-facts dt{font-size:12px;color:#656a5e}.hp-facts dd{font-size:15px;margin:4px 0 0;white-space:pre-line;overflow-wrap:anywhere}
.hp-strengths{padding-left:18px;line-height:1.8}
.hp-links{display:flex;gap:12px;flex-wrap:wrap;margin-top:18px}.hp-source-link{color:#485634;text-decoration:underline;text-underline-offset:4px;font-size:14px}
.hp-stud-pick{padding:12px 16px;border-radius:16px;background:#e5ead9;color:#485634;margin:16px 0 0}
#horse-dialog .b-detail-tabs{flex-wrap:nowrap;gap:2px;padding:2px;align-items:stretch}#horse-dialog .b-detail-tabs button{min-width:0;min-height:38px;padding:8px 16px;font-size:14px;font-weight:500;line-height:20px;text-align:center}
.hp-editor-section{border:0;border-top:1px solid #dce2d1;padding:18px 0 0;margin-top:20px;min-width:0}.hp-editor-section legend{font-size:19px;font-weight:400;padding:0 8px 0 0}
@media(max-width:760px){#horse-dialog .b-detail-tabs{justify-content:initial}#horse-dialog .b-detail-tabs button{flex:1 1 0;min-height:44px;font-size:14px;padding:10px 8px}.hp-section{padding:18px}.hp-facts{gap:14px 12px}.hp-facts dd{font-size:14px}}
#horse-dialog .b-detail .b-stack:has(>div:not([hidden])){display:block}

.hp-source-awaiting{font-size:14px;line-height:1.7;color:#656a5e}.hp-source-awaiting ul{padding-left:18px}

.b-rating-field{margin:18px 0 22px}.b-rating-field>#rating-label{font-size:14px;display:block;margin-bottom:8px}
.b-rating-stars{display:flex;gap:4px;width:fit-content}
.b-rating-star{display:grid;place-items:center;width:48px;height:48px;min-height:48px;padding:7px;border:1px solid transparent;border-radius:14px;background:transparent;color:#98a18b;cursor:pointer}
.b-rating-star svg{width:32px;height:32px;overflow:visible}.b-rating-star path{fill:transparent;stroke:currentColor;stroke-width:1.4;stroke-linejoin:round}
.b-rating-star.is-filled{color:#485634}.b-rating-star.is-filled path{fill:currentColor}
.b-rating-star:hover{background:#e5ead9}.b-rating-star:focus-visible{outline:2px solid #485634;outline-offset:2px}
.b-rating-summary{display:flex;align-items:center;gap:18px;margin-top:6px;font-size:13px;color:#656a5e}
.b-rating-clear{border:0;background:transparent;font:inherit;color:#485634;padding:6px 2px;text-decoration:underline;text-underline-offset:3px;cursor:pointer}.b-rating-clear:disabled{visibility:hidden}

/* One-generation pedigree, following the stud's presentation sheet. */
.hp-pedigree-tree{display:grid;grid-template-columns:minmax(0,2fr) minmax(0,3fr);align-items:stretch;padding:6px 0}
.hp-pedigree-horse{display:flex;align-items:center;position:relative;padding-right:30px;min-width:0}
.hp-pedigree-horse strong{font-size:20px;font-weight:500;line-height:1.4;color:#485634;overflow-wrap:anywhere}
.hp-pedigree-horse:after{content:"";position:absolute;right:0;top:50%;width:22px;border-top:1px solid #9ba78a}
.hp-pedigree-parents{margin:0;display:grid;gap:24px;min-width:0}
.hp-pedigree-parents>div{position:relative;padding-left:30px;min-width:0}
.hp-pedigree-parents>div:before{content:"";position:absolute;left:0;top:50%;width:20px;border-top:1px solid #9ba78a}
.hp-pedigree-parents>div:after{content:"";position:absolute;left:0;border-left:1px solid #9ba78a;height:calc(50% + 12px)}
.hp-pedigree-parents>div:first-child:after{top:50%}
.hp-pedigree-parents>div:last-child:after{bottom:50%}
.hp-pedigree-parents dt{font-size:13px;color:#656a5e;margin:0 0 4px}
.hp-pedigree-parents dd{font-size:19px;line-height:1.4;font-weight:400;margin:0;overflow-wrap:anywhere}
@media(max-width:760px){.hp-pedigree-horse strong{font-size:17px}.hp-pedigree-parents dd{font-size:16px}.hp-pedigree-parents>div{padding-left:20px}.hp-pedigree-parents>div:before{width:12px}.hp-pedigree-horse{padding-right:24px}.hp-pedigree-horse:after{width:16px}}

/* Broker lot record: one consistent card per information group. */
#horse-dialog .hp-section{padding:22px;border:1px solid #fff;border-radius:22px;background:#ffffffcf;box-shadow:none;margin:0 0 16px}
#horse-dialog .hp-section h3{font:400 21px/1.3 Manrope,sans-serif;letter-spacing:-.5px;margin:0 0 14px}
#horse-dialog .hp-section-heading h3{margin:0}
#horse-dialog .hp-facts{gap:20px 24px}
#horse-dialog .hp-facts>div{padding:0;border:0;background:transparent;border-radius:0;min-width:0}
#horse-dialog .hp-facts dt{font-size:13px;line-height:1.5}
#horse-dialog .hp-facts dd{font-size:16px;line-height:1.5;margin:4px 0 0}
#horse-dialog .hp-characteristics .hp-facts{grid-template-columns:repeat(3,minmax(0,1fr));margin:0}
#horse-dialog .hp-characteristics .hp-facts>div:last-child{grid-column:1/-1}
#horse-dialog .hp-long-facts{grid-template-columns:1fr}
#horse-dialog .hp-section .hp-muted{margin:12px 0 0;font-size:13px;line-height:1.5}
#horse-dialog .hp-section .hp-links{margin-top:0}
#horse-dialog .hp-section .b-notice{margin-bottom:0}
#horse-dialog .b-photo{width:100%;max-height:none}
@media(max-width:760px){#horse-dialog .hp-section{padding:18px}#horse-dialog .hp-characteristics .hp-facts{grid-template-columns:repeat(2,minmax(0,1fr))}#horse-dialog .hp-facts{gap:18px 16px}}

.parade-shared-reviews{margin:20px 0;padding:22px;border:1px solid white;border-radius:22px;background:#ffffffcf}
.parade-shared-reviews h4{font-size:21px;font-weight:400;margin:0 0 8px}
.parade-shared-review{padding:16px 0;border-top:1px solid #dce2d1;margin-top:16px}
.parade-review-heading{display:flex;justify-content:space-between;align-items:center;flex-wrap:wrap;gap:10px}
.parade-review-heading strong{font-size:16px;font-weight:500}.parade-review-stars{font-size:22px;color:#485634;letter-spacing:2px}
.parade-review-comment{font-size:15px;line-height:1.6;white-space:pre-wrap;overflow-wrap:anywhere;margin:12px 0}
.parade-shared-review small{font-size:13px;color:#656a5e}

/* Optional broker consent, aligned with the shared olive form controls. */
#horse-dialog .b-form .hp-review-consent{display:flex;align-items:flex-start;gap:12px;margin:20px 0 0;padding:0;border:0;border-radius:0;background:transparent;font:400 15px/1.55 Manrope,sans-serif;cursor:pointer}#horse-dialog .hp-review-consent input[type=checkbox]{appearance:auto;display:block;flex:0 0 20px;width:20px;height:20px;min-height:0;margin:2px 0 0;padding:0;accent-color:#485634}#horse-dialog .hp-review-consent span{flex:1;min-width:0}

/* Lot modal: the visual fills the content width; missing media stays compact. */
#horse-dialog .b-detail{width:100%;max-width:none;min-width:0}
#horse-dialog .b-detail>.b-card{width:100%;min-width:0}
#horse-dialog .b-detail .b-photo{box-sizing:border-box;width:100%;max-width:none;height:260px;max-height:none;aspect-ratio:auto;margin:0 0 18px}
#horse-dialog .b-detail .b-photo img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;object-position:center 25%;transform:none}
#horse-dialog .b-detail .b-photo:not(:has(img)){height:148px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:8px;color:#7D8F66}
#horse-dialog .b-detail .b-photo:not(:has(img)) .ph-light{font-size:48px}
#horse-dialog .b-photo-placeholder-label{font-size:13px;line-height:1.4;color:#656A5E}
#horse-dialog .b-detail .hp-section{box-sizing:border-box;width:100%;min-width:0;border:0;border-top:1px solid #E1E5D9;border-radius:0;background:transparent;box-shadow:none;margin:0;padding:22px 0}#horse-dialog .b-detail :is(.hp-origins,.hp-arqana,.hp-assessment){border-top:0;padding-top:4px}
#horse-dialog .hp-pedigree-tree{grid-template-columns:minmax(0,1fr) minmax(0,1fr)}
#horse-dialog .hp-strengths{margin:0;padding-left:18px;font-size:15px;line-height:1.65}
@media(max-width:760px){#horse-dialog .b-detail .b-photo{height:200px}#horse-dialog .b-detail .b-photo:not(:has(img)){height:124px}#horse-dialog .b-detail .hp-section{padding:20px 0}#horse-dialog .b-detail :is(.hp-origins,.hp-arqana,.hp-assessment){padding-top:4px}}

/* Desktop horse photos retain the complete silhouette in a taller visual. */
@media(min-width:761px){#horse-dialog{width:min(680px,calc(100vw - 40px))}#horse-dialog .b-detail .b-photo:has(img){height:auto;display:block;background:transparent}#horse-dialog .b-detail .b-photo img{position:static;display:block;width:100%;height:auto;object-fit:contain;object-position:center}}
