/* Shared public profile secondary tabs and All fields control (scoped, design-system tokens). */
.pp-subtabs{display:flex;gap:4px;overflow-x:auto;border-bottom:1px solid var(--pp-line);margin:0 0 10px}
.pp-subtabs button{flex:0 0 auto;min-height:44px;padding:0 12px;font:inherit;font-size:12px;font-weight:900;font-style:italic;text-transform:uppercase;background:none;border:0;border-bottom:2px solid transparent;color:var(--pp-muted);cursor:pointer}
.pp-subtabs button[aria-selected=true]{color:var(--pp-ink);border-bottom-color:var(--pp-ink)}
.pp-subtabs button:focus-visible,.pp-more:focus-visible{outline:2px solid var(--pp-ink);outline-offset:2px}
[data-subtabs].pp-on>[data-sec-id]{margin:0 0 8px;border:0;box-shadow:none;padding:0}
[data-subtabs].pp-on>[data-sec-id]>h3,[data-subtabs].pp-on>[data-sec-id]>summary{display:none}
html body .pp-subtabs button{font-family:Kanit,sans-serif!important}
.pp-subtabs button:hover{color:var(--pp-ink)}

/* ---- Member-parity compact presentation, scoped per public profile root ---- */
.profile,.pc,.v2-page:has(.v2-horse-identity,.v2-tree,.v2-family-block),[data-profile-course]{
 --pp-ink:var(--ink);--pp-muted:var(--muted);--pp-line:var(--line);--pp-soft:var(--soft);--pp-r:var(--r)}
.v2-page:has(.v2-horse-identity,.v2-tree,.v2-family-block){
 --pp-ink:var(--foreground);--pp-muted:var(--muted-foreground);--pp-line:var(--border);--pp-soft:var(--muted);--pp-r:var(--radius)}
/* Kanit across scoped roots (wins over the Inter cascade) */
html body :is(.profile,.pc,.v2-page:has(.v2-horse-identity,.v2-tree,.v2-family-block),[data-profile-course]) *{font-family:Kanit,sans-serif!important}
/* header and stat strips: one bordered strip, divided cells, no nested boxes */
.profile .profile-summary,.pc .pc-tiles,.v2-page .v2-facts{display:flex;flex-wrap:nowrap;gap:0;overflow-x:auto;scrollbar-width:none;margin:10px 0;padding:0;background:none;border:1px solid var(--pp-line);border-radius:var(--pp-r)}
.profile .profile-summary::-webkit-scrollbar,.pc .pc-tiles::-webkit-scrollbar,.v2-page .v2-facts::-webkit-scrollbar{display:none}
.profile .profile-summary>div,.pc .pc-tile,.v2-page .v2-facts>div{flex:1 0 auto;min-width:84px;margin:0;padding:8px 12px;background:none;border:0;border-radius:0;box-shadow:none}
.profile .profile-summary>div+div,.pc .pc-tile+.pc-tile,.v2-page .v2-facts>div+div{border-left:1px solid var(--pp-line)}
.profile .profile-summary dd,.pc .pc-tile b,.v2-page .v2-facts dd{font-size:18px;line-height:1.1;white-space:nowrap;margin:0}
.profile .profile-summary dt,.pc .pc-tile span,.v2-page .v2-facts dt{font-size:10px;color:var(--pp-muted);white-space:nowrap}
.profile .profile-head,.pc .pc-head,.v2-page .v2-hero{padding:12px;margin:8px 0;box-shadow:none;border:1px solid var(--pp-line);border-radius:var(--pp-r)}
.v2-page .v2-hero{background:none}
/* selected secondary panels: full width, flat rows */
.pp-on>[data-sec-id]{width:100%}
.pp-on>[data-sec-id]>h2{display:none}
.profile .profile-stat-grid.pp-on{display:block}
.profile .profile-stat-grid.pp-on>.profile-stat-card{border:0;background:none;padding:0}
:is(.profile,.pc,.v2-page) .pp-on>[data-sec-id] :is(.card,.v2-family-block){border:0;box-shadow:none;padding:0;background:none}
.v2-family-block{border:0;border-top:1px solid var(--pp-line);padding:8px 0;margin:0;background:none;box-shadow:none}
/* compact table rows + 44px touch targets */
:is(.profile,.pc) table.d :is(th,td){padding:7px 10px;font-size:13px}
:is(.profile,.pc) table.d th .table-sort{min-height:44px;background:none;border:0;cursor:pointer;color:var(--pp-muted);font-weight:900;text-transform:uppercase}
:is(.profile,.v2-page) :is(.profile-tabs,.v2-tabs) a{min-height:44px;display:inline-flex;align-items:center;border-radius:var(--pp-r)}
.profile .profile-tabs{top:64px}
:is(.profile,.v2-page) :is(.profile-tabs,.v2-tabs) a[aria-selected=true]{background:var(--pp-ink);color:var(--background,var(--soft))}
.profile .profile-more,.profile .profile-stat-card>summary,.v2-page .v2-section>summary,.v2-page .v2-family-more>summary{min-height:44px;display:flex;align-items:center;cursor:pointer}
.profile-js .profile-more{display:inline-flex}
.profile-stat-card>summary{justify-content:space-between}

