/*
* site.css
* Public site at /. Same instrument world as the tool (tokens from empp.css):
* the page is the record a study produces, set on the deep logo-blue field.
******************************************************************************/

.site {
  --site-max: 1200px;
  --site-gutter: clamp(1rem, 4vw, 2.5rem);
  --site-field-ink: #e6e9f4;
  --site-field-soft: #aab4d6;
  /* Small secondary text on the grey page ground: --empp-muted reaches only 4.38:1 there */
  --site-muted-ground: #5b6376;
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  margin: 0;
  background: var(--empp-bg);
  color: var(--empp-text);
  font-size: 1rem;
  line-height: 1.6;
}

.site *,
.site *::before,
.site *::after {
  box-sizing: border-box;
}

.site-wrap {
  width: 100%;
  max-width: calc(var(--site-max) + 2 * var(--site-gutter));
  margin: 0 auto;
  padding: 0 var(--site-gutter);
}

.site a {
  text-underline-offset: 0.2em;
}
.site a:focus-visible,
.site .site-btn:focus-visible {
  outline: 2px solid var(--empp-primary);
  outline-offset: 3px;
  border-radius: var(--empp-radius-sm);
}

.site-skip {
  position: absolute;
  left: 1rem;
  top: -3rem;
  z-index: 10;
  padding: 0.5rem 0.75rem;
  background: var(--empp-surface);
  color: var(--empp-ink);
  border-radius: var(--empp-radius-sm);
}
.site-skip:focus {
  top: 1rem;
}

/* Buttons */
.site-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.75rem;
  padding: 0.625rem 1.25rem;
  border: 1px solid transparent;
  border-radius: var(--empp-radius-sm);
  font-weight: 600;
  font-size: 0.9375rem;
  line-height: 1.2;
  text-decoration: none;
  white-space: nowrap;
  transition: background-color 0.2s var(--ease-out), border-color 0.2s var(--ease-out), color 0.2s var(--ease-out);
}
.site-btn-light {
  background: #fff;
  color: var(--empp-primary-deep);
}
.site-btn-light:hover {
  background: var(--empp-primary-soft);
  color: var(--empp-primary-deep);
}
.site-btn-ghost {
  border-color: rgba(255, 255, 255, 0.45);
  color: #fff;
}
.site-btn-ghost:hover {
  border-color: #fff;
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
}
.site-btn-primary {
  background: var(--empp-primary);
  color: #fff;
}
.site-btn-primary:hover {
  background: var(--empp-primary-hover);
  color: #fff;
}
.site-field .site-btn:focus-visible,
.site-close .site-btn:focus-visible,
.site-field a:focus-visible {
  outline-color: #fff;
}

/*
* Deep field: nav + headline over the fibre texture
******************************************************************************/

.site-field {
  position: relative;
  isolation: isolate;
  padding-bottom: clamp(9rem, 16vw, 12rem);
  background-color: var(--empp-primary-deep);
  color: var(--site-field-ink);
  overflow: hidden;
}
.site-field::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -2;
  background: url('../../../img/fibers.svg') 70% 40% / cover no-repeat;
  opacity: 0.5;
}
.site-field::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(90deg, rgba(26, 37, 71, 0.96) 0%, rgba(26, 37, 71, 0.82) 45%, rgba(26, 37, 71, 0.35) 100%),
    linear-gradient(180deg, rgba(26, 37, 71, 0) 55%, rgba(26, 37, 71, 0.9) 100%);
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 2rem;
  min-height: 5rem;
}
.site-logo img {
  display: block;
  width: 132px;
  height: auto;
}
.site-links {
  display: flex;
  gap: 1.75rem;
  margin: 0 auto 0 1rem;
  padding: 0;
  list-style: none;
}
.site-links a,
.site-signin {
  color: var(--site-field-ink);
  font-size: 0.9375rem;
  font-weight: 500;
  text-decoration: none;
}
.site-links a:hover,
.site-signin:hover {
  color: #fff;
  text-decoration: underline;
}
.site-nav-actions {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  margin-left: auto;
}

