/* =============================================================
   PACAID COBRE — Main Stylesheet
   Structure ported from shepherdresearchlab.org/aiphi (sister
   site) so the PACAID family hangs together; palette retinted
   from UH-green to the PACAID brand with Hawai‘i-forward accents:
   Pacaid Blue primary, Pacific Cyan + Medicine teal accents,
   deep-ocean-navy hero. Brand values mirror
   ../pacaid-admin/shared/branding/style-guide.md.
   ============================================================= */

/* ---- Fonts ---- */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;500;600;700;800&family=Inter:wght@300;400;500;600&display=swap');

/* ---- Brand tokens ---- */
:root {
  --primary:         #1F4E79;  /* Pacaid Blue */
  --primary-dark:    #163a5c;
  --primary-light:   #e8eff6;
  --primary-on-dark: #8fd4e3;  /* Pacific Cyan, lightened for WCAG on the dark hero */
  --cyan:       #7FD0E0;       /* Pacific Cyan — the wave in the mark */
  --teal:       #2E8FA8;       /* Medicine arm accent */
  --teal-light: #e4f3f7;
  --dark:       #0d2a44;       /* deep ocean navy */
  --gray-900:   #111827;
  --gray-700:   #374151;
  --gray-500:   #6b7280;
  --gray-300:   #d1d5db;
  --gray-100:   #f3f4f6;
  --white:      #ffffff;
  --shadow-sm:  0 1px 3px rgba(0,0,0,.1);
  --shadow-md:  0 4px 16px rgba(0,0,0,.12);
  --shadow-lg:  0 8px 32px rgba(0,0,0,.15);
  --radius:     8px;
  --radius-lg:  16px;
  --transition: all 0.2s ease;
  --max-width:  1200px;
  --font-head:  'Montserrat', system-ui, sans-serif;
  --font-body:  'Inter', system-ui, sans-serif;
}

/* ---- Reset & base ---- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  font-size: 16px;
  scroll-padding-top: 90px; /* sticky-header offset for anchor jumps (WCAG 2.4.11) */
}

.skip-link {
  position: absolute; top: -3rem; left: 0; z-index: 1000;
  background: var(--primary); color: var(--white);
  padding: 0.75rem 1.25rem; font-weight: 600; text-decoration: none;
  border-bottom-right-radius: var(--radius); transition: top 0.15s ease;
}
.skip-link:focus { top: 0; outline: 2px solid var(--white); outline-offset: -4px; color: var(--white); }
main:focus { outline: none; }

body {
  font-family: var(--font-body);
  color: var(--gray-700);
  background: var(--white);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--primary); text-decoration: none; transition: var(--transition); }
a:hover { color: var(--primary-dark); }

h1, h2, h3, h4, h5 { font-family: var(--font-head); color: var(--gray-900); line-height: 1.2; font-weight: 700; }
p { margin-bottom: 1rem; }
p:last-child { margin-bottom: 0; }

/* ---- Layout utilities ---- */
.container { width: 100%; max-width: var(--max-width); margin: 0 auto; padding: 0 1.5rem; }
.section { padding: 5rem 0; }
.section--alt  { background: var(--gray-100); }
.section--teal { background: var(--teal-light); }
.section--dark { background: var(--dark); color: var(--white); }
.section--dark h2, .section--dark h3 { color: var(--white); }

.section-header { text-align: center; margin-bottom: 3rem; }
.section-header h2 { font-size: 2rem; margin-bottom: 0.75rem; }
.section-header p { color: var(--gray-500); font-size: 1.1rem; max-width: 640px; margin: 0.75rem auto 0; }

.section-label {
  display: inline-block; font-family: var(--font-head);
  font-size: 0.75rem; font-weight: 700; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--primary); margin-bottom: 0.5rem;
}

/* ---- Buttons ---- */
.btn {
  display: inline-flex; align-items: center; gap: 0.5rem;
  padding: 0.75rem 1.75rem; border-radius: var(--radius);
  font-family: var(--font-head); font-size: 0.9rem; font-weight: 600;
  cursor: pointer; transition: var(--transition);
  border: 2px solid transparent; text-decoration: none;
}
.btn-primary { background: var(--primary); color: var(--white); border-color: var(--primary); }
.btn-primary:hover { background: var(--primary-dark); border-color: var(--primary-dark); color: var(--white); transform: translateY(-1px); box-shadow: var(--shadow-md); }
.btn-outline { background: transparent; color: var(--white); border-color: var(--white); }
.btn-outline:hover { background: var(--white); color: var(--primary); }
.btn-outline-primary { background: transparent; color: var(--primary); border-color: var(--primary); }
.btn-outline-primary:hover { background: var(--primary); color: var(--white); }
.btn-row { display: flex; flex-wrap: wrap; gap: 0.75rem; margin: 1rem 0 0; }
.lit-list { list-style: none; margin: 1rem 0 0; padding: 0; display: grid; gap: 1.1rem; }
.lit-list__item { line-height: 1.5; }
.lit-list__meta { display: block; color: var(--gray-700); font-size: 0.9rem; margin-top: 0.15rem; }
.muted { color: var(--gray-700); }

