:root {
  --col-structure: #22c55e;
  --col-structure-rgb: 34, 197, 94;  
  --col-dark: #10231a;
  --col-footer: #13281f;
  --col-light: #f6faf7;
  --col-muted: #66736b;
  --col-alt-structure: #15803d;
  --col-border: #dce7df;
  --page-x-padding: 4.5rem;
  --radius: 18px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Inter, Helvetica, Arial, sans-serif;
  background: var(--col-light);
  color: black;
  line-height: 1.6;
}

a {
  color: inherit;
  text-decoration-color: var(--col-structure);
  text-decoration-thickness: 0.16em;
  text-underline-offset: 0.18em;
}

a:hover {
  background: transparent;
  color: var(--col-structure);
  text-decoration: none;
}

.site-header {
  background:
    radial-gradient(circle at top right, rgba(var(--col-structure-rgb), 0.22), transparent 26rem),
    linear-gradient(135deg, #171717 0%, #242424 55%, #2d2d2d 100%);
  color: white;
}

.nav {
  background: transparent;
  margin: 0 auto;
  padding: 1rem 6rem 1rem 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.nav-no-mark {
  justify-content: flex-end;
}

.nav-no-mark ul {
  width: 100%;
  justify-content: flex-end;
}

.nav ul {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem 1.2rem;
  list-style: none;
  padding: 0;
  margin: 0;
}

.nav a {
  color: white;
  text-decoration: none;
  font-size: 0.85rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.nav a:hover,
.nav a[aria-current="page"] {
  color: var(--col-structure);
  background: transparent;
}

.nav a[aria-current="page"] {
  text-decoration: underline;
  text-decoration-color: var(--col-structure);
  text-decoration-thickness: 0.16em;
  text-underline-offset: 0.5em;
}

.hero {
  position: relative;
  overflow: hidden;
  margin: 0 auto;
  padding: 2.3rem var(--page-x-padding) 2.7rem;
  min-height: 320px;
  display: grid;
  align-items: center;
  background: transparent;
  color: white;
}

.hero::after {
  content: "";
  position: absolute;
  right: 1rem;
  top: 3.5rem;
  width: min(38vw, 420px);
  height: 320px;
  opacity: 0.22;
  background-image:
    linear-gradient(var(--col-structure) 1px, transparent 1px),
    linear-gradient(90deg, var(--col-structure) 1px, transparent 1px);
  background-size: 28px 28px;
  mask-image: radial-gradient(circle, black, transparent 70%);
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 780px;
}

.eyebrow {
  display: inline-block;
  margin-bottom: 1rem;
  padding: 0.35rem 0.65rem;
  border: 1px solid var(--col-structure);
  color: var(--col-structure);
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.hero h1 {
  max-width: 760px;
  margin: 0;
  font-size: clamp(3.8rem, 9vw, 6.8rem);
  line-height: 0.92;
  letter-spacing: -0.06em;
}

.structure-rule {
  width: 58px;
  height: 7px;
  margin: 1.35rem 0 1.25rem;
  background: var(--col-structure);
}

.hero p {
  max-width: 760px;
  margin: 0;
  color: #d8d8d8;
}

.hero .tagline {
  font-size: clamp(1.2rem, 2.4vw, 1.7rem);
  line-height: 1.3;
  letter-spacing: -0.03em;
  color: white;
}

.hero .summary {
  margin-top: 0.75rem;
  font-size: 1rem;
}

main {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 2.5rem var(--page-x-padding) 4rem;
}

.panel {
  margin: 0 0 1.6rem;
  padding: 1.6rem 2rem;
  background: white;
  border: 1px solid var(--col-border);
  border-radius: var(--radius);
  box-shadow: 0 16px 34px rgba(0, 0, 0, 0.055);
}

.section-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--col-border);
}

.section-heading h2 {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin: 0;
  font-size: clamp(1.1rem, 2.2vw, 1.35rem);
  line-height: 1.1;
  text-transform: uppercase;
  letter-spacing: 0.025em;
}

.section-heading h2 .section-icon {
  color: var(--col-structure);
  font-size: 1.25rem;
  line-height: 1;
  flex: 0 0 auto;
}

.list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.item {
  display: grid;
  grid-template-columns: 125px 1fr auto;
  gap: 1.4rem;
  padding: 1.2rem 0;
  border-bottom: 1px solid var(--col-border);
}

.item:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.date {
  color: var(--col-alt-structure);
  font-size: 0.82rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.035em;
}

.item h3 {
  margin: 0;
  font-size: 1rem;
  line-height: 1.35;
  letter-spacing: -0.01em;
}

.updates-meta {
  margin: 0.25rem 0 0;
  color: var(--col-muted);
  font-size: 0.9rem;
}

.coauthors {
  color: var(--col-muted);
  font-size: 0.95em;
  font-weight: 400;
}

.badge {
  align-self: start;
  display: inline-block;
  padding: 0.25rem 0.45rem;
  border-radius: 6px;
  background: rgba(var(--col-structure-rgb), 0.18);
  color: var(--col-dark);
  font-size: 0.76rem;
  white-space: nowrap;
}

.cards {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  margin-top: 1.6rem;
}

.card {
  display: flex;
  flex-direction: column;
  min-height: 190px;
  padding: 1.25rem 1.6rem;
  background: white;
  border: 1px solid var(--col-border);
  border-radius: 14px;
  box-shadow: 0 12px 26px rgba(0, 0, 0, 0.045);
}

.card h2 {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  margin: 0 0 0.7rem;
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

.card-icon {
  color: var(--col-structure);
  font-size: 1.25rem;
  line-height: 1;
  flex: 0 0 auto;
}

.card p {
  margin: 0 0 1rem;
  color: var(--col-dark);
  font-size: 0.9rem;
}

.small-link {
  margin-top: auto;
  font-size: 0.76rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  white-space: nowrap;
}

/* Secondary pages */
.page-hero {
  position: relative;
  overflow: hidden;
  margin: 0 auto;
  padding: 2rem var(--page-x-padding) 2.4rem;
  min-height: 220px;
  display: grid;
  align-items: center;
  background: transparent;
  color: white;
}

.page-hero::after {
  content: "";
  position: absolute;
  right: 1rem;
  top: 2.5rem;
  width: min(36vw, 380px);
  height: 240px;
  opacity: 0.2;
  background-image:
    linear-gradient(var(--col-structure) 1px, transparent 1px),
    linear-gradient(90deg, var(--col-structure) 1px, transparent 1px);
  background-size: 28px 28px;
  mask-image: radial-gradient(circle, black, transparent 70%);
  pointer-events: none;
}

.page-hero h1 {
  max-width: 760px;
  margin: 0;
  font-size: clamp(3.1rem, 7vw, 5.4rem);
  line-height: 0.92;
  letter-spacing: -0.06em;
}

.page-hero p {
  max-width: 760px;
  margin: 0;
  color: #d8d8d8;
}

.page-hero .tagline {
  font-size: clamp(1.05rem, 2vw, 1.45rem);
  line-height: 1.3;
  letter-spacing: -0.025em;
  color: white;
}

.page-subnav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem 1rem;
  margin: 0 0 1.6rem;
  padding: 1rem 1.1rem;
  background: white;
  border: 1px solid var(--col-border);
  border-radius: 14px;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.045);
}

.page-subnav a {
  color: black;
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.06em;
  text-decoration: none;
  text-transform: uppercase;
}

.page-subnav a:hover {
  color: var(--col-structure);
  background: transparent;
}

.page-subnav a::before {
  content: "";
  display: inline-block;
  width: 0.55em;
  height: 0.55em;
  margin-right: 0.5em;
  background: var(--col-structure);
  vertical-align: 0.05em;
}

.content-panel {
  scroll-margin-top: 1rem;
}

.content-list,
.content-panel ul {
  margin: 1rem 0 0;
  padding-left: 1.25rem;
}

.content-list li,
.content-panel li {
  margin: 0.65rem 0;
}

.content-panel a,
.content-panel a:link,
.content-panel a:visited {
  text-decoration: none;
}

.content-panel a:hover {
  color: var(--col-structure);
  background: transparent;
}

.content-note {
  margin: 1rem 0 0;
  color: var(--col-muted);
  font-size: 0.9rem;
}

.unlinked-title {
  color: black;
  font-weight: 800;
}

.note {
  color: var(--col-muted);
}

.back-link,
.back {
  margin: 1.25rem 0 0;
  text-align: right;
}

.back-link a,
.back a {
  font-size: 0.76rem;
  font-weight: 900;
  letter-spacing: 0.06em;
  text-decoration: underline;
  text-decoration-color: var(--col-structure);
  text-decoration-thickness: 0.16em;
  text-transform: uppercase;
  text-underline-offset: 0.2em;
}

.content-panel .back-link a,
.content-panel .back-link a:link,
.content-panel .back-link a:visited,
.content-panel .back a,
.content-panel .back a:link,
.content-panel .back a:visited {
  color: black;
  text-decoration: underline;
  text-decoration-color: var(--col-structure);
  text-decoration-thickness: 0.16em;
  text-underline-offset: 0.2em;
}

.content-panel .back-link a:hover,
.content-panel .back a:hover {
  color: black;
  background: transparent;
  text-decoration: underline;
  text-decoration-color: var(--col-structure);
}

.alert {
  color: var(--col-alt-structure);
  font-style: normal;
  font-weight: normal;
}

.contact-card {
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 1.5rem;
  align-items: start;
  margin-top: 1.4rem;
}

.profile-photo {
  width: 180px;
  height: 180px;
  object-fit: cover;
  border-radius: 50%;
  border: 1px solid var(--col-border);
}

.contact-name {
  margin: 0;
  font-size: 1.35rem;
  font-weight: 900;
  letter-spacing: -0.02em;
}

.contact-name span {
  font-variant: small-caps;
}

.contact-role {
  margin: 0.25rem 0 1rem;
  color: var(--col-dark);
}

.contact-list {
  display: grid;
  gap: 0.75rem;
  margin: 0;
}

.contact-list div {
  display: grid;
  grid-template-columns: 80px 1fr;
  gap: 1rem;
}

.contact-list dt {
  color: var(--col-muted);
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-size: 0.76rem;
}

.contact-list dd {
  margin: 0;
}

.contact-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 1.3rem;
  font-weight: 800;
}

