/* ==========================================================================
   FORGE — Forum for Research on Global Health Equity
   Stylesheet
   ========================================================================== */

:root {
  --blue:   #0077B6;
  --navy:   #0B1D2E;
  --white:  #FFFFFF;
  --grey:   #5A6872;
  --accent: #4DA8DA;
  --pale:   #E8F4FD;
  --border: #E2E8F0;

  --ink:        #0B1D2E;
  --bg-tint:    #F5F8FA;

  --display: "Jost", "Century Gothic", Futura, "Trebuchet MS", sans-serif;
  --serif: var(--display);
  --sans:  "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
           Helvetica, Arial, "Helvetica Neue", sans-serif;

  --wrap: 1120px;
  --radius: 10px;
  --shadow-sm: 0 1px 2px rgba(11, 29, 46, .04), 0 2px 6px rgba(11, 29, 46, .04);
  --shadow-md: 0 4px 14px rgba(11, 29, 46, .07);

  --header-h: 68px;
}

/* --------------------------------------------------------------------------
   Base
   -------------------------------------------------------------------------- */

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

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

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

h1, h2, h3, h4 {
  font-family: var(--serif);
  font-optical-sizing: auto;
  color: var(--ink);
  font-weight: 600;
  line-height: 1.15;
  margin: 0 0 .5em;
  letter-spacing: -0.015em;
}

p { margin: 0 0 1.1em; }
p:last-child { margin-bottom: 0; }

a { color: var(--blue); text-decoration: none; }
a:hover { color: var(--accent); }

img, svg { max-width: 100%; }

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 24px;
}

.section {
  padding: 92px 0;
}
.section--tight { padding: 64px 0; }

.eyebrow {
  font-family: var(--sans);
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--blue);
  margin: 0 0 18px;
}
.section--navy .eyebrow,
.section--dark .eyebrow { color: var(--accent); }

.section-head { max-width: 720px; margin-bottom: 52px; }
.section-head h2 { font-size: clamp(28px, 3.4vw, 40px); }
.section-head p { font-size: 18px; }

.lead { font-size: 19px; color: var(--grey); }

/* --------------------------------------------------------------------------
   Buttons
   -------------------------------------------------------------------------- */

.btn {
  display: inline-flex;
  align-items: center;
  gap: .5em;
  font-family: var(--sans);
  font-size: 15.5px;
  font-weight: 600;
  line-height: 1;
  padding: 14px 24px;
  border-radius: 8px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background-color .18s ease, color .18s ease,
              border-color .18s ease, transform .18s ease;
}
.btn:hover { transform: translateY(-1px); }