/* ---- Research directory (the /research/ hub: compact links to each program,
   deliberately lighter than the homepage's card sections to avoid duplication) ---- */
.research-directory { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 1.25rem; margin: 2rem 0 0.5rem; }
.research-directory__card { display: block; padding: 1.5rem; border: 1px solid var(--gray-200); border-radius: var(--radius-lg); background: var(--white); box-shadow: var(--shadow-sm); transition: var(--transition); }
.research-directory__card:hover { border-color: var(--primary); box-shadow: var(--shadow-md); transform: translateY(-2px); }
.research-directory__label { display: inline-block; font-size: 0.7rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; color: var(--primary); margin-bottom: 0.4rem; }
.research-directory__card h3 { margin: 0 0 0.4rem; color: var(--primary); }
.research-directory__card p { margin: 0; color: var(--gray-700); font-size: 0.92rem; line-height: 1.5; }

/* Plain linked list of funded projects — no card duplication of the homepage. */
.project-list { list-style: none; margin: 1rem 0 0; padding: 0; display: grid; gap: 0.85rem; }
.project-list__item { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0.5rem 1rem; padding-bottom: 0.85rem; border-bottom: 1px solid var(--gray-200); }
.project-list__item a { flex: 1 1 60%; display: flex; flex-wrap: wrap; align-items: baseline; gap: 0.5rem; }
.project-list__num { font-family: var(--font-head); font-size: 0.7rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; color: var(--white); background: var(--primary); padding: 0.2rem 0.55rem; border-radius: 100px; }
.project-list__title { font-weight: 600; }
.project-list__lead { color: var(--gray-700); font-size: 0.9rem; }