.site-hero {
  padding-top: clamp(2rem, 4vw, 3.5rem);
}
.site-hero h1 {
  max-width: 20ch;
  margin: 0 0 1.5rem;
  color: #fff;
  font-size: clamp(2.5rem, 5.6vw, 4.5rem);
  font-weight: 600;
  line-height: 1.04;
  letter-spacing: -0.035em;
  text-wrap: balance;
}
.site-lead {
  max-width: 52ch;
  margin: 0 0 2rem;
  color: var(--site-field-soft);
  font-size: clamp(1.0625rem, 1.4vw, 1.25rem);
  line-height: 1.55;
}
.site-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

/*
* The study record: a white sheet rising out of the field
******************************************************************************/

.rec-wrap {
  position: relative;
  margin-top: clamp(-9rem, -12vw, -6rem);
}
.rec {
  background: var(--empp-surface);
  border: 1px solid var(--empp-line);
  border-radius: var(--empp-radius);
  box-shadow: 0 1px 2px rgba(25, 32, 46, 0.06), 0 24px 48px -24px rgba(26, 37, 71, 0.35);
}

.rec-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.25rem 1.5rem;
  padding: 1.25rem 1.75rem;
  border-bottom: 1px solid var(--empp-line);
}
.rec-title {
  margin: 0;
  font-size: 1.25rem;
  letter-spacing: -0.01em;
}
.rec-flag {
  margin: 0;
  color: var(--empp-muted);
  font-size: 0.875rem;
}

.rec-body {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 5fr) minmax(0, 3fr);
}
.rec-body > * {
  padding: 1.75rem;
}
.rec-body > * + * {
  border-left: 1px solid var(--empp-line);
}

/* Micrograph on its stage */
.rec-image {
  margin: 0;
}
.rec-stage {
  position: relative;
  aspect-ratio: 4 / 3;
  border-radius: var(--empp-radius-sm);
  background: var(--empp-stage) url('../../../img/fibers.svg') center / cover no-repeat;
  overflow: hidden;
}
.rec-stage canvas {
  position: absolute;
  inset: 0 0 1.75rem 0;
  display: block;
  width: 100%;
  height: calc(100% - 1.75rem);
}
/* The microscope's data strip: stage black, scale bar in mono */
.rec-bar {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  height: 1.75rem;
  padding: 0 0.75rem;
  background: var(--empp-stage);
  color: #d5dbeb;
  font-family: var(--empp-mono);
  font-size: 0.6875rem;
}
.rec-bar-line {
  width: 16%;
  height: 3px;
  background: #fff;
}
.rec-scan {
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 30%;
  background: linear-gradient(180deg, rgba(52, 73, 140, 0) 0%, rgba(120, 146, 230, 0.22) 85%, rgba(170, 190, 255, 0.85) 100%);
  opacity: 0;
  pointer-events: none;
  transform: translateY(-100%);
}
.rec-image figcaption {
  margin-top: 0.75rem;
  color: var(--empp-muted);
  font-size: 0.8125rem;
  line-height: 1.45;
}

/* Blocks of the record */
.rec-block h3 {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  margin: 0 0 0.875rem;
  font-size: 0.9375rem;
  font-weight: 600;
  letter-spacing: 0;
}
.rec-block h3 small {
  color: var(--empp-muted);
  font-size: 0.8125rem;
  font-weight: 400;
}
.rec-no {
  display: inline-grid;
  place-items: center;
  flex: none;
  width: 1.5rem;
  height: 1.5rem;
  border: 1.5px solid var(--empp-primary);
  border-radius: 50%;
  color: var(--empp-primary);
  font-size: 0.75rem;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  line-height: 1;
}
.rec-data {
  display: flex;
  flex-direction: column;
}
.rec-data .rec-block + .rec-block {
  margin-top: 1.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--empp-line);
}
.rec-block {
  position: relative;
  border-radius: var(--empp-radius-sm);
}

