.project-page {
  --ink: #082e56;
  --heading-navy: #07265f;
  --hero-blue: #37517e;
  --accent: #f6a414;
  --heading-orange: #f2990b;
  --reading-size: clamp(1.125rem, 1.05rem + .3vw, 1.25rem);
  --tint: #f1f5f8;
  color: #273e50;
  font-family: "Segoe UI", Arial, sans-serif;
  line-height: 1.65;
}
.project-page section { padding: clamp(44px, 6vw, 86px) 0; scroll-margin-top: 76px; }
.project-page :is(h1,h2,h3,h4) { font-family: inherit; color: var(--ink); font-weight: 650; letter-spacing: -.025em; }
.project-page h2 { font-size: clamp(1.8rem, 3.6vw, 2.8rem); margin-bottom: 1rem; color: var(--heading-navy); }
.project-page main { font-size: var(--reading-size); }
.project-page main h3, #research .steps-content h3 { font-size: clamp(1.5rem, 1.4rem + .4vw, 1.75rem); color: var(--heading-orange); }
.project-page h3 a { color: inherit; }
.project-page h3 a:hover { text-decoration: underline; }
.project-page h4 { font-size: 1.1rem; }
.project-page a { color: #125888; }
.project-page a:focus-visible, .project-page button:focus-visible { outline: 3px solid #e3920c; outline-offset: 3px; }
.site-header { background: var(--hero-blue); }
.dashboard-header { --hero-blue: #37517e; }
.dashboard-header ~ main section[id] { scroll-margin-top: 5.5rem; }
.site-header a, .site-header .nav-link { color: #fff; }
.site-header .navbar { min-height: 70px; }
.site-header .navbar-brand { padding: 3px 6px; background: #fff; border-radius: 6px; }
.site-header .navbar-brand img { display: block; width: clamp(190px, 23vw, 320px); max-width: 58vw; height: auto; }
.site-header .navbar { font-size: 1.125rem; }
.site-header .navbar-nav { --bs-nav-link-font-size: inherit; }
.site-header .nav-link[aria-current="location"] { color: var(--nav-hover-color, #47b2e4); }
.site-header .nav-link:hover { text-decoration: underline; text-underline-offset: .3em; }
.language-picker { display: flex; align-items: center; gap: .4rem; margin: .5rem; }
.language-picker a { padding: .3rem .4rem; font-weight: 600; }
.language-picker [aria-current] { font-weight: 700; text-decoration: underline; }
.login-link { border: 1px solid #b1c3d3; border-radius: 2rem; padding: .4rem 1rem; width: fit-content; }
.login-link:is(:hover, :focus-visible) {
  background-color: color-mix(in srgb, var(--accent-color) 18%, transparent);
  border-color: var(--accent-color);
}
.project-page .project-hero { background: var(--hero-blue); color: white; }
.project-hero h1 { color: white; max-width: 20ch; font-size: clamp(2.3rem, 4.5vw, 4.3rem); line-height: 1.08; }
.project-id { font-weight: 650; letter-spacing: .075em; font-size: .82rem; color: #f4c06a; }
.project-id span { margin-inline: .45em; }
.intro { color: #dee8f2; margin: 1.4rem 0; max-width: 60ch; font-size: clamp(1.2rem, 1.5vw, 1.35rem); }
.project-page :is(.hero-link, .contact-submit) {
  display: inline-flex;
  align-items: center;
  gap: 1rem;
  padding: .65rem 1.15rem;
  border: 0;
  border-radius: 2rem;
  font: inherit;
  font-weight: 650;
  color: var(--ink);
  background-color: var(--accent);
}
.project-page .contact-submit { background-color: var(--accent-color); }
.project-page .hero-link:hover { background-color: color-mix(in srgb, var(--accent) 90%, black); }
.project-page :is(.contact-submit, .scroll-top):hover { background-color: color-mix(in srgb, var(--accent-color) 90%, black); }
@media (prefers-reduced-motion: no-preference) {
  .login-link { transition: background-color 160ms ease-out, border-color 160ms ease-out; }
  .project-page :is(.hero-link, .contact-submit, .researcher-profile, .contact-button) { transition: background-color 160ms ease-out; }
  :is(.hero-link, .contact-submit, .scroll-top, .researcher-profile, .contact-button) > .bi { transition: transform 160ms ease-out; }
  .hero-link:hover .bi-arrow-down-right { transform: translate(2px, 2px); }
  .contact-submit:hover .bi-send, .researcher-profile:hover > .bi,
  .agency-link:hover .contact-button > .bi { transform: translate(2px, -2px); }
  .contact-button:hover > .bi-arrow-up { transform: translateY(-2px); }
  .scroll-top:hover .bi-arrow-up-short { transform: translateY(-2px); }
}
.brand-panel { margin: 0 auto; max-width: 355px; background: #fff; border-radius: 16px; overflow: hidden; }
.brand-panel img { width: 100%; display: block; }
.partner-strip { padding: 20px 0; border-bottom: 1px solid #dce3eb; }
.partner-strip span, .subtle, .content-item time { color: #4d6577; }
.partner-strip img { height: 44px; max-width: 170px; object-fit: contain; }
.tinted { background: var(--tint); }
#research .steps-image {
  height: auto;
  aspect-ratio: 16 / 9;
}
#research .steps-image img { display: block; width: 100%; height: 100%; object-fit: cover; }
#research .steps-content { padding-top: 2.65rem; }
#research .steps-number { font-size: .95rem; color: #082a47; background: #64c2eb; }
#research .feature-item { align-items: baseline; }
#research .steps-content p, #research .feature-item span,
.team .team-member .member-info :is(p, span) { font-size: var(--reading-size); }
#research .feature-item strong { color: var(--ink); white-space: nowrap; }
@media (prefers-reduced-motion: reduce) {
  #research .steps-item { transition: none; transform: none; }
}
.contact-band p:last-child { margin: 0; }
.empty-state,.content-item { padding: 1rem 0; border-top: 1px solid #cbd6dd; }
.news-image { max-width: 100%; max-height: 340px; object-fit: contain; margin: .75rem 0; }
.contact-band { --contact-inset: clamp(1rem, 3vw, 2rem); background: #e8eff5; }
.agency { background: white; padding: var(--contact-inset); border-radius: .75rem; }
@media (min-width: 768px) {
  .contact-band .contact-details { padding-top: var(--contact-inset); }
}
.agency-link { display: inline-flex; max-width: 100%; flex-direction: column; align-items: flex-start; gap: .5rem; text-decoration: none; }
.contact-band .contact-button {
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  padding: .3rem .8rem;
  border-radius: 2rem;
  font-size: .95rem;
  font-weight: 650;
  color: var(--ink);
  background-color: var(--accent-color);
}
.contact-band .contact-button:is(:hover, :focus-visible),
.agency-link:is(:hover, :focus-visible) .contact-button { background-color: color-mix(in srgb, var(--accent-color) 90%, black); }
.agency-link img { width: 24rem; max-width: 100%; height: auto; }
.agency p { margin-top: .75rem; }
@media(max-width: 1199px) {
  .site-header .navbar-collapse { max-height: 75vh; overflow-y: auto; padding-bottom: .6rem; }
}
@media(max-width: 575px) {
  .brand-panel { max-width: 205px; }
  .partner-strip img { max-width: 118px; height: 36px; }
}
.team .team-member .team-portrait { display: grid; place-items: center; aspect-ratio: 1; background: #edf2f6; color: #375781; font-size: 4.25rem; }
.team-portrait img { width: 100%; height: 100%; object-fit: cover; }
.team-member .member-info { min-width: 0; overflow-wrap: anywhere; }
.team .team-member { scroll-margin-top: 90px; }
.team .team-member:target { outline: 3px solid var(--ink); outline-offset: 3px; }
.partner-card img {
  display: block;
  width: 100%;
  height: clamp(4.5rem, 8vw, 7rem);
  object-fit: contain;
  object-position: left center;
  margin-bottom: 1.25rem;
}
@media (prefers-reduced-motion: reduce) {
  :root { scroll-behavior: auto; }
  .project-page .scroll-top { transition: none; }
}
#news .content-item { scroll-margin-top: 5.5rem; }
.news-slide-preview { width: min(100%, 30rem); }
.news-media-pair { display: grid; gap: 1rem; max-width: 67rem; margin: 1rem 0; }
.news-media-pair img { display: block; width: 100%; height: auto; }
.news-media-pair .meeting-photo { align-self: start; cursor: zoom-in; }
#meeting-photo-viewer { margin: auto; border: 0; padding: 0; background: transparent; }
#meeting-photo-viewer::backdrop { background: rgb(8 26 46 / 88%); }
#meeting-photo-viewer img { display: block; max-width: 92vw; max-height: calc(90dvh - 3.5rem); }
html:has(#meeting-photo-viewer[open]) { overflow: hidden; }
@media (min-width: 768px) {
  .news-media-pair { grid-template-columns: minmax(0, 3fr) minmax(0, 4fr); }
  .news-media-pair .meeting-photo img { aspect-ratio: 4 / 3; object-fit: contain; }
  .news-media-pair > div a img { aspect-ratio: 16 / 9; object-fit: contain; }
}
.researcher-profiles { display: flex; flex-wrap: wrap; gap: .4rem; margin-top: .5rem; }
.profile-orcid { --profile-bg: #e5f3d7; --profile-ink: #365918; }
.profile-scopus { --profile-bg: #ffead6; --profile-ink: #883d09; }
.researcher-profiles .researcher-profile {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  padding: .25rem .7rem;
  border-radius: 2rem;
  background: var(--profile-bg);
  color: var(--profile-ink);
  font-size: .9rem;
  font-weight: 650;
  text-decoration: none;
}
.researcher-profile:is(:hover, :focus-visible) { box-shadow: inset 0 0 0 1px var(--profile-ink); }
.researcher-profile:hover { background-color: color-mix(in srgb, var(--profile-bg) 90%, black); }
.publication-preview { display: block; width: min(100%, 18rem); margin-bottom: .5rem; }
