/* ============================================================================
 * ZIVOX — intern portal styles
 *
 * Loaded only by the intern portal. The shell comes from
 * backend-and-config/public/static/css/app.css and the primitives from
 * base.css.
 * ==========================================================================*/

/* ---------- Profile banner ---------- */
/* ---------- Portal profile banner ---------- */
.profile-banner {
  height: 96px; border-radius: var(--r-lg) var(--r-lg) 0 0;
  background: linear-gradient(120deg, #e8efff, #f2ecff 55%, #e8f7fd);
  position: relative; overflow: hidden;
}
.profile-banner::after {
  content: ''; position: absolute; inset: 0;
  background-image: linear-gradient(rgba(29,60,140,.05) 1px,transparent 1px),linear-gradient(90deg,rgba(29,60,140,.05) 1px,transparent 1px);
  background-size: 32px 32px;
  mask-image: radial-gradient(ellipse 70% 90% at 30% 0%, #000, transparent 80%);
  -webkit-mask-image: radial-gradient(ellipse 70% 90% at 30% 0%, #000, transparent 80%);
}
.profile-body { padding: 0 22px 22px; margin-top: -48px; position: relative; }

/* ---------- Profile header ----------
   Avatar overlaps the banner (negative margin above) so it reads as an
   identity card rather than a plain block. The photo is the focal point;
   the initials fallback keeps the exact same 72px geometry. */
.profile-head {
  display: flex; align-items: flex-end; justify-content: space-between;
  gap: 16px; flex-wrap: wrap;
}
.profile-id {
  display: flex; align-items: flex-end; gap: 16px;
  flex-wrap: nowrap; min-width: 0;
}
.profile-text { min-width: 0; padding-bottom: 4px; }
.profile-name {
  font-family: 'Sora', sans-serif; margin: 0;
  overflow-wrap: anywhere;
}
.profile-role { margin-top: 2px; overflow-wrap: anywhere; }
.profile-chips { display: flex; gap: 8px; margin-top: 8px; flex-wrap: wrap; }
.profile-body .av.lg { width: 76px; height: 76px; font-size: 25px; }
.profile-body .av-ring { box-shadow: var(--sh-3); }

@media (max-width: 560px) {
  .profile-banner { height: 80px; }
  .profile-body { padding: 0 16px 18px; margin-top: -40px; }
  .profile-head { align-items: flex-start; gap: 12px; }
  .profile-id { gap: 13px; }
  .profile-body .av.lg { width: 64px; height: 64px; font-size: 21px; }
  .profile-chips { margin-top: 7px; }
  .profile-head .btn { margin-bottom: 0; }
}
@media (max-width: 360px) {
  .profile-id { gap: 11px; }
  .profile-body .av.lg { width: 56px; height: 56px; font-size: 19px; }
}

/* ---------- Certificate thumbnail ---------- */
/* ---------- Certificate thumbnail ---------- */
.cert-thumb { border-radius: 10px; overflow: hidden; box-shadow: var(--sh-2); border: 1px solid var(--line); }
.cert-pending {
  aspect-ratio: 1.414/1;
  border-radius: 10px;
  border: 1.5px dashed rgba(20, 40, 90, .16);
  background: repeating-linear-gradient(-45deg, rgba(240,243,250,.7) 0 10px, rgba(255,255,255,.7) 10px 20px);
  display: grid; place-items: center;
  padding: 20px; text-align: center;
}

/* ---------- Status dot legend ---------- */
/* ---------- Status dot legend ---------- */
.legend { display: flex; flex-wrap: wrap; gap: 8px; }
.legend span { display: inline-flex; align-items: center; gap: 6px; font-size: 11.5px; color: var(--muted); }
.legend i { width: 8px; height: 8px; border-radius: 50%; display: inline-block; }
