/* Public profile pages (/horse/, /trainer/, /jockey/, /sire/, /dam/, /damsire/, /owner/).
   Server-rendered by src/utils/public-profile-renderer.js. Scoped: every class is pp-,
   no Tailwind, nothing here reaches another page.
   Restyle (stage 7): the pages opt into the shared theme (data-restyle, page "profile-public",
   light by default) and load /rm-theme.css first. Every colour below is a --rm-* token from
   rm-theme.css, so the dark theme follows; the header (rmx-hdr), the tables (rmx-t) and the
   buttons (rmx-btn) are the shared components. Layout only here. */
.pp { margin: 0; font-size: 16px; line-height: 1.55; }
.pp-main { max-width: 960px; margin: 0 auto; padding: 20px 16px 40px; box-sizing: border-box; }
.pp-main a:not(.rmx-btn) { color: var(--rm-action); font-weight: 600; text-decoration: none; }
.pp-main a:not(.rmx-btn):hover { text-decoration: underline; }
.pp-crumbs { font-size: 13px; color: var(--rm-text-dim); }
.pp-main .pp-crumbs a { color: var(--rm-text-dim); font-weight: 500; }
.pp h1 { margin: 6px 0 10px; font-size: 30px; line-height: 1.2; font-weight: 800; color: var(--rm-text); }
.pp h2 { margin: 0 0 10px; font-size: 18px; line-height: 1.3; font-weight: 700; color: var(--rm-text); }
.pp-lede { font-size: 17px; margin: 0 0 18px; color: var(--rm-text); }
.pp section, .pp-rating, .pp-upsell { background: var(--rm-surface); color: var(--rm-text); border-radius: 8px;
      box-shadow: var(--rm-shadow); padding: 16px; margin: 0 0 16px; }
.pp-rating { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 12px; }
.pp-rating span { color: var(--rm-text-dim); font-size: 14px; }
.pp-rating strong { font-size: 24px; font-weight: 800; color: var(--rm-text); }
.pp-rating a { font-size: 13px; margin-left: auto; }
.pp section { overflow-x: auto; }
/* the tables are the shared rmx-t (zebra, header rules); the row headers and the total row are ours */
.pp-table caption { text-align: left; color: var(--rm-text-dim); font-size: 13px; padding-bottom: 6px; }
.pp-table tbody th { text-align: left; padding: 6px 12px; font-size: 14px; line-height: 18px; font-weight: 700; white-space: nowrap; }
.pp-table tbody tr:nth-child(odd) th { background: var(--rm-surface); }
.pp-table tbody tr:nth-child(even) th { background: var(--rm-zebra); }
.pp-total th, .pp-total td { font-weight: 700; border-top: 2px solid var(--rm-th-rule); }
.pp-empty { color: var(--rm-text-dim); margin: 0; }
.pp-next { margin: 0; padding-left: 18px; }
.pp-next li { margin: 4px 0; }
.pp-upsell { border-left: 4px solid var(--rm-gold); }
.pp-upsell .rmx-btn { margin: 4px 8px 4px 0; }
.pp-small { font-size: 13px; color: var(--rm-text-dim); margin-bottom: 0; }
.pp-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
/* the footer sits on the teal band, as the other public pages' do */
.pp-foot { background: var(--rm-band); color: var(--rm-on-band-dim); }
.pp-foot-inner { max-width: 960px; margin: 0 auto; padding: 20px 16px; box-sizing: border-box; text-align: center; font-size: 13px; }
.pp-foot a { color: var(--rm-on-band); text-decoration: none; }
.pp-foot a:hover { text-decoration: underline; }
@media (max-width: 640px) {
  .pp h1 { font-size: 24px; }
  .pp-table tbody th { padding: 6px; }
  html[data-restyle] .pp .rmx-brand-tag, html[data-restyle] .pp .rmx-brand-vr { display: none; }
}
