/* Site-wide tweaks (loaded via layouts/_partials/hooks/head-end/custom-css.html) */

/* Hide the "Made with Hugo Blox / Create yours" line while keeping the copyright notice. */
footer p.powered-by:has(a[href*="hugoblox.com"]) {
  display: none !important;
}
/* Fallback for browsers without :has() support */
footer a[href*="hugoblox.com"] {
  display: none !important;
}

/* Homepage experience timeline: education is already shown in the biography block, so hide the duplicate. */
#home-experience .flex.flex-col.gap-16 > div.w-full:last-child:not(:first-child) {
  display: none !important;
}

/* "Back to home" link on sub-pages (no navbar on this site) */
.home-link {
  position: fixed;
  top: 1rem;
  left: 1rem;
  z-index: 50;
  padding: .45rem .9rem;
  border-radius: 9999px;
  font-size: .9rem;
  font-weight: 600;
  color: #e5e7eb;
  background: rgba(30, 41, 59, .85);
  border: 1px solid rgba(148, 163, 184, .25);
  backdrop-filter: blur(6px);
  text-decoration: none;
}
.home-link:hover { background: rgba(51, 65, 85, .95); color: #fff; }

/* Keep the 6 profile icons on a single row on phones */
@media (max-width: 480px) {
  #home-bio .flex.flex-wrap.justify-center.gap-4 { gap: .6rem; flex-wrap: nowrap; }
  #home-bio .flex.flex-wrap.justify-center.gap-4 > a { width: 2.75rem; height: 2.75rem; flex: 0 0 auto; }
}

/* Restore bullets for markdown lists inside talk/publication abstracts */
.max-w-prose.grid ul { list-style: disc; padding-left: 1.25rem; margin: .25rem 0; }
.max-w-prose.grid ul li { margin: .35rem 0; }
.max-w-prose.grid p + p { margin-top: .6rem; }

/* Profile badge: replace the device-dependent 🩺 emoji with a fixed stethoscope icon in the site blue */
#home-bio .avatar-emoji {
  font-size: 0 !important;
  color: transparent !important;
  background: #0f172a !important;
  border: 1px solid color-mix(in oklch, var(--color-primary-400) 45%, transparent);
  display: flex !important;
  align-items: center;
  justify-content: center;
}
#home-bio .avatar-emoji::before {
  content: "";
  width: 22px;
  height: 22px;
  background-color: var(--color-primary-400, #60a5fa);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M11 2v2'/%3E%3Cpath d='M5 2v2'/%3E%3Cpath d='M5 3H4a2 2 0 0 0-2 2v4a6 6 0 0 0 12 0V5a2 2 0 0 0-2-2h-1'/%3E%3Cpath d='M8 15a6 6 0 0 0 12 0v-3'/%3E%3Ccircle cx='20' cy='10' r='2'/%3E%3C/svg%3E") center / contain no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M11 2v2'/%3E%3Cpath d='M5 2v2'/%3E%3Cpath d='M5 3H4a2 2 0 0 0-2 2v4a6 6 0 0 0 12 0V5a2 2 0 0 0-2-2h-1'/%3E%3Cpath d='M8 15a6 6 0 0 0 12 0v-3'/%3E%3Ccircle cx='20' cy='10' r='2'/%3E%3C/svg%3E") center / contain no-repeat;
}

/* Research Projects: title-only cards, so use a slimmer header band and smaller icon */
#projects .relative.h-48 { height: 6.5rem; }
#projects .relative.h-48 svg { width: 3rem; height: 3rem; }