.rec-values {
  margin: 0;
}
.rec-values > div {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.3rem 0;
}
.rec-values dt {
  color: var(--empp-text);
  font-size: 0.875rem;
  font-weight: 400;
}
.rec-values dd,
.rec-kpis dd,
.rec-readout {
  margin: 0;
  color: var(--empp-ink);
  font-family: var(--empp-mono);
  font-variant-numeric: tabular-nums;
}
.rec-values dd span,
.rec-kpis dd span,
.rec-readout span {
  margin-left: 0.3em;
  color: var(--empp-muted);
  font-size: 0.8em;
}
.rec-values-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  column-gap: 1.25rem;
}
.rec-values-grid > div {
  flex-direction: column;
  gap: 0.1rem;
}
.rec-values-grid dd {
  font-size: 1.0625rem;
}

.rec-readout {
  font-size: clamp(2.25rem, 4vw, 3rem);
  font-weight: 500;
  line-height: 1;
  letter-spacing: -0.03em;
}
.rec-readout span {
  font-size: 0.45em;
  letter-spacing: 0;
}
.rec-scale {
  height: 6px;
  margin-top: 1rem;
  border-radius: 3px;
  background: var(--empp-primary-soft);
  overflow: hidden;
}
.rec-scale span {
  display: block;
  height: 100%;
  width: 100%;
  background: var(--empp-primary);
  transform: scaleX(var(--fill));
  transform-origin: left;
}
.rec-ticks {
  display: flex;
  justify-content: space-between;
  margin-top: 0.375rem;
  color: var(--empp-muted);
  font-family: var(--empp-mono);
  font-size: 0.75rem;
}

/* Margin notes */
.rec-notes {
  background: var(--empp-bg);
  border-top-right-radius: var(--empp-radius);
}
.rec-notes ol {
  margin: 0;
  padding: 0;
  list-style: none;
}
.rec-notes li {
  display: grid;
  grid-template-columns: 1.5rem 1fr;
  gap: 0.625rem;
  color: var(--empp-text);
  font-size: 0.875rem;
  line-height: 1.5;
}
.rec-notes li + li {
  margin-top: 1.25rem;
}
.rec-notes li > span {
  display: inline-grid;
  place-items: center;
  width: 1.5rem;
  height: 1.5rem;
  border-radius: 50%;
  background: var(--empp-primary);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  line-height: 1;
}

/* Filtration row */
.rec-filtration {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 8fr);
  gap: 1.5rem 2.5rem;
  padding: 1.75rem;
  border-top: 1px solid var(--empp-line);
  border-radius: 0;
}
.rec-filt-head {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.25rem 2rem;
}
.rec-filt-head h3 {
  margin: 0;
}
.rec-filt-head p {
  max-width: 62ch;
  margin: 0;
  color: var(--empp-muted);
  font-size: 0.8125rem;
}
.rec-kpis {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-content: start;
  gap: 1.25rem 1.5rem;
  margin: 0;
}
.rec-kpis dt {
  color: var(--empp-text);
  font-size: 0.8125rem;
  font-weight: 400;
}
.rec-kpis dd {
  font-size: 1.5rem;
  font-weight: 500;
  line-height: 1.2;
  letter-spacing: -0.02em;
}
.rec-kpis > div:first-child {
  grid-column: 1 / -1;
}
.rec-kpis > div:first-child dd {
  font-size: 2.25rem;
}

