/* =============================================================
   AIMHealth design tokens + component CSS.
   Loaded AFTER /css/main.css — overrides the legacy beautiful-jekyll
   theme where needed and adds the redesigned page components.

   Touchpoints:
     - Root tokens (color, type, spacing)
     - Navbar override (lockup)
     - Footer override (compliant)
     - Page-specific styles (hero, focus, people, pubs, contact)

   When the licensed Helvetica Neue Roman + Granjon Roman are
   available, add their @font-face blocks above the :root rule
   and they will be picked up automatically through the stack.
   ============================================================= */

@import url('https://fonts.googleapis.com/css2?family=EB+Garamond:ital,wght@0,400;0,500;0,600;1,400&family=Inter:wght@300;400;500;600;700&display=swap');

:root {
  /* Brand colors */
  --ucsf-navy:    #052049;
  --ucsf-teal:    #18A3AC;
  --ucsf-blue:    #178CCB;

  /* Tints */
  --teal-tint:    #E8F4F5;
  --navy-tint:    #EAEEF4;

  /* Neutrals */
  --white:    #FFFFFF;
  --gray-50:  #F7F8FA;
  --gray-100: #EDEFF3;
  --gray-200: #D6DCE4;
  --gray-300: #B6BFCC;
  --gray-400: #8693A5;
  --gray-500: #5F5F5F;
  --gray-600: #3F4855;
  --gray-700: #232A35;

  /* Type. Helvetica Neue + Granjon Roman are the licensed UCSF identity faces;
     Inter + EB Garamond ship via Google Fonts as the live fallback. */
  --font-sans:    "Helvetica Neue", "HelveticaNeue-Roman", "Inter", Helvetica, Arial, sans-serif;
  --font-display: "Granjon LT Std", "Granjon", "EB Garamond", Garamond, Georgia, serif;
  --font-mono:    ui-monospace, "SF Mono", Menlo, Consolas, monospace;

  /* Spacing (4px base) */
  --sp-1: 4px; --sp-2: 8px; --sp-3: 12px; --sp-4: 16px; --sp-5: 24px;
  --sp-6: 32px; --sp-7: 48px; --sp-8: 64px; --sp-9: 96px;

  /* Radii */
  --r-sm: 2px; --r-md: 6px; --r-lg: 12px; --r-pill: 999px;

  /* Shadows */
  --shadow-card: 0 1px 2px rgba(5, 32, 73, 0.06), 0 4px 12px rgba(5, 32, 73, 0.06);
}

/* ============================================================
   GLOBAL OVERRIDES — undo the loudest beautiful-jekyll choices.
   Be precise: don't break the existing /_posts and /tags pages.
   ============================================================ */

/* Body type. main.css used Helvetica/Arial @ font-weight 200 — the redesign
   uses our system stack with sensible weights. */
body {
  font-family: var(--font-sans);
  font-size: 16px;
  color: var(--gray-700);
  -webkit-font-smoothing: antialiased;
}

/* Headings — display face. main.css forced font-weight 200; we want 400.
   Note: keep heading COLOR out of this base rule so component-specific
   colors (white in hero, white in footer) don't have to fight an aggressive
   `color: navy` global. Component-specific heading colors are below. */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 400;
  letter-spacing: -0.005em;
}

/* Default heading color for the redesigned pages */
.aim-page h1, .aim-page h2, .aim-page h3, .aim-page h4 { color: var(--ucsf-navy); }

