/* Deliberately minimal. The final look is an open question (pending
   Michigan Medicine branding/accessibility requirements); this file
   exists so structure can be judged, not as a design commitment. */

:root {
  --blue: #00274c;      /* UMich blue */
  --maize: #ffcf01;     /* matches the official Michigan Medicine lockup */
  --link: #2f65a7;      /* readable link blue */
  --text: #212529;
  --muted: #6c757d;
  --rule: #dee2e6;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
               Helvetica, Arial, sans-serif;
  line-height: 1.6;
  color: var(--text);
}

.container {
  max-width: 60rem;
  margin: 0 auto;
  padding: 0 1.25rem;
}

a { color: var(--link); }

/* Header / nav

   Two rows on one navy band. The brand row opposes the two institutions
   across the bar — Michigan Medicine at the left edge, the UDUS seal at
   the right — with the lab's name set as type between them. The nav then
   gets a full row of its own, since both corners are spoken for. */

.site-header { background: var(--blue); }

/* The nameplate is centred in the gap between the two marks, not on the
   bar's geometric centre. The Michigan Medicine lockup is a wide
   horizontal block and the seal is a compact circle, so true centring
   leaves a thin margin on the left and a wide one on the right — the eye
   reads that as off-centre-left. Balancing the whitespace is what looks
   centred. --np-shift trims the result by hand if needed. */
.brand-row {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  padding-top: 1.25rem;
  padding-bottom: 1.25rem;
  --np-shift: 0px;
}

.brand-inst {
  flex: none;
  display: block;
  line-height: 0;
}

.brand-inst img { height: 36px; width: auto; display: block; }

.brand-inst:focus-visible,
.brand-seal:focus-visible {
  outline: 2px solid var(--maize);
  outline-offset: 4px;
}

/* The seal is circular, so it carries less visual mass than a rectangle
   of the same height — it is sized up to read as the equal partner. */
.brand-seal {
  flex: none;
  height: 96px;
  width: auto;
  display: block;
}

.nameplate-slot {
  flex: 1 1 auto;
  display: flex;
  justify-content: center;
  min-width: 0;
}

.nameplate {
  display: inline-flex;
  align-items: center;
  color: var(--maize);
  text-decoration: none;
  white-space: nowrap;
  position: relative;
  left: var(--np-shift);
}

.np-acronym,
.np-full {
  font-size: 0.9375rem;
  letter-spacing: 0.19em;
  text-transform: uppercase;
}

.np-acronym { font-weight: 700; }

.np-full {
  font-weight: 600;
  /* Letter-spacing adds a trailing gap after the final character;
     pulling it back keeps the optical centring honest. */
  margin-right: -0.19em;
}

.np-rule {
  width: 1px;
  height: 14px;
  background: rgba(255, 207, 1, 0.45);
  margin: 0 0.875rem 0 0.5rem;
}

.nameplate:focus-visible {
  outline: 2px solid var(--maize);
  outline-offset: 4px;
}

.nav-row {
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  padding-top: 0.7rem;
  padding-bottom: 0.7rem;
}

.site-header nav {
  display: flex;
  flex-wrap: wrap;
  gap: 1.125rem;
}

.site-header nav a {
  color: #fff;
  text-decoration: none;
  opacity: 0.85;
}

.site-header nav a:hover { opacity: 1; }

.site-header nav a.active {
  opacity: 1;
  border-bottom: 2px solid var(--maize);
  padding-bottom: 3px;
}

/* Below the tablet breakpoint the expansion is dropped and the acronym
   carries the name on its own — it is the form visitors arrive with, and
   the full name still appears in the page h1. */
@media (max-width: 48rem) {
  .brand-row {
    gap: 0.75rem;
    padding-top: 0.9rem;
    padding-bottom: 0.9rem;
  }
  .brand-inst img { height: 28px; }
  .brand-seal { height: 60px; }
  .np-rule,
  .np-full { display: none; }
}

@media (max-width: 30rem) {
  .brand-inst img { height: 22px; }
  .brand-seal { height: 48px; }
}

main { padding: 2rem 0 3rem; }

/* People — one person per row, portrait photo left, text right,
   matching the live Google Sites layout. */

.person {
  display: flex;
  gap: 2.25rem;
  align-items: flex-start;
  margin: 0 0 2.75rem;
}

/* Fixed-width photo column. Source headshots vary (3:4, 2:3, and one
   square), so the 3:4 crop normalises the column edge across rows —
   the live site's photos are portrait, not square. */
.person-photo {
  flex: 0 0 170px;
  width: 170px;
}

.person-photo img {
  display: block;
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  border-radius: 0.375rem;
}

.person-body {
  flex: 1 1 auto;
  min-width: 0;
}

.person-body h3 {
  margin: 0 0 0.4rem;
  font-weight: 600;
}

.person-role,
.person-meta {
  margin: 0 0 0.35rem;
  color: var(--muted);
  font-size: 0.95rem;
}

.person-meta a { margin: 0 0.1rem; }

.person-bio {
  margin: 0.7rem 0 0;
  font-size: 0.95rem;
}

@media (max-width: 40rem) {
  .person { flex-direction: column; gap: 0.9rem; }
}

/* Publications */

.pub-list li { margin-bottom: 0.75rem; }

.pub-links a { margin-right: 0.75rem; font-size: 0.9rem; }

/* Research */

/* Research landing cards: image and text share the row 50/50. */
.project {
  display: flex;
  gap: 1.75rem;
  align-items: center;
  border-bottom: 1px solid var(--rule);
  padding: 1.75rem 0;
}

.project:last-child { border-bottom: none; }

.project-thumb {
  flex: 1 1 50%;
  max-width: 50%;
  display: block;
}

.project-thumb img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 0.5rem;
}

.project-body { flex: 1 1 50%; min-width: 0; }

.project-body h2 { margin: 0 0 0.5rem; }

.project-body p:last-child { margin-bottom: 0; }

@media (max-width: 40rem) {
  .project { flex-direction: column; gap: 0.9rem; align-items: stretch; }
  .project-thumb { max-width: 100%; }
}

/* Research sub-page figures: cap size so 1280px images don't dominate. */
.project-content img {
  display: block;
  max-width: 600px;
  width: 100%;
  height: auto;
  margin: 1.5rem 0 0.5rem;
  border-radius: 0.375rem;
}

.breadcrumb { font-size: 0.9rem; }

/* Contact map */

.map-embed {
  margin: 1.5rem 0 0.75rem;
}

.map-embed iframe {
  display: block;
  width: 100%;
  border: 0;
  border-radius: 0.5rem;
}

/* Footer — navy, matching the header so the maize logos read on it. */

.site-footer {
  background: var(--blue);
  padding: 2rem 0;
  color: #c7d0da;
  font-size: 0.9rem;
  text-align: center;
}

.site-footer .footer-m {
  height: 40px;
  width: auto;
  margin-bottom: 0.75rem;
}

.site-footer p { margin: 0.25rem 0; }

.site-footer a { color: var(--maize); }
