/* ============================================================
   ICResG — Institutional design system v3
   Premium editorial system for a research institution.
   navy #0d2137 · teal #14b0a0 · amber #e8a33d · line #3b6787
   ============================================================ */
:root {
  --navy-deep: #0a1628;
  --navy: #0d2137;
  --navy-2: #122b45;
  --navy-3: #0a1a2c;
  --teal: #14b0a0;
  --teal-dark: #0e8478;
  --teal-soft: #e0f4f1;
  --amber: #e8a33d;
  --amber-soft: #fdf3e2;
  --line-blue: #3b6787;
  --ink: #13253a;
  --ink-soft: #66788a;
  --hairline: #e3e9ef;
  --paper: #ffffff;
  --paper-alt: #f5f8fa;
  --head: "Poppins", "Segoe UI", -apple-system, sans-serif;
  --body: "Jost", "Century Gothic", "Apple SD Gothic Neo", "Futura", "Trebuchet MS", -apple-system, sans-serif;
  --display: "Playfair Display", Georgia, "Times New Roman", serif;
  --shadow-soft: 0 12px 40px rgba(13,33,55,.06);
  --shadow-hover: 0 18px 55px rgba(13,33,55,.08);
  --shadow-sm: 0 1px 2px rgba(10,22,40,0.04), 0 4px 14px rgba(10,22,40,0.04);
  --shadow-md: var(--shadow-soft);
  --shadow-lg: var(--shadow-hover);
  --radius-sm: 8px;
  --radius: 12px;
  --radius-lg: 20px;
  --section-y: clamp(3.5rem, 6vw, 6rem);
  --container-max: 1400px;
  --bs-body-font-family: var(--body);
  --bs-font-sans-serif: var(--body);
}