/* Hero is navy-background, so headings inside it are white */
.aim-hero h1, .aim-hero h2, .aim-hero h3 { color: #ffffff !important; }

/* Legacy beautiful-jekyll pages (posts, tags) still want navy headings */
.intro-header h1, .post-preview h1, .post-preview h2 { color: var(--ucsf-navy); }

/* Link treatment — main.css had `text-decoration: underline !important;` on every link
   in electric blue. Soften it: underline on hover only, teal as the accent. */
a,
a:link {
  color: var(--ucsf-teal);
  text-decoration: none !important;
  transition: color 120ms ease;
}
a:hover,
a:focus {
  color: var(--ucsf-navy);
  text-decoration: underline !important;
  text-underline-offset: 2px;
}

/* ============================================================
   SHARED — max-width content shell
   Sections render with full-bleed backgrounds (e.g. the navy hero)
   but their *padding* is what bounds content to ~1320px on wide
   monitors. On narrow viewports the padding collapses to a 56px
   gutter. No HTML wrapper needed.

   .aim-shell exists for places where we DO want an explicit wrapper
   (a nested grid or a constrained text column inside a wider section).
   ============================================================ */

.aim-shell {
  max-width: 1320px;
  margin: 0 auto;
  padding: 0 56px;
  box-sizing: border-box;
}
@media (max-width: 700px) {
  .aim-shell { padding: 0 24px; }
}

/* Constrain content area of every redesigned full-bleed section by widening
   the section's own horizontal padding on wide viewports. */
.aim-hero,
.aim-home-focus,
.aim-home-pubs,
.aim-focus-header,
.aim-people-hero,
.aim-people-body,
.aim-pubs-hero,
.aim-pubs-body,
.aim-contact-hero,
.aim-contact-grid,
.aim-contact-inquiries {
  padding-left: max(56px, calc(50vw - 660px));
  padding-right: max(56px, calc(50vw - 660px));
}
@media (max-width: 700px) {
  .aim-hero,
  .aim-home-focus,
  .aim-home-pubs,
  .aim-focus-header,
  .aim-people-hero,
  .aim-people-body,
  .aim-pubs-hero,
  .aim-pubs-body,
  .aim-contact-hero,
  .aim-contact-grid,
  .aim-contact-inquiries {
    padding-left: 24px;
    padding-right: 24px;
  }
}

/* ============================================================
   NAVBAR OVERRIDE — lockup
   ============================================================ */

/* Kill the 10px bottom rule and tighten the navbar so the lockup sits
   on a quiet hairline like the rest of the site. */
.navbar-custom { border-bottom: 1px solid var(--gray-200) !important; }
.navbar-custom { background: var(--white) !important; }

/* Match the navbar's inner container width to the hero / page content
   width so the lockup left-edge aligns with the eyebrow + headline below.
   main.css caps this at 1230px which is 90px narrower than our content
   shell at 1320px. */
.navbar-custom .container-fluid {
  max-width: 1320px !important;
  padding-left: 56px !important;
  padding-right: 56px !important;
  margin-left: auto !important;
  margin-right: auto !important;
}
@media (max-width: 700px) {
  .navbar-custom .container-fluid {
    padding-left: 24px !important;
    padding-right: 24px !important;
  }
}

/* Navbar-brand on Bootstrap has padding-left: 15px which pushes the lockup
   inboard of the container's own padding. Zero it. */
.navbar-custom .navbar-brand,
.navbar-custom .navbar-brand-logo { padding-left: 0 !important; margin-left: 0 !important; }

/* The lockup itself — rendered by _includes/nav.html. The UCSF mark is
   omitted (it's already in the master banner above); the lockup is the
   department eyebrow stacked over a prominent group line. The group line
   carries the visual hierarchy of the navbar. */
.lab-lockup {
  display: flex !important;
  align-items: center !important;
  padding: 14px 0 !important;
  line-height: normal !important;
}
.lab-lockup .text {
  display: flex !important;
  flex-direction: column !important;
  line-height: 1.15 !important;
  text-align: left !important;
}
.lab-lockup .eyebrow {
  display: block !important;
  font-family: var(--font-sans) !important;
  font-size: 10px !important;
  letter-spacing: 0.14em !important;
  text-transform: uppercase !important;
  font-weight: 600 !important;
  color: var(--gray-500) !important;
  margin-bottom: 5px !important;
  white-space: nowrap;
}
.lab-lockup .group {
  display: block !important;
  font-family: var(--font-display) !important;
  font-weight: 500 !important;
  font-size: 24px !important;
  color: var(--ucsf-navy) !important;
  letter-spacing: -0.01em !important;
  line-height: 1.05 !important;
  white-space: nowrap;
}

/* Nav links — 16px so they read at a glance without competing with the
   24px group name in the lockup. Vertical padding centers them on the
   ~72px lockup row. */
.navbar-custom .nav li a {
  text-transform: none !important;
  font-family: var(--font-sans);
  font-size: 16px !important;
  font-weight: 500 !important;
  letter-spacing: 0 !important;
  color: var(--ucsf-navy) !important;
  padding-top: 26px !important;
  padding-bottom: 26px !important;
  position: relative;
}
.navbar-custom .nav li a:hover,
.navbar-custom .nav li a:focus,
.navbar-custom .nav li.active a {
  color: var(--ucsf-teal) !important;
  background: transparent !important;
}
.navbar-custom .nav li a::after {
  content: "";
  position: absolute;
  left: 15px;
  right: 15px;
  bottom: 14px;
  height: 2px;
  background: transparent;
  transition: background 120ms ease;
}
.navbar-custom .nav li a:hover::after,
.navbar-custom .nav li.active a::after {
  background: var(--ucsf-teal);
}

/* The footer mini-lockup keeps the white UCSF mark (good contrast against navy)
   since the master banner isn't repeated at the foot of the page. */
.aim-footer .lockup-mini { display: flex !important; align-items: center !important; gap: 12px !important; }
.aim-footer .lockup-mini .text { display: flex !important; flex-direction: column !important; line-height: 1.2; }
.aim-footer .lockup-mini .eyebrow { display: block !important; }
.aim-footer .lockup-mini .group { display: block !important; }

/* Make sure the navbar-brand-logo container doesn't impose its own sizing */
.navbar-custom .navbar-brand-logo,
.navbar-custom .navbar-brand.navbar-brand-logo {
  height: auto !important;
  padding: 0 !important;
  font-size: 14px !important;
  line-height: 1 !important;
}
.navbar-custom .navbar-brand-logo:hover,
.navbar-custom .navbar-brand-logo:focus { background: transparent !important; text-decoration: none !important; }

/* ============================================================
   FOOTER OVERRIDE — compliant
   ============================================================ */

footer {
  border-top: 0 !important;
  background: var(--ucsf-navy) !important;
  color: rgba(255,255,255,0.75);
  padding: 0 !important;
  margin-top: 80px !important;
}
footer p.copyright,
footer p.text-muted,
footer p.theme-by,
footer .list-inline { color: rgba(255,255,255,0.7) !important; }
footer a { color: var(--ucsf-teal) !important; }

.aim-footer { padding: 36px 0 22px; }
.aim-footer .lf-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 32px;
  padding-bottom: 22px;
  border-bottom: 1px solid rgba(255,255,255,0.15);
}
.aim-footer .lockup-mini {
  display: flex;
  align-items: center;
  gap: 12px;
}
.aim-footer .lockup-mini img { height: 32px; }
.aim-footer .lockup-mini .rule {
  width: 1px;
  height: 30px;
  background: rgba(255,255,255,0.4);
}
.aim-footer .lockup-mini .eyebrow {
  font-size: 9px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 600;
  color: rgba(255,255,255,0.55);
  margin-bottom: 2px;
}
.aim-footer .lockup-mini .group {
  font-family: var(--font-display);
  font-size: 14px;
  color: rgba(255,255,255,0.92);
}
.aim-footer .lf-contact {
  font-size: 11px;
  color: rgba(255,255,255,0.75);
  text-align: right;
  line-height: 1.5;
  max-width: 320px;
}
.aim-footer .lf-contact b {
  color: #fff;
  font-weight: 600;
  display: block;
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 4px;
}
.aim-footer .lf-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 16px;
  gap: 24px;
  flex-wrap: wrap;
}
.aim-footer .lf-copy { font-size: 11px; color: rgba(255,255,255,0.55); }
.aim-footer .lf-required {
  display: flex;
  gap: 22px;
  font-size: 11px;
  flex-wrap: wrap;
}
.aim-footer .lf-required a {
  color: rgba(255,255,255,0.75) !important;
  text-decoration: none !important;
}
.aim-footer .lf-required a:hover {
  color: #fff !important;
  text-decoration: underline !important;
}

