@charset "UTF-8";
/* Das Lab — site styles
   Color tokens preserved from the legacy stylesheet. */
/* ---------- base ---------- */
*, *::before, *::after {
  box-sizing: border-box;
}

html {
  font-size: 100%;
}

body {
  margin: 0;
  font-family: "Raleway", "Helvetica Neue", Arial, sans-serif;
  font-weight: 400;
  line-height: 1.5;
  color: #333;
  background: #fff;
  -webkit-font-smoothing: antialiased;
  -webkit-text-size-adjust: 100%;
}

img {
  max-width: 100%;
  height: auto;
  vertical-align: middle;
}

a {
  color: #009b96;
  text-decoration: none;
}
a:hover {
  color: #333;
}
a:focus-visible {
  outline: 2px solid #007e79;
  outline-offset: 2px;
  border-radius: 2px;
}

h1, h2, h3, h4 {
  font-weight: 800;
  color: #333;
  line-height: 1.2;
  margin: 1.2em 0 0.5em;
}

h1 {
  font-size: 2rem;
}

h2 {
  font-size: 1.5rem;
  color: #009b96;
}

h3 {
  font-size: 1.2rem;
}

p {
  margin: 0 0 1em;
}

hr {
  border: 0;
  border-top: 1px dotted #666;
  margin: 2rem 0;
}

