/* hw profile header pin v2 (2026-12-04): the profile banner and the avatar row stay fixed at the top while the page scrolls or tabs change (all widths). */
main > div.relative.bg-secondary:has(+ section > .\-mt-6:first-child) { position: sticky; top: 0; z-index: 30; }
main > div.relative.bg-secondary + section:has(> .\-mt-6:first-child) { display: contents; }
main > div.relative.bg-secondary + section:has(> .\-mt-6:first-child) > * { margin-left: 1rem; margin-right: 1rem; }
main > div.relative.bg-secondary + section > .\-mt-6:first-child {
  position: sticky; top: calc(5.5rem + env(safe-area-inset-top, 0px)); z-index: 31; margin-left: 0; margin-right: 0; padding: 0 1rem;
  background: linear-gradient(to bottom, transparent 1.5rem, hsl(var(--background)) 1.5rem);
}
main:has(> div.relative.bg-secondary + section > .\-mt-6:first-child) div.sticky.z-10.bg-background { top: calc(10.5rem + env(safe-area-inset-top, 0px)) !important; }
/* back arrow readable on any banner */
main > div.relative.bg-secondary > button[class*="left-3"] { color: #111; }
main > div.relative.bg-secondary > button[class*="left-3"]::before { content: ""; position: absolute; inset: 4px; border-radius: 9999px; background: rgba(255, 255, 255, .88); box-shadow: 0 1px 4px rgba(0, 0, 0, .3); z-index: -1; }
main > div.relative.bg-secondary > button[class*="left-3"] svg { position: relative; }
@media (min-width: 640px) {
  main > div.relative.bg-secondary + section > .\-mt-6:first-child { top: calc(7.5rem + env(safe-area-inset-top, 0px)); }
  main:has(> div.relative.bg-secondary + section > .\-mt-6:first-child) div.sticky.z-10.bg-background { top: calc(12.5rem + env(safe-area-inset-top, 0px)) !important; }
}
@media (min-width: 768px) {
  main > div.relative.bg-secondary + section:has(> .\-mt-6:first-child) > * { margin-left: 1.5rem; margin-right: 1.5rem; }
  main > div.relative.bg-secondary + section > .\-mt-6:first-child { margin-left: 0; margin-right: 0; padding: 0 1.5rem; }
}