/* ============================================================
   PAGE CHROME — shared
   ============================================================ */

/* Bypass the legacy `.main-content { padding-top: 170px }` for redesigned pages
   so our hero sections sit flush with the navbar. */
.aim-page { padding-top: 0 !important; }

/* Full-bleed escape inside Bootstrap's container */
.aim-bleed {
  width: 100vw;
  position: relative;
  left: 50%;
  right: 50%;
  margin-left: -50vw;
  margin-right: -50vw;
}

.aim-eyebrow {
  font-family: var(--font-sans);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--ucsf-teal);
}
.aim-h1 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 52px;
  line-height: 1.1;
  letter-spacing: -0.01em;
  color: var(--ucsf-navy);
  margin: 14px 0 16px;
}
.aim-lede {
  font-family: var(--font-sans);
  font-size: 18px;
  line-height: 1.55;
  color: var(--gray-600);
  margin: 0;
  max-width: 64ch;
}

/* ============================================================
   HOME — hero
   ============================================================ */

.aim-hero {
  background: var(--ucsf-navy);
  color: #fff;
  padding-top: 110px;
  padding-bottom: 96px;
  margin-top: 113px; /* 40 UCSF banner + 72 lockup row + 1 border */
  position: relative;
  overflow: hidden;
}
.aim-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url('/img/cover-particles-blue.jpeg');
  background-size: cover;
  background-position: center;
  opacity: 0.5;
  mix-blend-mode: lighten;
  pointer-events: none;
  z-index: 0;
}
.aim-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(5,32,73,0.55) 0%, rgba(5,32,73,0.92) 100%);
  pointer-events: none;
  z-index: 0;
}
.aim-hero > * { position: relative; z-index: 1; }
.aim-hero .eyebrow {
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--ucsf-teal);
  margin-bottom: 20px;
}
.aim-hero h1 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 56px;
  line-height: 1.08;
  letter-spacing: -0.015em;
  color: #fff;
  margin: 0 0 22px;
  max-width: 22ch;
}
.aim-hero h1 em { font-style: italic; color: #B4E8EC; }
.aim-hero p.subhead {
  font-size: 18px;
  line-height: 1.55;
  color: rgba(255,255,255,0.85);
  max-width: 60ch;
  margin: 0 0 36px;
}
.aim-hero .stats {
  display: flex;
  gap: 56px;
  padding-top: 24px;
  border-top: 1px solid rgba(255,255,255,0.15);
  max-width: 700px;
}
.aim-hero .stat .num {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 36px;
  color: #fff;
  line-height: 1;
}
.aim-hero .stat .lbl {
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.65);
  margin-top: 6px;
  font-weight: 500;
}