/* ---------- header / nav ---------- */
.site-header {
  max-width: 975px;
  margin: 0 auto;
  padding: 1.5rem 1.25rem 0.5rem;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

.brand img {
  display: block;
  width: auto;
  height: 70px;
}

.primary-nav {
  margin-left: auto;
  display: flex;
  flex-wrap: wrap;
  gap: 1.8rem;
  font-weight: 800;
  font-size: 0.85rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}
.primary-nav a {
  color: #333;
  padding-bottom: 0.35rem;
  border-bottom: 4px solid transparent;
  transition: border-color 0.15s, color 0.15s;
}
.primary-nav a:hover {
  color: #009b96;
  border-bottom-color: #ccdfe0;
}
.primary-nav a[aria-current=page] {
  color: #007e79;
  border-bottom-color: #009b96;
}

/* Hamburger toggle (hidden on desktop, shown on phone) */
.nav-toggle {
  display: none;
}

.nav-toggle-label {
  display: none;
}

@media (max-width: 720px) {
  .site-header {
    padding: 1rem;
    gap: 0.5rem;
    align-items: center;
  }
  .brand img {
    height: 56px;
  }
  .nav-toggle-label {
    display: inline-flex;
    flex-direction: column;
    justify-content: space-between;
    width: 28px;
    height: 22px;
    margin-left: auto;
    cursor: pointer;
  }
  .nav-toggle-label span {
    display: block;
    height: 3px;
    background: #007e79;
    border-radius: 2px;
    transition: transform 0.2s, opacity 0.2s;
  }
  .primary-nav {
    order: 2;
    flex-basis: 100%;
    flex-direction: column;
    gap: 0;
    margin-left: 0;
    overflow: hidden;
    max-height: 0;
    transition: max-height 0.25s ease;
  }
  .primary-nav a {
    padding: 0.75rem 0.25rem;
    border-bottom: 1px solid #e5e5e5;
  }
  .primary-nav a[aria-current=page] {
    border-bottom-color: #009b96;
  }
  .nav-toggle:checked ~ .primary-nav {
    max-height: 30em;
  }
  .nav-toggle:checked ~ .nav-toggle-label span:nth-child(1) {
    transform: translateY(9px) rotate(45deg);
  }
  .nav-toggle:checked ~ .nav-toggle-label span:nth-child(2) {
    opacity: 0;
  }
  .nav-toggle:checked ~ .nav-toggle-label span:nth-child(3) {
    transform: translateY(-9px) rotate(-45deg);
  }
}
/* ---------- main ---------- */
.site-main {
  max-width: 975px;
  margin: 0 auto;
  padding: 1rem 1.25rem 0.2rem;
}

.page-content {
  max-width: 855px;
  margin: 0 auto;
}

/* ---------- per-page hero ---------- */
.page-hero {
  position: relative;
  max-width: 975px;
  margin: 1rem auto 1.5rem;
  aspect-ratio: 973/221;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  border-radius: 2px;
}

.page-hero-tab {
  position: absolute;
  right: -1%;
  bottom: 8%;
  width: 36%;
  height: auto;
  max-height: 60%;
  /* The <img>'s intrinsic 349:111 aspect ratio keeps the shape
     automatically — no explicit aspect-ratio rule is needed (and
     adding one alongside width + max-height made the tab jump around
     during browser-window resizes). */
  z-index: 2;
  filter: drop-shadow(2px 2px 6px rgba(0, 0, 0, 0.25));
}

/* Mobile: pin the hero to a fixed height and right-justify the photo so
   the gray block + teal tab stay visible; the photo crops from the left.
   The teal tab keeps its desktop proportions so it reads clearly — it's
   OK if it overlaps the photo. */
@media (max-width: 960px) {
  .page-hero {
    aspect-ratio: auto !important;
    height: 200px !important;
    background-size: auto 100% !important;
    background-position: 0% 50% !important;
  }
  .page-hero-tab {
    /* Mobile: drive sizing from HEIGHT only and let width auto-derive
       from the <img>'s intrinsic 349:111 aspect ratio. Reduced from
       60% -> 45% so the tab isn't horizontally cramped at portrait
       iPhone-mini widths (~375px). */
    width: auto;
    height: 45%;
    bottom: 15%;
    right: -2%;
  }
}
/* ---------- sprite word-art (legacy CSS sprites preserved) ---------- */
/* Home-page side callouts (replaces the legacy word_home sprite). */
.home-callout-left,
.home-callout-right {
  margin: 0;
  font-family: "Raleway", sans-serif;
  color: #555;
  line-height: 1.05;
}

.home-callout-left {
  font-size: 2.6rem;
  font-weight: 700;
  text-align: left;
  letter-spacing: -0.02em;
  color: #333;
  line-height: 1;
}
.home-callout-left .accent {
  color: #009b96;
}

.home-callout-right {
  font-size: 1.5rem;
  font-weight: 400;
  text-align: left;
  line-height: 1.1;
  color: #333;
}
.home-callout-right strong {
  color: inherit;
  font-weight: 700;
}
.home-callout-right .accent {
  color: #009b96;
}

.word-research-1,
.word-research-2,
.word-research-3 {
  display: inline-block;
  background: url("/assets/images/site/public/word_research.png") no-repeat;
  flex-shrink: 0;
}

.word-research-1 {
  width: 138px;
  height: 68px;
  background-position: -1px 0;
}

.word-research-2 {
  width: 138px;
  height: 121px;
  background-position: 0 -69px;
}

.word-research-3 {
  width: 138px;
  height: 84px;
  background-position: 0 -191px;
}

.word-resources-online,
.word-resources-resources {
  display: inline-block;
  background: url("/assets/images/site/public/word_resources.png") no-repeat;
}

.word-resources-online {
  width: 164px;
  height: 67px;
  background-position: 0 0;
}

.word-resources-resources {
  width: 164px;
  height: 44px;
  background-position: 0 -67px;
}

.word-resources-stack {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  margin-bottom: 1.5rem;
}

.word-contact {
  display: block;
  width: 184px;
  height: 62px;
  background: url("/assets/images/site/public/word_contact.png") no-repeat;
}

/* ---------- homepage ---------- */
.home-stage {
  position: relative;
  /* Break ~5% past the site-main container so the hero feels bigger. */
  width: 105%;
  margin: 0 -2.5%;
  max-width: none;
}

.home-banner {
  width: 100%;
  /* logo_home.png was lightly trimmed (1022 -> 1015 px wide) to drop the
     trailing pure-white pixels at the right edge. Aspect ratio matches
     the trimmed dimensions. */
  aspect-ratio: 1015/348;
  background: url("/assets/images/site/public/logo_home.png") no-repeat center top/100% auto;
  border-radius: 2px;
}

/* Circular teal "research →" tab anchored to the banner's left edge */
.home-research-arrow {
  position: absolute;
  left: -42px;
  top: 28%;
  width: 53px;
  height: 201px;
  background: url("/assets/images/site/public/nav_research.png") no-repeat 0 0;
  background-size: 106px 201px;
  text-indent: -9999px;
  overflow: hidden;
}
.home-research-arrow:hover {
  background-position: -53px 0;
}

/* Two horizontal decorative bars (sliced from nav_banners.png) */
.home-divider-bars {
  /* Trial: hide entirely on the home page. If the page looks too sparse
     without them, remove this `display: none` to bring them back. */
  display: none;
  /* (Originals kept below in case we restore.) */
  flex-flow: row nowrap;
  width: 100%;
  margin: 1rem auto 1.5rem;
  max-width: none;
  height: 39px;
}

/* Photo/gray seam in the trimmed image is at x=654 of 1015 (64.4%).
   Empirically the rendered bar seam still landed slightly to the left
   of the banner seam at 67.45%; bumped to 70% for the nudge. Tune
   here if visually off. */
.home-divider-bars .bar-dark {
  flex: 0 0 70%;
}

.home-divider-bars .bar-light {
  flex: 1 1 auto;
}

.home-divider-bars .bar-dark,
.home-divider-bars .bar-light {
  height: 39px;
  background-repeat: no-repeat;
  background-size: 100% 100%;
}

.home-divider-bars .bar-dark {
  background-image: url("/assets/images/site/public/footer_bar_dark.png");
}

.home-divider-bars .bar-light {
  background-color: #ccc;
}

.home-callouts {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 1.5rem;
  align-items: start;
  max-width: 1022px;
  /* ~1 line of breathing room above the "what we do" row, matching the
     spacing-above-text we have on the interior pages. */
  margin: 1.5rem auto 2.5rem;
  padding: 0 1rem;
}

.home-mission {
  margin: 0;
  padding: 0 0.5rem;
  font-size: 0.95rem;
  line-height: 1.4;
  text-align: justify;
  color: #555;
}

@media (max-width: 960px) {
  .home-research-arrow {
    display: none;
  }
}
/* Callouts collapse to single column ONLY in portrait. In landscape
   (e.g. iPhone landscape ~812px) the three-column desktop layout still
   fits, so we keep that for visual consistency with the laptop view. */
@media (max-width: 960px) and (orientation: portrait) {
  .home-callouts {
    grid-template-columns: 1fr;
    text-align: left;
  }
  .home-callout-left,
  .home-callout-right {
    text-align: left;
  }
  /* Collapse the multi-line line breaks so the callouts flow as a single
     line across the page on phone-portrait widths. */
  .callout-break {
    display: none;
  }
}
/* Phone-portrait: the home banner is much smaller proportionally, so
   shrink the elements directly underneath it (callouts + bars + logos)
   to keep the overall page feeling balanced. Applied across all phone
   widths in portrait orientation, not just iPhone mini.
   Mission paragraph kept at ~75% (full 50% would be unreadable). */
@media (max-width: 720px) and (orientation: portrait) {
  .home-callout-left {
    font-size: 1.3rem;
  }
  .home-callout-right {
    font-size: 0.75rem;
  }
  .home-mission {
    font-size: 0.7rem;
    /* Left-align (override the desktop justify) and drop the side
       padding so the first character lines up under the start of
       'what we do'. */
    text-align: left;
    padding: 0;
  }
  .home-divider-bars,
  .home-divider-bars .bar-dark,
  .home-divider-bars .bar-light {
    height: 20px;
  }
  /* Logos at 50% of their default size on phone portrait — all pages. */
  .institutional-logos .logo-stanford-university,
  .institutional-logos .logo-stanford-medicine {
    height: 22px;
  }
  /* HHMI: 50% of its already-20%-smaller default, so net ~40% of the
     original (≈ 70% smaller than where the others started). */
  .institutional-logos .logo-hhmi {
    height: 18px;
  }
}
/* ---------- people ---------- */
.people-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.75rem 1.25rem;
  margin: 1.5rem 0 2.5rem;
}