/* PAC-AID Talks (events) — speaker list rows */
.affinity-meeting {
  display: grid;
  grid-template-columns: 90px 220px 1fr;
  gap: 1.75rem;
  padding: 1.75rem 0;
  border-top: 1px solid var(--gray-300);
  align-items: start;
}
.affinity-meeting--no-image { grid-template-columns: 90px 1fr; }
.affinity-meeting__date { font-size: 0.8rem; color: var(--gray-700); font-weight: 700; line-height: 1.35; }
.affinity-meeting__date .year { text-transform: uppercase; letter-spacing: 0.06em; color: var(--gray-500); font-size: 0.7rem; }
.affinity-meeting__date .day { font-size: 1rem; color: var(--primary); }
.affinity-meeting__image { display: block; line-height: 0; }
.affinity-meeting__image img {
  width: 100%; height: auto; aspect-ratio: 16/9; object-fit: cover;
  border-radius: var(--radius); box-shadow: var(--shadow-sm); display: block;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.affinity-meeting__image:hover img { transform: translateY(-2px); box-shadow: var(--shadow-md); }
.affinity-meeting__body h4 { margin: 0 0 0.4rem; font-size: 1.1rem; line-height: 1.35; }
.affinity-meeting__body .speaker { margin: 0 0 1rem; font-size: 0.95rem; color: var(--gray-700); }
.affinity-meeting__body .speaker .affil { color: var(--gray-500); }
.affinity-meeting__body .abstract { color: var(--gray-700); font-size: 0.95rem; line-height: 1.7; }
.affinity-meeting__recap { margin: 0.75rem 0 0; font-weight: 600; }
.talk-era-tag {
  display: inline-block; margin-left: 0.5rem; vertical-align: middle;
  font-size: 0.65rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase;
  color: var(--gray-500); border: 1px solid var(--gray-300); border-radius: 100px;
  padding: 0.1rem 0.5rem;
}

@media (max-width: 768px) {
  .affinity-meeting,
  .affinity-meeting--no-image { grid-template-columns: 1fr; gap: 1rem; }
  .affinity-meeting__image { max-width: 420px; }
}

/* ---- Site header / nav ---- */
.site-header { position: sticky; top: 0; z-index: 100; background: var(--white); border-bottom: 1px solid var(--gray-300); box-shadow: var(--shadow-sm); }
.site-header .container { display: flex; align-items: center; justify-content: space-between; height: 80px; }
.site-logo { display: flex; align-items: center; gap: 0.75rem; text-decoration: none; }
.site-logo__img { height: 52px; width: auto; display: block; flex-shrink: 0; }
.site-logo__text { display: flex; flex-direction: column; line-height: 1.1; }
.site-logo__abbr { font-family: var(--font-head); font-size: 1.15rem; font-weight: 800; color: var(--primary); letter-spacing: .02em; }
.site-logo__full { font-size: 0.65rem; color: var(--gray-500); text-transform: uppercase; letter-spacing: .08em; font-weight: 600; }

.site-nav { display: flex; align-items: center; gap: 0.25rem; flex-wrap: wrap; }
.site-nav a { padding: 0.4rem 0.85rem; font-family: var(--font-head); font-size: 0.85rem; font-weight: 600; color: var(--gray-700); border-radius: var(--radius); transition: var(--transition); }
.site-nav a:hover, .site-nav a.active { color: var(--primary); background: var(--primary-light); }

/* Search collapses to a magnifying-glass icon in the top nav. The text label is
   hidden on desktop (icon is intuitive + compact) and shown in the stacked
   mobile menu for clarity. */
.nav-search { display: inline-flex; align-items: center; gap: 0.4rem; }
.nav-search__icon { display: block; }
.nav-search__label { display: none; }

.nav-toggle { display: none; background: none; border: none; cursor: pointer; padding: 0.5rem; color: var(--gray-700); }
.nav-toggle span { display: block; width: 22px; height: 2px; background: currentColor; margin: 5px 0; transition: var(--transition); }

/* ---- Nav dropdowns ----
   A nav item with children: the parent link stays clickable; a caret button
   toggles the submenu. On desktop the submenu also opens on hover / keyboard
   focus-within; .is-open is the click/touch state set by main.js. */
.nav-item { position: relative; display: inline-flex; align-items: center; }
.nav-item__link { /* inherits .site-nav a styling */ }
.nav-item__toggle { display: inline-flex; align-items: center; background: none; border: none; cursor: pointer; padding: 0.4rem 0.3rem; color: var(--gray-600); border-radius: var(--radius); }
.nav-item__toggle:hover { color: var(--primary); }
.nav-item__toggle svg { transition: transform var(--transition); }
.nav-item.is-open .nav-item__toggle svg { transform: rotate(180deg); }

.nav-dropdown {
  position: absolute; top: calc(100% + 0.35rem); left: 0; z-index: 60;
  min-width: 210px; display: none; flex-direction: column;
  background: var(--white); border: 1px solid var(--gray-200);
  border-radius: var(--radius); box-shadow: var(--shadow-md); padding: 0.4rem;
}
.nav-item:hover > .nav-dropdown,
.nav-item:focus-within > .nav-dropdown,
.nav-item.is-open > .nav-dropdown { display: flex; }
.nav-dropdown a { display: block; padding: 0.5rem 0.75rem; font-size: 0.85rem; white-space: nowrap; border-radius: var(--radius); }

/* ---- Hero (deep-ocean gradient; image optional) ---- */
.hero {
  position: relative; min-height: 88vh; display: flex; align-items: center; overflow: hidden;
  background:
    radial-gradient(900px 500px at 85% -10%, rgba(127,208,224,0.35), transparent 60%),
    linear-gradient(135deg, #0a2236 0%, var(--primary) 55%, var(--teal) 130%);
}
/* Optional Hawai‘i/UH photo overlay — set via inline background-image on .hero__bg. */
.hero__bg { position: absolute; inset: 0; background-size: cover; background-position: center; opacity: 0.22; mix-blend-mode: luminosity; }
.hero__content { position: relative; z-index: 1; max-width: 760px; padding: 4rem 0; }

.hero__badge {
  display: inline-flex; align-items: center; gap: 0.5rem;
  background: rgba(127,208,224,0.16); border: 1px solid rgba(127,208,224,0.5);
  color: var(--cyan); padding: 0.35rem 1rem; border-radius: 100px;
  font-size: 0.78rem; font-family: var(--font-head); font-weight: 600;
  letter-spacing: 0.05em; text-transform: uppercase; margin-bottom: 1.5rem;
}
.hero h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); color: var(--white); line-height: 1.1; margin-bottom: 1rem; font-weight: 800; }
.hero h1 span { color: var(--primary-on-dark); }
.hero__lead { color: rgba(255,255,255,0.92); font-size: 1.25rem; max-width: 600px; margin-bottom: 0.75rem; font-weight: 500; }
.hero__desc { color: rgba(255,255,255,0.78); font-size: 1.05rem; max-width: 600px; margin-bottom: 2.25rem; line-height: 1.8; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 1rem; }
.hero__award { color: rgba(255,255,255,0.6); font-size: 0.85rem; margin-top: 2rem; }

/* ---- Stats / impact-metrics bar ---- */
.stats-bar { background: var(--primary); color: var(--white); padding: 2.5rem 0; }
.stats-bar .container { display: flex; flex-wrap: wrap; justify-content: space-around; gap: 2rem; }
.stat { text-align: center; }
.stat__number { font-family: var(--font-head); font-size: 2.5rem; font-weight: 800; line-height: 1; margin-bottom: 0.25rem; color: var(--white); }
.stat__label { font-size: 0.9rem; font-weight: 600; opacity: 0.95; }
.stat__note { display: block; font-size: 0.78rem; opacity: 0.7; margin-top: 0.15rem; }

