/* ==========================================================================
   Nowick Research Group — site styles
   Light-only by design: the site is figure-heavy and every TOC graphic has a
   white background, so a dark theme would make the science look wrong.
   ========================================================================== */

:root{
  /* UCI palette */
  --uci-blue:#0064a4;
  --uci-blue-dark:#004c7d;
  --uci-gold:#ffd200;
  --navy:#0e2438;
  --navy-deep:#091a29;

  /* neutrals */
  --ink:#14181d;
  --ink-soft:#404a54;
  --muted:#6b757f;
  --line:#e2e7ec;
  --surface:#f6f8fa;
  --white:#fff;

  --container:1200px;
  --gutter:24px;
  --radius:10px;

  --shadow-sm:0 1px 2px rgba(14,36,56,.06), 0 2px 8px rgba(14,36,56,.05);
  --shadow-md:0 4px 12px rgba(14,36,56,.08), 0 12px 32px rgba(14,36,56,.07);

  --sans:"Inter","Inter var",-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,
         "Helvetica Neue",Arial,sans-serif;

  color-scheme:light;
}

*,*::before,*::after{box-sizing:border-box}

html{-webkit-text-size-adjust:100%;scroll-behavior:smooth}
@media (prefers-reduced-motion:reduce){
  html{scroll-behavior:auto}
  *,*::before,*::after{animation-duration:.01ms !important;transition-duration:.01ms !important}
}

body{
  margin:0;
  background:var(--white);
  color:var(--ink);
  font-family:var(--sans);
  font-size:17px;
  line-height:1.6;
  -webkit-font-smoothing:antialiased;
  text-rendering:optimizeLegibility;
}

img{max-width:100%;height:auto;display:block}

a{color:var(--uci-blue);text-decoration-thickness:1px;text-underline-offset:2px}
a:hover{color:var(--uci-blue-dark)}

:focus-visible{outline:3px solid var(--uci-blue);outline-offset:2px;border-radius:3px}

.container{max-width:var(--container);margin:0 auto;padding:0 var(--gutter)}

.skip-link{
  position:absolute;left:-9999px;top:0;z-index:200;
  background:var(--navy);color:#fff;padding:12px 18px;border-radius:0 0 8px 0;
}
.skip-link:focus{left:0}

/* ---------- section furniture ---------- */

.section{padding:88px 0}
.section--tint{background:var(--surface);border-block:1px solid var(--line)}

.section-head{
  display:flex;align-items:baseline;justify-content:space-between;
  gap:24px;flex-wrap:wrap;margin-bottom:36px;
}
.section-title{
  margin:0;font-size:clamp(26px,3.2vw,34px);line-height:1.15;
  letter-spacing:-.021em;font-weight:700;
}
.section-title::after{
  content:"";display:block;width:52px;height:4px;border-radius:2px;
  background:var(--uci-gold);margin-top:14px;
}
.section-link{font-weight:600;font-size:15px;white-space:nowrap}
.section-link::after{content:" →"}

.eyebrow{
  font-size:12px;font-weight:700;letter-spacing:.13em;text-transform:uppercase;
  color:var(--muted);margin:0 0 10px;
}

/* ---------- header ---------- */

.site-header{
  position:sticky;top:0;z-index:100;
  background:rgba(255,255,255,.92);
  backdrop-filter:saturate(180%) blur(12px);
  -webkit-backdrop-filter:saturate(180%) blur(12px);
  border-bottom:1px solid var(--line);
}
.header-inner{
  display:flex;align-items:center;justify-content:space-between;
  gap:24px;min-height:70px;
}

.wordmark{display:flex;align-items:center;gap:12px;text-decoration:none;color:inherit}
.wordmark:hover{color:inherit}
.wordmark-mark{flex:none}
.wordmark-text{display:flex;flex-direction:column;line-height:1.1}
.wordmark-name{font-weight:700;font-size:18px;letter-spacing:-.018em;color:var(--ink)}
.wordmark-sub{font-size:11.5px;font-weight:500;letter-spacing:.075em;
  text-transform:uppercase;color:var(--muted);margin-top:3px}