@media (max-width: 960px) {
  .people-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}
@media (max-width: 720px) {
  .people-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.25rem 1rem;
  }
}
@media (max-width: 420px) {
  .people-grid {
    grid-template-columns: 1fr;
  }
}
.person-card {
  display: flex;
  flex-direction: column;
  text-align: center;
}
.person-card .person-photo {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  background: #ccdfe0;
  border-radius: 4px;
}
.person-card .person-name {
  font-weight: 800;
  margin: 0.6rem 0 0.15rem;
  color: #333;
  font-size: 0.95rem;
}
.person-card .person-role {
  margin: 0;
  font-size: 0.85rem;
  color: #666;
  line-height: 1.4;
}
.person-card .person-links {
  margin: 0.4rem 0 0;
  font-size: 0.8rem;
}
.person-card .person-links a {
  color: #009b96;
}
.person-card .person-links a:hover {
  color: #333;
}
.person-card .person-links a::before {
  content: "· ";
  color: #666;
}
.person-card .person-links a:first-child::before {
  display: none;
}

.section-heading {
  color: #009b96;
  font-size: 1.3rem;
  font-weight: 800;
  margin: 2rem 0 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px dotted #666;
}

.alumni-list {
  list-style: none;
  padding: 0;
  margin: 1rem 0 2rem;
  columns: 2;
  column-gap: 2rem;
}
.alumni-list li {
  break-inside: avoid;
  padding: 0.4rem 0;
  border-bottom: 1px solid #e5e5e5;
  font-size: 0.92rem;
  color: #555;
}
.alumni-list .alum-name {
  color: #333;
  font-weight: 500;
}
.alumni-list .alum-role {
  display: block;
  font-size: 0.85rem;
  color: #666;
}