/* ---- Feature / card grids ---- */
.features-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 1.5rem; }

.feature-card { background: var(--white); border: 1px solid var(--gray-300); border-radius: var(--radius-lg); padding: 2rem; transition: var(--transition); }
.feature-card:hover { box-shadow: var(--shadow-md); border-color: var(--cyan); transform: translateY(-2px); }
.feature-card h3 { font-size: 1.05rem; margin-bottom: 0.5rem; color: var(--primary); }
.feature-card p { font-size: 0.92rem; color: var(--gray-700); }
.feature-card__tag { display: inline-block; font-size: 0.7rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; color: var(--teal); margin-bottom: 0.5rem; }
.feature-card__lead { font-size: 0.85rem; color: var(--gray-700); margin-top: 0.75rem; }
.feature-card__lead strong { color: var(--gray-900); }
.feature-card__link { font-family: var(--font-head); font-weight: 700; font-size: 0.85rem; color: var(--primary); }
.feature-card__link:hover { text-decoration: underline; }

/* Cores-as-services list inside feature cards */
.services { list-style: none; margin: 0.75rem 0 0; padding: 0; }
.services li { position: relative; padding-left: 1.4rem; font-size: 0.9rem; margin: 0.35rem 0; }
.services li::before { content: '→'; position: absolute; left: 0; color: var(--teal); font-weight: 700; }

/* "How we do it" aims list */
.aims { list-style: none; margin: 1rem 0 0; padding: 0; }
.aims li { position: relative; padding-left: 1.6rem; margin: 0.65rem 0; }
.aims li::before { content: ''; position: absolute; left: 0; top: 0.55em; width: 8px; height: 8px; border-radius: 50%; background: var(--cyan); }

/* ---- Pilot callout ---- */
.callout { border: 1px solid var(--gray-300); border-left: 4px solid var(--teal); background: var(--white); border-radius: var(--radius-lg); padding: 2rem; margin-top: 2.5rem; box-shadow: var(--shadow-sm); }
.callout h3 { color: var(--primary); margin-bottom: 0.5rem; }
.callout__meta { display: flex; flex-wrap: wrap; gap: 1rem 1.5rem; align-items: center; margin: 1rem 0 1.5rem; font-size: 0.95rem; }
.badge { background: var(--teal-light); border: 1px solid var(--teal); border-radius: 999px; padding: 0.2rem 0.8rem; font-family: var(--font-head); font-weight: 600; font-size: 0.8rem; color: var(--teal); }

/* ---- People / member cards ---- */
.committee-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 1.5rem; }
.member-card { text-align: center; background: var(--white); border-radius: var(--radius-lg); padding: 1.75rem 1.25rem; border: 1px solid var(--gray-300); transition: var(--transition); }
.member-card:hover { box-shadow: var(--shadow-md); border-color: var(--cyan); }
.member-card img { width: 96px; height: 96px; border-radius: 50%; object-fit: cover; margin: 0 auto 1rem; border: 3px solid var(--primary-light); background: var(--gray-100); }
.member-card__name { font-family: var(--font-head); font-size: 0.95rem; font-weight: 700; color: var(--gray-900); margin-bottom: 0.25rem; }
.member-card__title { font-size: 0.8rem; color: var(--gray-500); margin-bottom: 0.25rem; }
.member-card__institution { font-size: 0.8rem; color: var(--teal); font-weight: 600; }
.people-group { margin-bottom: 3rem; }
.people-group:last-child { margin-bottom: 0; }
.people-group__title { text-align: center; font-size: 1.25rem; color: var(--primary); margin-bottom: 1.5rem; }
/* Homepage member cards are links to profile pages — keep the card look. */
a.member-card { display: block; color: inherit; }
a.member-card:hover { color: inherit; }
a.member-card .member-card__name { transition: var(--transition); }
a.member-card:hover .member-card__name { color: var(--primary); }

/* ---- Our Team listing (/people/) ---- */
.page-intro { max-width: 760px; margin: 0 auto 3rem; text-align: center; }
.page-intro h1 { color: var(--primary); font-size: clamp(1.9rem, 4vw, 2.6rem); margin-bottom: 0.75rem; }
.page-intro p { color: var(--gray-500); font-size: 1.1rem; }

.team-section { margin-bottom: 3.5rem; }
.team-section:last-child { margin-bottom: 0; }
.team-section__head { text-align: center; margin-bottom: 1.75rem; }
.team-section__head h2 { color: var(--primary); font-size: 1.5rem; margin-bottom: 0.4rem; }
.team-section__head p { color: var(--gray-500); font-size: 0.98rem; max-width: 640px; margin: 0 auto; }
.team-section__note { text-align: center; color: var(--gray-500); font-style: italic; font-size: 0.95rem; }

