/* Layout & centering */
.slideshow-container {
  position: relative;
  max-width: 600px;       /* adjust as you like */
  margin: 0 auto 30px;         /* center on the page */
  aspect-ratio: 3 / 2;    /* keeps layout stable while images load */
  overflow: visible;
  background: transparent;    /* subtle backdrop while loading */
  border-radius: 12px;
  margin-bottom: 30px;  /* adjust as needed */
  }

/* Each slide */
.mySlide {
  display: none;
  width: 100%;
  height: 100%;
  /* center the image both ways */
  display: none;
  align-items: center;
  justify-content: center;
  flex-direction: column;
}

.mySlide.is-active {
  display: flex;          /* show only the active slide */
}

/* Images: scale nicely, stay centered */
.mySlide img {
  max-width: 100%;
  max-height: 70vh;
  width: 100%;
  height: auto;
  object-fit: contain;    /* preserve aspect ratio, no cropping */
}

.slideshow-container .text {
  font-size: 0.85em;   /* ~12px if body is 16px */
  line-height: 1.3;    /* keeps multi-line captions readable */
  color: DarkSlateGrey;
  margin-top: 4px;
}

/* Fade effect */
.fade {
  animation: fade 400ms ease-in;
}
@keyframes fade {
  from { opacity: 0; }
  to   { opacity: 1; }
}

/* Optional controls */
.nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  border: 0;
  background: rgba(0,0,0,0.5);
  color: #fff;
  font-size: 28px;
  line-height: 1;
  padding: 8px 12px;
  border-radius: 8px;
  cursor: pointer;
}
.nav.prev { left: 10px; }
.nav.next { right: 10px; }

/* Optional dots */
.dots {
  position: absolute;
  bottom: 10px;
  left: 0; right: 0;
  display: flex;
  gap: 8px;
  justify-content: center;
}
.dots button {
  width: 10px; height: 10px;
  border-radius: 50%;
  border: 0;
  background: rgba(0,0,0,0.3);
  cursor: pointer;
}
.dots button[aria-current="true"] {
  background: rgba(0,0,0,0.75);
}

html { -webkit-text-size-adjust: 100%; }
body { font-size: 16px; line-height: 1.3; }


/* Respect reduced motion */
@media (prefers-reduced-motion: reduce) {
  .fade { animation: none; }
}

    body {
        font-family: Arial, sans-serif;
        margin: 0;
        padding: 0;
        background-color: #ffffff;
        text-align: center;
    }
    .header {
/*        background: #ffffff;*/
		background: url(Images/HumanCondition80.jpg) 0 -480px;
        padding: 20px;
        border-bottom: 2px solid #ccc;
        text-align: center;
    }
    .header h1 {
        margin: 0;
        color: DarkSlateGrey;
        font-size: 2rem;
    }
h3 {
  color: DarkSlateGrey;
	font-size: 1.1rem;
}
.card table h3 {
  font-size: 1rem;      /* <= nav links */
  line-height: 1;
  margin: 10px 0 10px;
  font-weight: 600;
}
td img {
    margin-right: 20px; /* Adjust as needed */
}

.image-row {
  display: flex;             /* Arrange children in a row */
  justify-content: center;   /* Center horizontally */
  align-items: center;       /* Align vertically */
  gap: 30px;                 /* Horizontal spacing between images */
  flex-wrap: wrap;			/* allow wrap instead of overflow */
}
.image-row img {
  height: auto;
  max-width: 450px;
/*  max-height: 200px;           /* desktop-ish cap */*/
  /* Each logo gets a flexible width that scales nicely across sizes */
  flex: 0 0 auto;
  width: auto;         /* override HTML width attrs */
}

td:first-child {
    padding-right: 20px; /* Adjust as needed */
}
    .topnav {
        background: #ffffff;
        padding: 10px 0;
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        gap: 15px;
    }
    .topnav a {
        text-decoration: none;
        color: DarkSlateGrey;
        font-weight: bold;
        padding: 10px 15px;
        border-radius: 5px;
        display: inline-block;
	font-size: 1.1rem;
    }

    .topnav a:hover {
        background: #dddddd;
    }
    .card {
        background: white;
        margin: 20px auto;
		padding: 10px 20px 10px 20px;
        width: 80%;
        max-width: 1000px;
        box-shadow: 0px 0px 10px rgba(0, 0, 0, 0.1);
        border-radius: 8px;
        text-align: left;
    }
    .mySlides {
        display: none;
    }
    .center {
        display: block;
        margin: auto;
        max-width: 100%;
        height: auto;
    }