.rec-curve {
  margin: 0;
}
.rec-curve svg {
  display: block;
  width: 100%;
  height: auto;
  overflow: visible;
}
.rec-curve .grid {
  stroke: var(--empp-line);
  stroke-width: 1;
}
.rec-curve .axis {
  fill: var(--empp-muted);
  font-family: var(--empp-mono);
  font-size: 11px;
}
.rec-curve .curve {
  fill: none;
  stroke: var(--empp-primary);
  stroke-width: 2.5;
  stroke-linejoin: round;
  stroke-linecap: round;
}
.rec-curve .mpps {
  stroke: var(--empp-muted);
  stroke-width: 1;
  stroke-dasharray: 3 4;
}
.rec-curve .mpps-dot {
  fill: #fff;
  stroke: var(--empp-primary-deep);
  stroke-width: 2;
}
.rec-curve .mpps-label {
  fill: var(--empp-ink);
  font-family: var(--empp-mono);
  font-size: 12px;
  font-weight: 500;
}
.rec-curve figcaption {
  margin-top: 0.5rem;
  color: var(--empp-muted);
  font-size: 0.8125rem;
}

.rec-foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem 2rem;
  padding: 1.25rem 1.75rem;
  border-top: 1px solid var(--empp-line);
  background: var(--empp-bg);
  border-radius: 0 0 var(--empp-radius) var(--empp-radius);
}
.rec-foot p {
  margin: 0;
  color: var(--empp-text);
}

/*
* Signature: the record fills in once, as a study run
******************************************************************************/

/* Start state, held from first paint by the head script (html.js-run) until
   each part comes on screen: nothing already seen is erased and redrawn */
/* Screen only: on paper the record always prints finished */
@media screen {
  .js-run .rec-porosity:not(.is-running) .rec-scale span {
    transform: scaleX(0);
  }
  .js-run .rec-filtration:not(.is-running) .curve {
    stroke-dasharray: 1;
    stroke-dashoffset: 1;
  }
  .js-run .rec-filtration:not(.is-running) .mpps-dot,
  .js-run .rec-filtration:not(.is-running) .mpps-label {
    opacity: 0;
  }
}

@media (prefers-reduced-motion: no-preference) {
  .rec.is-running .rec-scan {
    animation: rec-scan 1.3s var(--ease-out) 0.1s 1 both;
  }
  .rec-data .rec-block.is-running::before,
  .rec-filtration.is-running::before {
    content: '';
    position: absolute;
    inset: -0.5rem -0.75rem;
    z-index: -1;
    border-radius: var(--empp-radius-sm);
    background: var(--empp-primary-soft);
    opacity: 0;
    animation: rec-mark 1.1s var(--ease-out) var(--d, 0s) 1 both;
  }
  .rec-block.is-running { isolation: isolate; }
  /* Side by side, the three steps share one screen and run in sequence;
     stacked (.is-staged), each step runs as it scrolls into view */
  .rec-data [data-step='1'] { --d: 0.2s; }
  .rec-data [data-step='2'] { --d: 1.2s; }
  .rec-data [data-step='3'] { --d: 2s; }
  .rec.is-staged .rec-data [data-step] { --d: 0.1s; }
  .rec-filtration.is-running::before { inset: 0; border-radius: 0; --d: 0.1s; }
  .rec-porosity.is-running .rec-scale span {
    animation: rec-fill 1.2s var(--ease-out) calc(var(--d) + 0.1s) 1 both;
  }
  .rec-filtration.is-running .curve {
    stroke-dasharray: 1;
    animation: rec-draw 1.6s var(--ease-out) 0.3s 1 both;
  }
  .rec-filtration.is-running .mpps-dot,
  .rec-filtration.is-running .mpps-label {
    animation: rec-appear 0.5s var(--ease-out) 1.6s 1 both;
  }
}

@keyframes rec-scan {
  0% { opacity: 1; transform: translateY(-100%); }
  85% { opacity: 1; }
  100% { opacity: 0; transform: translateY(340%); }
}
@keyframes rec-mark {
  0% { opacity: 0; }
  25% { opacity: 1; }
  100% { opacity: 0; }
}
@keyframes rec-fill {
  from { transform: scaleX(0); }
  to { transform: scaleX(var(--fill)); }
}
@keyframes rec-draw {
  from { stroke-dashoffset: 1; }
  to { stroke-dashoffset: 0; }
}
@keyframes rec-appear {
  from { opacity: 0; }
  to { opacity: 1; }
}