.team-section__link { display: inline-block; margin-top: 0.5rem; font-family: var(--font-head); font-weight: 700; font-size: 0.85rem; color: var(--primary); padding: 0.3rem 0.9rem; border: 1px solid var(--primary-light); border-radius: 100px; background: var(--primary-light); }
.team-section__link:hover { background: var(--primary); color: var(--white); }

.team-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 1.5rem; }
.team-card { display: flex; gap: 1.1rem; align-items: flex-start; background: var(--white); border: 1px solid var(--gray-300); border-radius: var(--radius-lg); padding: 1.25rem; transition: var(--transition); }
.team-card:hover { box-shadow: var(--shadow-md); border-color: var(--cyan); transform: translateY(-2px); }
.team-card__photo-link { flex: 0 0 88px; line-height: 0; }
.team-card__photo { width: 88px; height: 110px; object-fit: cover; object-position: center top; border-radius: var(--radius); background: var(--gray-100); border: 1px solid var(--primary-light); }
.team-card__body { min-width: 0; }
.team-card__name { font-family: var(--font-head); font-weight: 700; font-size: 1.02rem; margin-bottom: 0.15rem; }
.team-card__name a { color: var(--gray-900); }
.team-card__name a:hover { color: var(--primary); }
.team-card__role { font-size: 0.82rem; font-weight: 600; color: var(--primary); text-transform: uppercase; letter-spacing: 0.03em; margin-bottom: 0.2rem; }
.team-card__affil { font-size: 0.82rem; color: var(--teal); font-weight: 600; margin-bottom: 0.5rem; }
.team-card__bio { font-size: 0.85rem; color: var(--gray-700); line-height: 1.55; margin: 0 0 0.6rem; }
.team-card__links { display: flex; flex-wrap: wrap; gap: 0.5rem 1rem; }
.team-card__link { font-size: 0.82rem; font-weight: 700; color: var(--primary); }
.team-card__link:hover { text-decoration: underline; }
.team-card__link--unit { color: var(--teal); }

/* ---- Core / Project (unit) pages ---- */
.unit { max-width: 920px; margin: 0 auto; }
.unit__head { margin: 1rem 0 1.5rem; }
.unit__kind { display: inline-block; font-family: var(--font-head); font-weight: 700; font-size: 0.75rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--primary); background: var(--primary-light); padding: 0.25rem 0.75rem; border-radius: 100px; margin-bottom: 0.75rem; }
.unit__head h1 { color: var(--gray-900); font-size: clamp(1.6rem, 3.5vw, 2.3rem); margin-bottom: 0.4rem; }
.unit__tagline { color: var(--teal); font-weight: 600; font-size: 1.05rem; }
.unit__body { line-height: 1.7; color: var(--gray-800); margin-bottom: 2.5rem; }
.unit__body p { margin-bottom: 1rem; }
.unit__roster { margin-bottom: 2.5rem; }
.unit__roster-title { color: var(--primary); font-size: 1.25rem; margin-bottom: 1.25rem; padding-bottom: 0.5rem; border-bottom: 1px solid var(--gray-300); }
.unit__note { color: var(--gray-500); font-size: 0.95rem; }
.unit__note strong { color: var(--gray-700); }
.roster-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 1rem; }
.roster-item { background: var(--white); border: 1px solid var(--gray-300); border-left: 3px solid var(--teal); border-radius: var(--radius); padding: 1rem 1.25rem; }
.roster-item--open { border-left-color: var(--gray-300); background: var(--gray-100); }
.roster-item__head { display: flex; align-items: center; flex-wrap: wrap; gap: 0.5rem 0.75rem; }
.roster-item__name { font-family: var(--font-head); font-weight: 700; color: var(--gray-900); font-size: 1rem; }
.roster-item--open .roster-item__name { color: var(--gray-700); font-style: italic; }
.roster-item__badge { font-size: 0.7rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em; color: var(--gray-500); border: 1px solid var(--gray-300); border-radius: 100px; padding: 0.1rem 0.6rem; }
.roster-item__role { font-size: 0.85rem; font-weight: 600; color: var(--primary); margin-top: 0.15rem; }
.roster-item__resp { font-size: 0.88rem; color: var(--gray-700); line-height: 1.55; margin: 0.4rem 0 0; }
/* Featured staff (e.g. the Program Manager) shown as a prominent photo card. */
.unit__featured { grid-template-columns: repeat(auto-fill, minmax(230px, 250px)); margin-bottom: 1.75rem; }
.member-card--static { cursor: default; border-left: 3px solid var(--teal); }
.member-card--static .member-card__bio { font-size: 0.82rem; color: var(--gray-700); line-height: 1.5; margin: 0.6rem 0 0; }

