/* Science Silk Road custom visual identity */

/* If external Google Fonts are not allowed, ask Robert for self-hosted font files. */
@import url("https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&family=Lora:wght@400;500;600;700&display=swap");

:root {
  --ssr-sapphire: #202d50;
  --ssr-orange: #ff7654;
  --ssr-greyhound: #d6e0f0;
  --ssr-dark-sky: #8a94a6;
  --ssr-red: #e63946;
  --ssr-taxi: #ffea00;
  --ssr-wave: #2ec4b6;
}

/* Base typography */
body {
  font-family: "Lora", Georgia, serif;
  color: var(--ssr-sapphire);
  background: #fff;
}

/* Running text */
p,
li,
article,
.lh-copy,
.measure,
.measure-wide {
  font-family: "Lora", Georgia, serif;
  color: var(--ssr-sapphire);
}

/* Headings, navigation, buttons, labels */
h1, h2, h3, h4, h5, h6,
nav,
.site-title,
.site-name,
.menu,
button,
.button,
.btn,
.f-subheadline,
.f-subheadline-l,
.f1, .f2, .f3,
.b,
.ttu,
.tracked {
  font-family: "Inter", Arial, sans-serif;
  color: var(--ssr-sapphire);
}

/* Links */
a {
  color: var(--ssr-sapphire);
}

a:hover,
a:focus {
  color: var(--ssr-orange);
}

/* Header / hero overlay */
.bg-black {
  background-color: var(--ssr-sapphire) !important;
}

.bg-black-60 {
  background-color: rgba(0, 0, 0, 0.45) !important;
}

/* Keep hero/header text readable on dark images */
.cover h1,
.cover h2,
.cover .site-title,
.cover .site-name,
.cover nav,
.cover nav a,
.cover a {
  font-family: "Inter", Arial, sans-serif;
  color: #ffffff !important;
}

/* Hero title */
.cover h1 {
  color: #ffffff !important;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.45);
}

/* Hero subtitle */
.cover h2 {
  color: rgba(255, 255, 255, 0.9) !important;
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.4);
}

/* Navigation hover accent */
nav a,
.site-header a {
  text-decoration-color: transparent;
  transition: color 0.2s ease, text-decoration-color 0.2s ease;
}

nav a:hover,
.site-header a:hover,
.cover nav a:hover,
.cover a:hover {
  color: var(--ssr-orange) !important;
  text-decoration-color: var(--ssr-orange);
}

/* Section dividers / article lists */
.bt,
.bb,
.ba {
  border-color: rgba(32, 45, 80, 0.18) !important;
}



/* Buttons */
.bg-black,
a.bg-black,
button.bg-black {
  background-color: var(--ssr-sapphire) !important;
  color: #fff !important;
}

a.bg-black:hover,
button.bg-black:hover {
  background-color: var(--ssr-orange) !important;
  color: #fff !important;
}

/* Muted text */
.gray,
.mid-gray,
.silver {
  color: var(--ssr-dark-sky) !important;
}

/* Do not globally recolour Ananke light backgrounds */
/*
.bg-light-gray,
.bg-near-white {
  background-color: var(--ssr-greyhound) !important;
}
*/

/* Article/list titles */
article h1 a,
article h2 a,
article h3 a {
  color: var(--ssr-sapphire);
  text-decoration: none;
}

article h1 a:hover,
article h2 a:hover,
article h3 a:hover {
  color: var(--ssr-orange);
}

/* Partner/funding logo section */
section img {
  max-width: 100%;
}

section h2 {
  color: var(--ssr-sapphire);
}

/* =========================
   Body typography refinement
   ========================= */

/* Main content width and readability */
.measure,
.measure-wide,
.measure-narrow,
.lh-copy,
main article,
main p {
  max-width: 42rem;
  line-height: 1.9;
  font-size: 1.15rem;
  font-weight: 400;
}

/* Paragraph spacing */
p {
  margin-bottom: 1.4rem;
}

/* Main content container spacing */
main {
  padding-bottom: 4rem;
}

/* Improve article spacing */
article {
  margin-bottom: 2rem;
}

/* Titles */
h1 {
  font-weight: 700;
  letter-spacing: -0.02em;
}

h2 {
  font-weight: 700;
  letter-spacing: -0.01em;
}

h3 {
  font-weight: 600;
}

/* Better spacing below section titles */
h2,
h3 {
  margin-top: 2.5rem;
  margin-bottom: 1rem;
}

/* Dates / metadata */
time,
.metadata,
.f6.gray {
  font-family: "Inter", Arial, sans-serif;
  color: var(--ssr-dark-sky) !important;
  letter-spacing: 0.02em;
}

/* Slightly softer horizontal rhythm */
.measure p,
.measure-wide p,
article p {
  text-wrap: pretty;
}

/* =========================
   Section headings and accents
   ========================= */