/*
* Sections below the record
******************************************************************************/

.site-section {
  padding-top: clamp(4.5rem, 9vw, 7rem);
}
.site-section-head {
  max-width: 44rem;
  margin-bottom: 2.25rem;
}
.site-section h2,
.site-close h2 {
  margin: 0 0 0.875rem;
  font-size: clamp(1.75rem, 3vw, 2.375rem);
  line-height: 1.15;
  letter-spacing: -0.025em;
  text-wrap: balance;
}
.site-section-head p {
  margin: 0;
  font-size: 1.0625rem;
  line-height: 1.6;
}
.site-section-head p + p {
  margin-top: 0.75rem;
}

/* Steps table */
.site-table {
  border-top: 2px solid var(--empp-ink);
}
.site-tr {
  display: grid;
  grid-template-columns: minmax(0, 3fr) minmax(0, 5fr) minmax(0, 5fr);
  gap: 1.5rem;
  padding: 1.125rem 0;
  border-bottom: 1px solid var(--empp-line-strong);
}
.site-th {
  padding: 0.75rem 0;
  color: var(--site-muted-ground);
  font-size: 0.8125rem;
  font-weight: 500;
}
.site-tr [role='cell']:first-child {
  display: flex;
  align-items: baseline;
  gap: 0.875rem;
  color: var(--empp-ink);
  font-weight: 600;
}
.site-tr [role='cell']:first-child b {
  color: var(--empp-primary);
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}
.site-tr [role='cell'] {
  font-size: 0.9375rem;
  line-height: 1.55;
}

/* Standards ruler */
.site-split {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
  gap: 2rem 4rem;
  align-items: center;
}
.site-split .site-section-head {
  margin-bottom: 0;
}
.site-ruler {
  margin: 0;
  padding: 4.25rem 0 0;
}
.ruler-track {
  position: relative;
  height: 10px;
  border-radius: 5px;
  background: linear-gradient(90deg, var(--empp-primary-soft), rgba(52, 73, 140, 0.35));
}
.ruler-mark,
.ruler-sample {
  position: absolute;
  left: var(--at);
  display: flex;
  flex-direction: column;
  align-items: center;
  transform: translateX(-50%);
  font-family: var(--empp-mono);
  font-size: 0.75rem;
  line-height: 1.3;
  white-space: nowrap;
}
.ruler-mark {
  bottom: calc(100% + 0.5rem + var(--row, 0) * 2.25rem);
  color: var(--site-muted-ground);
}
.ruler-mark::after {
  content: '';
  width: 1px;
  height: calc(0.5rem + var(--row, 0) * 2.25rem);
  margin-bottom: calc(-0.5rem - var(--row, 0) * 2.25rem);
  background: var(--empp-line-strong);
}
/* A mark at the scale's end hangs inward instead of past the edge */
.ruler-mark.is-end {
  align-items: flex-end;
  transform: translateX(-100%);
}
.ruler-mark.is-end::after {
  align-self: flex-end;
}
.ruler-mark b,
.ruler-sample b {
  color: var(--empp-ink);
  font-family: var(--empp-font);
  font-weight: 600;
}
.ruler-sample {
  top: calc(100% + 0.5rem);
  color: var(--empp-primary);
}
.ruler-sample::before {
  content: '';
  width: 14px;
  height: 14px;
  margin: -1.125rem 0 0.375rem;
  border: 2px solid var(--empp-primary-deep);
  border-radius: 50%;
  background: #fff;
}
.ruler-sample b {
  color: var(--empp-primary);
  font-weight: 600;
}
.ruler-ends {
  display: flex;
  justify-content: space-between;
  margin-top: 3.25rem;
  color: var(--site-muted-ground);
  font-family: var(--empp-mono);
  font-size: 0.75rem;
}
.site-ruler figcaption {
  margin-top: 1rem;
  color: var(--empp-text);
  font-size: 0.9375rem;
}

