/* Member profile, "Hero" layout (js/components/hero-profile.js).
   Same look as AnimalPin-docs/hero-system-preview.html; colours follow the app theme (light/dark). */
.hp { --hp-gold: #E9A23B; --hp-surface: rgb(var(--ap-alabaster)); --hp-text: rgb(var(--ap-charcoal));
  --hp-cream: rgb(var(--ap-sand)); --hp-sage: rgb(var(--ap-sage)); --hp-border: rgb(var(--ap-border));
  --hp-muted: rgb(var(--ap-slate) / .8);
  background: var(--hp-surface); color: var(--hp-text); border: 1px solid var(--hp-border); border-radius: 24px;
  overflow: hidden; padding-bottom: 8px; }
.hp button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
.hp-sec { padding: 12px 16px; }
.hp-sec-title { font: 800 11.5px 'Plus Jakarta Sans', Inter, sans-serif; letter-spacing: .06em; text-transform: uppercase;
  color: var(--hp-muted); margin: 0 0 10px; display: flex; justify-content: space-between; align-items: center; }
.hp-sec-title span { text-transform: none; letter-spacing: 0; font-weight: 700; }
.hp-head { display: flex; gap: 14px; align-items: center; }
.hp-photos { display: flex; flex-shrink: 0; }
.hp-avatar { width: 68px; height: 68px; border-radius: 50%; object-fit: cover; border: 3px solid var(--hp-sage); display: grid; place-items: center; }
.hp-initials { background: var(--hp-sage); color: rgb(var(--ap-alabaster)); font: 800 20px 'Plus Jakarta Sans', sans-serif; }
.hp-pet { width: 42px; height: 42px; border-radius: 50%; object-fit: cover; border: 3px solid #E07A5F; margin-left: -20px; margin-top: 30px; background: var(--hp-surface); }
.hp-who { min-width: 0; flex: 1; }
.hp-name { font: 800 17px 'Plus Jakarta Sans', sans-serif; display: flex; align-items: center; gap: 6px; flex-wrap: wrap; word-break: break-word; }
.hp-verified { color: #2563EB; font-size: 14px; }
.hp-medal-pill { display: inline-flex; align-items: center; gap: 6px; background: linear-gradient(135deg, #F7D774, var(--hp-gold));
  color: #5a3b00; font: 800 11px 'Plus Jakarta Sans', sans-serif; padding: 4px 10px; border-radius: 999px; margin-top: 6px; }
.hp-sub { font-size: 12px; color: var(--hp-muted); }
.hp-bio { font-size: 12.5px; line-height: 1.6; margin: 10px 0 0; }
.hp-card { border: 1px solid var(--hp-border); border-radius: 18px; padding: 12px; margin-top: 12px; }
.hp-cream { background: var(--hp-cream); border-color: transparent; }
.hp-row { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.hp-stars { display: flex; gap: 3px; font-size: 18px; color: var(--hp-gold); }
.hp-stars .off { color: #d9d2c4; }
.hp-pts { font: 800 12px 'Plus Jakarta Sans', sans-serif; }
.hp-bar { height: 8px; background: #E7DCCB; border-radius: 99px; overflow: hidden; margin-top: 8px; }
.hp-bar > span { display: block; height: 100%; background: var(--hp-sage); border-radius: 99px; }
.hp-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 12px; }
.hp .hp-btn { border-radius: 14px; padding: 10px 12px; font: 800 12.5px 'Plus Jakarta Sans', sans-serif; text-align: center; }
.hp .hp-btn.primary { background: var(--hp-sage); color: rgb(var(--ap-alabaster)); }
.hp .hp-btn.soft { background: var(--hp-cream); color: var(--hp-text); }
.hp .hp-btn.full { grid-column: 1 / -1; }
.hp-mini { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 10px; font-size: 12px; color: var(--hp-muted); }
.hp-mini b { color: var(--hp-text); font-family: 'Plus Jakarta Sans', sans-serif; }
.hp-corner { display: flex; gap: 6px; align-self: flex-start; flex-shrink: 0; }
.hp .hp-round { width: 32px; height: 32px; border-radius: 50%; background: var(--hp-cream); display: grid; place-items: center; font-size: 12px; }
.hp-ptabs { display: grid; grid-template-columns: repeat(4, 1fr); gap: 4px; background: var(--hp-cream); padding: 4px; border-radius: 14px; margin: 0 16px; }
.hp .hp-ptabs button { padding: 8px 4px; border-radius: 10px; font: 800 11.5px 'Plus Jakarta Sans', sans-serif; }
.hp .hp-ptabs button.on { background: var(--hp-surface); box-shadow: 0 2px 6px rgba(6,72,65,.12); }
.hp-stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; }
.hp-stat { border: 1px solid var(--hp-border); border-radius: 16px; padding: 10px 12px; display: flex; gap: 10px; align-items: center; min-width: 0; }
.hp-stat i { width: 34px; height: 34px; border-radius: 12px; display: grid; place-items: center; font-size: 15px; flex-shrink: 0; }
.hp-stat b { font: 800 17px 'Plus Jakarta Sans', sans-serif; display: block; line-height: 1.1; }
.hp-stat span { font-size: 11px; color: var(--hp-muted); font-weight: 600; }
.hp-ic-g { background: #DFF3EA; color: #087E70; } .hp-ic-o { background: #FBE4DC; color: #C2512F; }
.hp-ic-y { background: #FBEFD5; color: #A56A00; } .hp-ic-d { background: #E3ECEA; color: #064841; }
.hp-medals { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px 8px; }
.hp-medal { text-align: center; font-size: 10.5px; font-weight: 700; }
.hp-disc { width: 58px; height: 58px; margin: 0 auto 6px; border-radius: 50%; display: grid; place-items: center; font-size: 22px; color: #5a3b00;
  background: radial-gradient(circle at 30% 30%, #FFF2C2, var(--hp-gold)); border: 3px solid #fff; outline: 2px solid var(--hp-gold); }
.hp-medal.heart .hp-disc { background: radial-gradient(circle at 30% 30%, #FFD9CF, #E07A5F); color: #fff; outline-color: #E07A5F; }
.hp-medal.locked .hp-disc { background: #EDE7DC; color: #B9AFA0; outline-color: #D8CFC0; }
.hp-medal.locked { opacity: .75; }
.hp-medal small { display: block; font-weight: 600; color: var(--hp-muted); }
.hp .hp-story { display: block; width: 100%; text-align: left; border-radius: 18px; overflow: hidden; border: 1px solid var(--hp-border); }
.hp-story img { width: 100%; height: 160px; object-fit: cover; display: block; }
.hp-story-body { padding: 10px 12px; font-size: 12px; }
.hp-story-body b { font-family: 'Plus Jakarta Sans', sans-serif; font-size: 13px; }
.hp-story-text { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.hp-confirm { display: flex; align-items: center; gap: 6px; font-size: 10.5px; color: var(--hp-sage); font-weight: 700; margin-top: 6px; }
.hp-home { display: flex; gap: 10px; align-items: center; border: 1px solid var(--hp-border); border-radius: 16px; padding: 8px; margin-bottom: 8px; }
.hp-home img, .hp-home-ph { width: 54px; height: 54px; border-radius: 14px; object-fit: cover; display: grid; place-items: center; background: var(--hp-cream); flex-shrink: 0; }
.hp-home.memory img { filter: grayscale(.6); }
.hp-home-t { font: 800 13px 'Plus Jakarta Sans', sans-serif; }
.hp-fchips { display: flex; gap: 6px; margin-bottom: 8px; flex-wrap: wrap; }
.hp .hp-fchips button { font-size: 11px; font-weight: 700; padding: 4px 10px; border-radius: 99px; background: #DFF3EA; color: #087E70; }
.hp .hp-fchips button.on { background: #087E70; color: #fff; }
.hp-grid3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px; }
.hp-grid3 button { padding: 0; display: block; }
.hp-grid3 img, .hp-grid3 span { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 8px; display: grid; place-items: center; background: var(--hp-cream); }
.hp-empty { font-size: 12px; color: var(--hp-muted); background: var(--hp-cream); border-radius: 14px; padding: 14px; text-align: center; }
#hero-profile-content > .hp { border: 0; border-radius: 0; }
/* layout fixes: corner buttons float top-right so long names keep the full width */
.hp-head { position: relative; }
.hp-head .hp-corner { position: absolute; top: -4px; right: -4px; }
.hp-head.has-corner .hp-who { padding-right: 74px; }
.hp-name { font-size: 16px; word-break: normal; overflow-wrap: anywhere; }
.hp-medal-pill { white-space: nowrap; }
.hp-stat span { display: block; line-height: 1.25; }
/* corner buttons sit in their own row above the name (no squeezing of long names) */
.hp-head.has-corner { padding-top: 34px; }
.hp-head.has-corner .hp-who { padding-right: 0; }
.hp-head.has-corner .hp-corner { top: -6px; right: -6px; }
.hp-name { overflow-wrap: break-word; }
/* final: corner buttons beside the name again, compact like the sample */
.hp-head.has-corner { padding-top: 0; }
.hp-head.has-corner .hp-who { padding-right: 70px; }
.hp-head.has-corner .hp-corner { top: 0; right: 0; }
.hp .hp-round { width: 30px; height: 30px; }
.hp-name { overflow-wrap: anywhere; }
/* top bar like the sample's app bar: title left, round buttons right; the name keeps the full width */
.hp-topbar { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin: -4px 0 10px; }
.hp-topbar-t { font: 800 13px 'Plus Jakarta Sans', sans-serif; color: var(--hp-muted); display: flex; gap: 6px; align-items: center; }
.hp-topbar .hp-corner { position: static; }
.hp-head .hp-who { padding-right: 0 !important; }
.hp-name { overflow-wrap: break-word; word-break: normal; }