.contact-actions a {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  text-decoration: none;
}

/* Service/Academia pages: make first list acronym/short name scan like <strong>...</strong>. */
.service-page .content-panel li > a:first-child,
.service-page .content-panel li > a:first-child:link,
.service-page .content-panel li > a:first-child:visited,
.academia-page .content-panel li > a:first-child,
.academia-page .content-panel li > a:first-child:link,
.academia-page .content-panel li > a:first-child:visited {			  color: black;
  font-weight: 900;
}

.service-page .content-panel li > a:first-child:hover,
.academia-page .content-panel li > a:first-child:hover {			  color: var(--col-structure);
  background: tranparent;
}

/* Publications page */
.publications-page .content-panel h3 {
  margin: 1.55rem 0 0.65rem;
  color: black;
  font-size: 1.05rem;
  line-height: 1.2;
  letter-spacing: 0.02em;
}

.publications-page .content-panel ul {
  padding-left: 1.25rem;
}

.publications-page .content-panel li {
  margin: 0.9rem 0;
}

.publications-page .content-panel li > a:first-child,
.publications-page .content-panel li > a:first-child:link,
.publications-page .content-panel li > a:first-child:visited {
  color: black;
  font-weight: 900;
}

.publications-page .content-panel li > a:first-child:hover {
  color: var(--col-structure);
  background: transparent;
}