/* Research credits */
.site-credits {
  max-width: 44rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--empp-line-strong);
}
.site-credits dl {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr));
  gap: 1rem 2rem;
  margin: 0 0 1.5rem;
}
.site-credits dt {
  color: var(--site-muted-ground);
  font-size: 0.8125rem;
  font-weight: 400;
}
.site-credits dd {
  margin: 0;
  color: var(--empp-ink);
  font-weight: 500;
}
.site-credits h3 {
  margin: 0 0 0.75rem;
  font-size: 1rem;
}
.site-pubs {
  margin: 0;
  padding-left: 1.25rem;
}
.site-pubs li + li {
  margin-top: 0.5rem;
}
.site-pubs cite {
  display: block;
  color: var(--empp-ink);
  font-style: normal;
  font-weight: 500;
}

/* Close + footer on the field again */
.site-close {
  margin-top: clamp(4.5rem, 9vw, 7rem);
  padding: clamp(4rem, 8vw, 6rem) 0;
  background: var(--empp-primary-deep) url('../../../img/fibers.svg') 30% 60% / cover no-repeat;
  color: var(--site-field-ink);
  position: relative;
  isolation: isolate;
}
.site-close::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(90deg, rgba(26, 37, 71, 0.95) 0%, rgba(26, 37, 71, 0.8) 55%, rgba(26, 37, 71, 0.55) 100%);
}
.site-close h2 {
  color: #fff;
}
.site-close p {
  max-width: 44ch;
  margin: 0 0 2rem;
  color: var(--site-field-soft);
  font-size: 1.125rem;
}
.site-footer {
  padding: 1.5rem 0 2rem;
  background: var(--empp-primary-deep);
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  color: var(--site-field-soft);
  font-size: 0.875rem;
}
.site-footer .site-wrap {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.site-footer img {
  width: 96px;
  height: auto;
}
.site-footer p {
  margin: 0;
}
.site-footer a {
  color: #fff;
}

/*
* Responsive
******************************************************************************/

@media (max-width: 1080px) {
  .rec-body {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  }
  .rec-notes {
    grid-column: 1 / -1;
    border-left: 0 !important;
    border-top: 1px solid var(--empp-line);
    border-radius: 0;
  }
  .rec-notes ol {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem 2rem;
  }
  .rec-notes li + li {
    margin-top: 0;
  }
}

@media (max-width: 860px) {
  .site-links {
    display: none;
  }
  .rec-filtration,
  .site-split {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 720px) {
  .rec-body {
    grid-template-columns: minmax(0, 1fr);
  }
  .rec-body > * + * {
    border-left: 0;
    border-top: 1px solid var(--empp-line);
  }
  .rec-body > *,
  .rec-filtration {
    padding: 1.25rem;
  }
  .rec-head,
  .rec-foot {
    padding: 1rem 1.25rem;
  }
  .rec-notes ol {
    grid-template-columns: minmax(0, 1fr);
  }
  .rec-foot .site-btn {
    width: 100%;
  }
  /* The plot scales to about half its drawn width here; keep its text legible */
  .rec-curve .axis {
    font-size: 23px;
  }
  .rec-curve .mpps-label {
    font-size: 25px;
  }
  .site-tr {
    grid-template-columns: minmax(0, 1fr);
    gap: 0.375rem;
  }
  .site-th {
    display: none;
  }
  .site-tr [role='cell']:nth-child(2)::before,
  .site-tr [role='cell']:nth-child(3)::before {
    display: block;
    color: var(--site-muted-ground);
    font-size: 0.8125rem;
  }
  .site-tr [role='cell']:nth-child(2)::before { content: 'You provide'; }
  .site-tr [role='cell']:nth-child(3)::before { content: 'EMPP returns'; }
}

@media (max-width: 520px) {
  .site-signin {
    display: none;
  }
  .site-nav {
    gap: 1rem;
  }
  .site-nav .site-btn {
    min-height: 2.5rem;
    padding: 0.5rem 0.875rem;
    font-size: 0.875rem;
  }
  .site-logo img {
    width: 108px;
  }
  .site-hero-actions .site-btn {
    flex: 1 1 auto;
  }
}

.nowrap {
  white-space: nowrap;
}

/*
* Home: research summary logos and link
******************************************************************************/

.site-logos {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1.25rem 2.5rem;
  margin: 0 0 1.75rem;
  padding: 1.25rem 0;
  list-style: none;
  border-top: 1px solid var(--empp-line-strong);
  border-bottom: 1px solid var(--empp-line-strong);
}
.site-logos img {
  display: block;
  height: 2.75rem;
  width: auto;
  max-width: 10rem;
  object-fit: contain;
}
.site-more {
  font-weight: 600;
  text-decoration: none;
}
.site-more:hover {
  text-decoration: underline;
}

/*
* The research page (/research)
******************************************************************************/

/* The field is shorter here: no record rising out of it */
.site-field:has(.rs-hero) {
  padding-bottom: clamp(3.5rem, 7vw, 5.5rem);
}
.site-links a[aria-current='page'] {
  color: #fff;
  text-decoration: underline;
  text-decoration-thickness: 2px;
}
.rs-motivation p {
  margin: 0 0 0.875rem;
}
.rs-motivation p:last-child {
  margin-bottom: 0;
}
.rs-hero-logos {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.5rem;
  margin: 2.25rem 0 0;
  padding: 0;
  list-style: none;
}
.rs-hero-logos li {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  color: var(--site-field-ink);
  font-weight: 500;
}
/* Logos are drawn for white grounds: give each a small white plate on the field */
.rs-logo-chip {
  display: flex;
  align-items: center;
  height: 3.5rem;
  padding: 0.5rem 0.75rem;
  border-radius: var(--empp-radius-sm);
  background: #fff;
}
/* Wide or square, a logo keeps its proportions at one height */
.rs-logo-chip img {
  display: block;
  height: 100%;
  width: auto;
  max-width: 9rem;
  object-fit: contain;
}

/* Team */
.rs-team {
  display: grid;
  gap: 3rem;
}
.rs-team-group h3 {
  margin: 0 0 0.25rem;
  color: var(--site-muted-ground);
  font-size: 0.9375rem;
  font-weight: 600;
}
.rs-people {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 30rem), 1fr));
  column-gap: 3rem;
  margin: 0;
  padding: 0;
  list-style: none;
  border-top: 2px solid var(--empp-ink);
}
.rs-person {
  display: grid;
  grid-template-columns: 5.5rem minmax(0, 1fr);
  gap: 1.25rem;
  padding: 1.5rem 0;
  border-bottom: 1px solid var(--empp-line-strong);
}
.rs-photo {
  display: grid;
  place-items: center;
  width: 5.5rem;
  height: 5.5rem;
  border-radius: 50%;
  background: var(--empp-primary-deep);
  color: #fff;
  font-size: 1.5rem;
  font-weight: 600;
  overflow: hidden;
}
.rs-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.rs-person-body h4 {
  margin: 0;
  font-size: 1.25rem;
  letter-spacing: -0.01em;
}
.rs-person-body p {
  margin: 0.25rem 0 0;
}
.rs-person-title {
  color: var(--site-muted-ground);
}
.rs-entity {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 0.625rem !important;
  font-size: 0.9375rem;
  font-weight: 500;
}
.rs-entity img {
  height: 1.75rem;
  width: auto;
  max-width: 5rem;
  object-fit: contain;
}
.rs-entity a,
.rs-contact a {
  color: var(--empp-ink);
}
.rs-contact {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 1.25rem;
  font-size: 0.9375rem;
}
.rs-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.375rem;
  margin: 0.875rem 0 0;
  padding: 0;
  list-style: none;
}
.rs-links a {
  display: inline-flex;
  align-items: center;
  min-height: 2rem;
  padding: 0.25rem 0.625rem;
  border: 1px solid var(--empp-line-strong);
  border-radius: var(--empp-radius-sm);
  background: var(--empp-surface);
  color: var(--empp-text);
  font-size: 0.8125rem;
  font-weight: 500;
  text-decoration: none;
}
.rs-links a:hover {
  border-color: var(--empp-primary);
  color: var(--empp-primary);
}