.mySlide.is-active {
  display: flex;
  flex-direction: column;   /* stack image and caption vertically */
  align-items: center;      /* center them horizontally */
  justify-content: center;  /* optional: center vertically in slide */
}

.text {
  text-align: center;
  color: DarkSlateGrey;
  margin-top: 5px;
  font-size: 0.95rem;
  line-height: 1.35;
  flex: 0 0 auto;
}
/* Match slideshow caption links to in-text links */
.text a:link {
  color: SlateBlue;
  text-decoration: none;
}
.text a:visited {
  color: DarkBlue;
}
.text a:hover {
  text-decoration: underline;
}

@media (max-width: 900px) {
  .image-row img {
    max-height: 80px;
    max-width: 40vw;
  }
}
@media (max-width: 600px) {
  .card { width: 92%; }
  .topnav { gap: 10px; }
  .topnav a { padding: 8px 10px; }
  .mySlide img { max-height: 60vh; }
  .text { font-size: 1rem; } /* bump caption a touch on small screens */
  .image-row { gap: 12px; }
  .image-row img { max-height: 64px; max-width: 70vw; }
}
@media (min-width: 900px) {
  .image-row { flex-wrap: nowrap; }
  .image-row img {
    /* Card content is ~960px wide (1000px max - 40px padding)
       Two gaps = 60px -> each slot ≈ (960 - 60)/3 = 300px */
    width: calc((100% - 60px) / 3);  /* each logo gets an equal slot */
    max-width: none;                 /* let the calc apply */
    height: auto;                    /* keep proportions */
    max-height: 160px;               /* optional: cap very tall logos */
    flex: 0 0 calc((100% - 60px) / 3);
  }
}

/* Footer */
.footer {
  padding: 5px;
  text-align: center;
  background: White;
  color: DarkSlateGrey;
  margin-top: 20px;
	font-size: 0.875rem;
}
.intext a:link {
  color: SlateBlue;
  text-decoration: none;
}

.intext a:visited {
  color: DarkBlue;
}
#table1 {
  border-spacing: 5px;
}

#table1 td {
	padding: 0px;
	vertical-align: top;
}
/* ====== Segment header (inside a .card) ====== */
.card .section-title {
  margin: 0 0 .75rem;
  font-weight: 750;
  letter-spacing: -0.01em;
  color: DarkSlateGrey;
  font-size: clamp(1rem, 1vw + 0.45rem, 1.45rem);
}
.card .section-subtitle {
  margin: 0 0 1rem;
  color: DarkSlateGrey;
  font-size: 1rem;
}

/* ====== Grid of smaller cards ====== */
/* desktop: two wider columns */
@media (min-width: 1024px) {
  .card .mini-grid {
  display: grid;
    grid-template-columns: repeat(2, minmax(1000px, 1fr));
  gap: 16px;
  }
}

/* very wide screens: three columns */
.card .mini-grid {
  display: grid;
  gap: 16px;
  /* Will make 1–3 columns depending on space, never overflow */
  grid-template-columns: repeat(auto-fit, minmax(clamp(200px, 25vw, 300px), 1fr));
}
.card .mini-card { min-width: 0; }
.card .mini-card p, .card .mini-card h3, .card .mini-card a { overflow-wrap:anywhere; }

/* ====== Inner mini-cards ====== */
.card .mini-card {
  background: #fff;
  border: 1px solid rgba(0,0,0,.08);
  border-radius: 12px;
  box-shadow: 0 2px 10px rgba(0,0,0,.05);
  padding: 12px 14px;
  display: flex;
  flex-direction: column;
}
.card .mini-card h3 {
  margin: 0 0 .4rem;
  font-size: 1.05rem;
  font-weight: 650;
  color: DarkSlateGrey;
}
.card .mini-card p {
  margin: 0 0 .8rem;
  color: #000;
}

/* Button-like link inside mini-cards */
.card .mini-card .btn {
  margin-top: auto;
  display: inline-block;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.9rem;        /* was ~1rem */
  padding: 0.4rem 0.65rem;  /* was .55rem .85rem */
  border-radius: 8px;       /* was 10px */
  background: rgba(47, 79, 79, 0.8);     /* ~#111 at 65% opacity */
  color: #fff;
  border: 1px solid rgba(47, 79, 79, 0.35);
}