/* Home focus grid */
.aim-home-focus {
  padding-top: 64px;
  padding-bottom: 56px;
}
.aim-home-focus .head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 32px;
  gap: 24px;
}
.aim-home-focus h2 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 36px;
  line-height: 1.15;
  color: var(--ucsf-navy);
  margin: 0;
}
.aim-home-focus a.viewall {
  font-size: 13px;
  font-weight: 500;
  color: var(--ucsf-teal);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.aim-home-focus .grid6 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--gray-200);
  border: 1px solid var(--gray-200);
}
.aim-home-focus .grid6 .cell {
  background: var(--white);
  padding: 22px 22px 24px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-height: 160px;
  text-decoration: none !important;
  color: inherit;
}
.aim-home-focus .grid6 .cell:hover { background: var(--gray-50); }
.aim-home-focus .grid6 .cell .num {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 13px;
  color: var(--ucsf-teal);
}
.aim-home-focus .grid6 .cell h3 {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 18px;
  line-height: 1.25;
  color: var(--ucsf-navy);
  margin: 0;
}
.aim-home-focus .grid6 .cell p {
  font-size: 12.5px;
  line-height: 1.5;
  color: var(--gray-600);
  margin: 0;
}
.aim-home-focus .grid6 .cell .arrow {
  margin-top: auto;
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--ucsf-navy);
}