/* Institutions and funding: logo, type, name, on hairline rows */
.rs-orgs {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 22rem), 1fr));
  gap: 1rem;
  margin: 0;
  padding: 0;
  list-style: none;
}
.rs-orgs li {
  display: grid;
  grid-template-columns: 5rem minmax(0, 1fr);
  grid-template-rows: auto 1fr;
  column-gap: 1.25rem;
  align-items: start;
  padding: 1.25rem;
  background: var(--empp-surface);
  border: 1px solid var(--empp-line);
  border-radius: var(--empp-radius);
}
.rs-org-logo {
  grid-row: 1 / span 2;
  display: grid;
  place-items: center;
  width: 5rem;
  height: 5rem;
}
.rs-org-logo img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}
.rs-org-type {
  color: var(--site-muted-ground);
  font-size: 0.8125rem;
}
.rs-org-name {
  color: var(--empp-ink);
  font-weight: 600;
  line-height: 1.35;
}
.rs-org-name a {
  color: var(--empp-ink);
}
.rs-org-name small {
  display: block;
  margin-top: 0.25rem;
  color: var(--site-muted-ground);
  font-size: 0.8125rem;
  font-weight: 400;
}
.rs-funders .rs-org-name {
  grid-row: 1 / span 2;
  align-self: center;
}