html { scroll-behavior: smooth; }
body {
  font-family: var(--body);
  color: var(--ink);
  background: var(--paper);
  font-size: 1.125rem; /* 18px */
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
body > main, main#main { flex: 1 0 auto; }
.site-footer { flex-shrink: 0; }

/* Content width: calm editorial column; artwork may bleed beyond */
.container, .container-lg, .container-md, .container-sm, .container-xl, .container-xxl {
  max-width: var(--container-max);
}

/* ---- Typography scale ---- */
h1, h2, h3, h4, h5, .display-head, .page-title, .hero-title {
  font-family: var(--head);
  color: var(--navy);
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -0.02em;
}
h1, .page-title { font-size: clamp(2rem, 1.4rem + 2vw, 3rem); font-weight: 700; } /* ~48px */
h2 { font-size: clamp(1.65rem, 1.25rem + 1.2vw, 2.375rem); } /* ~38px */
h3 { font-size: clamp(1.35rem, 1.15rem + 0.6vw, 1.875rem); } /* ~30px */
h4, .h4 { font-size: clamp(1.15rem, 1.05rem + 0.4vw, 1.5rem); } /* ~24px */
.text-small, small, .small { font-size: 0.9375rem; } /* 15px */
a { color: var(--teal-dark); text-decoration: none; transition: color .15s; }
a:hover { color: var(--navy); text-decoration: underline; }
.text-soft { color: var(--ink-soft); }
.text-teal { color: var(--teal) !important; }
.small-caps, .page-label {
  font-family: var(--head);
  font-size: 0.75rem; font-weight: 600;
  letter-spacing: 0.18em; text-transform: uppercase; color: var(--teal-dark);
}
.small-caps::before, .page-label::before {
  content: ""; display: inline-block; width: 22px; height: 2px;
  background: var(--amber); vertical-align: middle; margin-right: 0.55rem;
}
.display-head {
  font-family: var(--display);
  font-weight: 700;
  letter-spacing: -0.01em;
}

/* ---------------- Header ---------------- */
.site-topbar {
  background: var(--navy-3); color: rgba(255,255,255,0.82);
  font-size: 0.78rem; letter-spacing: 0.05em;
}
.site-topbar a { color: var(--teal); font-weight: 600; }
.site-topbar a:hover { color: #fff; }
.site-header {
  background: var(--navy);
  position: sticky; top: 0; z-index: 1030;
  box-shadow: 0 1px 0 rgba(255,255,255,0.04), 0 8px 28px rgba(6,14,24,0.22);
}
.site-brand { display: flex; align-items: center; gap: 0.75rem; }
.site-brand img { height: 44px; width: 44px; }
.site-brand .brand-name {
  font-family: var(--head); font-size: 1.06rem; font-weight: 700;
  line-height: 1.2; color: #fff;
}
.site-brand .brand-motto {
  font-size: 0.68rem; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--teal); font-weight: 600;
}
.navbar-dark-custom .nav-link {
  color: rgba(255,255,255,0.82); font-size: 0.9rem; font-weight: 500;
  padding: 0.7rem 0.7rem; border-radius: 6px;
}
.navbar-dark-custom .nav-link:hover { color: #fff; background: rgba(255,255,255,0.06); text-decoration: none; }
.navbar-dark-custom .nav-link.active { color: var(--teal); }
.navbar-dark-custom .dropdown-toggle::after { vertical-align: 0.15em; }
.navbar-dark-custom .dropdown-menu {
  background: var(--navy-2); border: 1px solid rgba(59,103,135,0.5);
  border-radius: 8px; box-shadow: 0 8px 24px rgba(6,14,24,0.35); padding: 0.4rem;
  margin-top: 0.4rem;
}
.navbar-dark-custom .dropdown-item {
  color: rgba(255,255,255,0.82); font-size: 0.9rem; font-weight: 500;
  border-radius: 6px; padding: 0.5rem 0.8rem;
}
.navbar-dark-custom .dropdown-item:hover,
.navbar-dark-custom .dropdown-item:focus { background: rgba(20,176,160,0.16); color: #fff; }
.navbar-dark-custom .dropdown-item.active { background: var(--teal); color: var(--navy-3); }
@media (min-width: 1200px) {
  .navbar-dark-custom .dropdown:hover > .dropdown-menu { display: block; }
}
@media (max-width: 1199.98px) {
  .navbar-dark-custom .dropdown-menu {
    background: transparent; border: none; box-shadow: none;
    padding-left: 0.8rem; margin-top: 0;
  }
}
.navbar-toggler { border-color: rgba(255,255,255,0.25); }
.navbar-toggler-icon {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba(255,255,255,0.85)' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}
.nav-search .form-control {
  background: rgba(255,255,255,0.08); border: 1px solid rgba(255,255,255,0.18);
  color: #fff; border-radius: 6px;
}
.nav-search .form-control::placeholder { color: rgba(255,255,255,0.45); }
.nav-search .form-control:focus {
  background: rgba(255,255,255,0.12); border-color: var(--teal);
  box-shadow: 0 0 0 .15rem rgba(20,176,160,0.25); color: #fff;
}

/* ---------------- Hero (editorial, brand-first) ---------------- */
.hero {
  position: relative;
  min-height: min(88vh, 820px);
  display: flex; align-items: center;
  background: var(--navy-deep);
  background-image:
    radial-gradient(rgba(59,103,135,0.22) 1px, transparent 1px),
    radial-gradient(1100px 520px at 88% 28%, rgba(20,176,160,0.16), transparent 62%),
    radial-gradient(800px 480px at 8% 92%, rgba(232,163,61,0.10), transparent 60%),
    linear-gradient(155deg, #0a1628 0%, #102a44 52%, #0a1628 100%);
  background-size: 28px 28px, cover, cover, cover;
  color: #fff;
  padding: clamp(3.5rem, 8vw, 6.5rem) 0;
  overflow: hidden;
}
.hero::after {
  content: ""; position: absolute; inset: 0 0 auto 0; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(20,176,160,0.45), transparent);
}
.hero .container { position: relative; z-index: 2; }
.hero-orb { position: absolute; border-radius: 50%; filter: blur(80px); pointer-events: none; z-index: 0; }
.hero-orb-1 { width: 560px; height: 560px; background: rgba(20,176,160,0.18); top: -160px; right: -100px; }
.hero-orb-2 { width: 440px; height: 440px; background: rgba(232,163,61,0.10); bottom: -180px; left: -100px; }

.hero-brand {
  display: flex; align-items: center; gap: 1rem; margin-bottom: 1.75rem;
}
.hero-logo {
  width: 72px; height: 72px; flex-shrink: 0;
  filter: drop-shadow(0 12px 28px rgba(0,0,0,0.35));
}
.hero-brand-short {
  font-family: var(--head); font-weight: 700; font-size: clamp(1.6rem, 1.2rem + 1.2vw, 2.1rem);
  color: #fff; letter-spacing: -0.02em; line-height: 1.1; margin: 0;
}
.hero-brand-full {
  font-family: var(--head); font-size: 0.78rem; letter-spacing: 0.14em; text-transform: uppercase;
  color: rgba(255,255,255,0.72); margin: 0.25rem 0 0; font-weight: 500;
}

.hero-title, .hero h1.hero-title {
  color: #fff; font-weight: 700;
  font-size: clamp(2.4rem, 1.6rem + 3.2vw, 4.25rem); /* ~64–72px */
  max-width: 16ch; letter-spacing: -0.025em; line-height: 1.05;
  margin: 0 0 1.1rem;
}
.hero-lead, .hero p.hero-lead {
  color: rgba(255,255,255,0.84); max-width: 42ch;
  font-size: clamp(1.05rem, 0.95rem + 0.45vw, 1.25rem); line-height: 1.65;
  margin: 0 0 1.75rem;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 0.75rem; align-items: center; }

.hero-visual {
  position: relative;
  margin-right: calc(-1 * clamp(0px, 4vw, 48px));
}
.hero-visual::before {
  content: ""; position: absolute; inset: 6% 4%; border-radius: 50%;
  background: radial-gradient(circle, rgba(20,176,160,0.22), transparent 68%);
  filter: blur(28px); z-index: 0;
}
.hero-art-img, .hero-visual img {
  position: relative; z-index: 1; width: 100%; max-width: min(108%, 720px);
  margin-left: auto; display: block;
  filter: drop-shadow(0 32px 70px rgba(0,0,0,0.42));
  animation: hero-float 8s ease-in-out infinite; will-change: transform;
}
@keyframes hero-float { 0%,100% { transform: translate3d(0,0,0); } 50% { transform: translate3d(0,-10px,0); } }
@media (max-width: 991.98px) {
  .hero { min-height: 0; padding: 3.25rem 0 3.5rem; }
  .hero-visual { margin-right: 0; margin-top: 1.25rem; }
  .hero-title, .hero h1.hero-title { max-width: none; }
}
@media (prefers-reduced-motion: reduce) {
  .hero-art-img, .hero-visual img { animation: none; }
}
/* Legacy aliases kept for older markup */
.hero-eyebrow {
  font-family: var(--head); font-size: 0.74rem; font-weight: 600;
  letter-spacing: 0.22em; text-transform: uppercase; color: var(--amber);
}
.hero-eyebrow::before {
  content: ""; display: inline-block; width: 34px; height: 2px;
  background: var(--amber); vertical-align: middle; margin-right: 0.6rem;
}

/* ---------------- Buttons ---------------- */
.btn { border-radius: var(--radius-sm); font-weight: 600; font-family: var(--head); font-size: 0.9375rem; padding: 0.62rem 1.35rem; transition: transform .15s ease, box-shadow .18s ease, background .15s ease, border-color .15s ease; }
.btn:hover { transform: translateY(-1px); }
.btn-sm { padding: 0.4rem 0.9rem; font-size: 0.8125rem; }
.btn-lg { padding: 0.78rem 1.7rem; font-size: 1rem; }
.btn-primary, .btn-teal {
  background: var(--teal); border-color: var(--teal); color: var(--navy-3);
  box-shadow: 0 4px 14px rgba(20,176,160,0.28);
}
.btn-primary:hover, .btn-teal:hover, .btn-primary:focus {
  background: #17c7b5; border-color: #17c7b5; color: var(--navy-3);
  box-shadow: 0 6px 20px rgba(20,176,160,0.36);
}
.btn-amber { box-shadow: 0 4px 14px rgba(232,163,61,0.30); }
.btn-outline-primary { color: var(--teal-dark); border-color: var(--teal); }
.btn-outline-primary:hover { background: var(--teal); border-color: var(--teal); color: var(--navy-3); }
.btn-outline-light { border-color: rgba(255,255,255,0.45); color: #fff; }
.btn-outline-light:hover { background: rgba(255,255,255,0.12); border-color: #fff; color: #fff; }
.btn-amber { background: var(--amber); border-color: var(--amber); color: var(--navy-3); }
.btn-amber:hover { background: #f2b355; border-color: #f2b355; color: var(--navy-3); }

/* ---------------- Statistics band (luxury type, no cards) ---------------- */
.stat-band {
  background: var(--navy-deep);
  background-image:
    radial-gradient(1100px 400px at 50% -10%, rgba(20,176,160,0.10), transparent 70%),
    radial-gradient(rgba(59,103,135,0.16) 1px, transparent 1px);
  background-size: cover, 26px 26px;
  border-top: 1px solid rgba(59,103,135,0.28);
  border-bottom: 1px solid rgba(59,103,135,0.28);
  position: relative; padding: clamp(2.4rem, 5vw, 4rem) 0;
}
.stat {
  text-align: center; padding: 0.8rem 0.9rem; position: relative; height: 100%;
}
/* elegant divider between stats on wide screens */
.stat-band .col:not(:last-child) .stat::after {
  content: ""; position: absolute; right: 0; top: 18%; height: 64%; width: 1px;
  background: linear-gradient(180deg, transparent, rgba(255,255,255,0.14), transparent);
}
.stat .stat-num {
  font-family: var(--display, "Playfair Display", Georgia, serif);
  font-size: clamp(2.6rem, 1.8rem + 2.6vw, 4.6rem);
  font-weight: 700; line-height: 1; letter-spacing: -0.01em;
  color: #ffffff;
  text-shadow: 0 2px 30px rgba(20,176,160,0.25);
}
.stat .stat-suffix { color: var(--amber); }
.stat .stat-label {
  font-family: var(--head); font-size: 0.7rem; letter-spacing: 0.2em; text-transform: uppercase;
  color: rgba(255,255,255,0.6); margin-top: 0.7rem; font-weight: 600;
}
.stat .stat-rule { width: 26px; height: 2px; background: var(--amber); margin: 0.55rem auto 0; opacity: 0.75; }
/* Admin dashboard stat cards sit on light cards, not the dark homepage band —
   override the white numbers/labels so they're legible. */
.card-plain.stat .stat-num {
  color: var(--navy); text-shadow: none;
  font-size: clamp(1.9rem, 1.4rem + 1.4vw, 2.7rem);
}
.card-plain.stat .stat-label { color: var(--ink-soft); }
/* Bootstrap has no row-cols-*-7; provide 5/6/7 for the stat row on wide screens */
@media (min-width: 1200px) {
  .row-cols-xl-5 > * { flex: 0 0 auto; width: 20%; }
  .row-cols-xl-6 > * { flex: 0 0 auto; width: 16.6667%; }
  .row-cols-xl-7 > * { flex: 0 0 auto; width: 14.2857%; }
}

/* ---------------- Sections & cards ---------------- */
.section { padding: var(--section-y) 0; }
.section-alt { background: var(--paper-alt); }
.section-head { margin-bottom: 2.25rem; }
.section-head h2 { margin-bottom: 0.2rem; }
.card-plain {
  border: 1px solid var(--hairline); border-radius: var(--radius);
  background: var(--paper); padding: 1.5rem 1.6rem;
  box-shadow: none;
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
  position: relative; overflow: hidden;
}
.row > [class*="col-"] > .card-plain:only-child,
.card-plain.h-100 { height: 100%; }
.card-plain:hover { border-color: rgba(59,103,135,0.35); box-shadow: var(--shadow-soft); transform: translateY(-2px); }
.card-plain h3 { font-size: 1.05rem; margin-bottom: 0.4rem; }
a.card-plain { text-decoration: none; color: inherit; display: block; }
a.card-plain:hover { text-decoration: none; }
.card-accent { border-top: 3px solid var(--teal); }
.card-hover-bar::before {
  content: ""; position: absolute; left: 0; top: 0; height: 2px; width: 0;
  background: var(--teal); transition: width .28s ease;
}
.card-hover-bar:hover::before { width: 100%; }
/* Non-card editorial containers */
.editorial-block, .content-block { padding: 0 0 2rem; margin-bottom: 2rem; border-bottom: 1px solid var(--hairline); }
.editorial-block:last-child, .content-block:last-child { border-bottom: 0; margin-bottom: 0; }
.benefit-item { text-align: center; padding: 0.5rem 0.75rem 1rem; }
.benefit-item h3 { font-size: 1.05rem; margin-bottom: 0.4rem; }
.panel-soft, .editorial-panel, .dash-panel, .side-panel, .toc-panel, .motto-panel {
  background: var(--paper); border: 1px solid var(--hairline); border-radius: var(--radius);
  padding: 1.35rem 1.45rem;
}
.dash-panel h3, .dash-panel .fs-6 { font-size: 0.95rem !important; letter-spacing: 0.02em; }
.project-tile, .area-tile {
  display: block; height: 100%; text-decoration: none; color: inherit;
  background: var(--paper); border: 1px solid var(--hairline); border-radius: var(--radius);
  padding: 1.35rem 1.4rem; transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease;
}
.project-tile:hover, .area-tile:hover { border-color: rgba(20,176,160,0.45); box-shadow: var(--shadow-soft); transform: translateY(-2px); text-decoration: none; color: inherit; }
.area-tile { padding: 0; overflow: hidden; }
.area-name { display: block; font-family: var(--head); font-weight: 600; font-size: 1.05rem; color: var(--navy); margin-bottom: 0.25rem; }
.theme-section { margin-bottom: 3.5rem; }
.theme-section:last-child { margin-bottom: 0; }
.theme-label { display: flex; align-items: center; gap: 1rem; margin-bottom: 1.5rem; padding-bottom: 1rem; border-bottom: 1px solid var(--hairline); }
.theme-label h2 { margin: 0; font-size: clamp(1.25rem, 1.1rem + 0.6vw, 1.6rem); }
.editorial-item { padding: 1.15rem 0; }
.portal-welcome h2 { color: var(--navy); }
.portal-actions { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.activity-line { font-size: 0.88rem; }
.footer-brand-name { font-family: var(--head); color: #fff; }
.footer-ico { color: var(--teal); }
.icon-chip {
  width: 42px; height: 42px; border-radius: 9px; display: inline-flex;
  align-items: center; justify-content: center; margin-bottom: 0.8rem;
  background: var(--teal-soft); color: var(--teal-dark); font-size: 1.15rem;
}
.list-rule > * { border-bottom: 1px solid var(--hairline); padding: 1.2rem 0; }
.list-rule > *:first-child { border-top: 1px solid var(--hairline); }

/* ---------------- Members ---------------- */
.member-photo {
  width: 74px; height: 74px; border-radius: 50%; object-fit: cover; flex-shrink: 0;
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-2) 100%);
  color: var(--teal);
  display: inline-flex; align-items: center; justify-content: center;
  font-family: var(--head); font-size: 1.35rem; font-weight: 700;
  border: 2px solid rgba(20,176,160,0.4);
}
.member-photo-lg { width: 150px; height: 150px; font-size: 2.6rem; }
.member-photo-xl {
  width: 128px; height: 128px; font-size: 2.4rem;
  border: 3px solid #fff; box-shadow: 0 10px 30px rgba(0,0,0,0.28);
}

/* ---- ORCID-style member profile ---- */
.member-hero {
  background: linear-gradient(150deg, #0a1628 0%, #102a44 60%, #0a1628 100%);
  color: #fff; padding: clamp(2.4rem, 5.5vw, 3.75rem) 0 clamp(1.8rem, 4vw, 2.75rem);
  border-bottom: 3px solid var(--teal);
}
.member-hero .member-name { font-family: var(--head); font-weight: 700; font-size: clamp(1.65rem, 3.4vw, 2.35rem); color: #fff; line-height: 1.15; word-break: break-word; }
.member-hero .member-sub { color: rgba(255,255,255,0.78); font-size: 0.95rem; }
.member-hero .small-caps { color: var(--amber); }
.profile-aside { position: sticky; top: 1rem; }
@media (max-width: 991.98px) { .profile-aside { position: static; } }
.id-link {
  display: flex; align-items: center; gap: 0.55rem; text-decoration: none;
  color: var(--navy); font-size: 0.9rem; padding: 0.35rem 0; word-break: break-word;
}
.id-link:hover { color: var(--teal-dark); }
.id-link span { min-width: 0; overflow-wrap: anywhere; }
/* Google Scholar-style "Cited by" panel (Crossref-sourced) */
.cite-panel .cm-row { display: flex; gap: 0.4rem; text-align: center; margin: 0.5rem 0 0.9rem; }
.cite-panel .cm-cell { flex: 1; background: rgba(20,176,160,0.08); border: 1px solid rgba(20,176,160,0.18); border-radius: 10px; padding: 0.55rem 0.2rem; }
.cite-panel .cm-num { display: block; font-family: var(--head); font-weight: 700; font-size: 1.45rem; line-height: 1; color: var(--navy); }
.cite-panel .cm-lbl { display: block; font-size: 0.6rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink-soft); margin-top: 0.3rem; }
.cite-chart { display: flex; align-items: flex-end; gap: 5px; height: 150px; margin: 0.4rem 0 0.6rem; }
.cc-col { flex: 1 1 0; min-width: 0; height: 100%; display: flex; flex-direction: column; justify-content: flex-end; align-items: center; }
.cc-col .cc-val { font-size: 0.56rem; font-weight: 600; color: var(--ink-soft); margin-bottom: 2px; }
.cc-col .cc-bar { width: 100%; max-width: 26px; min-height: 3px; background: linear-gradient(180deg, var(--teal), var(--teal-dark)); border-radius: 3px 3px 0 0; transition: opacity 0.15s; }
.cc-col:hover .cc-bar { opacity: 0.82; }
.cc-col .cc-year { font-size: 0.58rem; color: var(--ink-soft); margin-top: 4px; font-family: var(--head); white-space: nowrap; }
.cite-panel .cite-src { font-size: 0.72rem; color: var(--ink-soft); }
.cite-panel .cite-src a { color: var(--teal-dark); }

/* Shareable public profile link (ORCID/LinkedIn-style) */
.share-url { display: flex; align-items: stretch; gap: 0.4rem; }
.share-url-text {
  flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
  font-family: var(--mono, ui-monospace, monospace); font-size: 0.82rem; color: var(--navy);
  background: var(--paper-alt); border: 1px solid var(--hairline); border-radius: 8px;
  padding: 0.4rem 0.6rem; line-height: 1.5;
}
.share-copy { flex-shrink: 0; }

/* ---- Member profile publication list (year-grouped, Scholar-style) ---- */
.pub-count { display: inline-block; font-family: var(--head); font-size: 0.7rem; font-weight: 700;
  color: var(--teal-dark); background: rgba(20,176,160,0.12); border-radius: 999px; padding: 0.05rem 0.5rem; vertical-align: 3px; }
.pub-list { position: relative; margin-top: 0.5rem; padding-left: 1.35rem; }
.pub-list::before { content: ""; position: absolute; left: 5px; top: 6px; bottom: 6px; width: 2px; background: var(--hairline); }
.pub-year-group { position: relative; display: grid; grid-template-columns: 46px 1fr; gap: 0.4rem 1.1rem; padding: 0.2rem 0 1.2rem; }
.pub-year-group::before { content: ""; position: absolute; left: calc(-1.35rem + 1px); top: 7px; width: 10px; height: 10px; border-radius: 50%; background: var(--teal); box-shadow: 0 0 0 3px rgba(20,176,160,0.18); }
.pub-year-group:last-child { padding-bottom: 0; }
.pub-year { font-family: var(--display, "Playfair Display", var(--head)); font-weight: 700; font-size: 1.2rem; color: var(--teal-dark); line-height: 1.4; }
.pub-year-items { display: flex; flex-direction: column; gap: 1rem; min-width: 0; }
.pub-card { display: flex; justify-content: space-between; align-items: flex-start; gap: 1rem; }
.pub-card-main { min-width: 0; }
.pub-card-head { margin: 0; line-height: 1.4; }
.pub-card-title { font-family: var(--head); font-weight: 600; font-size: 1rem; color: var(--navy); text-decoration: none; }
.pub-card-title:hover { color: var(--teal-dark); text-decoration: underline; }
.pub-badge { display: inline-block; font-family: var(--head); font-size: 0.56rem; letter-spacing: 0.09em;
  text-transform: uppercase; font-weight: 700; color: #fff; background: var(--navy);
  padding: 0.13rem 0.42rem; border-radius: 5px; margin-right: 0.5rem; vertical-align: 1px; white-space: nowrap; }
.pub-badge-journal { background: #16607a; }
.pub-badge-conference { background: #9a6a12; }
.pub-badge-book { background: #4a3b74; }
.pub-badge-preprint { background: #5b6470; }
.pub-badge-report { background: #2f6d5b; }
.pub-card-meta { display: flex; flex-wrap: wrap; gap: 0.2rem 0.9rem; margin-top: 0.3rem; font-size: 0.82rem; color: var(--ink-soft); }
.pub-card-meta a { color: var(--teal-dark); text-decoration: none; overflow-wrap: anywhere; }
.pub-card-meta a:hover { text-decoration: underline; }
.pub-cite { flex-shrink: 0; text-align: center; text-decoration: none; min-width: 50px;
  background: rgba(20,176,160,0.09); border: 1px solid rgba(20,176,160,0.22); border-radius: 10px; padding: 0.32rem 0.5rem; }
.pub-cite:hover { background: rgba(20,176,160,0.16); }
.pub-cite .pc-num { display: block; font-family: var(--head); font-weight: 700; color: var(--teal-dark); font-size: 1.05rem; line-height: 1; }
.pub-cite .pc-lbl { display: block; font-size: 0.55rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--ink-soft); margin-top: 2px; }
@media (max-width: 575.98px) {
  .pub-year-group { grid-template-columns: 1fr; gap: 0.25rem; }
  .pub-year { font-size: 1rem; color: var(--ink-soft); }
}
.tag-cloud { display: flex; flex-wrap: wrap; gap: 0.4rem; }
.tag { background: rgba(20,176,160,0.1); color: var(--teal-dark); border: 1px solid rgba(20,176,160,0.25); border-radius: 999px; padding: 0.25rem 0.7rem; font-size: 0.8rem; font-family: var(--head); }
.section-h { font-family: var(--head); font-weight: 700; font-size: 1.2rem; color: var(--navy); padding-bottom: 0.4rem; border-bottom: 2px solid var(--hairline); margin-bottom: 0.9rem; }
.timeline { position: relative; padding-left: 1.1rem; }
.timeline::before { content: ""; position: absolute; left: 3px; top: 4px; bottom: 4px; width: 2px; background: var(--hairline); }
.timeline-item { position: relative; padding: 0 0 1rem 0.5rem; }
.timeline-item::before { content: ""; position: absolute; left: -1.1rem; top: 5px; width: 9px; height: 9px; border-radius: 50%; background: var(--teal); box-shadow: 0 0 0 3px rgba(20,176,160,0.18); }
.timeline-role { font-family: var(--head); font-weight: 600; color: var(--navy); }
.timeline-org { color: var(--ink); font-size: 0.92rem; }
.timeline-span { color: var(--ink-soft); font-size: 0.82rem; font-family: var(--head); }
.clean-list { list-style: none; padding-left: 0; margin: 0; }
.clean-list li { padding: 0.3rem 0; border-bottom: 1px solid var(--hairline); }
.clean-list li:last-child { border-bottom: 0; }
.cite-chip { flex-shrink: 0; align-self: center; text-align: center; background: rgba(20,176,160,0.1); color: var(--teal-dark); border-radius: 10px; padding: 0.25rem 0.6rem; font-family: var(--head); font-weight: 700; font-size: 1rem; line-height: 1; }
.cite-chip small { display: block; font-weight: 500; font-size: 0.6rem; letter-spacing: 0.06em; text-transform: uppercase; opacity: 0.8; }

/* ---------------- Publications & badges ---------------- */
.pub-entry .pub-title { font-family: var(--head); font-weight: 600; font-size: 1.02rem; }
.pub-entry .pub-title a { color: var(--navy); }
.pub-entry .pub-title a:hover { color: var(--teal-dark); }
.pub-meta { font-size: 0.87rem; color: var(--ink-soft); }
.badge-type {
  font-family: var(--head); font-size: 0.64rem; letter-spacing: 0.1em;
  text-transform: uppercase; background: var(--teal-soft); color: var(--teal-dark);
  border-radius: 4px; padding: 0.32em 0.7em; font-weight: 600; display: inline-block;
}
.badge-amber { background: var(--amber-soft); color: #a86f1c; }
.badge-soft { background: var(--paper-alt); color: var(--ink-soft); border: 1px solid var(--hairline); }
/* Interest / keyword pills */
.pill {
  display: inline-block; font-size: 0.78rem; font-weight: 500;
  background: var(--paper-alt); border: 1px solid var(--hairline); color: var(--ink);
  border-radius: 999px; padding: 0.28em 0.8em; margin: 0 0.3rem 0.4rem 0;
}
.pill-teal { background: var(--teal-soft); border-color: rgba(20,176,160,0.3); color: var(--teal-dark); }

/* ---------------- Progress ---------------- */
.progress { height: 6px; border-radius: 3px; background: #e6edf3; }
.progress-bar { background: linear-gradient(90deg, var(--teal) 0%, #17c7b5 100%); }

/* ---------------- Forms ---------------- */
.form-label { font-weight: 600; font-size: 0.86rem; color: var(--navy); }
.form-control, .form-select { border-radius: 7px; border-color: var(--hairline); padding: 0.5rem 0.8rem; }
.form-control:focus, .form-select:focus {
  border-color: var(--teal); box-shadow: 0 0 0 .18rem rgba(20,176,160,0.18);
}
.form-check-input:checked { background-color: var(--teal); border-color: var(--teal); }

/* ---------------- CTA band ---------------- */
.cta-band {
  background: var(--navy);
  background-image: radial-gradient(rgba(59,103,135,0.35) 1px, transparent 1px);
  background-size: 26px 26px;
  color: #fff; position: relative; overflow: hidden;
}
.cta-band h2 { color: #fff; font-size: clamp(1.6rem, 1.2rem + 1.6vw, 2.4rem); }
.cta-band p { color: rgba(255,255,255,0.78); }
.cta-band .cta-lead { max-width: 56ch; }
.cta-band .hero-eyebrow { color: var(--amber); }
.cta-illustration {
  max-width: min(90%, 460px);
  filter: drop-shadow(0 20px 50px rgba(0,0,0,0.35));
  animation: hero-float 8s ease-in-out infinite;
}
@media (prefers-reduced-motion: reduce) { .cta-illustration { animation: none; } }

/* ---------------- Footer ---------------- */
.site-footer {
  background: var(--navy); color: rgba(255,255,255,0.72);
  font-size: 0.9rem; margin-top: 0;
  border-top: 3px solid var(--teal);
}
/* Give breathing room only when normal content (not a full-bleed band) precedes the footer */
main > .container:last-child { margin-bottom: 3.5rem; }
.cta-band + .site-footer { border-top-color: rgba(20,176,160,0.5); }
.site-footer h5 {
  color: #fff; font-family: var(--head); font-size: 0.95rem; margin-bottom: 1rem;
  letter-spacing: 0.02em;
}
.site-footer a { color: rgba(255,255,255,0.72); }
.site-footer a:hover { color: var(--teal); text-decoration: none; }
.site-footer ul li { margin-bottom: 0.45rem; }
.site-footer .footer-bottom {
  background: var(--navy-3);
  border-top: 1px solid rgba(59,103,135,0.3); font-size: 0.78rem;
  color: rgba(255,255,255,0.62);
}
.footer-social a {
  display: inline-flex; width: 36px; height: 36px; border-radius: 8px;
  border: 1px solid rgba(255,255,255,0.2); align-items: center; justify-content: center;
  margin-right: 0.5rem; font-size: 1rem;
}
.footer-social a:hover { border-color: var(--teal); color: var(--teal); }

/* ---------------- Portal / Admin ---------------- */
.admin-shell { display: block; }
@media (min-width: 992px) { .admin-shell { display: flex; align-items: stretch; } }
.app-sidebar {
  background: var(--navy); min-height: 100vh; color: #fff; width: 260px; flex-shrink: 0;
}
/* Bootstrap's .offcanvas-lg forces a transparent/white background (transparent at >=lg,
   white below lg). Override both so the navy sidebar + white nav text stay legible. */
.app-sidebar.offcanvas-lg { --bs-offcanvas-bg: var(--navy); background: var(--navy) !important; }
.app-sidebar .offcanvas-body { display: flex; flex-direction: column; }
/* Off-canvas drawer styling on mobile */
@media (max-width: 991.98px) {
  .app-sidebar.offcanvas-lg { width: min(84vw, 300px); min-height: 100%; }
  .app-sidebar .offcanvas-header { border-bottom: 1px solid rgba(255,255,255,0.12); }
}
.app-sidebar .sb-brand { font-family: var(--head); font-size: 1.05rem; font-weight: 700; color: #fff; }
.app-sidebar .nav-link {
  color: rgba(255,255,255,0.75); font-size: 0.9rem; border-radius: 7px;
  padding: 0.52rem 0.85rem; font-weight: 500;
}
.app-sidebar .nav-link:hover { color: #fff; background: rgba(255,255,255,0.07); text-decoration: none; }
.app-sidebar .nav-link.active {
  color: #fff; background: rgba(20,176,160,0.16);
  box-shadow: inset 3px 0 0 var(--teal);
}
.app-sidebar .nav-link i { opacity: 0.85; }
.app-sidebar .sb-section {
  font-family: var(--head); font-size: 0.64rem; letter-spacing: 0.16em;
  text-transform: uppercase; color: var(--amber); margin: 1.2rem 0.85rem 0.35rem;
  opacity: 0.85;
}
.app-main { background: var(--paper-alt); min-height: 100vh; }
.app-topbar {
  background: var(--paper); border-bottom: 1px solid var(--hairline);
  padding-top: 0.65rem; padding-bottom: 0.65rem;
}
.app-topbar-title { font-family: var(--head); font-weight: 600; color: var(--navy); font-size: 1.05rem; }
.app-topbar-meta { font-size: 0.88rem; }
.admin-table {
  background: var(--paper); border: 1px solid var(--hairline);
  border-radius: var(--radius); box-shadow: var(--shadow-sm); overflow: hidden;
}
.admin-table th {
  font-family: var(--head); font-size: 0.7rem; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--ink-soft); background: var(--paper-alt);
  border-bottom-width: 1px; padding-top: 0.85rem; padding-bottom: 0.85rem;
  position: sticky; top: 0; z-index: 1;
}
.admin-table td { font-size: 0.9rem; vertical-align: middle; padding-top: 0.85rem; padding-bottom: 0.85rem; }
.admin-table tbody tr:hover td { background: rgba(20,176,160,0.04); }

/* ---------------- Overflow safety (global) ---------------- */
*, *::before, *::after { min-width: 0; }              /* stop flex/grid children overflowing */
.min-w-0 { min-width: 0; }
img, svg, video, canvas, iframe, table { max-width: 100%; }
.card-plain, .prose, .pub-entry, .pub-meta, dd, dt, li, p, h1, h2, h3, blockquote {
  overflow-wrap: anywhere; word-break: break-word;
}
.card-plain { max-width: 100%; }
.member-card > div { min-width: 0; }
pre { white-space: pre-wrap; word-break: break-word; overflow-x: auto; }
.table-responsive { -webkit-overflow-scrolling: touch; }
.badge-type { max-width: 100%; white-space: normal; }  /* long venue/type chips wrap */

/* ---------------- Prose ---------------- */
.prose { max-width: 72ch; }
.prose p { margin-bottom: 1.15rem; }
.prose .content-list { padding-left: 1.25rem; margin-bottom: 1.15rem; }
.prose .content-list li { margin-bottom: 0.5rem; }
.prose .content-list li::marker { color: var(--teal); }
blockquote.founding {
  position: relative; overflow: hidden;
  font-family: var(--head); font-size: clamp(1.05rem, 1rem + 0.4vw, 1.25rem);
  font-style: italic; font-weight: 500; color: var(--navy);
  border-left: 3px solid var(--amber); background: var(--paper-alt);
  padding: 1.1rem 1.4rem 1.1rem 1.5rem; border-radius: 0 var(--radius) var(--radius) 0; margin: 1.4rem 0;
  overflow-wrap: anywhere;
}
blockquote.founding::before {
  content: "\201C"; position: absolute; right: 0.7rem; top: -0.6rem;
  font-family: Georgia, "Times New Roman", serif; font-size: 6rem; line-height: 1;
  color: var(--teal); opacity: 0.1; pointer-events: none; font-style: normal;
}
blockquote.founding p:last-child { margin-bottom: 0; }

/* ---------------- Unified page header ---------------- */
.page-head {
  background: var(--navy);
  background-image:
    radial-gradient(900px 380px at 90% -20%, rgba(20,176,160,0.16), transparent 60%),
    radial-gradient(rgba(59,103,135,0.28) 1px, transparent 1px);
  background-size: cover, 26px 26px;
  color: #fff; padding: clamp(2.5rem, 5vw, 3.75rem) 0;
  border-bottom: 3px solid var(--teal);
  position: relative;
}
.page-head h1, .page-head .page-title { color: #fff; max-width: 22ch; }
.page-head .page-label { color: var(--amber); }
.page-head .page-label::before { background: var(--amber); }
.page-head-lead { color: rgba(255,255,255,0.82); max-width: 62ch; font-size: 1.05rem; margin-top: 0.85rem; }
.page-crumb { margin-bottom: 1rem; }
.page-crumb ol {
  list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 0.35rem 0.5rem;
  font-family: var(--head); font-size: 0.78rem; letter-spacing: 0.04em;
}
.page-crumb li { display: inline-flex; align-items: center; gap: 0.5rem; color: rgba(255,255,255,0.55); }
.page-crumb li:not(:last-child)::after { content: "/"; opacity: 0.5; }
.page-crumb a { color: rgba(255,255,255,0.72); text-decoration: none; }
.page-crumb a:hover { color: #fff; }
.page-crumb [aria-current="page"] { color: rgba(255,255,255,0.92); }

/* ---------------- About page ---------------- */
/* Richer, layered header with glow orbs + a faint network illustration */
.page-head-rich { position: relative; overflow: hidden; }
.page-head-rich::before {
  content: ""; position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background:
    radial-gradient(900px 380px at 85% -10%, rgba(20,176,160,0.20), transparent 60%),
    radial-gradient(700px 360px at 4% 130%, rgba(232,163,61,0.12), transparent 60%);
}
.page-head-rich .container { position: relative; z-index: 2; }
.page-head-rich .ph-copy { max-width: 62ch; }
.ph-orb { position: absolute; border-radius: 50%; filter: blur(70px); pointer-events: none; z-index: 0; }
.ph-orb-1 { width: 320px; height: 320px; background: rgba(20,176,160,0.20); top: -130px; right: 6%; }
.ph-orb-2 { width: 260px; height: 260px; background: rgba(232,163,61,0.12); bottom: -150px; left: -40px; }
.ph-illustration {
  position: absolute; right: 4%; top: 50%; transform: translateY(-50%);
  width: clamp(180px, 22vw, 300px); opacity: 0.9; z-index: 1; pointer-events: none;
}
@media (max-width: 991.98px) { .ph-illustration { display: none; } }

/* Connected numbered timeline down the About sections */
.about-flow { position: relative; }
@media (min-width: 576px) {
  .about-flow { padding-left: 3rem; }
  .about-flow::before {
    content: ""; position: absolute; left: 1rem; top: 0.7rem; bottom: 0.7rem; width: 2px;
    background: linear-gradient(180deg, var(--teal) 0%, rgba(20,176,160,0.12) 100%);
  }
  .about-flow .about-section-head { position: relative; min-height: 2.1rem; }
  .about-flow .about-section-num {
    position: absolute; left: -3rem; top: -0.15rem; padding: 0; border-radius: 50%;
    width: 2.05rem; height: 2.05rem; display: flex; align-items: center; justify-content: center;
    background: var(--navy); color: #fff; font-size: 0.78rem;
    box-shadow: 0 0 0 4px var(--paper), 0 0 0 6px rgba(20,176,160,0.22);
  }
}

.about-toc { position: sticky; top: 92px; }
.toc-nav { display: flex; flex-direction: column; }
.toc-nav a {
  display: flex; align-items: baseline; gap: 0.6rem;
  padding: 0.4rem 0; color: var(--ink-soft); font-size: 0.9rem;
  border-bottom: 1px solid var(--hairline); text-decoration: none;
}
.toc-nav a:last-child { border-bottom: none; }
.toc-nav a:hover { color: var(--teal-dark); }
.toc-nav .toc-num {
  font-family: var(--head); font-size: 0.72rem; font-weight: 700;
  color: var(--amber); flex-shrink: 0; min-width: 1.4em;
}
.motto-card { position: relative; overflow: hidden; }
.motto-card .motto-mark {
  position: absolute; right: -0.4rem; bottom: -0.8rem; font-size: 4.5rem;
  color: var(--teal); opacity: 0.08; pointer-events: none;
}
.about-section { padding-bottom: 2rem; margin-bottom: 2rem; border-bottom: 1px solid var(--hairline); scroll-margin-top: 92px; }
.about-section:last-child { border-bottom: none; margin-bottom: 0; }
.about-section-head { display: flex; align-items: center; gap: 0.9rem; margin-bottom: 0.4rem; }
.about-section-head h2 { margin: 0; }
.about-section-num {
  font-family: var(--head); font-size: 0.9rem; font-weight: 700; color: var(--navy-3);
  background: var(--teal-soft); border-radius: 8px; padding: 0.15rem 0.55rem; flex-shrink: 0;
}
@media (max-width: 991.98px) {
  .about-toc { position: static; }
}

/* ---------------- Pagination ---------------- */
.pagination .page-link { color: var(--navy); border-color: var(--hairline); font-weight: 500; }
.pagination .page-item.active .page-link { background: var(--teal); border-color: var(--teal); color: var(--navy-3); }

/* ---------------- Alerts ---------------- */
.alert { border: 0; border-radius: var(--radius-sm); border-left: 3px solid transparent; }
.alert-success { background: #e8f7f0; color: #145c3c; border-left-color: #22a06b; }
.alert-danger, .alert-error { background: #fdeeee; color: #8b2e2e; border-left-color: #d64545; }
.alert-warning { background: var(--amber-soft); color: #8a5a12; border-left-color: var(--amber); }
.alert-info { background: var(--teal-soft); color: var(--teal-dark); border-left-color: var(--teal); }
.alert-primary { background: #e8eef5; color: var(--navy); border-left-color: var(--line-blue); }

/* ---------------- Accessibility, misc ---------------- */
:focus-visible { outline: 2px solid var(--amber); outline-offset: 2px; }
.skip-link {
  position: absolute; left: -9999px; top: 0; background: #fff; color: var(--navy);
  padding: 0.5rem 1rem; z-index: 2000; border-radius: 0 0 6px 0;
}
.skip-link:focus { left: 0; }
img { max-width: 100%; height: auto; }
dt { font-family: var(--head); font-weight: 600; font-size: 0.86rem; color: var(--navy); }
dd { margin-bottom: 0.6rem; }
pre { border-radius: 8px; }

/* ---------------- Contact panel ---------------- */
.contact-panel { background: linear-gradient(180deg, var(--paper) 0%, var(--paper-alt) 100%); }
.contact-row {
  display: flex; align-items: center; gap: 0.9rem; padding: 0.75rem 0;
  border-bottom: 1px solid var(--hairline); text-decoration: none; color: var(--ink);
}
.contact-row:last-of-type { border-bottom: none; }
.contact-row:hover { text-decoration: none; }
.contact-row:hover .contact-v { color: var(--teal-dark); }
.contact-ico {
  flex-shrink: 0; width: 44px; height: 44px; border-radius: 12px; display: inline-flex;
  align-items: center; justify-content: center; background: var(--teal-soft); color: var(--teal-dark); font-size: 1.15rem;
}
.contact-k { display: block; font-family: var(--head); font-size: 0.72rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-soft); }
.contact-v { display: block; font-weight: 500; color: var(--navy); overflow-wrap: anywhere; }

/* ---------------- Membership page ---------------- */
.icon-chip.mx-auto { display: flex; }
.membership-side { position: sticky; top: 92px; }
.apply-card { border-top: 3px solid var(--teal); }
.status-dot { display: inline-block; width: 10px; height: 10px; border-radius: 50%; margin-right: 0.45rem; }
.status-open { background: #22c55e; box-shadow: 0 0 0 4px rgba(34,197,94,0.15); }
.status-closed { background: #ef4444; box-shadow: 0 0 0 4px rgba(239,68,68,0.15); }
.steps { list-style: none; padding: 0; margin: 0; }
.steps li { display: flex; gap: 0.85rem; padding: 0.5rem 0; align-items: flex-start; }
.steps li + li { border-top: 1px solid var(--hairline); }
.step-n {
  flex-shrink: 0; width: 30px; height: 30px; border-radius: 50%; display: inline-flex;
  align-items: center; justify-content: center; background: var(--teal-soft); color: var(--teal-dark);
  font-family: var(--head); font-weight: 700; font-size: 0.9rem;
}

@media (max-width: 991.98px) { .membership-side { position: static; } }

/* ---------------- Partner cards ---------------- */
.partner-logo {
  width: 54px; height: 54px; border-radius: 12px; object-fit: contain; flex-shrink: 0;
  background: var(--paper-alt); border: 1px solid var(--hairline); padding: 4px;
}
.partner-logo-mark {
  display: inline-flex; align-items: center; justify-content: center; padding: 0;
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-2) 100%); color: var(--teal);
  font-family: var(--head); font-weight: 700; font-size: 1.1rem; border: none;
}
.icon-chip.mb-0 { margin-bottom: 0 !important; }

/* ---------------- FAQ accordion ---------------- */
.faq-panel {
  border: 1px solid var(--hairline); border-radius: var(--radius-lg);
  background: var(--paper); box-shadow: var(--shadow-sm); padding: 1.4rem 1.5rem;
}
.faq-accordion .accordion-item {
  border: 1px solid var(--hairline); border-radius: var(--radius) !important;
  margin-bottom: 0.6rem; overflow: hidden; background: var(--paper);
}
.faq-accordion .accordion-button {
  font-family: var(--head); font-weight: 600; color: var(--navy); font-size: 1rem;
  background: var(--paper); padding: 1rem 1.15rem;
}
.faq-accordion .accordion-button:not(.collapsed) {
  color: var(--teal-dark); background: var(--teal-soft); box-shadow: none;
}
.faq-accordion .accordion-button:focus { box-shadow: 0 0 0 .18rem rgba(20,176,160,0.18); border-color: var(--teal); }
.faq-accordion .accordion-button::after {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 16 16'%3e%3cpath stroke='%230e8478' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M2 5l6 6 6-6'/%3e%3c/svg%3e");
}
.faq-accordion .accordion-body { color: var(--ink-soft); padding: 0.4rem 1.15rem 1.15rem; line-height: 1.65; }

/* ---------------- Auth pages (sign in / password recovery) ---------------- */
.auth-wrap {
  display: flex; align-items: center;
  padding: clamp(2rem, 5vw, 4rem) 0;
  background:
    radial-gradient(900px 400px at 15% 10%, rgba(20,176,160,0.08), transparent 60%),
    radial-gradient(700px 400px at 90% 90%, rgba(232,163,61,0.06), transparent 60%),
    var(--paper-alt);
}
.auth-card {
  display: grid; grid-template-columns: 1fr 1fr; max-width: 920px; margin: 0 auto;
  background: var(--paper); border: 1px solid var(--hairline);
  border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-lg);
}
.auth-card-single { grid-template-columns: 1fr; max-width: 460px; }
.auth-brand {
  padding: 2.5rem 2rem; color: #fff;
  background:
    radial-gradient(rgba(59,103,135,0.35) 1px, transparent 1px),
    linear-gradient(160deg, var(--navy-deep) 0%, var(--navy-2) 100%);
  background-size: 22px 22px, cover;
  display: flex; flex-direction: column; justify-content: center;
}
.auth-brand img { margin-bottom: 1rem; }
.auth-brand h2 { color: #fff; font-size: 1.3rem; margin-bottom: 0.3rem; }
.auth-brand p { color: var(--teal); font-family: var(--head); font-style: italic; font-size: 0.95rem; }
.auth-points { list-style: none; padding: 0; margin: 1.4rem 0 0; }
.auth-points li { color: rgba(255,255,255,0.8); font-size: 0.9rem; margin-bottom: 0.55rem; }
.auth-points i { color: var(--teal); }
.auth-form { padding: clamp(1.75rem, 4vw, 2.75rem); display: flex; flex-direction: column; justify-content: center; }
@media (max-width: 767.98px) {
  .auth-card { grid-template-columns: 1fr; }
  .auth-brand { display: none; }
}

/* ---------------- YouTube section ---------------- */
.yt-section {
  background: var(--navy-deep);
  background-image:
    radial-gradient(900px 400px at 80% 20%, rgba(232,163,61,0.10), transparent 60%),
    radial-gradient(rgba(59,103,135,0.16) 1px, transparent 1px);
  background-size: cover, 26px 26px;
  border-top: 1px solid rgba(59,103,135,0.28); border-bottom: 1px solid rgba(59,103,135,0.28);
}
.yt-frame {
  position: relative; width: 100%; aspect-ratio: 16 / 9; border-radius: var(--radius-lg);
  overflow: hidden; box-shadow: var(--shadow-lg); border: 1px solid rgba(255,255,255,0.1);
  background: #000;
}
.yt-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

/* ---------------- Partner cards (home "Affiliations & Partners") ---------------- */
.partner-card {
  display: flex; align-items: center; gap: 0.9rem; padding: 0.95rem 1.05rem;
  text-align: left; height: 100%; transition: transform .18s ease, box-shadow .18s ease;
}
a.partner-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-soft); }
/* Each logo is a self-contained rounded app-icon badge — present it as one */
.partner-logo { flex: 0 0 auto; width: 56px; height: 56px; }
.partner-logo img {
  width: 100%; height: 100%; object-fit: cover; border-radius: 14px; display: block;
  box-shadow: 0 4px 12px rgba(13,33,55,0.18);
}
.partner-mark {
  width: 56px; height: 56px; border-radius: 14px; display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-2) 100%);
  color: var(--teal); font-family: var(--head); font-weight: 700; font-size: 1.2rem;
  box-shadow: 0 4px 12px rgba(13,33,55,0.18);
}
.partner-meta { min-width: 0; display: flex; flex-direction: column; justify-content: center; }
.partner-name {
  font-family: var(--head); font-weight: 600; font-size: 0.95rem;
  color: var(--navy); line-height: 1.25; overflow-wrap: anywhere;
}
.partner-meta small { line-height: 1.2; }
a.partner-card:hover .partner-name { color: var(--teal-dark); }

/* Affiliations page cards (logo icon + name, description, footer) */
.aff-card { display: flex; flex-direction: column; padding: 1.25rem; height: 100%; }
.aff-head { display: flex; align-items: center; gap: 0.8rem; margin-bottom: 0.75rem; }
.aff-logo { flex: 0 0 auto; width: 52px; height: 52px; object-fit: cover; border-radius: 13px; box-shadow: 0 4px 12px rgba(13,33,55,0.18); display: block; }
.aff-mark { display: flex; align-items: center; justify-content: center; background: linear-gradient(135deg, var(--navy) 0%, var(--navy-2) 100%); color: var(--teal); font-family: var(--head); font-weight: 700; font-size: 1.15rem; }
.aff-name { margin: 0; min-width: 0; font-family: var(--head); font-weight: 600; font-size: 1rem; color: var(--navy); line-height: 1.25; overflow-wrap: anywhere; }
.aff-desc { color: var(--ink-soft); font-size: 0.88rem; line-height: 1.55; margin: 0 0 1rem; }
.aff-foot { margin-top: auto; display: flex; justify-content: space-between; align-items: center; gap: 0.5rem; }
.aff-visit { font-family: var(--head); font-weight: 600; font-size: 0.85rem; color: var(--teal-dark); text-decoration: none; white-space: nowrap; }
.aff-visit:hover { text-decoration: underline; }

/* ---------------- Partner marquee ---------------- */
.marquee {
  position: relative; overflow: hidden; padding: 1.6rem 0;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
          mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.marquee-track {
  display: flex; width: max-content; align-items: center;
  animation: marquee-scroll var(--marquee-duration, 40s) linear infinite;
  will-change: transform;
}
/* Each item carries its own trailing margin so the two duplicated halves are
   exactly equal in width — translateX(-50%) then loops with no visible break. */
.marquee-item { margin-right: 3.5rem; }
.marquee-item {
  display: inline-flex; align-items: center; gap: 0.7rem; flex-shrink: 0;
  color: var(--ink-soft); text-decoration: none; font-family: var(--head);
  font-weight: 600; font-size: 1.02rem; white-space: nowrap;
  opacity: 0.75; transition: opacity .2s ease, color .2s ease;
}
.marquee-item:hover { opacity: 1; color: var(--navy); text-decoration: none; }
.marquee-logo {
  height: 40px; width: 40px; object-fit: contain; border-radius: 8px; background: var(--paper-alt);
}
.marquee-mark {
  height: 40px; width: 40px; border-radius: 8px; display: inline-flex; align-items: center;
  justify-content: center; background: var(--teal-soft); color: var(--teal-dark);
  font-family: var(--head); font-weight: 700; font-size: 0.95rem; flex-shrink: 0;
}
@keyframes marquee-scroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}
@media (prefers-reduced-motion: reduce) {
  .marquee-track { animation: none; flex-wrap: wrap; justify-content: center; }
}

/* ---------------- Research-area cards ---------------- */
.area-card { overflow: hidden; }
.area-cover { display: block; position: relative; aspect-ratio: 16 / 10; overflow: hidden; }
.area-cover img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.area-card:hover .area-cover img { transform: scale(1.06); }
.area-cover-icon {
  position: absolute; left: 12px; bottom: 12px; width: 38px; height: 38px; border-radius: 10px;
  background: rgba(13,33,55,0.72); backdrop-filter: blur(4px); color: var(--teal);
  display: inline-flex; align-items: center; justify-content: center; font-size: 1.1rem;
  border: 1px solid rgba(255,255,255,0.14);
}
.area-card .h3 { color: var(--navy); }
.area-card:hover .h3 { color: var(--teal-dark); }

/* Research Area detail — themed header banner */
.area-hero { position: relative; border-radius: var(--radius-lg); overflow: hidden; aspect-ratio: 21 / 6; box-shadow: var(--shadow-md); }
.area-hero-img { width: 100%; height: 100%; object-fit: cover; display: block; }
.area-hero-overlay {
  position: absolute; inset: 0; display: flex; align-items: center; gap: 1.1rem;
  padding: 1.6rem 2rem;
  background: linear-gradient(90deg, rgba(10,22,40,0.90) 0%, rgba(10,22,40,0.6) 55%, rgba(10,22,40,0.18) 100%);
}
.area-hero-icon {
  flex-shrink: 0; width: 56px; height: 56px; border-radius: 14px; display: inline-flex;
  align-items: center; justify-content: center; background: rgba(20,176,160,0.2); color: var(--teal);
  font-size: 1.5rem; border: 1px solid rgba(255,255,255,0.16);
}
.area-hero-overlay h1 { color: #fff; margin: 0; }
@media (max-width: 575.98px) {
  .area-hero { aspect-ratio: 4 / 3; }
  .area-hero-overlay { padding: 1.1rem 1.2rem; gap: 0.8rem; }
  .area-hero-icon { width: 44px; height: 44px; font-size: 1.2rem; }
}

/* Research Areas page — themed sections */
.theme-block { border-radius: var(--radius-lg); overflow: hidden; border: 1px solid var(--hairline); background: var(--paper); }
.theme-head { display: flex; align-items: center; gap: 1rem; padding: 1.2rem 1.5rem; color: #fff;
  background: linear-gradient(120deg, var(--navy) 0%, var(--navy-2) 100%); }
.theme-head .theme-ico, .theme-label .theme-ico {
  width: 46px; height: 46px; border-radius: 12px; background: rgba(20,176,160,0.18);
  color: var(--teal); display: inline-flex; align-items: center; justify-content: center; font-size: 1.3rem; flex-shrink: 0;
}
.theme-label .theme-ico { background: var(--teal-soft); color: var(--teal-dark); }
.theme-head h2 { color: #fff; margin: 0; font-size: 1.15rem; }
.theme-head small { color: rgba(255,255,255,0.6); }
.theme-count { font-family: var(--head); font-size: 0.85rem; color: var(--ink-soft); font-weight: 500; }

/* ---------------- News cards & social share ---------------- */
.news-card { display: flex; flex-direction: column; height: 100%; overflow: hidden; }
.news-media {
  display: block; aspect-ratio: 16 / 9; overflow: hidden; margin: -1.5rem -1.6rem 1rem;
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-2) 100%);
  position: relative;
}
.news-media img { width: 100%; height: 100%; object-fit: cover; }
.news-media .news-placeholder {
  position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
  color: rgba(255,255,255,0.35); font-size: 2.4rem;
}
.news-hero {
  width: 100%; max-height: 440px; object-fit: cover; border-radius: var(--radius);
  margin-bottom: 1.5rem; background: var(--paper-alt);
}
.share-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem; }
.share-bar .share-label { font-family: var(--head); font-size: 0.78rem; font-weight: 600; color: var(--ink-soft); text-transform: uppercase; letter-spacing: 0.1em; margin-right: 0.2rem; }
.share-btn {
  width: 38px; height: 38px; border-radius: 9px; display: inline-flex; align-items: center;
  justify-content: center; border: 1px solid var(--hairline); background: var(--paper);
  color: var(--navy); font-size: 1rem; text-decoration: none; cursor: pointer;
  transition: transform .12s ease, background .15s ease, color .15s ease, border-color .15s ease;
}
.share-btn:hover { transform: translateY(-2px); color: #fff; text-decoration: none; }
.share-x:hover { background: #000; border-color: #000; }
.share-li:hover { background: #0a66c2; border-color: #0a66c2; }
.share-fb:hover { background: #1877f2; border-color: #1877f2; }
.share-wa:hover { background: #25d366; border-color: #25d366; }
.share-em:hover { background: var(--teal); border-color: var(--teal); color: var(--navy-3); }
.share-cp:hover { background: var(--amber); border-color: var(--amber); color: var(--navy-3); }

/* ---------------- Responsive ---------------- */
@media (max-width: 991.98px) {
  .navbar-dark-custom { padding-bottom: 0.6rem; }
  .nav-search { margin: 0.5rem 0.7rem 0.2rem; }
  .nav-search .form-control { max-width: 100% !important; width: 100%; }
  .admin-table td, .admin-table th { white-space: nowrap; }   /* keep tables scrollable, not squashed */
}
@media (max-width: 575.98px) {
  .site-brand .brand-name { font-size: 0.92rem; }
  .site-brand img { height: 38px; width: 38px; }
  .stat { padding: 1.3rem 0.3rem 1.2rem; }
  .card-plain { padding: 1.2rem 1.25rem; }
  .hero .btn { display: block; width: 100%; margin-bottom: 0.6rem; text-align: center; }
  .hero .btn + .btn { margin-left: 0 !important; }
}
@media print {
  .site-topbar, .site-header, .site-footer, .navbar, .cta-band { display: none !important; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .card-plain { transition: none; }
}


/* ---- v3 motion / reveal ---- */
.reveal {
  opacity: 0; transform: translateY(12px);
  transition: opacity .55s ease, transform .55s ease;
}
.reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
}

.yt-kicker { color: var(--teal) !important; }
.yt-heading { color: #fff !important; }
.yt-lead { color: rgba(255,255,255,0.78); }

.empty-state {
  text-align: center; padding: 2.5rem 1.5rem; color: var(--ink-soft);
  border: 1px dashed var(--hairline); border-radius: var(--radius); background: var(--paper);
}