/* ---- Individual profile page (/people/<slug>/) ---- */
.profile { max-width: 920px; margin: 0 auto; }
.profile__back { display: inline-block; color: var(--gray-500); font-size: 0.875rem; margin-bottom: 1.5rem; }
.profile__back:hover { color: var(--primary); }
.profile__grid { display: grid; grid-template-columns: minmax(220px, 280px) 1fr; gap: 2.5rem; align-items: start; }
.profile__photo { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: center top; border-radius: var(--radius-lg); box-shadow: var(--shadow-sm); background: var(--gray-100); }
.profile__contact { margin-top: 1.5rem; display: flex; flex-direction: column; gap: 0.5rem; font-size: 0.875rem; color: var(--gray-700); }
.profile__contact strong { color: var(--gray-900); }
.profile__links { margin-top: 1.25rem; display: flex; flex-wrap: wrap; gap: 0.5rem; }
.profile__link { padding: 0.35rem 0.85rem; border: 1px solid var(--gray-300); border-radius: 100px; font-size: 0.8rem; font-weight: 600; color: var(--gray-700); }
.profile__link:hover { border-color: var(--cyan); background: var(--primary-light); color: var(--primary); }
.profile__name { font-size: 2rem; color: var(--gray-900); margin-bottom: 0.35rem; }
.profile__role { color: var(--primary); font-weight: 600; font-size: 0.92rem; text-transform: uppercase; letter-spacing: 0.04em; margin-bottom: 0.35rem; }
.profile__affiliation { color: var(--teal); font-weight: 600; font-size: 0.95rem; margin-bottom: 0; }
.profile__unit { margin-top: 0.5rem; font-size: 0.9rem; font-weight: 700; }
.profile__bio { margin-top: 1.75rem; line-height: 1.7; color: var(--gray-800); }
.profile__bio p { margin-bottom: 1rem; }
.profile__source { margin-top: 1.75rem; font-size: 0.8rem; color: var(--gray-500); }

/* ---- Partner / sponsor strip ---- */
.partners__list { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 1.5rem 2.5rem; }
.partner { flex: 0 0 auto; }
.partner img { max-height: 56px; width: auto; filter: grayscale(20%); opacity: 0.85; transition: var(--transition); }
.partner img:hover { filter: grayscale(0%); opacity: 1; }
.partner__name { font-family: var(--font-head); font-weight: 600; color: var(--gray-700); border: 1px solid var(--gray-300); border-radius: 999px; padding: 0.5rem 1.1rem; transition: var(--transition); }
.partner a:hover .partner__name { color: var(--primary); border-color: var(--cyan); background: var(--primary-light); }

/* ---- News list (home) ---- */
.news-item__date { font-size: 0.75rem; color: var(--gray-500); text-transform: uppercase; letter-spacing: 0.05em; font-weight: 600; margin-bottom: 0.5rem; }

/* ---- Contact ---- */
.contact { font-style: normal; line-height: 1.9; font-size: 1.05rem; }
.contact a { font-weight: 600; }
.contact__pi { margin-top: 1.25rem; color: var(--gray-700); }

/* ---- Inner-page hero ---- */
.page-hero { background: var(--dark); padding: 4rem 0; position: relative; overflow: hidden; }
.page-hero::after { content: ''; position: absolute; bottom: 0; left: 0; right: 0; height: 4px; background: linear-gradient(90deg, var(--primary), var(--cyan)); }
.page-hero h1 { color: var(--white); font-size: clamp(1.75rem, 4vw, 2.75rem); margin-bottom: 0.5rem; }
.page-hero p { color: rgba(255,255,255,0.7); font-size: 1.05rem; max-width: 560px; }

/* ---- Footer ---- */
.site-footer { background: var(--gray-900); color: rgba(255,255,255,0.7); padding: 3rem 0 1.5rem; }
.site-footer .container { display: grid; grid-template-columns: 1.5fr 1fr 1fr; gap: 3rem; padding-bottom: 2rem; border-bottom: 1px solid rgba(255,255,255,0.1); margin-bottom: 1.5rem; }
.footer-brand p { font-size: 0.875rem; margin-top: 1rem; line-height: 1.8; }
.footer-col h4 { color: var(--white); font-family: var(--font-head); font-size: 0.8rem; letter-spacing: 0.1em; text-transform: uppercase; margin-bottom: 1rem; }
.footer-col ul { list-style: none; }
.footer-col ul li { margin-bottom: 0.5rem; }
.footer-col ul li a { color: rgba(255,255,255,0.6); font-size: 0.875rem; }
.footer-col ul li a:hover { color: var(--cyan); }
/* Invitation-only Members link, set a touch apart from the other quick links. */
.footer-members { color: rgba(255,255,255,0.45) !important; }
.footer-members span { font-size: 0.85em; margin-right: 0.15em; }
.footer-bottom { font-size: 0.8rem; color: rgba(255,255,255,0.45); }
.footer-bottom a { color: rgba(255,255,255,0.45); }
.footer-bottom a:hover { color: var(--cyan); }