.nav-toggle{
  display:none;background:none;border:1px solid var(--line);border-radius:8px;
  padding:9px 11px;cursor:pointer;color:var(--ink);line-height:0;
}

.site-nav ul{display:flex;align-items:center;gap:4px;list-style:none;margin:0;padding:0}
.site-nav a{
  display:block;padding:9px 13px;border-radius:7px;
  font-size:15px;font-weight:550;color:var(--ink-soft);text-decoration:none;
  transition:background-color .15s ease,color .15s ease;
}
.site-nav a:hover{background:var(--surface);color:var(--ink)}
.site-nav a[aria-current="page"]{color:var(--uci-blue);background:rgba(0,100,164,.08)}

/* ---------- hero ---------- */

.hero{position:relative;isolation:isolate;background:var(--navy);overflow:hidden}
.hero-media{position:absolute;inset:0;z-index:-2}
.hero-media img{width:100%;height:100%;object-fit:cover;object-position:center 38%}
/* Which axis this trims depends on the viewport, so only one half of the
   value ever does anything:
     desktop, box ~2.2:1  - wider than the 4:3 photo, so cover trims TOP and
                            BOTTOM and the 38% is what places the faces.
     phone, box ~0.5:1    - taller than the photo, so cover trims the SIDES
                            and the 38% is ignored; only the 50% matters.
   Re-check the 38% whenever the group photo changes. */
.hero::after{
  content:"";position:absolute;inset:0;z-index:-1;
  background:
    /* Dark on the left so the headline reads, fading right to let the group
       photo through. The dark end was .90, which measured 16:1 against the
       white headline - far past the 4.5:1 that is needed, and heavy to look at.
       At .68 it is still 12:1, so the ramp survives with room to spare. */
    linear-gradient(105deg, rgba(9,26,41,.68) 0%, rgba(9,26,41,.58) 42%,
                            rgba(9,26,41,.40) 72%, rgba(9,26,41,.28) 100%),
    linear-gradient(to top, rgba(9,26,41,.55), rgba(9,26,41,0) 45%);
}
/* padding-block only: the shorthand would wipe out .container's side gutter
   and let hero text run to the screen edge on narrow viewports */
.hero-inner{padding-block:118px 104px;max-width:1040px}
.hero-eyebrow{
  color:var(--uci-gold);font-size:12.5px;font-weight:700;letter-spacing:.14em;
  text-transform:uppercase;margin:0 0 20px;
}
.hero h1{
  margin:0;color:#fff;font-weight:700;
  font-size:clamp(28px,3.9vw,50px);line-height:1.1;letter-spacing:-.028em;
  /* the headline sets its own two lines with <br>; balance would re-break them */
  text-wrap:initial;
}
.hero h1 .accent{color:var(--uci-gold)}
.hero-lede{
  margin:24px 0 0;color:rgba(255,255,255,.88);
  font-size:clamp(17px,1.9vw,20px);line-height:1.55;max-width:60ch;
}
.hero-actions{display:flex;flex-wrap:wrap;gap:14px;margin-top:36px}

