/* ═══════════════════════════════════════════════════════════════
   PITTCARE — tight edition — shared stylesheet
   Same brand tokens as the full site; consolidated components.
═══════════════════════════════════════════════════════════════ */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --royal:      #003594;
  --royal-dark: #002570;
  --gold:       #ffb81c;
  --light-blue: #66b2e3;
  --new-sky:    #dbeeff;
  --white:      #ffffff;
  --gray:       #c8c9c7;
  --gray-light: #f4f6fa;
  --text-body:  #1a1a2e;
  --font-sans:  'Roboto', sans-serif;
  --font-serif: 'Merriweather', serif;
  --max-w:      1080px;
  --pad:        clamp(20px, 5vw, 64px);
}

html { scroll-behavior: smooth; }
body { font-family: var(--font-sans); color: var(--text-body); background: var(--white); -webkit-font-smoothing: antialiased; line-height: 1.5; }
a { color: inherit; }
img { max-width: 100%; display: block; }

/* ── Layout helpers ─────────────────────────────────────────────── */
.wrap { max-width: var(--max-w); margin: 0 auto; padding: 0 var(--pad); }
.section { padding: clamp(44px, 6vw, 76px) 0; }
.section.bg-light { background: var(--gray-light); }
.section.bg-royal { background: var(--royal); color: var(--white); }
.section.bg-sky   { background: var(--new-sky); }
.section-head { max-width: 640px; margin-bottom: 28px; }
.section-head p.kicker { font-family: var(--font-sans); font-weight: 700; font-size: 13px; color: var(--light-blue); margin-bottom: 6px; }
.bg-royal .section-head p.kicker,
.section.bg-royal .kicker { color: var(--gold); }
.section-head h2 { font-family: var(--font-sans); font-weight: 800; font-size: clamp(24px, 3vw, 34px); line-height: 1.1; color: var(--royal); }
.bg-royal .section-head h2 { color: var(--white); }
.section-head p.lead { font-family: var(--font-serif); font-weight: 300; font-size: 15px; line-height: 1.75; color: #3a3a4a; margin-top: 10px; max-width: 620px; }
.bg-royal .section-head p.lead { color: rgba(255,255,255,0.82); }
.divider { border: none; border-top: 1px solid #e4e6ec; margin: 0; }

/* ── Nav ────────────────────────────────────────────────────────── */
.site-nav {
  position: sticky; top: 0; z-index: 200;
  background: var(--royal); border-bottom: 3px solid var(--gold);
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 var(--pad); height: 58px;
}
.nav-brand { font-family: var(--font-sans); font-weight: 800; font-size: 20px; color: var(--white); text-decoration: none; }
.nav-brand span { color: var(--gold); }
.nav-links { display: flex; gap: 26px; list-style: none; align-items: center; }
.nav-links a { font-family: var(--font-sans); font-weight: 500; font-size: 14px; color: rgba(255,255,255,0.85); text-decoration: none; padding: 4px 0; border-bottom: 2px solid transparent; }
.nav-links a:hover, .nav-links a.active { color: var(--gold); border-bottom-color: var(--gold); }
.nav-toggle { display: none; flex-direction: column; gap: 5px; background: none; border: none; cursor: pointer; padding: 8px; }
.nav-toggle span { display: block; width: 22px; height: 2px; background: var(--white); border-radius: 2px; }

@media (max-width: 700px) {
  .nav-links { display: none; flex-direction: column; align-items: flex-start; position: absolute; top: 58px; left: 0; right: 0; background: var(--royal-dark); padding: 10px 0 14px; gap: 0; }
  .nav-links.open { display: flex; }
  .nav-links li { width: 100%; }
  .nav-links a { display: block; width: 100%; padding: 12px var(--pad); border-bottom: none; }
  .nav-links a.active { color: var(--gold); background: rgba(255,255,255,0.05); }
  .nav-toggle { display: flex; }
}

/* ── Hero / page header ─────────────────────────────────────────── */
.hero { background: var(--royal); color: var(--white); padding: clamp(48px,7vw,80px) 0 clamp(40px,5vw,56px); border-bottom: 3px solid var(--gold); }
.hero .eyebrow-link { font-family: var(--font-sans); font-size: 13px; color: rgba(255,255,255,0.55); margin-bottom: 14px; }
.hero .eyebrow-link a { color: var(--light-blue); text-decoration: none; }
.hero h1 { font-family: var(--font-sans); font-weight: 800; font-size: clamp(30px,4.2vw,50px); line-height: 1.05; margin-bottom: 14px; }
.hero h1 span { color: var(--gold); }
.hero p { font-family: var(--font-serif); font-weight: 300; font-size: clamp(14px,1.4vw,17px); line-height: 1.7; color: rgba(255,255,255,0.85); max-width: 620px; }

/* ── Buttons / tags ─────────────────────────────────────────────── */
.btn { display: inline-block; font-family: var(--font-sans); font-weight: 700; font-size: 13px; padding: 10px 20px; border: 2px solid var(--white); color: var(--white); text-decoration: none; }
.btn:hover { background: var(--white); color: var(--royal); }
.tag { display: inline-block; font-family: var(--font-sans); font-weight: 700; font-size: 11px; padding: 3px 9px; background: var(--new-sky); color: var(--royal); }
.tag.gold { background: rgba(255,184,28,0.22); }

/* ── Focus / pillar cards ───────────────────────────────────────── */
.card-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.focus-card { background: rgba(255,255,255,0.08); border-top: 3px solid var(--gold); padding: 22px 22px 24px; }
.focus-card .ico { font-size: 22px; color: var(--gold); }
.focus-card h3 { font-family: var(--font-sans); font-weight: 700; font-size: 16px; color: var(--white); margin: 10px 0 8px; }
.focus-card p { font-family: var(--font-serif); font-weight: 300; font-size: 13.5px; line-height: 1.65; color: rgba(255,255,255,0.82); }
.focus-card a { color: var(--gold); font-weight: 700; text-decoration: none; border-bottom: 1px solid var(--gold); }

/* ── Ethics chips ───────────────────────────────────────────────── */
.chip-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-top: 16px; }
.chip { background: var(--white); border-left: 3px solid var(--gold); padding: 12px 14px; font-family: var(--font-sans); font-size: 13px; color: #333; }
.chip b { display: block; color: var(--royal); font-size: 13.5px; margin-bottom: 2px; }
.chip em { display: block; font-style: normal; font-weight: 700; font-size: 10px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--light-blue); margin-bottom: 3px; }

/* ── Person / project cards (shared: research + team pages) ──────── */
.person-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 18px; }
.pcard { background: var(--white); border: 1px solid #e4e6ec; border-top: 3px solid var(--royal); padding: 20px 20px 18px; display: flex; flex-direction: column; }
.pcard.accent { border-top-color: var(--gold); }
.pcard-top { display: flex; gap: 12px; align-items: center; margin-bottom: 12px; }
.pcard-avatar { width: 46px; height: 46px; border-radius: 50%; flex-shrink: 0; display: flex; align-items: center; justify-content: center; font-family: var(--font-sans); font-weight: 800; font-size: 15px; background: var(--royal); color: var(--white); }
.pcard-avatar.gold { background: var(--gold); color: var(--royal-dark); }
.pcard-avatar.sky  { background: var(--light-blue); color: var(--royal-dark); }
.pcard-name { font-family: var(--font-sans); font-weight: 700; font-size: 15.5px; color: var(--royal); line-height: 1.25; }
.pcard-cred { font-family: var(--font-sans); font-size: 11.5px; color: #888; }
.pcard-title { font-family: var(--font-sans); font-size: 12.5px; color: #555; line-height: 1.45; margin-bottom: 10px; }
.pcard-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 10px; }
.pcard-bio { font-family: var(--font-serif); font-weight: 300; font-size: 13px; line-height: 1.65; color: #3a3a4a; flex: 1; }
.pcard-bio .full { display: none; }
.pcard.expanded .pcard-bio .short { display: none; }
.pcard.expanded .pcard-bio .full { display: inline; }
.pcard-bottom { margin-top: 12px; display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 8px; }
.pcard-links { display: flex; gap: 12px; flex-wrap: wrap; }
.pcard-links a { font-family: var(--font-sans); font-weight: 700; font-size: 11px; color: var(--royal); text-decoration: none; }
.pcard-links a:hover { color: var(--light-blue); }
.expand-btn { font-family: var(--font-sans); font-weight: 700; font-size: 11px; color: var(--royal); background: none; border: none; cursor: pointer; padding: 0; }
.school-tag { font-family: var(--font-sans); font-weight: 700; font-size: 10px; letter-spacing: 0.03em; color: var(--royal); background: var(--gray-light); padding: 3px 8px; }

/* ── Project card (research page) ─────────────────────────────────── */
.proj { background: var(--white); border: 1px solid #e4e6ec; border-top: 3px solid var(--royal); padding: 22px 24px; margin-bottom: 16px; }
.proj-head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 6px; }
.proj-head h3 { font-family: var(--font-sans); font-weight: 700; font-size: 17px; color: var(--royal); }
.proj-meta { font-family: var(--font-sans); font-size: 12px; color: #888; }
.proj-body { font-family: var(--font-serif); font-weight: 300; font-size: 14px; line-height: 1.7; color: #333; }
.proj-body .full { display: none; }
.proj.expanded .proj-body .full { display: block; margin-top: 8px; }
.proj-stats { display: flex; gap: 20px; margin: 12px 0; }
.proj-stat b { display: block; font-family: var(--font-sans); font-weight: 800; font-size: 22px; color: var(--royal); }
.proj-stat span { font-family: var(--font-sans); font-size: 11px; color: #777; }
.proj-links { margin-top: 10px; display: flex; gap: 14px; flex-wrap: wrap; }
.proj-links a { font-family: var(--font-sans); font-weight: 700; font-size: 11.5px; color: var(--royal); text-decoration: none; }

/* ── Compact strip (for "forming" / low-activity items) ───────────── */
.strip-list { display: flex; flex-direction: column; }
.strip-item { display: flex; align-items: baseline; gap: 14px; padding: 12px 0; border-bottom: 1px solid #e4e6ec; }
.strip-item:last-child { border-bottom: none; }
.strip-item b { font-family: var(--font-sans); font-weight: 700; font-size: 14px; color: var(--royal); flex-shrink: 0; min-width: 190px; }
.strip-item span { font-family: var(--font-serif); font-weight: 300; font-size: 13.5px; color: #555; }

/* ── Footer ─────────────────────────────────────────────────────── */
.site-footer { background: var(--royal-dark); color: var(--white); padding: 44px 0 26px; }
.footer-grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 36px; margin-bottom: 32px; }
.footer-brand { font-family: var(--font-sans); font-weight: 800; font-size: 22px; margin-bottom: 6px; }
.footer-brand span { color: var(--gold); }
.footer-tag { font-family: var(--font-serif); font-style: italic; font-weight: 300; font-size: 12.5px; color: rgba(255,255,255,0.6); line-height: 1.6; margin-bottom: 14px; }
.footer-col-title { font-family: var(--font-sans); font-weight: 700; font-size: 11px; color: var(--gold); margin-bottom: 12px; }
.footer-links { list-style: none; display: flex; flex-direction: column; gap: 8px; }
.footer-links a { font-family: var(--font-sans); font-size: 13px; color: rgba(255,255,255,0.75); text-decoration: none; }
.footer-links a:hover { color: var(--gold); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.12); padding-top: 18px; font-family: var(--font-sans); font-size: 12px; color: rgba(255,255,255,0.45); display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px; }

@media (max-width: 860px) {
  .card-grid, .chip-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 24px; }
  .proj-head { flex-direction: column; }
}

/* ── Motion ─────────────────────────────────────────────────────── */
.fade-in { opacity: 0; transform: translateY(10px); transition: opacity .4s ease, transform .4s ease; }
.fade-in.visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .fade-in { opacity: 1; transform: none; transition: none; } }