/* ---- Posts / news pages ---- */
.post { max-width: 760px; margin: 0 auto; }
.post__date { color: var(--gray-500); font-size: 0.9rem; margin-bottom: 0.5rem; }
.news-item { border-bottom: 1px solid var(--gray-300); padding: 1.5rem 0; }
.news-item h2, .news-item h3 { margin-bottom: 0.25rem; }

/* ---- Responsive ---- */
@media (max-width: 820px) {
  .site-nav { display: none; flex-direction: column; align-items: stretch; position: absolute; top: 80px; left: 0; right: 0; background: var(--white); padding: 1rem; border-bottom: 1px solid var(--gray-300); box-shadow: var(--shadow-md); }
  .site-nav.is-open { display: flex; }
  .site-header .container { position: relative; }
  .nav-toggle { display: block; }
  /* In the stacked mobile menu, dropdowns render inline (always expanded) and
     the caret toggle is unnecessary — the parent link and its children just
     stack vertically. */
  .nav-item { display: flex; flex-direction: column; align-items: stretch; }
  .nav-item__toggle { display: none; }
  .nav-dropdown {
    position: static; display: flex; min-width: 0; margin: 0 0 0.25rem 0.75rem;
    border: none; border-left: 2px solid var(--gray-200); border-radius: 0;
    box-shadow: none; padding: 0.1rem 0 0.1rem 0.5rem;
  }
  /* In the stacked mobile menu, show the Search label alongside the icon. */
  .nav-search { justify-content: center; }
  .nav-search__label { display: inline; }
  .hero { min-height: 100svh; }
  .hero__actions { flex-direction: column; align-items: stretch; }
  .hero__actions .btn { justify-content: center; }
  .site-footer .container { grid-template-columns: 1fr; gap: 2rem; }
  .stats-bar .container { justify-content: center; }
  .profile__grid { grid-template-columns: 1fr; gap: 1.5rem; }
  .profile__photo { max-width: 260px; }
}
@media (max-width: 480px) {
  .container { padding: 0 1rem; }
  .section { padding: 3rem 0; }
  .features-grid { grid-template-columns: 1fr; }
  .committee-grid { grid-template-columns: repeat(2, 1fr); }
  .team-grid { grid-template-columns: 1fr; }
}

/* ============================================================
   Inner-page compatibility — the standalone .md pages (about,
   cores, people, news, workshops, pilot-grants, contact) put a
   bare .container in <main>. Give them breathing room and keep
   the legacy .card / .people-grid classes styled.
   ============================================================ */
body.page-inner main { padding: 3rem 0 4rem; }
body.page-home  main { padding: 0; }
body.page-inner main > .container > h1 { font-size: 2rem; margin-bottom: 1rem; color: var(--primary); }

.card { background: var(--white); border: 1px solid var(--gray-300); border-left: 4px solid var(--teal); border-radius: var(--radius-lg); padding: 1.5rem 1.75rem; margin: 1.25rem 0; transition: var(--transition); }
.card:hover { box-shadow: var(--shadow-sm); }
.card h2, .card h3 { color: var(--primary); margin-bottom: 0.5rem; }

.people-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 1.5rem; margin: 1.5rem 0; }
.person { margin: 0; text-align: center; }
.person__photo { width: 110px; height: 110px; object-fit: cover; border-radius: 50%; background: var(--primary-light); border: 3px solid var(--primary-light); margin: 0 auto 0.6rem; }
.person figcaption strong { font-family: var(--font-head); color: var(--gray-900); }
.person figcaption span { font-size: 0.85rem; color: var(--gray-500); }

/* ============================================================
   Members area (magic-link auth pages) — retained from the
   original PACAID styles; not part of the public one-pager.
   ============================================================ */