@media (max-width: 720px) {
  .alumni-list {
    columns: 1;
  }
}
/* ---------- publications ---------- */
.pub-search {
  margin: 1.5rem 0 2rem;
  font-size: 1.65rem;
  text-align: left;
}
.pub-search a {
  /* inline-flex with align-items: center so the arrow icon and the
     text are vertically centered relative to each other regardless of
     text line-height. */
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: #333;
}
.pub-search a:hover {
  color: #009b96;
}
.pub-search strong {
  font-weight: 800;
}

.pub-search-arrow {
  display: inline-block;
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  background: url("/assets/images/site/public/nav_arrow.png") no-repeat 0 0;
  background-size: 115px 28px;
}

.pub-search a:hover .pub-search-arrow {
  background-position: -29px 0;
}

/* Two-column year/papers layout: year label on the left, all that year's
   publications stacked on the right. Each year-group is its own row, with
   double spacing between groups. */
.pub-year-group {
  display: grid;
  grid-template-columns: 100px 1fr;
  gap: 2rem;
  margin: 0 0 2.5rem;
  align-items: start;
}

.pub-year {
  margin: 0;
  font-size: 2.25rem;
  font-weight: 400;
  color: #009b96;
  line-height: 1;
  position: sticky;
  top: 0.5rem;
}

.pub-list {
  min-width: 0;
}

.publication {
  display: grid;
  grid-template-columns: 1fr;
  align-items: start;
  padding: 0.4rem 0;
  line-height: 1.15;
  /* When a thumbnail is present, switch to two-column layout. The thumbnail
     is fixed-width; height stays auto so the natural aspect ratio is
     preserved (no letterboxing). */
}
.publication:has(.pub-thumb) {
  grid-template-columns: 180px 1fr;
  gap: 1.25rem;
}
.publication {
  /* Without a thumbnail, render authors / title / journal / links as a
     single flowing line — matching the original site's typesetting. */
}
.publication:not(:has(.pub-thumb)) .pub-text > p {
  display: inline;
  margin: 0;
}
.publication:not(:has(.pub-thumb)) .pub-authors::after,
.publication:not(:has(.pub-thumb)) .pub-title::after,
.publication:not(:has(.pub-thumb)) .pub-meta::after {
  content: " ";
}
.publication .pub-thumb {
  width: 180px;
  height: auto;
  background: transparent;
  border-radius: 3px;
  align-self: start;
}
.publication .pub-text {
  min-width: 0;
}
.publication .pub-title,
.publication .pub-authors,
.publication .pub-meta,
.publication .pub-links {
  margin: 0;
  font-size: 0.9rem;
  line-height: 1.15;
}
.publication .pub-title {
  color: #333;
  font-weight: 400;
}
.publication .pub-authors {
  color: #555;
}
.publication .pub-meta {
  color: #666;
}
.publication .pub-links {
  color: #009b96;
  margin-top: 0.15rem;
}
.publication .pub-links a {
  color: #009b96;
}
.publication .pub-links a:hover {
  color: #333;
}
.publication .pub-links a::before {
  content: " | ";
  color: #666;
  padding: 0 0.15rem;
}
.publication .pub-links a:first-child::before {
  display: none;
}
.publication {
  /* Title styling depends on whether the entry has a thumbnail:
     - With thumbnail (featured-style): bold, no underline.
     - Without thumbnail (one-line entries): underlined, regular weight.
       Underline applies only to the inner text (.pub-title-text), not
       to the surrounding quote marks. */
}
.publication:has(.pub-thumb) .pub-title {
  font-weight: 800;
}
.publication:not(:has(.pub-thumb)) .pub-title-text {
  text-decoration: underline;
  text-underline-offset: 2px;
}