/* Home selected publications strip */
.aim-home-pubs {
  padding-top: 40px;
  padding-bottom: 64px;
  border-top: 1px solid var(--gray-200);
}
.aim-home-pubs .head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 24px;
  margin-bottom: 18px;
}
.aim-home-pubs .head h2 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 26px;
  color: var(--ucsf-navy);
  margin: 0;
}
.aim-home-pubs a.viewall {
  font-size: 13px;
  font-weight: 500;
  color: var(--ucsf-teal);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  white-space: nowrap;
}
.aim-home-pubs .list { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.aim-home-pubs .pub {
  padding: 14px 0;
  border-top: 1px solid var(--gray-200);
}
.aim-home-pubs .pub .t {
  font-size: 13.5px;
  font-weight: 600;
  color: var(--ucsf-navy);
  line-height: 1.4;
}
.aim-home-pubs .pub .a {
  font-size: 12px;
  color: var(--gray-500);
  margin-top: 4px;
  line-height: 1.5;
}
.aim-home-pubs .pub .j {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 12px;
  color: var(--gray-600);
  margin-top: 2px;
}
.aim-home-pubs .pub-actions {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin-top: 10px;
}
.aim-home-pubs .pub-actions a {
  padding: 4px 9px;
  border: 1px solid var(--gray-200);
  border-radius: 4px;
  font-size: 11px;
  color: var(--ucsf-navy);
  font-weight: 600;
  letter-spacing: 0.04em;
  text-decoration: none !important;
}
.aim-home-pubs .pub-actions a:hover {
  background: var(--ucsf-navy);
  color: #fff !important;
  border-color: var(--ucsf-navy);
}

/* ============================================================
   FOCUS AREAS
   ============================================================ */

.aim-focus-header {
  padding-top: 149px; /* navbar clearance (113px) + 36px breathing room */
  padding-bottom: 36px;
  border-bottom: 1px solid var(--gray-200);
}
.aim-focus-body {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 56px;
  padding: 48px 56px 64px;
  max-width: 1320px;
  margin: 0 auto;
}
.aim-focus-toc {
  position: sticky;
  top: 140px;
  align-self: start;
}
.aim-focus-toc .toc-label {
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--gray-500);
  margin-bottom: 14px;
}
.aim-focus-toc ol {
  list-style: none;
  padding: 0;
  margin: 0;
  border-top: 1px solid var(--gray-200);
}
.aim-focus-toc ol li {
  border-bottom: 1px solid var(--gray-200);
  padding: 10px 0;
  display: flex;
  gap: 12px;
  align-items: flex-start;
}
.aim-focus-toc ol li .n {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 13px;
  color: var(--ucsf-teal);
  width: 22px;
  flex-shrink: 0;
}
.aim-focus-toc ol li a {
  font-size: 13px;
  line-height: 1.35;
  color: var(--ucsf-navy) !important;
  font-weight: 500;
}
.aim-focus-toc ol li a:hover { color: var(--ucsf-teal) !important; }

.aim-focus-areas {
  display: flex;
  flex-direction: column;
  gap: 56px;
}
.aim-focus-area {
  /* When jumped to via #anchor from the home grid, leave room for the
     fixed UCSF banner + navbar so the "NN · Focus area" eyebrow lands
     just below the chrome instead of underneath it. Same idea for
     .aim-person and .aim-project below. */
  scroll-margin-top: 140px;
  padding-bottom: 56px;
  border-bottom: 1px solid var(--gray-200);
}
.aim-focus-area:last-child { border-bottom: 0; padding-bottom: 0; }
.aim-focus-area .area-num {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 14px;
  color: var(--ucsf-teal);
  letter-spacing: 0.04em;
  margin-bottom: 6px;
}
.aim-focus-area h2 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 34px;
  line-height: 1.12;
  letter-spacing: -0.005em;
  color: var(--ucsf-navy);
  margin: 0 0 16px;
  max-width: 22ch;
}
.aim-focus-area .body-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 40px;
  align-items: start;
}
.aim-focus-area .body-grid p {
  font-size: 14.5px;
  line-height: 1.65;
  color: var(--gray-700);
  margin: 0 0 12px;
}
.aim-focus-area .body-grid p strong { color: var(--ucsf-navy); font-weight: 600; }
.aim-focus-area .aside {
  background: var(--gray-50);
  border-left: 2px solid var(--ucsf-teal);
  padding: 18px 22px;
  border-radius: 0 4px 4px 0;
}
.aim-focus-area .aside .label {
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--gray-500);
  margin-bottom: 8px;
  display: block;
}
.aim-focus-area .aside ul {
  padding-left: 0;
  margin: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.aim-focus-area .aside ul li {
  font-size: 13px;
  color: var(--ucsf-navy);
  display: flex;
  gap: 8px;
  line-height: 1.4;
}
.aim-focus-area .aside ul li::before {
  content: "";
  flex-shrink: 0;
  width: 5px;
  height: 5px;
  background: var(--ucsf-teal);
  border-radius: 50%;
  margin-top: 7px;
}
.aim-focus-area .chip-row {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 14px;
}
.aim-focus-area .chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 10px;
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: 999px;
  font-size: 11.5px;
  color: var(--ucsf-navy);
  font-weight: 500;
}
.aim-focus-area .chip .d {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--ucsf-teal);
}

/* ============================================================
   PEOPLE — flat grid (no hierarchy)
   ============================================================ */