.members-auth { max-width: 460px; margin: 0 auto; padding: 3rem 0; }
.members-auth__form { display: flex; flex-direction: column; gap: .5rem; margin: 1.5rem 0 1rem; }
.members-auth__form label { font-family: var(--font-head); font-weight: 600; color: var(--primary); }
.members-auth__form input { padding: .6rem .75rem; font-size: 1rem; border: 1.5px solid var(--gray-300); border-radius: var(--radius); font-family: var(--font-body); }
.members-auth__form input:focus { outline: 2px solid var(--primary); outline-offset: 2px; border-color: var(--primary); }
.members-auth__form button { margin-top: .25rem; padding: .65rem 1rem; font-size: 1rem; cursor: pointer; color: #fff; background: var(--primary); border: 0; border-radius: var(--radius); font-family: var(--font-head); font-weight: 600; }
.members-auth__form button:hover { background: var(--primary-dark); }
.members-auth__form button:disabled { opacity: .6; cursor: default; }
.members-auth__msg { min-height: 1.4em; margin: .5rem 0; }
.members-auth__msg.is-success { color: #1a7f37; }
.members-auth__msg.is-error { color: #b3261e; }
.members-auth__note { color: var(--gray-500); font-size: .9rem; margin-top: 1.5rem; }

.members-area { padding: 2rem 0 3rem; }
.members-area__bar { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: .5rem; border-bottom: 1px solid var(--gray-300); padding-bottom: .75rem; margin-bottom: 1rem; }
.members-area__who { color: var(--gray-500); font-size: .9rem; }
.members-area__logout { background: none; border: 0; color: var(--primary); cursor: pointer; font: inherit; font-size: .9rem; padding: 0; text-decoration: underline; }
.members-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 1rem; margin-top: 1.5rem; }
.members-card { border: 1px solid var(--gray-300); border-radius: var(--radius); padding: 1.1rem 1.25rem; background: var(--gray-100); }
.members-card h2 { margin-top: 0; font-size: 1.15rem; }
.members-card p { margin-bottom: 0; color: var(--gray-700); }

/* ---- Newsletter ("What's New in PACAID?") ---- */
.newsletter-archive { list-style: none; padding: 0; margin: 2rem 0 0; max-width: 760px; }
.newsletter-archive__item { padding: 1.25rem 0; border-bottom: 1px solid var(--gray-300, #e3e3e3); }
.newsletter-archive__date { display: block; color: var(--muted, #888); font-size: .8rem; text-transform: uppercase; letter-spacing: .06em; margin-bottom: .25rem; }
.newsletter-archive__title { font-size: 1.2rem; font-weight: 600; }
.newsletter-archive__summary { margin: .4rem 0 0; color: var(--gray-700); }
.newsletter-issue { max-width: 760px; }
.newsletter-issue__eyebrow { font-size: .8rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted, #888); margin-bottom: .25rem; }
.newsletter-issue__eyebrow a { color: var(--primary); font-weight: 600; }
.newsletter-issue__date { color: var(--muted, #888); font-size: .95rem; margin: .25rem 0 1.5rem; }
.newsletter-issue__foot { margin-top: 1.5rem; }

/* ---- Dev blog (internal, /members/devblog/) ---- */
.devblog-list { list-style: none; padding: 0; margin: 2rem 0 0; max-width: 760px; }
.devblog-list__item { padding: 1.25rem 0; border-bottom: 1px solid var(--gray-300, #e3e3e3); }
.devblog-list__date { display: block; color: var(--muted, #888); font-size: .8rem; text-transform: uppercase; letter-spacing: .06em; margin-bottom: .25rem; }
.devblog-list__title { font-size: 1.2rem; font-weight: 600; }
.devblog-list__summary { margin: .4rem 0 0; color: var(--gray-700); }
.devblog-list__repos { margin: .35rem 0 0; color: var(--muted, #888); font-size: .8rem; font-family: var(--font-mono, monospace); }
.devblog-post { max-width: 760px; }
.devblog-post__eyebrow { margin: 0; font-size: .8rem; text-transform: uppercase; letter-spacing: .06em; }
.devblog-post__eyebrow a { color: var(--primary); font-weight: 600; }
.devblog-post__badge { display: inline-block; margin-left: .5rem; padding: .1rem .5rem; border-radius: 999px; background: var(--primary-light); color: var(--primary); font-size: .7rem; letter-spacing: .04em; }
.devblog-post__date { color: var(--muted, #888); font-size: .95rem; margin: .25rem 0 1.5rem; }
.devblog-post__foot { margin-top: 1.5rem; }

/* ---- Contact grid ---- */
.contact-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 1.5rem; margin-top: 1.5rem; }
.contact-grid .card h2 { margin: 0 0 .25rem; font-size: 1.2rem; }

/* ---- Search ---- */
.search-input { display: block; width: 100%; max-width: 560px; padding: .6rem .9rem; font-size: 1rem; font-family: var(--font-body, var(--font)); border: 2px solid var(--gray-300, #e3e3e3); border-radius: var(--radius); margin: 1rem 0 1.5rem; outline-offset: 2px; }
.search-input:focus { border-color: var(--primary); }
.search-results { list-style: none; padding: 0; margin: 0; max-width: 720px; }
.search-result { border-bottom: 1px solid var(--gray-300, #e3e3e3); padding: 1rem 0; }
.search-result a { font-size: 1.1rem; }
.search-result__date { display: block; color: var(--muted, #888); font-size: .85rem; margin: .2rem 0 .4rem; }
.search-result__excerpt { margin: 0; font-size: .9rem; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.search-result--empty { color: var(--muted, #888); padding: 1rem 0; }
