:root {
  --site-blue: #12344d;
  --site-blue-2: #2f6f8f;
  --site-green: #516b55;
  --site-gold: #b66a30;
  --site-ink: #20252b;
  --site-muted: #667085;
  --site-border: #d7dde3;
  --site-bg: #f7f8f8;
  --site-card: #ffffff;
  --site-soft: #eef3f1;
}

html {
  font-size: 17px;
}

body {
  color: var(--site-ink);
  background: var(--site-bg);
  line-height: 1.7;
}

a {
  color: var(--site-blue-2);
}

a:hover {
  color: var(--site-blue);
}

.navbar {
  border-bottom: 1px solid var(--site-border);
  background: rgba(255, 255, 255, 0.96);
}

.navbar-title {
  font-weight: 700;
  color: var(--site-blue);
}

.quarto-title-block .title {
  color: var(--site-blue);
  font-weight: 750;
}

.subtitle {
  color: var(--site-muted);
}

main.content {
  max-width: 820px;
}

body:has(.home-shell) #title-block-header {
  display: none;
}

.home-shell {
  max-width: 1120px;
  margin: 0 auto;
  padding: 1.5rem 1.25rem 3rem;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 3rem;
  align-items: center;
  padding: 3.5rem 0 2rem;
  border-bottom: 1px solid var(--site-border);
}

.hero h1 {
  margin: 0.2rem 0 1rem;
  color: var(--site-blue);
  font-size: clamp(2.25rem, 6vw, 4.6rem);
  line-height: 1.02;
  letter-spacing: 0;
}

.hero p {
  max-width: 720px;
  font-size: 1.08rem;
}

.eyebrow {
  color: var(--site-green);
  font-size: 0.82rem !important;
  font-weight: 700;
  letter-spacing: 0.08em;
  margin-bottom: 0;
  text-transform: uppercase;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin-top: 1.45rem;
}

.primary-action,
.secondary-action {
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  border-radius: 6px;
  font-weight: 700;
  padding: 0.45rem 0.85rem;
  text-decoration: none;
}

.primary-action {
  background: var(--site-blue);
  color: #fff;
}

.primary-action:hover {
  color: #fff;
  background: #0d283c;
}

.secondary-action {
  border: 1px solid var(--site-border);
  color: var(--site-blue);
  background: #fff;
}

.secondary-action:hover {
  border-color: var(--site-blue-2);
  color: var(--site-blue);
}

.hero-portrait {
  justify-self: end;
}

.hero-portrait img {
  width: min(320px, 100%);
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 8px;
  border: 1px solid var(--site-border);
  box-shadow: 0 18px 45px rgba(18, 52, 77, 0.16);
}

.section-band,
.cta-band {
  max-width: 860px;
}

.section-band {
  margin: 0 0 2.5rem;
}

.cta-band {
  border-top: 1px solid var(--site-border);
  margin-top: 2.5rem;
  padding-top: 1.2rem;
  color: #344054;
  font-weight: 600;
}

.about-entity .about-link {
  border-radius: 6px;
}

.about-entity img {
  border: 1px solid var(--site-border);
}

.research-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 0.8rem;
  margin: 1.5rem 0 2rem;
}

.research-card {
  background: var(--site-card);
  border: 1px solid var(--site-border);
  border-radius: 8px;
  padding: 1.05rem;
}

.research-card h3 {
  margin-top: 0;
  margin-bottom: 0.35rem;
  color: var(--site-blue);
  font-size: 1.05rem;
}

.research-card p {
  margin-bottom: 0;
  color: #344054;
}

.theme-strip {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 0.8rem;
  margin: 1.2rem 0 2rem;
}

.theme-item {
  background: var(--site-soft);
  border-left: 4px solid var(--site-green);
  border-radius: 8px;
  padding: 0.9rem 1rem;
}

.theme-item p {
  margin: 0;
}

.source-note {
  background: #fff;
  border: 1px solid var(--site-border);
  border-radius: 8px;
  color: #475467;
  font-size: 0.92rem;
  margin: 0.5rem 0 1.3rem;
  padding: 0.85rem 1rem;
}

h2 {
  margin-top: 2.2rem;
  color: var(--site-blue);
}

h3 {
  color: #244b63;
}

li {
  margin-bottom: 0.45rem;
}

.footer {
  width: 100%;
  background: #fff;
  border-top: 1px solid var(--site-border);
  color: #475467;
}

.nav-footer {
  max-width: 1120px;
  margin: 0 auto;
  padding: 1rem 1.25rem;
  font-size: 0.82rem;
  line-height: 1.55;
}

.nav-footer-left,
.nav-footer-right {
  margin: 0;
}

.nav-footer-left p,
.nav-footer-right p {
  margin-bottom: 0;
}

.listing {
  margin-top: 1.5rem;
}

@media (max-width: 768px) {
  html {
    font-size: 16px;
  }

  .home-shell {
    padding: 0.5rem 1rem 2rem;
  }

  .hero {
    grid-template-columns: 1fr;
    gap: 1.5rem;
    padding-top: 1.8rem;
  }

  .hero-portrait {
    justify-self: start;
    order: -1;
  }

  .hero-portrait img {
    width: 210px;
  }

  .research-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 520px) {
  .hero-actions,
  .primary-action,
  .secondary-action {
    width: 100%;
  }

  .primary-action,
  .secondary-action {
    justify-content: center;
  }

}