.aim-people-hero {
  padding-top: 149px;
  padding-bottom: 36px;
  border-bottom: 1px solid var(--gray-200);
}
.aim-people-body { padding-top: 48px; padding-bottom: 64px; }
.aim-people-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 28px 24px;
}
@media (max-width: 1000px) { .aim-people-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 700px)  { .aim-people-grid { grid-template-columns: repeat(2, 1fr); } }
.aim-person {
  scroll-margin-top: 140px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.aim-person .photo {
  width: 100%;
  aspect-ratio: 1 / 1;
  background: var(--gray-100);
  border-radius: 6px;
  overflow: hidden;
  margin-bottom: 12px;
}
.aim-person .photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 200ms ease;
}
.aim-person:hover .photo img { transform: scale(1.04); }
.aim-person .name {
  font-family: var(--font-sans);
  font-size: 14px;
  font-weight: 600;
  color: var(--ucsf-navy);
  line-height: 1.3;
}
.aim-person .pos {
  font-size: 12px;
  color: var(--gray-500);
  margin-top: 2px;
  line-height: 1.4;
}
.aim-person .socials {
  margin-top: 10px;
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.aim-person .socials a {
  width: 32px;
  height: 32px;
  border: 1px solid var(--gray-200);
  border-radius: 4px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #fff;
  text-decoration: none !important;
  transition: border-color 0.15s ease;
}
.aim-person .socials a:hover {
  border-color: var(--ucsf-navy);
  text-decoration: none !important;
}
/* Icons are full-color brand marks — size them uniformly here. */
.aim-person .socials svg { width: 18px; height: 18px; display: block; }

/* ============================================================
   PUBLICATIONS — year-grouped
   ============================================================ */

.aim-pubs-hero { padding-top: 149px; padding-bottom: 32px; }
.aim-pubs-body { padding-top: 0; padding-bottom: 64px; }
.aim-pubs-filter {
  display: flex;
  gap: 8px;
  align-items: center;
  border-bottom: 1px solid var(--gray-200);
  padding-bottom: 22px;
  margin-bottom: 12px;
  flex-wrap: wrap;
}
.aim-pubs-filter .lbl {
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gray-500);
  font-weight: 600;
  margin-right: 8px;
}
.aim-pubs-filter .chip {
  padding: 5px 11px;
  border-radius: 999px;
  border: 1px solid var(--gray-200);
  font-size: 12px;
  color: var(--ucsf-navy);
  font-weight: 500;
  cursor: pointer;
  user-select: none;
  background: var(--white);
  line-height: 1.3;
}
.aim-pubs-filter .chip:hover {
  border-color: var(--ucsf-navy);
}
.aim-pubs-filter .chip.active {
  background: var(--ucsf-navy);
  color: #fff;
  border-color: var(--ucsf-navy);
}
.aim-pubs-year { padding: 28px 0 16px; }
.aim-pubs-year-head {
  display: flex;
  align-items: baseline;
  gap: 18px;
  margin-bottom: 18px;
}
.aim-pubs-year-head .year {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 44px;
  color: var(--ucsf-navy);
  letter-spacing: -0.01em;
  line-height: 1;
}
.aim-pubs-year-head .count {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 14px;
  color: var(--gray-500);
}
.aim-pub-row {
  display: grid;
  grid-template-columns: 60px 1fr auto;
  gap: 24px;
  padding: 18px 0;
  border-bottom: 1px solid var(--gray-200);
  align-items: start;
}
.aim-pub-row .idx {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 13px;
  color: var(--gray-500);
  padding-top: 4px;
}
.aim-pub-row .pub-t {
  font-size: 15.5px;
  font-weight: 600;
  color: var(--ucsf-navy);
  line-height: 1.4;
}
.aim-pub-row .pub-a {
  font-size: 12.5px;
  color: var(--gray-500);
  margin-top: 6px;
  line-height: 1.5;
}
.aim-pub-row .pub-j {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 13px;
  color: var(--gray-700);
  margin-top: 4px;
}
.aim-pub-row .pub-actions {
  display: flex;
  gap: 6px;
  padding-top: 4px;
  flex-wrap: wrap;
}
.aim-pub-row .pub-actions a {
  padding: 5px 10px;
  border: 1px solid var(--gray-200);
  border-radius: 4px;
  font-size: 11.5px;
  color: var(--ucsf-navy) !important;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-decoration: none !important;
}
.aim-pub-row .pub-actions a:hover {
  background: var(--ucsf-navy);
  color: #fff !important;
  border-color: var(--ucsf-navy);
}
.aim-pub-row .tag {
  display: inline-block;
  padding: 2px 7px;
  background: var(--teal-tint);
  color: var(--ucsf-navy);
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  border-radius: 3px;
  margin-top: 8px;
}