.publication.featured {
  background: #ccdfe0;
  padding: 0.85rem;
  margin: 0.4rem 0;
  border-radius: 4px;
}
.publication.featured + .publication {
  border-top: none;
}

.publication.featured + .publication.featured {
  border-top: none;
  margin-top: 0.4rem;
}

@media (max-width: 960px) {
  .pub-year-group {
    grid-template-columns: 80px 1fr;
    gap: 1rem;
  }
  .pub-year {
    font-size: 1.75rem;
  }
}
@media (max-width: 720px) {
  .pub-year-group {
    grid-template-columns: 1fr;
  }
  .pub-year {
    position: static;
    margin-bottom: 0.5rem;
  }
  .publication:has(.pub-thumb) {
    grid-template-columns: 1fr;
  }
  .publication .pub-thumb {
    width: 100%;
    max-width: 240px;
  }
}
/* ---------- news ---------- */
.news-list {
  list-style: none;
  padding: 0;
  margin: 1.5rem 0;
}

.news-entry {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 1.5rem;
  align-items: start;
  padding: 1.25rem 0;
  border-bottom: 1px dotted #666;
}
.news-entry .news-thumb {
  width: 200px;
  max-height: 200px;
  object-fit: contain;
  background: transparent;
  border-radius: 3px;
  align-self: start;
  justify-self: end;
}
.news-entry .news-date {
  font-style: italic;
  font-size: 0.95rem;
  color: #009b96;
  margin: 0 0 0.5rem;
  font-weight: 500;
}
.news-entry .news-body {
  font-size: 0.95rem;
  line-height: 1.55;
  color: #555;
}
.news-entry .news-body p {
  margin: 0 0 0.6rem;
}
.news-entry .news-body p:last-child {
  margin-bottom: 0;
}
.news-entry .news-body a {
  color: #009b96;
}
.news-entry .news-body a:hover {
  color: #333;
}
.news-entry .news-body strong, .news-entry .news-body b {
  color: #333;
}
.news-entry .news-body img {
  max-width: 100%;
  height: auto;
  margin: 0.5rem 0;
}
.news-entry .news-body .read-more {
  display: inline-block;
  margin-top: 0.4rem;
  padding: 0.3rem 0.75rem;
  background: #333;
  color: #fff;
  font-size: 0.85rem;
  font-weight: 800;
  border-radius: 999px;
}
.news-entry .news-body .read-more:hover {
  background: #007e79;
  color: #fff;
}

@media (max-width: 1100px) {
  .news-entry {
    grid-template-columns: 1fr;
  }
  .news-entry .news-thumb {
    width: auto;
    max-width: 320px;
    max-height: none;
    height: auto;
    /* Override the desktop right-justify so the thumb is centered inside
       the single-column row on phone, landscape mobile, and iPad. */
    justify-self: center !important;
    margin: 0 auto !important;
    display: block;
  }
}
/* News post page */
.news-post {
  max-width: 855px;
  margin: 0 auto;
}
.news-post .news-date {
  color: #666;
  font-size: 0.9rem;
}
.news-post .news-title {
  font-size: 1.6rem;
}
.news-post .news-image {
  display: block;
  margin: 1.25rem 0;
  max-width: 100%;
  border-radius: 4px;
}
.news-post .news-body {
  font-size: 1rem;
  line-height: 1.7;
  color: #555;
}
.news-post .news-body img {
  display: block;
  margin: 1rem auto;
}

