
/* === Minimal styles for banner + overlapping avatar profile card === */

:root {
  --card-max: 800px;
  --card-radius: 8px;
  --elev: 0 2px 6px rgba(0,0,0,0.12);
  --pad: 20px;
}

/* Base */
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body { font-family: system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, sans-serif; color: #111; background: #f6f7f8; line-height: 1.5; }
a { color: inherit; }
ul { margin: 0.5rem 0 0; padding-left: 1.2rem; }

/* Banner uses the image's intrinsic size */
.banner { position: relative; }
.banner-img { display: block; width: auto; height: auto; max-width: 100%; margin: 0 auto; }

/* Unified profile card */
.profile-card {
  position: relative;
  max-width: var(--card-max);
  margin: -75px auto 24px;  /* overlap the banner slightly */
  background: #fff;
  border-radius: var(--card-radius);
  box-shadow: var(--elev);
  padding: 90px var(--pad) var(--pad); /* space above for avatar */
}

.header-row { display: flex; align-items: flex-end; gap: 16px; }

/* Overlapping avatar (left-aligned) */
.profile-card .profile-photo {
  position: absolute;
  top: -75px;           /* how much to overlap into banner */
  left: var(--pad);
  width: 150px;
  height: 150px;
  border-radius: 50%;
  object-fit: cover;
  border: 5px solid #fff;   /* white ring */
  box-shadow: 0 2px 6px rgba(0,0,0,0.15);
}

/* Title area to the right of avatar */
.title-block h1, .title-block h1 { margin: 0; }
.title-block h1 { font-size: 1.8rem; font-weight: 700; }
.title-block h2 { font-size: 1.2rem; font-weight: 500; color: #555; }

/* Body content inside the card */
.profile-body { margin-top: 12px; }

/* Responsive tweaks */
@media (max-width: 768px) {
  .profile-card { margin-top: -50px; padding-top: 70px; }
  .profile-card .profile-photo { width: 110px; height: 110px; top: -55px; }
  .title-block h1 { font-size: 1.5rem; }
}