/* ============================================================
   CONTACT
   ============================================================ */

.aim-contact-hero { padding-top: 149px; padding-bottom: 32px; }
.aim-contact-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 56px;
  padding-top: 24px;
  padding-bottom: 56px;
  align-items: start;
}
.aim-contact-grid h3 {
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 14px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gray-500);
  margin: 0 0 10px;
}
.aim-contact-grid p { font-size: 15px; line-height: 1.55; color: var(--gray-700); margin: 0 0 18px; }
.aim-contact-grid .big-email {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 30px;
  color: var(--ucsf-teal);
  letter-spacing: -0.005em;
}
.aim-contact-grid .addr {
  font-size: 14px;
  color: var(--gray-700);
  line-height: 1.55;
}
.aim-contact-grid .addr b {
  color: var(--ucsf-navy);
  font-weight: 600;
  display: block;
  margin-bottom: 4px;
}
.aim-contact-photo {
  margin: 0;
  border-radius: 8px;
  overflow: hidden;
  background: var(--gray-100);
}
.aim-contact-photo img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}
.aim-contact-photo figcaption {
  font-family: var(--font-sans);
  font-size: 12px;
  color: var(--gray-500);
  padding: 10px 4px 0;
  line-height: 1.4;
}

.aim-press-list {
  margin: 12px 0 0;
  padding: 0;
  border-top: 1px solid var(--gray-200);
}
.aim-press-row {
  display: grid;
  grid-template-columns: 130px 1fr;
  gap: 16px;
  align-items: baseline;
  padding: 12px 0;
  border-bottom: 1px solid var(--gray-200);
}
.aim-press-label {
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--gray-500);
}
.aim-press-body {
  font-size: 14.5px;
  color: var(--ucsf-navy);
  line-height: 1.5;
}

/* ============================================================
   Projects
   ============================================================ */
.aim-projects-hero {
  padding: 56px 0 32px;
}
.aim-projects-body {
  padding-bottom: 64px;
  display: flex;
  flex-direction: column;
  gap: 0;
}
.aim-project {
  scroll-margin-top: 140px;
  display: grid;
  grid-template-columns: 60px 1fr;
  gap: 32px;
  padding: 40px 0;
  border-top: 1px solid var(--gray-200);
  align-items: start;
}
.aim-project:last-child {
  border-bottom: 1px solid var(--gray-200);
}
.aim-project:has(.aim-project-figure) {
  grid-template-columns: 60px 1.6fr 1fr;
}
.aim-project-num {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 14px;
  color: var(--ucsf-teal);
  letter-spacing: 0.04em;
  padding-top: 6px;
}
.aim-project-title {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 28px;
  line-height: 1.18;
  letter-spacing: -0.005em;
  color: var(--ucsf-navy);
  margin: 0 0 14px;
  max-width: 28ch;
}
.aim-project-desc {
  font-size: 14.5px;
  line-height: 1.65;
  color: var(--gray-700);
  max-width: 68ch;
}
.aim-project-desc p {
  margin: 0 0 12px;
}
.aim-project-desc p:last-child {
  margin-bottom: 0;
}
.aim-project-contact {
  margin-top: 18px;
  padding-top: 14px;
  border-top: 1px solid var(--gray-200);
  display: flex;
  gap: 14px;
  align-items: baseline;
  font-size: 13.5px;
}
.aim-project-contact .label {
  font-size: 10.5px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--gray-500);
}
.aim-project-figure {
  background: var(--gray-100);
  border-radius: 6px;
  overflow: hidden;
}
.aim-project-figure img {
  display: block;
  width: 100%;
  height: auto;
}

/* ============================================================
   Responsive: stack everything below 900px
   ============================================================ */
@media (max-width: 900px) {
  .aim-focus-body { grid-template-columns: 1fr; padding: 32px 24px 48px; }
  .aim-focus-toc { position: static; }
  .aim-focus-area .body-grid { grid-template-columns: 1fr; gap: 20px; }
  .aim-home-focus .grid6 { grid-template-columns: repeat(2, 1fr); }
  .aim-home-pubs .list { grid-template-columns: 1fr; }
  .aim-contact-grid { grid-template-columns: 1fr; gap: 32px; }
  .aim-contact-inquiries { grid-template-columns: 1fr; }
  .aim-hero h1 { font-size: 38px; }
  .aim-h1 { font-size: 36px; }
}