/* General headings */
main h1,
main h2,
main h3 {
  font-family: "Inter", Arial, sans-serif;
  color: var(--ssr-sapphire);
}

/* Only major section headings get orange accent */
main > section > h2::after,
article > header + div h2::after,
section > h2.f3::after {
  content: "";
  display: block;
  width: 5rem;
  height: 3px;
  margin-top: 0.5rem;
  background: var(--ssr-orange);
}

/* Do not add accents to small or repeated headings inside body text */
article h2::after,
article h3::after,
.lh-copy h2::after,
.lh-copy h3::after {
  content: none;
}

/* Better major heading spacing */
main h1 {
  margin-bottom: 1.5rem;
}

main h2 {
  margin-top: 2.5rem;
  margin-bottom: 1.25rem;
}

main h3 {
  margin-top: 2rem;
  margin-bottom: 1rem;
}
/* =========================
   News / Events / Publications list pages
   ========================= */

main section article {
  border-color: rgba(32, 45, 80, 0.18) !important;
  padding-top: 2.5rem;
  padding-bottom: 2.5rem;
}

main section article h1,
main section article h2,
main section article h3 {
  font-family: "Inter", Arial, sans-serif;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: var(--ssr-sapphire);
}

main section article h1 a,
main section article h2 a,
main section article h3 a {
  color: var(--ssr-sapphire);
  text-decoration: none;
}

main section article h1 a:hover,
main section article h2 a:hover,
main section article h3 a:hover {
  color: var(--ssr-orange);
}

main section article time {
  font-family: "Inter", Arial, sans-serif;
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--ssr-dark-sky) !important;
  letter-spacing: 0.02em;
}

/* Force SSR list title colour */
main section article a {
  color: var(--ssr-sapphire) !important;
}

main section article a:hover {
  color: var(--ssr-orange) !important;
}
/* =========================
   Team page
========================= */

/* Team section heading */
.page-team h2,
.page-team h3 {
  font-family: "Inter", Arial, sans-serif;
  color: var(--ssr-sapphire);
  font-weight: 700;
  letter-spacing: -0.02em;
}

/* Orange accent under team section titles */
.page-team h2::after,
.page-team h3::after {
  content: "";
  display: block;
  width: 3.5rem;
  height: 3px;
  margin-top: 0.4rem;
  background: var(--ssr-orange);
}

/* Team member names */
.page-team article h1,
.page-team article h2,
.page-team article h3,
.page-team .team-member-name {
  font-family: "Inter", Arial, sans-serif;
  color: var(--ssr-sapphire);
  font-weight: 650;
  line-height: 1.2;
}

/* Team bios */
.page-team p,
.page-team article p {
  font-family: "Lora", Georgia, serif;
  color: var(--ssr-sapphire);
  line-height: 1.8;
}

/* Better spacing between image and text */
.page-team article {
  gap: 1.5rem;
  margin-bottom: 2.5rem;
}

/* Team images */
.page-team img {
  border-radius: 6px;
}

/* Reduce overly heavy borders */
.page-team .bb,
.page-team .bt {
  border-color: rgba(32, 45, 80, 0.12) !important;
}

/* Team page refinement */
.page-team article p {
  font-size: 1.05rem;
  line-height: 1.65;
  margin-bottom: 0;
}

.page-team article {
  padding-top: 2rem;
  padding-bottom: 2rem;
}

.page-team article a {
  color: var(--ssr-sapphire) !important;
  text-decoration-color: transparent;
}

.page-team article a:hover {
  color: var(--ssr-orange) !important;
  text-decoration-color: var(--ssr-orange);
}

/* =========================
   Partners / Funding
========================= */

.partners-section h2 {
  font-family: "Inter", Arial, sans-serif;
  color: var(--ssr-sapphire);
  font-weight: 700;
  letter-spacing: -0.02em;
}

.partners-logos,
.funding-logos {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 4.5rem;
  margin-top: 2.5rem;
  margin-bottom: 4rem;
}

.partners-logos img,
.funding-logos img {
  width: auto;
  height: auto;
  max-height: 82px;
  max-width: 260px;
  object-fit: contain;
  transition: opacity 0.2s ease;
}

.funding-logos img {
  max-height: 92px;
  max-width: 300px;
}

.partners-logos img:hover,
.funding-logos img:hover {
  opacity: 0.85;
}

/* =========================
   Footer legal links
========================= */

.footer-link {
  color: rgba(255,255,255,0.7);
  text-decoration: none;
  transition: color 0.2s ease;
}

.footer-link:hover {
  color: #ff7654;
}

/* =========================
   Team biography pages
========================= */

.profile-image-wrap {
  margin-bottom: 2rem;
}

.profile-image {
  width: 260px;
  height: 260px;
  object-fit: cover;
  object-position: center;
  border-radius: 6px;
  display: block;
}

@media (max-width: 640px) {
  .profile-image {
    width: 220px;
    height: 220px;
  }
}