.btn--primary { background: var(--blue); color: #fff; border-color: var(--blue); }
.btn--primary:hover { background: #005f92; border-color: #005f92; color: #fff; }

.btn--ghost { background: transparent; color: var(--ink); border-color: var(--border); }
.btn--ghost:hover { border-color: var(--blue); color: var(--blue); }

.btn--on-navy { background: #fff; color: var(--navy); border-color: #fff; }
.btn--on-navy:hover { background: var(--pale); border-color: var(--pale); color: var(--navy); }

.btn--outline-navy { background: transparent; color: #fff; border-color: rgba(255,255,255,.32); }
.btn--outline-navy:hover { border-color: #fff; color: #fff; }

/* --------------------------------------------------------------------------
   Header
   -------------------------------------------------------------------------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255,255,255,.9);
  backdrop-filter: saturate(160%) blur(10px);
  -webkit-backdrop-filter: saturate(160%) blur(10px);
  border-bottom: 1px solid var(--border);
}

.site-header .wrap {
  height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  color: var(--ink);
}
.brand:hover { color: var(--ink); }
.brand__mark { width: 30px; height: 30px; flex: none; }
.brand__word {
  font-family: var(--serif);
  font-weight: 700;
  font-size: 21px;
  letter-spacing: 0.16em;
  color: var(--ink);
}

.nav {
  display: flex;
  align-items: center;
  gap: 4px;
}
.nav a {
  font-size: 14.5px;
  font-weight: 500;
  color: var(--grey);
  padding: 8px 12px;
  border-radius: 6px;
}
.nav a:hover { color: var(--ink); background: var(--bg-tint); }
.nav .nav__cta {
  margin-left: 8px;
  color: #fff;
  background: var(--blue);
}
.nav .nav__cta:hover { color: #fff; background: #005f92; }

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--border);
  border-radius: 7px;
  width: 42px; height: 40px;
  padding: 0;
  cursor: pointer;
  color: var(--ink);
}
.nav-toggle svg { width: 20px; height: 20px; display: block; margin: 0 auto; }

/* --------------------------------------------------------------------------
   Hero
   -------------------------------------------------------------------------- */

.hero {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(900px 520px at 82% -8%, rgba(77,168,218,.16), transparent 60%),
    linear-gradient(180deg, #fbfdff 0%, #ffffff 62%);
  border-bottom: 1px solid var(--border);
}
.hero .wrap {
  padding-top: 104px;
  padding-bottom: 104px;
  max-width: 960px;
}
.hero h1 {
  font-size: clamp(36px, 5.4vw, 60px);
  line-height: 1.08;
  letter-spacing: -0.02em;
  margin-bottom: 26px;
  max-width: 16ch;
}
.hero p {
  font-size: clamp(18px, 2vw, 21px);
  max-width: 62ch;
  margin-bottom: 34px;
}
.hero__ctas { display: flex; flex-wrap: wrap; gap: 14px; }

/* --------------------------------------------------------------------------
   Two-column (The Problem)
   -------------------------------------------------------------------------- */

.two-col {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 56px;
  align-items: start;
}
.two-col h2 { font-size: clamp(28px, 3.4vw, 40px); }

.stack > * + * { margin-top: 26px; }
.point { padding-left: 20px; border-left: 3px solid var(--pale); }
.point h3 { font-size: 20px; margin-bottom: .35em; }
.point p { font-size: 16.5px; }
.point--accent { border-left-color: var(--blue); }

/* --------------------------------------------------------------------------
   Cards
   -------------------------------------------------------------------------- */

.grid {
  display: grid;
  gap: 24px;
}
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--2 { grid-template-columns: repeat(2, 1fr); }

.card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 30px;
  box-shadow: var(--shadow-sm);
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); border-color: #d6e2ee; }
.card h3 { font-size: 20px; margin-bottom: .4em; }
.card p { font-size: 16px; }

.card__num {
  font-family: var(--serif);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: .12em;
  color: var(--blue);
  display: block;
  margin-bottom: 12px;
}

.card__icon {
  width: 40px; height: 40px;
  display: grid; place-items: center;
  border-radius: 9px;
  background: var(--pale);
  color: var(--blue);
  margin-bottom: 16px;
}
.card__icon svg { width: 22px; height: 22px; }

/* --------------------------------------------------------------------------
   Dark / navy section (The Forum)
   -------------------------------------------------------------------------- */

.section--navy {
  background: var(--navy);
  color: #b9c6d2;
}
.section--navy h1,
.section--navy h2,
.section--navy h3 { color: #fff; }
.section--navy .section-head p { color: #b9c6d2; }

.card--navy {
  background: #10273c;
  border: 1px solid rgba(255,255,255,.09);
  box-shadow: none;
  color: #b9c6d2;
}
.card--navy:hover { border-color: rgba(77,168,218,.5); transform: translateY(-3px); }
.card--navy p { color: #a7b6c4; }
.card--navy .card__icon { background: rgba(77,168,218,.15); color: var(--accent); }

.section--navy .cta-row { margin-top: 44px; }

/* --------------------------------------------------------------------------
   Pale-blue section (DIHS)
   -------------------------------------------------------------------------- */

.section--pale { background: var(--pale); }
.section--pale .card { border-color: #d3e6f7; }

.badge {
  display: inline-block;
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--blue);
  background: #fff;
  border: 1px solid #cfe3f6;
  border-radius: 999px;
  padding: 6px 14px;
  margin-bottom: 20px;
}

.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-top: 48px;
  border-top: 1px solid #cfe3f6;
  padding-top: 40px;
}
.stat__num {
  font-family: var(--serif);
  font-size: clamp(34px, 4.4vw, 48px);
  font-weight: 700;
  color: var(--navy);
  line-height: 1;
}
.stat__label {
  font-size: 14.5px;
  color: var(--grey);
  margin-top: 8px;
}

/* --------------------------------------------------------------------------
   Work packages
   -------------------------------------------------------------------------- */

.wp {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 26px;
  box-shadow: var(--shadow-sm);
  transition: transform .2s ease, box-shadow .2s ease;
  display: flex;
  gap: 18px;
  align-items: flex-start;
}
.wp:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.wp__tag {
  flex: none;
  font-family: var(--serif);
  font-weight: 700;
  font-size: 15px;
  color: var(--blue);
  background: var(--pale);
  border-radius: 8px;
  width: 52px; height: 52px;
  display: grid; place-items: center;
}
.wp h3 { font-size: 18px; margin-bottom: .3em; }
.wp p { font-size: 15px; margin: 0; }

/* --------------------------------------------------------------------------
   Contact
   -------------------------------------------------------------------------- */

.contact-band {
  background:
    radial-gradient(700px 420px at 15% 120%, rgba(77,168,218,.14), transparent 60%),
    var(--bg-tint);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.contact-band .inner {
  max-width: 720px;
  margin: 0 auto;
  text-align: center;
}
.contact-band h2 { font-size: clamp(28px, 3.6vw, 40px); }
.contact-band .lead { margin-bottom: 30px; }
.contact-email {
  display: inline-block;
  font-family: var(--serif);
  font-size: clamp(20px, 2.6vw, 26px);
  font-weight: 700;
  color: var(--navy);
  margin-top: 6px;
}

/* --------------------------------------------------------------------------
   People page
   -------------------------------------------------------------------------- */

.page-hero {
  background: linear-gradient(180deg, #fbfdff, #ffffff);
  border-bottom: 1px solid var(--border);
  padding: 72px 0 64px;
}
.page-hero h1 { font-size: clamp(34px, 4.6vw, 50px); margin-bottom: 18px; }
.page-hero p { max-width: 62ch; font-size: 19px; }

.profile {
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 34px;
  align-items: start;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 34px;
  box-shadow: var(--shadow-sm);
  max-width: 720px;
}
.profile__photo {
  width: 180px; height: 180px;
  border-radius: 12px;
  background: linear-gradient(135deg, #e8f0f8, #d7e6f4);
  display: grid; place-items: center;
  color: var(--blue);
  border: 1px solid var(--border);
}
.profile__photo svg { width: 64px; height: 64px; opacity: .55; }
.profile__name { font-size: 24px; margin-bottom: 4px; }
.profile__role {
  font-family: var(--sans);
  font-size: 13.5px;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--blue);
  margin-bottom: 16px;
}

/* Founders grid */
.founders {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.founder {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 34px 28px;
  box-shadow: var(--shadow-sm);
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.founder:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.founder__photo {
  width: 96px; height: 96px;
  border-radius: 50%;
  background: linear-gradient(135deg, #e8f0f8, #d7e6f4);
  display: grid; place-items: center;
  color: var(--blue);
  border: 1px solid var(--border);
  margin-bottom: 20px;
}
.founder__photo svg { width: 40px; height: 40px; opacity: .55; }
.founder__name { font-size: 20px; margin-bottom: 4px; }
.founder__role {
  font-family: var(--sans);
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--blue);
  margin-bottom: 16px;
}
.founder__role--open { color: var(--grey); }
.founder__bio { font-size: 15px; margin-bottom: 24px; flex: 1 0 auto; }
.founder__links {
  display: flex;
  gap: 12px;
  align-items: center;
  justify-content: center;
}
.social {
  width: 42px; height: 42px;
  border-radius: 50%;
  display: grid; place-items: center;
  border: 1px solid var(--border);
  color: var(--blue);
  transition: background-color .18s ease, color .18s ease,
              border-color .18s ease, transform .18s ease;
}
.social:hover {
  background: var(--blue);
  color: #fff;
  border-color: var(--blue);
  transform: translateY(-1px);
}
.social svg { width: 19px; height: 19px; }

.founder--cta {
  background: var(--bg-tint);
  border-style: dashed;
  border-color: #cbdcec;
  box-shadow: none;
}
.founder--cta:hover { border-color: var(--blue); box-shadow: var(--shadow-sm); }
.founder--cta .founder__photo {
  background: #fff;
  border-style: dashed;
  border-color: #cbdcec;
}
.founder--cta .founder__photo svg { opacity: .7; }

.cta-card {
  background: var(--pale);
  border: 1px solid #cfe3f6;
  border-radius: var(--radius);
  padding: 44px;
  text-align: center;
  max-width: 720px;
  margin-inline: auto;
}
.cta-card h3 { font-size: 24px; margin-bottom: 12px; }
.cta-card p { max-width: 52ch; margin: 0 auto 26px; }

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */

.site-footer {
  background: var(--navy);
  color: #90a1b2;
  padding: 54px 0;
}
.site-footer .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  flex-wrap: wrap;
}
.site-footer .brand__word { color: #fff; }
.footer-tagline { font-size: 14px; color: #90a1b2; }
.footer-nav { display: flex; gap: 22px; flex-wrap: wrap; }
.footer-nav a { color: #b9c6d2; font-size: 14.5px; }
.footer-nav a:hover { color: #fff; }

/* --------------------------------------------------------------------------
   Scroll reveal
   -------------------------------------------------------------------------- */

.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity .7s cubic-bezier(.16,.8,.3,1),
              transform .7s cubic-bezier(.16,.8,.3,1);
  will-change: opacity, transform;
}
.reveal.is-visible { opacity: 1; transform: none; }
.reveal[data-delay="1"] { transition-delay: .08s; }
.reveal[data-delay="2"] { transition-delay: .16s; }
.reveal[data-delay="3"] { transition-delay: .24s; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .btn:hover, .card:hover, .wp:hover { transform: none; }
}

/* --------------------------------------------------------------------------
   Responsive
   -------------------------------------------------------------------------- */

@media (max-width: 900px) {
  .two-col { grid-template-columns: 1fr; gap: 34px; }
  .grid--3 { grid-template-columns: repeat(2, 1fr); }
  .founders { grid-template-columns: 1fr; max-width: 480px; margin: 0 auto; }
  .founder__bio { flex: 0 0 auto; }
  .stats { grid-template-columns: repeat(2, 1fr); gap: 30px 20px; }

  .nav {
    position: absolute;
    top: var(--header-h);
    left: 0; right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
    background: #fff;
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow-md);
    padding: 12px 16px 18px;
    display: none;
  }
  .nav.is-open { display: flex; }
  .nav a { padding: 12px 12px; font-size: 16px; }
  .nav .nav__cta { margin: 8px 0 0; text-align: center; justify-content: center; display: flex; }
  .nav-toggle { display: block; }
  .site-header .wrap { position: relative; }
}

@media (max-width: 620px) {
  body { font-size: 16px; }
  .section { padding: 66px 0; }
  .grid--3, .grid--2 { grid-template-columns: 1fr; }
  .profile { grid-template-columns: 1fr; gap: 22px; }
  .profile__photo { width: 120px; height: 120px; }
  .hero .wrap { padding-top: 72px; padding-bottom: 76px; }
  .hero__ctas .btn { width: 100%; justify-content: center; }
  .cta-card { padding: 32px 22px; }
  .site-footer .wrap { flex-direction: column; align-items: flex-start; }
}

/* --------------------------------------------------------------------------
   Section intro CTA row (main-page teasers → detail pages)
   -------------------------------------------------------------------------- */

.cta-row { margin-top: 40px; display: flex; flex-wrap: wrap; gap: 14px; }
.section-link {
  display: inline-flex;
  align-items: center;
  gap: .4em;
  font-weight: 600;
  font-size: 15.5px;
}

/* --------------------------------------------------------------------------
   DIHS research portfolio (dedicated page)
   -------------------------------------------------------------------------- */

.wp-group { margin-bottom: 54px; }
.wp-group:last-child { margin-bottom: 0; }
.wp-group__head {
  display: flex;
  align-items: baseline;
  gap: 14px;
  margin-bottom: 22px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--border);
}
.wp-group__tag {
  font-family: var(--display);
  font-weight: 600;
  font-size: 14px;
  letter-spacing: .06em;
  color: var(--blue);
  background: var(--pale);
  border-radius: 7px;
  padding: 5px 11px;
  flex: none;
}
.wp-group__head h3 { margin: 0; font-size: 21px; }

.project-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}
.project {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px 26px;
  box-shadow: var(--shadow-sm);
  transition: transform .2s ease, box-shadow .2s ease;
}
.project:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.project h4 { font-size: 17px; margin: 0 0 6px; }
.project__design { font-size: 13.5px; font-weight: 600; color: var(--blue); margin: 0 0 12px; }
.project p { font-size: 14.5px; margin: 0 0 14px; }
.project__meta { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 600;
  color: var(--grey);
  background: var(--bg-tint);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 4px 11px;
}
.chip--star { color: var(--blue); background: var(--pale); border-color: #d3e6f7; }

.key {
  display: flex;
  flex-wrap: wrap;
  gap: 14px 30px;
  padding: 24px 26px;
  background: var(--bg-tint);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  margin-bottom: 48px;
}
.key div { font-size: 14px; }
.key strong { color: var(--ink); font-weight: 600; }

@media (max-width: 720px) {
  .project-list { grid-template-columns: 1fr; }
}

/* ==========================================================================
   Member directory (forum) — mock
   ========================================================================== */

.invite-banner {
  display: flex; flex-wrap: wrap; align-items: center; gap: 14px 20px;
  background: var(--pale); border: 1px solid #cfe3f6; border-radius: var(--radius);
  padding: 18px 22px; margin-top: 30px;
}
.invite-banner__icon {
  width: 38px; height: 38px; flex: none; display: grid; place-items: center;
  background: #fff; border: 1px solid #cfe3f6; border-radius: 9px; color: var(--blue);
}
.invite-banner__icon svg { width: 20px; height: 20px; }
.invite-banner p { margin: 0; font-size: 15px; color: var(--ink); max-width: 52ch; }
.invite-banner .invite-actions { margin-left: auto; display: flex; gap: 10px; flex-wrap: wrap; }

.filters { margin: 44px 0 30px; }
.filters__search {
  display: flex; align-items: center; gap: 10px;
  border: 1px solid var(--border); border-radius: 10px; padding: 13px 16px; background: #fff;
}
.filters__search:focus-within { border-color: var(--blue); box-shadow: 0 0 0 3px rgba(0,119,182,.12); }
.filters__search svg { width: 20px; height: 20px; color: var(--grey); flex: none; }
.filters__search input { border: none; outline: none; font: inherit; font-size: 16px; width: 100%; background: transparent; color: var(--ink); }

.filter-row { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-top: 16px; }
.seg { display: inline-flex; background: var(--bg-tint); border: 1px solid var(--border); border-radius: 999px; padding: 4px; gap: 2px; }
.seg button { border: none; background: transparent; font: inherit; font-size: 14px; font-weight: 500; color: var(--grey); padding: 7px 15px; border-radius: 999px; cursor: pointer; transition: background-color .15s, color .15s; }
.seg button.is-active { background: #fff; color: var(--ink); box-shadow: var(--shadow-sm); font-weight: 600; }
.toggle-chip { border: 1px solid var(--border); background: #fff; color: var(--grey); font: inherit; font-size: 13.5px; font-weight: 600; padding: 8px 14px; border-radius: 999px; cursor: pointer; display: inline-flex; align-items: center; gap: 7px; transition: all .15s; }
.toggle-chip .dot { width: 8px; height: 8px; border-radius: 50%; background: #1a9d5f; }
.toggle-chip.is-active { border-color: var(--blue); color: var(--blue); background: var(--pale); }
.results-count { margin-left: auto; font-size: 14px; color: var(--grey); }

.method-filters { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.method-filters .toggle-chip { font-size: 13px; padding: 6px 12px; }
.method-filters .toggle-chip.is-active { background: var(--pale); }

.member-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.member-card { display: flex; flex-direction: column; background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow-sm); transition: transform .2s, box-shadow .2s, border-color .2s; }
.member-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); border-color: #d6e2ee; }
.member-card__top { display: flex; gap: 14px; align-items: flex-start; margin-bottom: 14px; }
.avatar { width: 52px; height: 52px; border-radius: 50%; background: linear-gradient(135deg, #e8f0f8, #d7e6f4); color: var(--blue); display: grid; place-items: center; font-family: var(--display); font-weight: 600; font-size: 17px; flex: none; border: 1px solid var(--border); }
.member-card__name { font-family: var(--display); font-weight: 600; font-size: 17px; color: var(--ink); line-height: 1.25; margin: 0; }
.member-card__meta { font-size: 13.5px; color: var(--grey); margin-top: 3px; }
.member-card__badges { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; align-items: center; }

.role-badge { font-size: 10.5px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; padding: 3px 9px; border-radius: 999px; border: 1px solid transparent; }
.role-fellow { color: #fff; background: var(--navy); border-color: var(--navy); }
.role-researcher { color: var(--blue); background: var(--pale); border-color: #d3e6f7; }
.role-supervisor { color: var(--grey); background: var(--bg-tint); border-color: var(--border); }
.role-observer { color: var(--grey); background: #fff; border: 1px dashed #c9d4de; }
.verified { display: inline-flex; align-items: center; gap: 3px; font-size: 11.5px; font-weight: 600; color: var(--blue); }
.verified svg { width: 14px; height: 14px; }

.collab { display: inline-flex; align-items: center; gap: 7px; font-size: 13px; font-weight: 600; padding: 6px 12px; border-radius: 8px; margin-bottom: 14px; align-self: flex-start; background: var(--bg-tint); border: 1px solid var(--border); color: var(--ink); }
.collab .dot { width: 8px; height: 8px; border-radius: 50%; flex: none; }
.dot--open { background: #1a9d5f; }
.dot--seeking { background: #e0a100; }
.dot--supervising { background: var(--blue); }
.dot--observing { background: #9aa7b3; }

.member-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 16px; }
.tag { font-size: 12px; color: var(--grey); background: var(--bg-tint); border: 1px solid var(--border); border-radius: 6px; padding: 3px 9px; }

.member-work { font-size: 13.5px; color: var(--grey); border-top: 1px solid var(--border); padding-top: 14px; margin-top: auto; }
.member-work strong { color: var(--ink); font-weight: 600; }
.member-card__foot { display: flex; align-items: center; justify-content: space-between; margin-top: 16px; }
.member-links { display: flex; gap: 8px; }
.member-links a { width: 34px; height: 34px; border-radius: 50%; border: 1px solid var(--border); color: var(--blue); display: grid; place-items: center; transition: all .15s; }
.member-links a:hover { background: var(--blue); color: #fff; border-color: var(--blue); }
.member-links svg { width: 16px; height: 16px; }
.view-profile { font-size: 14px; font-weight: 600; color: var(--blue); background: none; border: none; cursor: pointer; padding: 4px 0; }
.view-profile:hover { color: var(--accent); }
.empty { text-align: center; color: var(--grey); padding: 60px 0; font-size: 16px; grid-column: 1 / -1; }

/* Modal */
.modal { position: fixed; inset: 0; z-index: 200; display: none; align-items: center; justify-content: center; padding: 24px; }
.modal.is-open { display: flex; }
.modal__overlay { position: absolute; inset: 0; background: rgba(11,29,46,.55); }
.modal__panel { position: relative; background: #fff; border-radius: 14px; max-width: 560px; width: 100%; max-height: 88vh; overflow-y: auto; padding: 36px; box-shadow: 0 24px 64px rgba(11,29,46,.3); }
.modal__close { position: absolute; top: 16px; right: 16px; width: 36px; height: 36px; border-radius: 8px; border: 1px solid var(--border); background: #fff; cursor: pointer; color: var(--grey); display: grid; place-items: center; }
.modal__close:hover { color: var(--ink); border-color: var(--blue); }
.modal__close svg { width: 18px; height: 18px; }
.modal__head { display: flex; gap: 16px; align-items: center; margin-bottom: 20px; }
.modal__head .avatar { width: 64px; height: 64px; font-size: 21px; }
.modal h3 { font-size: 23px; margin: 0; }
.modal__section { margin-top: 20px; padding-top: 20px; border-top: 1px solid var(--border); }
.modal__section h4 { font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: var(--blue); font-family: var(--sans); font-weight: 700; margin: 0 0 8px; }
.modal__section p { margin: 0; font-size: 15px; }

@media (max-width: 900px) {
  .member-grid { grid-template-columns: repeat(2, 1fr); }
  .invite-banner .invite-actions { margin-left: 0; width: 100%; }
}
@media (max-width: 620px) {
  .member-grid { grid-template-columns: 1fr; }
  .results-count { margin-left: 0; width: 100%; }
  .seg { width: 100%; overflow-x: auto; }
}

/* Directory: photo avatars + refined status dot */
img.avatar { object-fit: cover; padding: 0; }
.dot--following { background: #9aa7b3; }
.fellows-feature__note { font-size: 14px; color: var(--grey); margin-top: 6px; }

/* ==========================================================================
   Programme explorer (DIHS drill-down)
   ========================================================================== */

.breadcrumb { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; font-size: 14px; color: var(--grey); margin-bottom: 26px; }
.breadcrumb a { color: var(--grey); }
.breadcrumb a:hover { color: var(--blue); }
.breadcrumb .sep { color: #c2ccd6; }
.breadcrumb .current { color: var(--ink); font-weight: 600; }

/* Work-package navigation cards (overview) */
.prog-list { display: grid; gap: 18px; }
a.prog-card {
  display: flex; align-items: center; gap: 20px;
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius);
  padding: 24px 26px; box-shadow: var(--shadow-sm); text-decoration: none;
  transition: transform .2s, box-shadow .2s, border-color .2s;
}
a.prog-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); border-color: #d6e2ee; }
.prog-card .wp__tag { margin: 0; }
.prog-card__body { flex: 1; }
.prog-card__body h3 { margin: 0 0 5px; font-size: 19px; }
.prog-card__body p { margin: 0; font-size: 15px; color: var(--grey); }
.prog-card__count { font-size: 13.5px; font-weight: 600; color: var(--blue); white-space: nowrap; }
.prog-card__chev { color: var(--blue); flex: none; }
.prog-card__chev svg { width: 22px; height: 22px; display: block; }

/* Topic cards (within a work package) */
a.topic-card { text-decoration: none; display: flex; flex-direction: column; }
a.topic-card:hover { border-color: #d6e2ee; }
.topic-card__more { margin-top: 14px; font-size: 14px; font-weight: 600; color: var(--blue); display: inline-flex; align-items: center; gap: 5px; }
.topic-card__more svg { width: 16px; height: 16px; flex: none; }

/* Topic detail */
.detail-meta { display: flex; flex-wrap: wrap; gap: 8px; margin: 16px 0 6px; }
.detail-section { margin-top: 26px; }
.detail-section h4 { font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: var(--blue); font-family: var(--sans); font-weight: 700; margin: 0 0 8px; }
.detail-section p { margin: 0; font-size: 16px; }
.detail-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 30px; }

/* Apply panel + process */
.apply-cta { margin-top: 34px; display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }
.apply-panel { display: none; margin-top: 26px; background: var(--bg-tint); border: 1px solid var(--border); border-radius: var(--radius); padding: 30px; }
.apply-panel.is-open { display: block; }
.field { margin-bottom: 16px; }
.field label { display: block; font-size: 14px; font-weight: 600; color: var(--ink); margin-bottom: 6px; }
.field input, .field textarea { width: 100%; border: 1px solid var(--border); border-radius: 8px; padding: 12px 14px; font: inherit; font-size: 15px; background: #fff; color: var(--ink); }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px rgba(0,119,182,.12); }
.field textarea { min-height: 140px; resize: vertical; }
.field__hint { font-size: 13px; color: var(--grey); margin-top: 6px; }

.process { list-style: none; margin: 20px 0 0; padding: 0; display: grid; gap: 14px; counter-reset: step; }
.process li { display: flex; gap: 14px; align-items: flex-start; font-size: 15px; }
.process li::before { counter-increment: step; content: counter(step); flex: none; width: 28px; height: 28px; border-radius: 50%; background: var(--pale); color: var(--blue); font-family: var(--display); font-weight: 600; font-size: 14px; display: grid; place-items: center; }
.process strong { color: var(--ink); font-weight: 600; }

@media (max-width: 720px) {
  .detail-cols { grid-template-columns: 1fr; gap: 24px; }
  a.prog-card { gap: 14px; padding: 20px; }
  .prog-card__count { display: none; }
}

/* ==========================================================================
   Admin dashboard (mock)
   ========================================================================== */

.admin-login { min-height: calc(100vh - var(--header-h)); display: grid; place-items: center; padding: 48px 24px; background: var(--bg-tint); }
.admin-login__card { background: #fff; border: 1px solid var(--border); border-radius: 14px; box-shadow: var(--shadow-md); padding: 40px; max-width: 420px; width: 100%; text-align: center; }
.admin-login__card .lock { width: 46px; height: 46px; border-radius: 11px; background: var(--pale); color: var(--blue); display: grid; place-items: center; margin: 0 auto 18px; }
.admin-login__card .lock svg { width: 24px; height: 24px; }
.admin-login__card h1 { font-size: 24px; margin-bottom: 8px; }
.admin-login__card p { font-size: 15px; margin-bottom: 22px; }
.admin-login__card .field { text-align: left; }
.admin-note { font-size: 12.5px; color: var(--grey); margin-top: 18px; }

.auth-alt { text-align: center; margin-top: 16px; }
.btn-link {
  background: none; border: none; padding: 0; cursor: pointer;
  font: inherit; font-size: 14px; color: var(--blue); text-decoration: underline;
  text-underline-offset: 2px;
}
.btn-link:hover { color: var(--accent); }

.admin-bar { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding-bottom: 24px; border-bottom: 1px solid var(--border); }
.admin-bar h1 { font-size: 27px; margin: 0; }
.admin-bar__user { display: flex; align-items: center; gap: 14px; font-size: 14px; color: var(--grey); }

.admin-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; margin: 28px 0; }
.stat-tile { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 20px 22px; box-shadow: var(--shadow-sm); }
.stat-tile .n { font-family: var(--display); font-weight: 600; font-size: 30px; color: var(--ink); line-height: 1; }
.stat-tile .l { font-size: 13.5px; color: var(--grey); margin-top: 6px; }

.tabs { margin: 6px 0 26px; }
.queue { display: grid; gap: 18px; }

.admin-card { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow-sm); }
.admin-card__head { display: flex; gap: 14px; align-items: flex-start; }
.admin-card__head .avatar { width: 48px; height: 48px; font-size: 16px; }
.admin-card__grow { flex: 1; }
.admin-card__title { font-family: var(--display); font-weight: 600; font-size: 17px; color: var(--ink); margin: 0; }
.admin-card__meta { font-size: 13.5px; color: var(--grey); margin-top: 3px; }
.admin-card__when { font-size: 12.5px; color: var(--grey); white-space: nowrap; }
.admin-card__body { margin-top: 14px; font-size: 14.5px; }
.admin-card__body .row { margin-top: 10px; }
.mini-label { font-size: 11.5px; text-transform: uppercase; letter-spacing: .08em; color: var(--blue); font-weight: 700; display: block; margin-bottom: 5px; }

.admin-actions { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-top: 18px; padding-top: 18px; border-top: 1px solid var(--border); }
.field-inline { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; color: var(--grey); }
.select { border: 1px solid var(--border); border-radius: 8px; padding: 9px 12px; font: inherit; font-size: 14px; background: #fff; color: var(--ink); cursor: pointer; }
.select:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px rgba(0,119,182,.12); }
.spacer { margin-left: auto; }
.btn--sm { padding: 9px 16px; font-size: 14px; }
.btn--danger { background: transparent; color: #b23b3b; border-color: #e3c2c2; }
.btn--danger:hover { background: #fbecec; border-color: #d79a9a; color: #8f2f2f; }

.status-pill { font-size: 11.5px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; padding: 4px 11px; border-radius: 999px; }
.status-submitted { color: var(--blue); background: var(--pale); border: 1px solid #d3e6f7; }
.status-reviewing { color: #8a6d00; background: #fff6db; border: 1px solid #ecdca6; }
.status-interview { color: #5a4a8a; background: #efeaff; border: 1px solid #d9cffb; }
.status-accepted { color: #0a6b3d; background: #e4f5ec; border: 1px solid #c2e6d2; }
.status-declined { color: #8f2f2f; background: #fbecec; border: 1px solid #e3c2c2; }

.motivation { background: var(--bg-tint); border: 1px solid var(--border); border-radius: 8px; padding: 14px 16px; font-size: 14px; margin-top: 6px; color: var(--ink); }
.cv-link { display: inline-flex; align-items: center; gap: 6px; font-size: 14px; font-weight: 600; }
.cv-link svg { width: 16px; height: 16px; }

.empty-queue { text-align: center; color: var(--grey); padding: 50px 0; }

.toast { position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%) translateY(20px); background: var(--navy); color: #fff; padding: 12px 20px; border-radius: 10px; font-size: 14px; box-shadow: var(--shadow-md); opacity: 0; pointer-events: none; transition: opacity .2s, transform .2s; z-index: 300; }
.toast.is-show { opacity: 1; transform: translateX(-50%) translateY(0); }

@media (max-width: 720px) {
  .admin-stats { grid-template-columns: repeat(2, 1fr); }
  .admin-actions .spacer { margin-left: 0; width: 100%; }
}

/* ==========================================================================
   Newsletter management (admin compose / editor)
   ========================================================================== */

.nl-card__icon {
  width: 48px; height: 48px; border-radius: 10px;
  background: var(--pale); color: var(--blue);
  display: grid; place-items: center; flex: none;
}
.nl-card__icon svg { width: 22px; height: 22px; }

.nl-compose { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow-sm); overflow: hidden; }

.nl-compose__toolbar {
  display: flex; flex-wrap: wrap; gap: 10px; align-items: center;
  padding: 14px 22px; border-bottom: 1px solid var(--border); background: var(--bg-tint);
}
.nl-compose__toolbar .btn { gap: 6px; }
.nl-compose__status { font-size: 13px; color: var(--grey); }

.nl-compose__fields { padding: 22px 22px 0; }
.nl-compose__fields .field { margin-bottom: 14px; }

.nl-editor-wrap { padding: 0 22px 22px; }

/* Quill overrides to match FORGE style */
.nl-editor-wrap .ql-toolbar.ql-snow {
  border: 1px solid var(--border); border-radius: 8px 8px 0 0;
  background: var(--bg-tint); font-family: var(--sans);
}
.nl-editor-wrap .ql-container.ql-snow {
  border: 1px solid var(--border); border-top: none; border-radius: 0 0 8px 8px;
  font-family: var(--sans); font-size: 15px; min-height: 320px;
}
.nl-editor-wrap .ql-editor { padding: 20px 22px; line-height: 1.65; color: var(--ink); }
.nl-editor-wrap .ql-editor.ql-blank::before { color: var(--grey); font-style: normal; left: 22px; right: 22px; }
.nl-editor-wrap .ql-editor h2 { font-family: var(--display); font-size: 22px; font-weight: 600; color: var(--ink); margin: 0 0 12px; }
.nl-editor-wrap .ql-editor h3 { font-family: var(--display); font-size: 18px; font-weight: 600; color: var(--ink); margin: 0 0 10px; }
.nl-editor-wrap .ql-editor p { margin: 0 0 12px; color: var(--grey); }
.nl-editor-wrap .ql-editor a { color: var(--blue); }
.nl-editor-wrap .ql-editor blockquote { border-left: 3px solid var(--blue); padding-left: 16px; color: var(--grey); margin: 14px 0; }

.nl-editor-wrap .ql-snow .ql-stroke { stroke: var(--grey); }
.nl-editor-wrap .ql-snow .ql-fill { fill: var(--grey); }
.nl-editor-wrap .ql-snow .ql-picker { color: var(--grey); }
.nl-editor-wrap .ql-snow button:hover .ql-stroke,
.nl-editor-wrap .ql-snow button.ql-active .ql-stroke { stroke: var(--blue); }
.nl-editor-wrap .ql-snow button:hover .ql-fill,
.nl-editor-wrap .ql-snow button.ql-active .ql-fill { fill: var(--blue); }
.nl-editor-wrap .ql-snow .ql-picker-label:hover,
.nl-editor-wrap .ql-snow .ql-picker-item:hover { color: var(--blue); }

/* Preview panel inside modal */
.nl-preview { background: #f5f8fa; }
.nl-preview > div:first-child { border-radius: 14px 14px 0 0; }

@media (max-width: 720px) {
  .nl-compose__toolbar { flex-direction: column; align-items: stretch; }
  .nl-compose__toolbar .spacer { display: none; }
}

/* ==========================================================================
   Unsubscribe page
   ========================================================================== */

.unsub-page {
  min-height: calc(100vh - var(--header-h));
  display: grid; place-items: center; padding: 48px 24px; background: var(--bg-tint);
}
.unsub-card {
  background: #fff; border: 1px solid var(--border); border-radius: 14px;
  box-shadow: var(--shadow-md); padding: 40px; max-width: 460px; width: 100%; text-align: center;
}
.unsub-card h1 { font-size: 24px; margin-bottom: 8px; }
.unsub-card p { font-size: 15px; margin-bottom: 0; }
.unsub-icon {
  width: 52px; height: 52px; border-radius: 12px;
  display: grid; place-items: center; margin: 0 auto 18px;
}
.unsub-icon svg { width: 26px; height: 26px; }
.unsub-icon--pending { background: var(--pale); color: var(--blue); }
.unsub-icon--done { background: #e4f5ec; color: #0a6b3d; }
.unsub-icon--error { background: #fbecec; color: #b23b3b; }

/* ==========================================================================
   Evidence library (outputs)
   ========================================================================== */

.output-list { display: grid; gap: 18px; }
.output { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 24px 26px; box-shadow: var(--shadow-sm); transition: transform .2s, box-shadow .2s, border-color .2s; }
.output:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); border-color: #d6e2ee; }
.output__type { display: inline-block; font-size: 11px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; padding: 3px 10px; border-radius: 999px; }
.type-published { color: #0a6b3d; background: #e4f5ec; border: 1px solid #c2e6d2; }
.type-preprint { color: var(--blue); background: var(--pale); border: 1px solid #d3e6f7; }
.type-working { color: var(--grey); background: var(--bg-tint); border: 1px solid var(--border); }
.type-progress { color: #8a6d00; background: #fff6db; border: 1px solid #ecdca6; }
.output h3 { font-size: 18px; margin: 12px 0 6px; }
.output__authors { font-size: 14px; color: var(--grey); margin: 0; }
.output__summary { font-size: 14.5px; margin: 12px 0 14px; }
.output__foot { display: flex; flex-wrap: wrap; gap: 8px 18px; align-items: center; font-size: 13.5px; color: var(--grey); border-top: 1px solid var(--border); padding-top: 14px; }
.output__foot .dot-sep { color: #c2ccd6; }
.output__link { font-weight: 600; margin-left: auto; display: inline-flex; align-items: center; gap: 5px; }
.output__link svg { width: 15px; height: 15px; }

/* ==========================================================================
   Learn (resources)
   ========================================================================== */

.res-card { display: flex; flex-direction: column; }
.res-card .chip { align-self: flex-start; margin-bottom: 14px; }
.res-card h3 { font-size: 18px; margin-bottom: .4em; }
.res-card p { font-size: 15px; flex: 1 0 auto; margin-bottom: 16px; }
.res-card__foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; font-size: 13.5px; color: var(--grey); border-top: 1px solid var(--border); padding-top: 14px; }
.res-card__foot a { font-weight: 600; white-space: nowrap; }

/* ==========================================================================
   Open calls
   ========================================================================== */

.announce { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; background: var(--pale); border: 1px solid #cfe3f6; border-radius: 10px; padding: 12px 18px; font-size: 14.5px; color: var(--ink); }
.announce__dot { width: 9px; height: 9px; border-radius: 50%; background: #1a9d5f; flex: none; animation: announce-pulse 2.2s infinite; }
@keyframes announce-pulse { 0% { box-shadow: 0 0 0 0 rgba(26,157,95,.45); } 70% { box-shadow: 0 0 0 8px rgba(26,157,95,0); } 100% { box-shadow: 0 0 0 0 rgba(26,157,95,0); } }
.announce a { font-weight: 600; margin-left: auto; }
@media (prefers-reduced-motion: reduce) { .announce__dot { animation: none; } }

.calls-list { display: grid; gap: 18px; }
.call { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 26px; box-shadow: var(--shadow-sm); transition: transform .2s, box-shadow .2s; }
.call:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }
.call__top { display: flex; align-items: center; gap: 12px; }
.call__status { font-size: 11.5px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; padding: 3px 11px; border-radius: 999px; }
.call-open { color: #0a6b3d; background: #e4f5ec; border: 1px solid #c2e6d2; }
.call-soon { color: #8a6d00; background: #fff6db; border: 1px solid #ecdca6; }
.call-closed { color: var(--grey); background: var(--bg-tint); border: 1px solid var(--border); }
.call__prog { font-size: 13px; color: var(--grey); font-weight: 600; }
.call h3 { font-size: 19px; margin: 12px 0 6px; }
.call__dates { font-size: 14px; color: var(--grey); margin-bottom: 12px; }
.call__dates strong { color: var(--ink); font-weight: 600; }
.call__summary { font-size: 15px; margin-bottom: 16px; }
.call__foot { display: flex; flex-wrap: wrap; gap: 12px 14px; align-items: center; border-top: 1px solid var(--border); padding-top: 16px; }
.call__wps { display: flex; flex-wrap: wrap; gap: 6px; }
.call__foot .btn { margin-left: auto; }

/* ==========================================================================
   Newsletter (interest capture)
   ========================================================================== */

.newsletter { background: var(--pale); border-top: 1px solid #cfe3f6; padding: 56px 0; }
.newsletter__inner { display: flex; flex-wrap: wrap; gap: 22px 44px; align-items: center; justify-content: space-between; }
.newsletter h2 { font-size: clamp(23px, 3vw, 30px); margin-bottom: 6px; }
.newsletter p { font-size: 16px; margin: 0; max-width: 48ch; color: var(--grey); }
.newsletter__form { display: flex; gap: 10px; flex-wrap: wrap; }
.newsletter__form input { border: 1px solid var(--border); border-radius: 8px; padding: 13px 16px; font: inherit; font-size: 15px; min-width: 260px; background: #fff; color: var(--ink); }
.newsletter__form input:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px rgba(0,119,182,.12); }
.newsletter__note { font-size: 12.5px; color: var(--grey); margin-top: 18px; }
.newsletter__done { display: inline-flex; align-items: center; gap: 8px; font-size: 17px; font-weight: 600; color: #0a6b3d; }
.newsletter__done svg { width: 20px; height: 20px; }
@media (max-width: 720px) {
  .newsletter__form { width: 100%; }
  .newsletter__form input { min-width: 0; flex: 1; }
}

/* ==========================================================================
   Stat pictograph (scientific graphic)
   ========================================================================== */

.stat-figure { margin-top: 28px; padding: 22px 24px; background: var(--pale); border: 1px solid #cfe3f6; border-radius: var(--radius); }
.stat-figure__icons { display: flex; gap: 8px; margin-bottom: 14px; }
.pfig { width: 36px; height: 36px; }
.pfig--on { color: var(--blue); }
.pfig--off { color: #bcd3e6; }
.stat-figure__big { font-family: var(--display); font-weight: 600; font-size: 28px; color: var(--navy); margin: 0 0 2px; line-height: 1; }
.stat-figure__text { font-size: 15px; color: var(--grey); margin: 0; }

/* ==========================================================================
   Pipeline stepper (work-package flow graphic)
   ========================================================================== */

.pipeline { display: grid; grid-template-columns: repeat(6, 1fr); gap: 8px; margin: 8px 0 4px; }
.pipeline__step { text-align: center; position: relative; }
.pipeline__step::before { content: ""; position: absolute; top: 20px; left: -50%; width: 100%; height: 2px; background: #cfe3f6; z-index: 0; }
.pipeline__step:first-child::before { display: none; }
.pipeline__n { position: relative; z-index: 1; width: 40px; height: 40px; border-radius: 50%; background: #fff; color: var(--blue); border: 1.5px solid #cfe3f6; display: grid; place-items: center; font-family: var(--display); font-weight: 600; font-size: 15px; margin: 0 auto 10px; }
.pipeline__label { font-size: 12.5px; color: var(--grey); font-weight: 600; line-height: 1.25; }
.section--pale .pipeline__n { border-color: #bcd8f0; }
@media (max-width: 720px) {
  .pipeline { grid-template-columns: repeat(3, 1fr); gap: 20px 8px; }
  .pipeline__step::before { display: none; }
}

/* ==========================================================================
   Hero network motif (decorative)
   ========================================================================== */

.page-hero { position: relative; overflow: hidden; }
.page-hero .wrap { position: relative; z-index: 1; }
.hero-motif { position: absolute; top: 50%; right: 2%; transform: translateY(-50%); width: 40%; max-width: 460px; pointer-events: none; opacity: .5; z-index: 0; }
@media (max-width: 980px) { .hero-motif { display: none; } }

/* ==========================================================================
   Account page (sign in, request to join, edit profile)
   ========================================================================== */

.account-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; align-items: start; }
.account-card { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 28px; box-shadow: var(--shadow-sm); }
.account-card h2 { font-size: 20px; margin: 0 0 8px; }
.account-card > p { font-size: 14.5px; color: var(--grey); margin-bottom: 18px; }
.check-line { display: flex; align-items: center; gap: 9px; font-size: 14px; color: var(--ink); margin-bottom: 10px; }
.check-line input { width: 16px; height: 16px; flex: none; }
.account-bar { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; justify-content: space-between; font-size: 14px; color: var(--grey); margin-bottom: 22px; }
.account-bar strong { color: var(--ink); }
.select-full { width: 100%; border: 1px solid var(--border); border-radius: 8px; padding: 12px 14px; font: inherit; font-size: 15px; background: #fff; color: var(--ink); cursor: pointer; }
.select-full:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px rgba(0,119,182,.12); }
.ep-status-row { display: flex; gap: 22px; align-items: center; flex-wrap: wrap; }
.ep-photo { display: flex; flex-direction: column; align-items: center; gap: 10px; }
.ep-photo .avatar { width: 76px; height: 76px; font-size: 24px; }
.ep-status-badges { flex: 1; min-width: 200px; }
.field.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field.two-col label { margin-bottom: 6px; }

@media (max-width: 720px) {
  .account-grid { grid-template-columns: 1fr; }
  .field.two-col { grid-template-columns: 1fr; }
}