.btn{
  display:inline-block;padding:14px 26px;border-radius:8px;
  font-size:15.5px;font-weight:650;text-decoration:none;
  transition:transform .12s ease,background-color .15s ease,box-shadow .15s ease;
}
.btn:active{transform:translateY(1px)}
.btn--primary{background:var(--uci-gold);color:var(--navy-deep);box-shadow:var(--shadow-sm)}
.btn--primary:hover{background:#ffdb33;color:var(--navy-deep);box-shadow:var(--shadow-md)}
.btn--ghost{background:rgba(255,255,255,.07);color:#fff;
  box-shadow:inset 0 0 0 1.5px rgba(255,255,255,.55)}
.btn--ghost:hover{background:rgba(255,255,255,.16);color:#fff}

/* ---------- research cards ---------- */

.card-grid{
  display:grid;gap:26px;
  /* 330px floor gives three columns at the 1200px container and two below
     ~1000px, so six cards read as 3x2 rather than an orphaned row of 4+2 */
  grid-template-columns:repeat(auto-fit,minmax(330px,1fr));
}
.card{
  display:flex;flex-direction:column;
  background:var(--white);border:1px solid var(--line);border-radius:var(--radius);
  overflow:hidden;box-shadow:var(--shadow-sm);
  transition:transform .16s ease,box-shadow .16s ease;
}
.card:hover{transform:translateY(-3px);box-shadow:var(--shadow-md)}
.card-figure{
  background:#fff;border-bottom:1px solid var(--line);
  aspect-ratio:16/10;padding:14px;
  /* flex items get min-height:auto, which lets a tall figure override
     aspect-ratio and knock the row out of alignment */
  flex:none;min-height:0;
}
/* scientific figures are line art on white: contain, never crop */
.card-figure img{width:100%;height:100%;object-fit:contain}
.card-rule{height:4px;background:var(--uci-blue)}
.card-body{padding:20px 22px 26px}
.card h3{margin:0 0 9px;font-size:18px;line-height:1.28;letter-spacing:-.012em;font-weight:660}
.card p{margin:0;color:var(--ink-soft);font-size:15.5px;line-height:1.55}

/* ---------- publications ---------- */

.pub-list{display:grid;gap:26px;list-style:none;margin:0;padding:0}
.pub{
  display:grid;grid-template-columns:230px 1fr;gap:26px;align-items:start;
  background:var(--white);border:1px solid var(--line);border-radius:var(--radius);
  padding:22px;box-shadow:var(--shadow-sm);
}
.pub-figure{
  background:#fff;border:1px solid var(--line);border-radius:7px;
  aspect-ratio:16/9;padding:9px;
}
.pub-figure img{width:100%;height:100%;object-fit:contain}
.pub-title{margin:0 0 8px;font-size:18px;line-height:1.32;letter-spacing:-.011em;font-weight:660}
.pub-title a{color:var(--ink);text-decoration:none}
.pub-title a:hover{color:var(--uci-blue);text-decoration:underline}
.pub-authors{margin:0 0 6px;font-size:15px;color:var(--ink-soft)}
.pub-authors .self{font-weight:650;color:var(--ink)}
.pub-cite{margin:0;font-size:15px;color:var(--muted)}
.pub-cite em{font-style:italic}
.pub-cite .vol{font-weight:650;color:var(--ink-soft)}
.pub-links{display:flex;flex-wrap:wrap;gap:8px;margin-top:14px}
.chip{
  display:inline-block;padding:5px 11px;border-radius:999px;
  background:var(--surface);border:1px solid var(--line);
  font-size:13px;font-weight:600;color:var(--ink-soft);text-decoration:none;
  transition:background-color .14s ease,border-color .14s ease,color .14s ease;
}
.chip:hover{background:#fff;border-color:var(--uci-blue);color:var(--uci-blue)}
.chip--pdb{background:rgba(0,100,164,.07);border-color:rgba(0,100,164,.25);color:var(--uci-blue-dark)}
/* The free copy in PubMed Central. Green is the usual signal for open access,
   and it separates this from the publisher's paywalled PDF sitting beside it. */
.chip--free{background:rgba(26,127,82,.09);border-color:rgba(26,127,82,.3);color:#12613e}
.chip--free:hover{background:#fff;border-color:#12613e;color:#0e4e32}

/* ---------- news ---------- */

.news-grid{display:grid;gap:26px;grid-template-columns:repeat(auto-fit,minmax(270px,1fr))}
.news-item{
  background:var(--white);border:1px solid var(--line);border-radius:var(--radius);
  overflow:hidden;box-shadow:var(--shadow-sm);display:flex;flex-direction:column;
}
.news-figure{aspect-ratio:3/2;background:var(--surface);flex:none;min-height:0}
.news-figure img{width:100%;height:100%;object-fit:cover}
.news-body{padding:18px 20px 24px}
.news-date{
  display:block;font-size:12px;font-weight:700;letter-spacing:.09em;
  text-transform:uppercase;color:var(--uci-blue);margin-bottom:8px;
}
.news-body p{margin:0;font-size:15.5px;line-height:1.5;color:var(--ink-soft)}

/* ---------- stats strip ---------- */

.stats{
  display:grid;gap:8px 32px;grid-template-columns:repeat(auto-fit,minmax(150px,1fr));
  padding:44px 0;
}
.stat{text-align:center}
.stat-num{
  display:block;font-size:clamp(30px,4vw,42px);font-weight:700;
  letter-spacing:-.028em;line-height:1.05;color:var(--navy);
}
.stat-label{
  display:block;margin-top:8px;font-size:12.5px;font-weight:600;
  letter-spacing:.085em;text-transform:uppercase;color:var(--muted);
}

/* ---------- footer ---------- */

.site-footer{background:var(--navy);color:rgba(255,255,255,.76);padding:64px 0 34px;
  font-size:15px}
.footer-grid{
  display:grid;gap:40px;
  grid-template-columns:minmax(260px,1.4fr) repeat(auto-fit,minmax(150px,1fr));
}
.site-footer h2{
  margin:0 0 16px;font-size:12px;font-weight:700;letter-spacing:.13em;
  text-transform:uppercase;color:rgba(255,255,255,.55);
}
.site-footer a{color:#fff;text-decoration:none}
.site-footer a:hover{color:var(--uci-gold);text-decoration:underline}
.site-footer ul{list-style:none;margin:0;padding:0}
.site-footer li{margin-bottom:9px}
.footer-name{color:#fff;font-weight:650;font-size:17px;margin:0 0 10px}
.footer-addr{font-style:normal;line-height:1.7}
.footer-bottom{
  margin-top:48px;padding-top:22px;border-top:1px solid rgba(255,255,255,.14);
  display:flex;justify-content:space-between;gap:16px;flex-wrap:wrap;
  font-size:13.5px;color:rgba(255,255,255,.55);
}

/* ---------- responsive ---------- */

@media (max-width:1040px){
  .pub{grid-template-columns:190px 1fr;gap:20px}
}

@media (max-width:860px){
  :root{--gutter:16px}
  .section{padding:64px 0}
  .hero-inner{padding-block:84px 72px}

  .nav-toggle{display:block}
  .site-nav{
    display:none;position:absolute;left:0;right:0;top:100%;
    background:#fff;border-bottom:1px solid var(--line);
    box-shadow:var(--shadow-md);padding:10px var(--gutter) 18px;
  }
  .site-nav.is-open{display:block}
  .site-nav ul{flex-direction:column;align-items:stretch;gap:2px}
  .site-nav a{padding:13px 12px;font-size:16.5px}

  .pub{grid-template-columns:1fr;gap:18px}
  .pub-figure{max-width:340px}
}

@media (max-width:520px){
  body{font-size:16.5px}
  .card-grid,.news-grid{gap:20px}
  .hero-actions .btn{flex:1 1 100%;text-align:center}
}

@media print{
  .site-header,.hero-actions,.nav-toggle{display:none}
  .hero::after{display:none}
  body{font-size:12pt}
}

/* ==========================================================================
   Interior pages
   ========================================================================== */

.visually-hidden{
  position:absolute;width:1px;height:1px;margin:-1px;padding:0;overflow:hidden;
  clip:rect(0 0 0 0);white-space:nowrap;border:0;
}

.page-hero{
  background:var(--surface);border-bottom:1px solid var(--line);
  padding-block:64px 56px;
}
.page-hero h1{
  margin:0;font-size:clamp(32px,5vw,52px);line-height:1.05;
  letter-spacing:-.03em;font-weight:700;
}
.page-lede{
  margin:18px 0 0;max-width:62ch;font-size:clamp(16.5px,1.6vw,19px);
  line-height:1.55;color:var(--ink-soft);
}

/* ---------- publications toolbar ---------- */

.pubs-toolbar{
  position:sticky;top:70px;z-index:50;
  background:rgba(255,255,255,.94);
  backdrop-filter:saturate(180%) blur(12px);
  -webkit-backdrop-filter:saturate(180%) blur(12px);
  border-bottom:1px solid var(--line);
}
.pubs-toolbar-inner{
  display:flex;align-items:center;justify-content:space-between;
  gap:20px;flex-wrap:wrap;padding-block:14px;
}
.pubs-search{display:flex;align-items:center;gap:14px;flex:1 1 320px;min-width:0}
.pubs-search input{
  flex:1 1 auto;min-width:0;
  font:inherit;font-size:15.5px;color:var(--ink);
  padding:10px 14px;border:1px solid var(--line);border-radius:8px;
  background:#fff;
}
.pubs-search input:focus{border-color:var(--uci-blue);outline:none;
  box-shadow:0 0 0 3px rgba(0,100,164,.15)}
.pubs-count{margin:0;font-size:13.5px;color:var(--muted);white-space:nowrap}

.pubs-jump{display:flex;gap:4px;flex-wrap:wrap}
.pubs-jump a{
  padding:7px 12px;border-radius:7px;font-size:14px;font-weight:600;
  color:var(--ink-soft);text-decoration:none;
}
.pubs-jump a:hover{background:var(--surface);color:var(--uci-blue)}

/* ---------- publication list ---------- */

.pubs-list{padding-block:48px 88px}

.pub-year{margin-bottom:44px}
.pub-year[hidden]{display:none}

.year-head{
  display:flex;align-items:center;gap:16px;
  margin:0 0 20px;font-size:15px;font-weight:700;
  letter-spacing:.1em;color:var(--muted);
}
.year-head span{flex:none}
.year-head::after{
  content:"";flex:1 1 auto;height:1px;background:var(--line);
}

.pub-items{list-style:none;margin:0;padding:0;display:grid;gap:8px}

.pubitem{
  display:block;padding:18px 20px;border-radius:var(--radius);
  border:1px solid transparent;
  transition:background-color .14s ease,border-color .14s ease;
}
.pubitem:hover{background:var(--surface);border-color:var(--line)}
.pubitem[hidden]{display:none}

.pubitem--fig{display:grid;grid-template-columns:350px 1fr;gap:30px;align-items:start}
.pubitem-figure{
  display:block;
  background:#fff;border:1px solid var(--line);border-radius:7px;
  aspect-ratio:16/10;padding:7px;
  transition:border-color .14s ease,box-shadow .14s ease;
}
.pubitem-figure img{width:100%;height:100%;object-fit:contain}
/* the figure is a link to the paper when one exists */
a.pubitem-figure:hover{border-color:var(--uci-blue);box-shadow:var(--shadow-sm)}

.pubitem-title{margin:0 0 7px;font-size:17.5px;line-height:1.35;
  letter-spacing:-.011em;font-weight:650}
.pubitem-title a{color:var(--ink);text-decoration:none}
.pubitem-title a:hover{color:var(--uci-blue);text-decoration:underline}
.pubitem-authors{margin:0 0 5px;font-size:15px;color:var(--ink-soft)}
.pubitem-authors .self{font-weight:650;color:var(--ink)}
.pubitem-cite{margin:0;font-size:15px;color:var(--muted)}
.pubitem-note{margin:7px 0 0;font-size:14px;color:var(--muted);font-style:italic}
.pubitem-links{display:flex;flex-wrap:wrap;gap:7px;margin:12px 0 0}

.pubs-empty{
  margin:48px 0;text-align:center;color:var(--muted);font-size:17px;
}

@media (max-width:860px){
  .pubs-toolbar{top:0;position:static}
  .pubs-list{padding-block:36px 64px}
  .pubitem{padding:16px 0;border-radius:0;border-color:transparent;
    border-bottom:1px solid var(--line)}
  .pubitem:hover{background:transparent;border-color:transparent;
    border-bottom-color:var(--line)}
  .pubitem--fig{grid-template-columns:200px 1fr;gap:20px}
}

@media (max-width:620px){
  /* stack the result count under the field so the placeholder is not clipped */
  .pubs-search{flex-wrap:wrap;gap:8px}
  .pubs-search input{flex:1 1 100%}
  .pubs-count{flex:1 1 100%}
  .pubs-toolbar-inner{gap:12px}
}

@media (max-width:520px){
  .pubitem--fig{grid-template-columns:1fr}
  .pubitem-figure{max-width:100%}
}

/* ---------- people ---------- */

.people-list{padding-block:48px 72px;display:grid;gap:34px}

.person{
  display:grid;grid-template-columns:300px 1fr;gap:34px;align-items:start;
  padding-bottom:34px;border-bottom:1px solid var(--line);
}
.people-list .person:last-of-type{border-bottom:0;padding-bottom:0}

.person-photo{
  border-radius:10px;overflow:hidden;background:var(--surface);
  flex:none;box-shadow:var(--shadow-sm);
  /* no fixed aspect ratio: each portrait keeps its own shape, as on the old
     site. Forcing a square cropped the bottom third off every photo. */
}
.person-photo img{width:100%;height:auto;display:block}

.person-name{margin:0 0 4px;font-size:22px;line-height:1.2;letter-spacing:-.018em;font-weight:680}
.person-role{
  margin:0 0 10px;font-size:12.5px;font-weight:700;letter-spacing:.09em;
  text-transform:uppercase;color:var(--uci-blue);
}
.person-contact{margin:0 0 4px;font-size:15px}
.person-degrees{
  list-style:none;margin:12px 0 0;padding:0;
  font-size:14.5px;color:var(--muted);
}
.person-degrees li{position:relative;padding-left:15px;margin-bottom:3px}
.person-degrees li::before{
  content:"";position:absolute;left:0;top:.62em;width:7px;height:1.5px;
  background:var(--line);
}
.person-bio{margin:14px 0 0;font-size:16px;line-height:1.62;color:var(--ink-soft);max-width:68ch}

.person--featured{
  grid-template-columns:340px 1fr;gap:38px;
  background:var(--surface);border:1px solid var(--line);border-bottom:1px solid var(--line);
  border-radius:var(--radius);padding:28px;
}
.person--featured .person-name{font-size:26px}

.join-block{max-width:66ch}
.join-block p{color:var(--ink-soft);font-size:16.5px}
.join-block .section-title{margin-bottom:18px}

/* ---------- alumni ---------- */

.alumni-list{padding-block:48px 80px;display:grid;gap:46px}

.alumni-heading{
  display:flex;align-items:center;gap:14px;margin:0 0 18px;
  font-size:15px;font-weight:700;letter-spacing:.08em;
  text-transform:uppercase;color:var(--ink);
}
.alumni-heading::after{content:"";flex:1 1 auto;height:1px;background:var(--line)}
.alumni-count{
  flex:none;order:3;font-size:12.5px;font-weight:650;letter-spacing:0;
  color:var(--muted);background:var(--surface);border:1px solid var(--line);
  border-radius:999px;padding:2px 10px;text-transform:none;
}

.alumni-names{
  list-style:none;margin:0;padding:0;
  columns:4;column-gap:30px;
  font-size:15.5px;line-height:1.75;color:var(--ink-soft);
}
.alumni-names li{break-inside:avoid}

@media (max-width:1040px){
  .alumni-names{columns:3}
}
@media (max-width:860px){
  .person,.person--featured{grid-template-columns:200px 1fr;gap:22px}
  .person--featured{padding:20px}
  .alumni-names{columns:2}
  .people-list{padding-block:36px 56px}
  .alumni-list{padding-block:36px 60px}
}
@media (max-width:520px){
  .person,.person--featured{grid-template-columns:1fr;gap:16px}
  .person-photo{max-width:250px}
  .alumni-names{columns:1}
}

/* ---------- prose pages (research, contact) ---------- */

.prose{max-width:820px;padding-block:52px 24px}

.research-section{margin-bottom:56px;scroll-margin-top:90px}
.research-section:last-child{margin-bottom:0}
.research-section h2{
  margin:0 0 18px;font-size:clamp(23px,2.6vw,29px);line-height:1.2;
  letter-spacing:-.02em;font-weight:700;
}
.research-section h2::after{
  content:"";display:block;width:46px;height:4px;border-radius:2px;
  background:var(--uci-gold);margin-top:13px;
}
.prose p{font-size:17px;line-height:1.68;color:var(--ink-soft);margin:0 0 18px}
.prose p strong{color:var(--ink);font-weight:650}
.research-links{margin-top:22px}

.research-figure{
  margin:26px 0 24px;padding:0;
  background:#fff;border:1px solid var(--line);border-radius:var(--radius);
  overflow:hidden;box-shadow:var(--shadow-sm);
}
.research-figure img{width:100%;height:auto;display:block;background:#fff}
.research-figure figcaption{
  padding:12px 18px 14px;border-top:1px solid var(--line);
  font-size:14px;color:var(--muted);background:var(--surface);
}

@media (max-width:860px){
  .prose{padding-block:36px 16px}
  .research-section{margin-bottom:42px}
}

/* ---------- photos ---------- */

.photo-grid{
  padding-block:48px 80px;
  display:grid;gap:34px 26px;
  grid-template-columns:repeat(auto-fill,minmax(310px,1fr));
}
.photo{margin:0;display:flex;flex-direction:column}
.photo-frame{
  background:var(--surface);border:1px solid var(--line);border-radius:var(--radius);
  overflow:hidden;aspect-ratio:4/3;flex:none;min-height:0;box-shadow:var(--shadow-sm);
}
.photo-frame img{width:100%;height:100%;object-fit:cover;display:block}
.photo figcaption{padding:14px 2px 0}
.photo-date{
  display:block;font-size:12px;font-weight:700;letter-spacing:.09em;
  text-transform:uppercase;color:var(--uci-blue);margin-bottom:6px;
}
.photo-caption{margin:0;font-size:15.5px;line-height:1.5;color:var(--ink)}
.photo-people{margin:7px 0 0;font-size:14px;line-height:1.5;color:var(--muted)}

@media (max-width:860px){
  .photo-grid{padding-block:36px 60px;gap:28px 20px;
    grid-template-columns:repeat(auto-fill,minmax(260px,1fr))}
}
@media (max-width:520px){
  .photo-grid{grid-template-columns:1fr}
}

/* ---------- resources ---------- */

.links-page{padding-block:48px 80px;display:grid;gap:46px}
.links-section{scroll-margin-top:90px}
.links-intro{margin:0 0 16px;font-size:15.5px;color:var(--muted);max-width:62ch}

.links-list{
  list-style:none;margin:0;padding:0;
  columns:3;column-gap:34px;
  font-size:15.5px;line-height:1.62;
}
.links-list li{break-inside:avoid;margin-bottom:7px}
.links-list a{text-decoration:none;color:var(--ink-soft)}
.links-list a:hover{color:var(--uci-blue);text-decoration:underline}
.link-type{
  font-size:10.5px;font-weight:700;letter-spacing:.06em;color:var(--muted);
  border:1px solid var(--line);border-radius:3px;padding:0 4px;margin-left:5px;
  vertical-align:1px;
}

/* ---------- contact ---------- */

.contact-grid{
  padding-block:52px 80px;display:grid;gap:44px;
  grid-template-columns:repeat(auto-fit,minmax(320px,1fr));
}
.contact-block h2{
  margin:0 0 16px;font-size:21px;line-height:1.25;letter-spacing:-.016em;font-weight:680;
}
.contact-address{font-style:normal;line-height:1.7;font-size:16.5px;color:var(--ink-soft)}
.contact-lines{margin:16px 0;font-size:16.5px;line-height:1.8}
.contact-block p{font-size:16.5px;line-height:1.62;color:var(--ink-soft)}
.contact-block p strong{color:var(--ink);font-weight:650}

@media (max-width:1040px){ .links-list{columns:2} }
@media (max-width:860px){
  .links-page{padding-block:36px 60px;gap:36px}
  .contact-grid{padding-block:36px 60px;gap:34px}
}
@media (max-width:560px){ .links-list{columns:1} }
.link-title{display:block;color:var(--ink);font-weight:550}
.link-files{display:block;margin-top:2px;font-size:14px}
.link-files a{margin-right:12px;color:var(--uci-blue)}
.link-files a:hover{text-decoration:underline}

/* ---------- research: highlighted papers ---------- */

.research-lede{
  font-size:18.5px;line-height:1.6;color:var(--ink);margin:0 0 18px;font-weight:500;
}
.papers-heading{
  margin:30px 0 16px;font-size:12px;font-weight:700;letter-spacing:.13em;
  text-transform:uppercase;color:var(--muted);
}
.paper-grid{
  display:grid;gap:24px;
  /* exactly two columns: the sections highlight four papers, and three-across
     leaves an orphan on the second row */
  grid-template-columns:repeat(2,minmax(0,1fr));
  margin-bottom:8px;
}
.paper{
  display:flex;flex-direction:column;text-decoration:none;color:inherit;
  border:1px solid var(--line);border-radius:var(--radius);overflow:hidden;
  background:#fff;box-shadow:var(--shadow-sm);
  transition:transform .15s ease,box-shadow .15s ease,border-color .15s ease;
}
.paper:hover{
  transform:translateY(-2px);box-shadow:var(--shadow-md);
  border-color:var(--uci-blue);color:inherit;
}
.paper-figure{
  display:block;background:#fff;border-bottom:1px solid var(--line);
  aspect-ratio:16/10;padding:10px;flex:none;min-height:0;
}
.paper-figure img{width:100%;height:100%;object-fit:contain;display:block}
.paper-meta{
  display:block;padding:12px 14px 0;font-size:12.5px;font-weight:650;
  letter-spacing:.02em;color:var(--uci-blue);
}
.paper-meta em{font-style:italic}
.paper-title{
  display:block;padding:5px 14px 16px;font-size:14.5px;line-height:1.4;color:var(--ink);
}
.paper:hover .paper-title{text-decoration:underline}

@media (max-width:640px){
  .paper-grid{grid-template-columns:1fr}
}

/* ---------- photo lightbox ---------- */

/* the frame is a button now, so strip the button chrome */
button.photo-frame{
  padding:0;border:1px solid var(--line);cursor:zoom-in;width:100%;
  display:block;font:inherit;color:inherit;
  transition:transform .15s ease,box-shadow .15s ease,border-color .15s ease;
}
button.photo-frame:hover{
  transform:translateY(-2px);box-shadow:var(--shadow-md);border-color:var(--uci-blue);
}

.lightbox{
  position:fixed;inset:0;z-index:200;
  background:rgba(9,20,29,.975);
  display:flex;align-items:center;justify-content:center;
  padding:56px 72px;
}
.lightbox[hidden]{display:none}

.lightbox-figure{
  margin:0;max-width:100%;max-height:100%;
  display:flex;flex-direction:column;align-items:center;gap:16px;
}
.lightbox-figure img{
  max-width:100%;max-height:74vh;width:auto;height:auto;
  border-radius:8px;box-shadow:0 18px 60px rgba(0,0,0,.5);background:#111;
}
.lightbox-caption{text-align:center;color:#fff;max-width:64ch}
.lightbox-date{
  display:block;font-size:12px;font-weight:700;letter-spacing:.11em;
  text-transform:uppercase;color:var(--uci-gold);margin-bottom:7px;
}
.lightbox-caption p{margin:0;font-size:16.5px;line-height:1.5}
.lightbox-people{margin-top:7px !important;font-size:14.5px;color:rgba(255,255,255,.72)}
.lightbox-people[hidden]{display:none}
.lightbox-count{
  margin-top:12px !important;font-size:12.5px;color:rgba(255,255,255,.5);
  letter-spacing:.06em;
}

.lightbox-close,.lightbox-nav{
  position:absolute;background:rgba(255,255,255,.1);border:0;color:#fff;
  border-radius:999px;cursor:pointer;display:grid;place-items:center;
  width:46px;height:46px;transition:background-color .15s ease;
}
.lightbox-close:hover,.lightbox-nav:hover{background:rgba(255,255,255,.24)}
.lightbox-close:focus-visible,.lightbox-nav:focus-visible{
  outline:3px solid var(--uci-gold);outline-offset:2px;
}
.lightbox-close{top:18px;right:18px}
.lightbox-nav{top:50%;transform:translateY(-50%)}
.lightbox-prev{left:16px}
.lightbox-next{right:16px}

@media (max-width:700px){
  .lightbox{padding:64px 12px 24px}
  .lightbox-figure img{max-height:58vh}
  .lightbox-nav{top:auto;bottom:16px;transform:none}
  .lightbox-prev{left:24px}
  .lightbox-next{right:24px}
  .lightbox-caption p{font-size:15.5px}
}