/* Hover/focus: a bit less transparent */
.card .mini-card .btn:hover,
.card .mini-card .btn:focus {
  background: DarkSlateGrey;
  text-decoration: none;
}

/* Keyboard focus ring */
.card .mini-card .btn:focus-visible {
  outline: 2px solid rgba(47, 79, 79, 0.9);
  outline-offset: 2px;
}

/* Small-screen tweak */
@media (max-width: 520px) {
  .card .section-subtitle { font-size: .95rem; }
}

/* Row that holds multiple buttons in a mini-card */
.card .mini-card .btn-row {
  margin-top: auto;           /* keeps the button row pinned to the bottom of the card */
  display: flex;
  gap: 6px;                   /* space between buttons */
  flex-wrap: wrap;            /* if too narrow, wrap to next line */
}


/* Make the three buttons sit side by side and align nicely */
.card .mini-card .btn-row .btn {
  margin-top: 0;              /* override any .btn margin-top */
  flex: 1 1 0;                /* equal widths when space allows */
  text-align: center;
  white-space: nowrap;        /* prevent awkward line breaks inside a button */
}

/* Optional: on very narrow screens, let them stack cleanly */
@media (max-width: 480px) {
  .card .mini-card .btn-row .btn {
    flex: 1 1 100%;
  }
}
/* Put this at the very bottom of weghorn_stylefile.css */
#software-segment-title.section-title {
  font-size: 1.1rem;      /* pick your size */
  line-height: 1.25;
  margin-bottom: 0.5rem;
  font-weight: 700;
    color: #000;   /* black */
}

/* People card images: remove baseline gap and control spacing explicitly */
.card table td > div > img {
  display: block;      /* no baseline gap */
  margin: 0;           /* be explicit */
  margin-top: 10px;    /* or 6px / 8px if you want it */
  margin-bottom: 10px;    /* or 6px / 8px if you want it */
}

/* Publications cards (scoped) */
.pubs{ max-width: 980px; margin-inline:auto; padding:10px 0 0; }
.pubs h2{ color: DarkSlateGrey; font-size: 1.25rem; margin: 14px 0; }
.pubs a:link{ color: SlateBlue; }
.pubs a:visited{ color: DarkBlue; }

.pubs .grid{ display:grid; gap:12px; }
.pubs .pub{
  background:#fff; border:1px solid rgba(0,0,0,.08);
  border-radius:8px; box-shadow:0 2px 10px rgba(0,0,0,.05);
  padding:12px 14px; display:grid; gap:6px;
  position: relative;
}
.pubs .meta{ display:flex; gap:10px; align-items:center; color:DarkSlateGrey; font-size:.95rem; opacity:.9; }
.pubs .badge{ border:1px solid currentColor; padding:2px 8px; border-radius:999px; font-size:.8rem; }
.pubs .pub .title{ margin:0; font-size:1rem; line-height:1.35; }
.pubs .pub .title a{ position: static; text-decoration:none; }
.pubs .pub .title a:hover, .pubs .pub .title a:focus{ text-decoration:none; }
.pubs .authors{ margin:0; font-size:.98rem; color:DarkSlateGrey; }
.pubs .actions{ display:flex; gap:10px; flex-wrap:wrap; }
.pubs .btn{
  display:inline-block; text-decoration:none; font-weight:600; font-size:.9rem;
  padding:.4rem .65rem; border-radius:8px; background: rgba(47,79,79,0.8);
  color:#fff; border:1px solid rgba(47,79,79,0.35);
}
.pubs .btn:hover,.pubs .btn:focus{ background: DarkSlateGrey; }

/* Legend + group-member underline */
.pubs .legend{ margin:6px 0 0; color:DarkSlateGrey; opacity:.85; }

/* Responsive */
@media (max-width: 840px){ .pubs .grid{ grid-template-columns:1fr; } }


/* The magic: a pseudo-element fills the card and routes clicks to the title link */
.pubs .pub .title a::after {
  content: "";
  position: absolute;
  inset: 0;                    /* cover the entire card */
  z-index: 1;                  /* sits under any “real” links we elevate below */
}

/* Keep other inline links (e.g., bioRxiv/PMC) clickable above the overlay */
.pubs .small a,
.pubs .actions a {
  position: relative;
  z-index: 2;                  /* higher than the stretched overlay */
}

/* Optional hover affordance for the card */
.pubs .pub:hover {
  box-shadow: 0 6px 18px rgba(0,0,0,.12);
  transform: translateY(-1px);
  transition: box-shadow .18s ease, transform .18s ease;
}