/* ---------- show-more (details/summary) ---------- */
details.show-more {
  margin: 1.5rem 0;
}
details.show-more > summary {
  list-style: none;
  cursor: pointer;
  display: inline-block;
  /* No left padding so the visible text aligns with the news/people
     images above and below at the page-content's left edge. */
  padding: 0.5rem 1rem 0.5rem 0;
  background: transparent;
  color: #007e79;
  font-weight: 800;
  border-radius: 4px;
  user-select: none;
}
details.show-more > summary::-webkit-details-marker {
  display: none;
}
details.show-more > summary::after {
  content: " ▾";
}
details.show-more > summary:hover {
  color: #333;
}
details.show-more[open] > summary::after {
  content: " ▴";
}
details.show-more[open] > summary {
  margin-bottom: 1rem;
}

/* ---------- resources ---------- */
.word-resources-header {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  margin: 0.5rem 0 1.5rem;
}

.resource-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 220px;
  gap: 1.5rem;
  align-items: center;
  padding: 1.25rem 0;
}
.resource-row + .resource-row {
  border-top: 1px dotted #666;
}
.resource-row .resource-text {
  margin: 0;
  color: #555;
  font-size: 0.95rem;
  line-height: 1.55;
}
.resource-row .resource-icon {
  text-align: right;
}
.resource-row .resource-icon img {
  max-width: 200px;
  height: auto;
}

@media (max-width: 960px) {
  .resource-row {
    grid-template-columns: 1fr;
  }
  .resource-row .resource-icon {
    text-align: center;
  }
}
/* ---------- research ---------- */
.page-lead {
  font-size: 1.7rem;
  line-height: 1.3;
  color: #333;
  margin: 1.5rem 0 2rem;
  border-left: 3px solid #009b96;
  padding: 0.5rem 0 0.5rem 1rem;
}

.research-row {
  display: grid;
  grid-template-columns: 160px 1fr 280px;
  gap: 1.75rem;
  align-items: center;
  margin: 1.5rem 0;
}
.research-row > i {
  align-self: start;
  margin-top: 0.5rem;
}
.research-row > p {
  margin: 0;
  color: #555;
  font-size: 0.95rem;
  line-height: 1.55;
  text-align: justify;
}
.research-row > a {
  text-align: center;
}
.research-row {
  /* Fixed-width photos, centered within their column. Also normalises
     across the three images, whose natural widths range from 259 to
     660px. */
}
.research-row img {
  display: block;
  width: 240px;
  max-width: 100%;
  height: auto;
  margin: 0 auto;
  border-radius: 4px;
}

@media (max-width: 960px) {
  .research-row {
    grid-template-columns: 1fr;
    /* Left-align the word-art sprites (3D puzzles, RNA structures…,
       Cloud biochemistry) at narrow widths instead of centering. */
  }
  .research-row > i {
    margin: 0;
  }
  .research-row > a {
    grid-column: 1;
  }
}
/* ---------- contact ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 2rem;
  align-items: start;
  margin-bottom: 2rem;
}
.contact-grid .contact-heading {
  padding-top: 0.25rem;
}
.contact-grid h2 {
  color: #007e79;
  font-size: 1.1rem;
  margin-top: 0;
}
.contact-grid .contact-block {
  margin-bottom: 1rem;
}
.contact-grid .contact-text p {
  margin: 0 0 0.75rem;
}

@media (max-width: 720px) {
  .contact-grid {
    grid-template-columns: 1fr;
  }
}
.contact-map-link {
  display: block;
  margin: 1rem 0 0;
  max-width: 360px;
}
.contact-map-link img.contact-map {
  width: 100%;
  height: auto;
  display: block;
  border: 0;
  border-radius: 4px;
}

.contact-address {
  margin: 0.4rem 0 0;
  color: #666;
  font-size: 0.9rem;
}

/* ---------- footer ---------- */
.site-footer {
  max-width: 975px;
  margin: 0.1rem auto 0.4rem;
  /* Match the horizontal padding of .site-main so the footer bars line up
     under the hero banner's edges to the pixel. */
  padding: 0 1.25rem 0.4rem;
}

/* Two-tone bars aligned with the hero banner: dark gradient on the left
   matching the photo portion, teal on the right matching the icon tab. */
.footer-bars {
  display: flex;
  height: 39px;
  margin-bottom: 1rem;
}