.resource-link {
  display: inline-block;
  margin-left: 0.35rem;
  padding: 0.05rem 0.32rem;
  border: 1px solid rgba(45, 45, 45, 0.18);
  border-radius: 5px;
  background: rgba(var(--col-structure-rgb), 0.14);
  color: var(--col-dark) !important;
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  vertical-align: 0.08em;
}

.resource-link:hover {
  background: var(--col-structure) !important;
  color: black !important;
}

.dlmulticols {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.4rem;
  margin-top: 1rem;
}

.dlmulticols dl {
  margin: 0;
}

.dlmulticols dt {
  margin: 0 0 0.5rem;
  color: black;
}

.dlmulticols dd {
  margin: 0 0 0.35rem;
}

@media (max-width: 820px) {
  .dlmulticols {
    grid-template-columns: 1fr;
  }
}

.site-footer {
  background: var(--col-footer);
  color: white;
}

.footer-inner {
  max-width: var(--max-width);
  background: transparent;
  margin: 0 auto;
  padding: 1.25rem 2.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.footer-name {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.footer-name p {
  margin: 0;
}

.footer-name small {
  color: #cfcfcf;
}

.mark {
  width: 42px;
  height: 42px;
  display: inline-grid;
  place-items: center;
  background: var(--col-structure);
  color: black;
  font-weight: 900;
  font-size: 1.4rem;
  text-decoration: none;
  line-height: 1;
}

.mark:hover {
  background: white;
  color: black;
}

.footer-links {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  font-weight: 800;
}

.site-footer .footer-links a,
.site-footer .footer-links a:link,
.site-footer .footer-links a:visited,
.site-footer .footer-links a:hover,
.site-footer .footer-links a:focus,
.site-footer .footer-links a:active {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  color: white;
  text-decoration: none !important;
  text-decoration-line: none !important;
  border-bottom: 0 !important;
  box-shadow: none !important;
}

.site-footer .footer-links a:hover {
  color: var(--col-structure);
  background: transparent;
}

.footer-icon {
  color: var(--col-structure);
  font-size: 1rem;
  line-height: 1;
  text-decoration: none !important;
}

.footer-icon-linkedin {
  display: inline-grid;
  place-items: center;
  width: 1.05rem;
  height: 1.05rem;
  border: 1.5px solid var(--col-structure);
  border-radius: 2px;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 0.68rem;
  font-weight: 900;
}

@media (max-width: 820px) {
  .nav {
    padding-right: 1rem;
  }

  .nav ul {
    justify-content: flex-start;
  }

  .hero {
    min-height: auto;
    padding-top: 3rem;
    padding-right: 1rem;
    padding-bottom: 3.5rem;
    padding-left: 1rem;
  }

  .hero::after {
    display: none;
  }

  .page-hero {
    min-height: auto;
    padding-top: 2.4rem;
    padding-right: 1rem;
    padding-bottom: 2.8rem;
    padding-left: 1rem;
  }
    
  main {
    padding-right: 1rem;
    padding-left: 1rem;
  }

  .panel {
    padding-right: 1.35rem;
    padding-left: 1.35rem;
  }

  .card {
    padding-right: 1.25rem;
    padding-left: 1.25rem;
  }

  .footer-inner {
    padding-right: 1rem;
    padding-left: 1rem;
  }

  .item {
    grid-template-columns: 1fr;
    gap: 0.35rem;
  }

  .badge {
    justify-self: start;
  }

  .cards {
    grid-template-columns: repeat(2, 1fr);
  }

  .footer-inner {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (max-width: 560px) {
  .cards {
    grid-template-columns: 1fr;
  }

  .section-heading {
    align-items: flex-start;
    flex-direction: column;
  }
}


@media (max-width: 820px) {
  .page-hero {
    min-height: auto;
    padding-top: 2.4rem;
    padding-bottom: 2.8rem;
  }

  .page-hero::after {
    display: none;
  }

  .contact-card {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 560px) {
  .contact-list div {
    grid-template-columns: 1fr;
    gap: 0.2rem;
  }
}

/* Keep longer secondary-page titles on one line on desktop without making the header heavier. */
.page-hero .hero-content {
  max-width: var(--max-width);
}

.page-hero h1 {
  max-width: none;
}

@media (min-width: 760px) {
  .page-hero h1 {
    white-space: nowrap;
  }
}