/* Publications and projects: year in the margin, the reference beside it */
.rs-pubs,
.rs-projects {
  margin: 0;
  padding: 0;
  list-style: none;
  border-top: 2px solid var(--empp-ink);
}
.rs-pubs li,
.rs-projects li {
  display: grid;
  grid-template-columns: 7rem minmax(0, 1fr);
  gap: 1.5rem;
  padding: 1.25rem 0;
  border-bottom: 1px solid var(--empp-line-strong);
}
.rs-year {
  color: var(--empp-primary);
  font-family: var(--empp-mono);
  font-variant-numeric: tabular-nums;
  font-size: 0.9375rem;
}
.rs-pubs cite {
  display: block;
  max-width: 70ch;
  color: var(--empp-ink);
  font-size: 1.0625rem;
  font-style: normal;
  font-weight: 600;
  line-height: 1.4;
}
.rs-pubs cite a,
.rs-projects h3 a {
  color: var(--empp-ink);
}
.rs-pubs cite a:hover,
.rs-projects h3 a:hover {
  color: var(--empp-primary);
}
.rs-authors,
.rs-venue {
  max-width: 70ch;
  margin: 0.375rem 0 0;
  font-size: 0.9375rem;
}
.rs-venue {
  color: var(--site-muted-ground);
}
.rs-doi {
  margin-left: 0.5rem;
  font-family: var(--empp-mono);
  font-size: 0.8125rem;
}
.rs-projects h3 {
  margin: 0;
  font-size: 1.0625rem;
  line-height: 1.4;
}
.rs-text p {
  max-width: 70ch;
  margin: 0.5rem 0 0;
}

@media (max-width: 720px) {
  .rs-person {
    grid-template-columns: 4rem minmax(0, 1fr);
    gap: 1rem;
  }
  .rs-photo {
    width: 4rem;
    height: 4rem;
    font-size: 1.125rem;
  }
  .rs-pubs li,
  .rs-projects li {
    grid-template-columns: minmax(0, 1fr);
    gap: 0.25rem;
  }
}