.footer-bar-dark,
.footer-bar-teal {
  height: 39px;
  background-repeat: no-repeat;
  background-size: 100% 100%;
}

/* Standalone slices extracted from nav_banners.png so each bar is just its
   own clean image (no leakage of the 'Group Member Site' header or the
   institutional-logo strip from the source sprite). The dark/teal seam is
   set to land at the same proportion as the photo/gray seam in the hero
   banner images (logo_<page>.jpg) — measured at ~68.86% of width. */
.footer-bar-dark {
  flex: 0 0 68.86%;
  background-image: url("/assets/images/site/public/footer_bar_dark.png");
}

.footer-bar-teal {
  position: relative;
}

/* Subtle "Admin" shortcut for lab members — links to CONTRIBUTING.md.
   Color matches the bar background so it's effectively hidden until
   hovered. */
.footer-admin {
  position: absolute;
  right: 0.6rem;
  top: 50%;
  transform: translateY(-50%);
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-decoration: none;
  /* Inside the teal footer bar — teal text on teal bg, hidden until
     hover. Footer_bar_teal.png is roughly #007e79. */
  color: #007e79;
}
.footer-admin:hover {
  color: #fff;
}

/* On the home page, the admin link lives in the gray .bar-light. Match
   that bar's #ccc background so it is completely invisible until hovered. */
.home-admin {
  color: #ccc;
}
.home-admin:hover {
  color: #333;
}

.home-divider-bars .bar-light {
  position: relative;
}

.footer-bar-teal {
  flex: 1 1 auto;
  background-image: url("/assets/images/site/public/footer_bar_teal.png");
}

/* Footer bars are now shown on the home page too — the home divider
   bars between hero and callouts have been removed, so the footer
   bars are the only horizontal divider above the institutional logos
   (matching every other page). */
.institutional-logos {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 4rem;
  padding: 0;
  margin: 0;
  line-height: 0;
  flex-wrap: wrap;
}
.institutional-logos img {
  width: auto;
  /* Never let flex compress these — aspect ratio must stay locked to
     the source PNG. If they don't fit on one row, flex-wrap above puts
     them on multiple rows. */
  flex-shrink: 0;
  opacity: 0.9;
  transition: opacity 0.15s;
}
.institutional-logos img:hover {
  opacity: 1;
}
.institutional-logos .logo-stanford-university {
  height: 45px;
  width: auto;
}
.institutional-logos .logo-stanford-medicine {
  height: 45px;
  width: auto;
}
.institutional-logos {
  /* HHMI is rendered 20% smaller than the others across all viewports
     per user preference (it's a wider lockup, looked dominant at 45px). */
}
.institutional-logos .logo-hhmi {
  height: 36px;
  width: auto;
}

/* Stack institutional logos vertically on phone PORTRAIT only — in
   landscape the row layout fits and matches the desktop view. */
@media (max-width: 720px) and (orientation: portrait) {
  .institutional-logos {
    flex-direction: column;
    gap: 1.25rem;
  }
  .institutional-logos img {
    flex-shrink: 0;
  }
}
@media (max-width: 960px) {
  /* Mobile / tablet: pin the home banner to a fixed height with the right
     edge of logo_home.png anchored to the right of the viewport — matches
     the .page-hero approach used on interior pages. */
  .home-banner {
    /* Mobile: right-align so the gray block + the baked-in 'RNA fold &
       function from scratch' tab stay visible; the left side of the
       photo crops at the viewport edge.

       Image is 1015×696, so background-size: auto 200% gives a
       rendered-image width of 2 × H × (1015/696) = 2.917H. To make the
       visible viewport equal 3/4 of the rendered image width:
           W = 0.75 × 2.917 × H  →  W / H = 2.188.
       Using aspect-ratio: 2.19 / 1 gets exactly that — viewport shows
       3/4 of source at any phone width, with the left 1/4 cropped. */
    aspect-ratio: 2.19/1;
    height: auto;
    background-size: auto 200%;
    background-position: 100% 0;
  }
  /* Drop the desktop 5% breakout — at narrow viewports it caused horizontal
     overflow / scroll. */
  .home-stage,
  .home-divider-bars {
    width: 100%;
    margin-left: 0;
    margin-right: 0;
  }
}

/*# sourceMappingURL=style.css.map */