/* Same compact row/disclosure pattern as member profiles; desktop keeps the real table. */
.pp-mobile-rows,.pp-mobile-sort{display:none}
.pp-replaced-native{display:none!important}
.pp-more{min-height:44px;padding:0 14px;background:var(--soft);color:var(--ink);border:1px solid var(--line);border-radius:var(--r);font:inherit;font-weight:700;cursor:pointer;margin:8px 0}
.pp-js [data-sec-id][hidden],.pp-js [data-primary-panel][hidden],.pp-js .v2-mobile-record[hidden],.pp-js tr[hidden],.pp-js .v2-filter[hidden]{display:none!important}
.pp-js [data-pp-slot="records"] .m-racecard[hidden]{display:none!important}
.pp-subtabs{position:relative;scrollbar-width:thin}
.profile-pane>.profile-section,.v2-pane>.v2-section{border:0;box-shadow:none;background:none;padding:0}
.pp-mobile-rows summary,.pp-more{font-family:Kanit,sans-serif!important}
.v2-page:has(.v2-horse-identity) .v2-ribbon>*{min-width:22px;height:24px;font-size:12px}
.v2-page:has(.v2-horse-identity) .v2-hero p{font-size:13px;line-height:1.45;margin:8px 0}
.v2-page:has(.v2-horse-identity) .v2-hero h1{font-size:clamp(28px,3.4vw,42px)}
:is(.profile,.pc,.v2-page,[data-profile-course]) .public-content-cta[data-public-cta=headline]{padding:10px 14px;margin:8px 0 14px;gap:8px}
:is(.profile,.pc,.v2-page,[data-profile-course]) .public-content-cta[data-public-cta=headline] p{font-size:12px;margin:0}
main[data-profile-course] .pp-course-sections{min-width:0}
main[data-profile-course] .pp-course-sections.pp-on .tblblock{padding:0;border:0;box-shadow:none}
@media(max-width:759px){
 :is(.profile,.v2-page) :is(.profile-tabs,.v2-tabs),.pp-subtabs{flex-wrap:wrap;overflow-x:visible}
 .pp-subtabs button{white-space:normal;max-width:100%;text-align:left;line-height:1.2}
 .pp-mobile-sort{display:flex;align-items:center;gap:8px;min-height:44px;margin-bottom:8px;font-size:12px;color:var(--pp-muted)}
 .pp-mobile-sort select{min-height:44px;min-width:0;max-width:100%;padding:0 8px;background:var(--soft);color:var(--ink);border:1px solid var(--line);border-radius:var(--r);font:inherit}
 .pp-has-mobile{display:none!important}
 .pp-mobile-rows{display:grid;list-style:none;margin:0;padding:0;gap:0}
 .pp-mobile-rows>li{position:relative;padding:6px 0;border-bottom:1px solid var(--pp-line)}
 .pp-mobile-rows>li>strong{display:flex;align-items:center;min-height:44px;padding-right:84px;font-family:Kanit,sans-serif!important;font-size:14px;font-weight:800;overflow-wrap:anywhere}
 .pp-mobile-rows details>summary{position:absolute;right:0;top:6px;min-height:44px;padding:0 4px;display:flex;align-items:center;font-size:11px;cursor:pointer;color:var(--pp-muted);list-style:none}
 .pp-mobile-rows details>summary::-webkit-details-marker{display:none}
 .pp-row-metrics{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px;margin:2px 0 0}
 .pp-mobile-rows dt{font-size:10px;color:var(--pp-muted);font-weight:700;text-transform:uppercase}
 .pp-mobile-rows dd{margin:0;font-size:13px;font-family:Kanit,sans-serif!important;font-variant-numeric:tabular-nums;overflow-wrap:anywhere}
 .pp-row-metrics dd{font-weight:800}
 .pp-row-fields{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;margin:12px 0 4px}
 .pp-record-rows>li>strong{padding-right:90px}
 .pp-record-rows>li{padding:8px 0}
 .profile .profile-identity h1,.pc .pc-head h1{font-size:28px}
}

/* ---- Task 421: hosts for the shared member slots (styles come from canonical-member.css) ---- */
.hero.hero-member{padding:12px 0 4px;background:none;color:inherit;border:0;min-height:0}
:is(.profile-head-member,.pc-head-member){margin:8px 0 0}
:is(.profile,.pc,.v2-page,[data-profile-course]) .rw-member[data-rw-public] *{font-family:var(--app-font-sans)!important}
