/* Vogl Lab — Vienna Method
 *
 * After the Isotype charts of Neurath and Arntz (Vienna, 1925-34): white ground,
 * black ink, three flat category inks that own whole fields, a geometric sans for
 * structure, a plain sans for reading, and mono only for values.
 * Light only. See DESIGN.md for the system.
 */

/* ------------------------------------------------------------------ fonts
 * Self-hosted (static/fonts/), SIL Open Font License; latin + latin-ext subsets. */
@font-face {
  font-family: "Jost";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("../fonts/jost-normal-latin-ext.7f44f6fd229b.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Jost";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("../fonts/jost-normal-latin.928f4210aa48.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Public Sans";
  font-style: italic;
  font-weight: 400 700;
  font-display: swap;
  src: url("../fonts/public-sans-italic-latin-ext.70c4758ac72a.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Public Sans";
  font-style: italic;
  font-weight: 400 700;
  font-display: swap;
  src: url("../fonts/public-sans-italic-latin.5ac660b00f40.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Public Sans";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("../fonts/public-sans-normal-latin-ext.d0a5d26ee7e7.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Public Sans";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("../fonts/public-sans-normal-latin.e4c9b081863a.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Roboto Mono";
  font-style: normal;
  font-weight: 400 500;
  font-display: swap;
  src: url("../fonts/roboto-mono-normal-latin-ext.88102464885d.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Roboto Mono";
  font-style: normal;
  font-weight: 400 500;
  font-display: swap;
  src: url("../fonts/roboto-mono-normal-latin.877722deef76.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* ------------------------------------------------------------------ tokens */
:root {
  color-scheme: light;

  /* ground, ink and the five-step grey ramp (the only neutrals) */
  --paper: #ffffff;
  --ink:   #141414;
  --g-1:   #efefef;
  --g-2:   #d8d8d8;
  --g-3:   #a2a2a2;
  --g-4:   #5d5d5d;
  --g-5:   #2e2e2e;

  /* category inks: each owns a whole field, never an accent */
  --blue:  #1f4f9a;
  --red:   #c0302a;
  --ochre: #d39b22;

  --link:  var(--blue);
  --focus: var(--blue);
  --focus-on-ink: var(--ochre);

  /* type */
  --font-display: "Jost", "Futura", "Century Gothic", sans-serif;
  --font-body:    "Public Sans", ui-sans-serif, system-ui, sans-serif;
  --font-mono:    "Roboto Mono", ui-monospace, "SFMono-Regular", monospace;

  --fs-xs:   0.8125rem;
  --fs-sm:   0.9375rem;
  --fs-base: 1.0625rem;
  --fs-md:   1.25rem;
  --fs-lg:   1.625rem;
  --fs-xl:   2.25rem;
  --fs-2xl:  clamp(2.5rem, 2rem + 2.6vw, 4.25rem);
  --fs-display: clamp(3.25rem, 1.6rem + 6.4vw, 6rem);

  /* one square module: every gap, swatch and icon box is a multiple of it */
  --m: 0.5rem;
  --s-1: var(--m);
  --s-2: calc(var(--m) * 2);
  --s-3: calc(var(--m) * 3);
  --s-4: calc(var(--m) * 4);
  --s-6: calc(var(--m) * 6);
  --s-8: calc(var(--m) * 8);
  --s-12: calc(var(--m) * 12);

  --rule: 2px;
  --rule-heavy: 4px;
  --measure: 66ch;

  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --dur: 180ms;
}

/* ------------------------------------------------------------------ base */
*, *::before, *::after { box-sizing: border-box; }

html {
  overflow-x: clip;
  -webkit-text-size-adjust: 100%;
  scrollbar-color: var(--g-3) var(--g-1);
}

body {
  margin: 0;
  overflow-x: clip;
  font-family: var(--font-body);
  font-size: var(--fs-base);
  line-height: 1.6;
  color: var(--ink);
  background: var(--paper);
  caret-color: var(--blue);
  -webkit-font-smoothing: antialiased;
}

::selection { background: var(--ochre); color: var(--ink); }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: -0.01em;
  margin: 0;
  text-wrap: balance;
}

p { margin: 0; }
ul, ol { margin: 0; padding: 0; }
img { max-width: 100%; display: block; }

a {
  color: var(--link);
  text-decoration-line: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;
}
a:hover { text-decoration-thickness: 2px; }

:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 2px;
}

code {
  font-family: var(--font-mono);
  font-size: 0.9em;
  background: var(--g-1);
  padding: 0.1em 0.3em;
}

/* values: years, grant numbers, counts, dates */
.num {
  font-family: var(--font-mono);
  font-size: 0.92em;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0;
}

.muted { color: var(--g-4); }

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 10;
  background: var(--ochre);
  color: var(--ink);
  padding: var(--s-1) var(--s-2);
  font-family: var(--font-display);
  font-weight: 600;
}
.skip-link:focus { left: var(--s-2); top: var(--s-2); }

.icon {
  width: var(--s-2);
  height: var(--s-2);
  flex: none;
}

/* ------------------------------------------------------------------ layout */
.wrap {
  width: min(100% - 2 * var(--s-3), 76rem);
  margin-inline: auto;
}
.wrap--narrow { width: min(100% - 2 * var(--s-3), 50rem); }

.section { padding-block: var(--s-8); }
.section--tint { background: var(--g-1); }

.section--ink {
  background: var(--ink);
  color: var(--g-1);
}
.section--ink :focus-visible { outline-color: var(--focus-on-ink); }

.section__title {
  font-size: var(--fs-xl);
  margin-bottom: var(--s-4);
}

.lead {
  font-size: var(--fs-md);
  line-height: 1.5;
  color: var(--g-5);
  max-width: 60ch;
}

/* labels: the chart legend voice */
.member__role,
.footer__head,
.contact-list dt,
.facts-band dt,
.funding__funder,
.table th,
.status,
.chip {
  font-family: var(--font-display);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

/* ------------------------------------------------------------------ buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: var(--s-1);
  min-height: var(--s-6);
  padding: 0 var(--s-3);
  border: var(--rule) solid var(--ink);
  background: transparent;
  color: var(--ink);
  font-family: var(--font-display);
  font-size: var(--fs-sm);
  font-weight: 600;
  letter-spacing: 0.04em;
  text-decoration: none;
  cursor: pointer;
  transition: background-color var(--dur) var(--ease-out), color var(--dur) var(--ease-out), border-color var(--dur) var(--ease-out);
}
.btn:hover { background: var(--ink); color: var(--paper); }
.btn--solid { background: var(--ink); color: var(--paper); }
.btn--solid:hover { background: var(--blue); border-color: var(--blue); }
button.btn { font: inherit; font-family: var(--font-display); font-size: var(--fs-sm); font-weight: 600; }

/* ------------------------------------------------------------------ masthead */
.masthead {
  background: var(--ink);
  color: var(--paper);
}
.masthead :focus-visible { outline-color: var(--focus-on-ink); }

.masthead__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s-2) var(--s-4);
  min-height: var(--s-8);
  flex-wrap: wrap;
  padding-block: var(--s-1);
}

.wordmark {
  font-family: var(--font-display);
  font-size: 1.375rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  color: var(--paper);
  text-decoration: none;
}
.wordmark:hover { text-decoration: none; color: var(--paper); }

.nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--s-1) var(--s-3);
  font-family: var(--font-display);
  font-size: var(--fs-sm);
  font-weight: 500;
}
.nav a {
  color: var(--g-2);
  text-decoration: none;
  padding-block: var(--s-1);
  border-bottom: var(--rule) solid transparent;
}
.nav a:hover { color: var(--paper); border-bottom-color: var(--g-4); }
.nav a[aria-current="page"] { color: var(--paper); border-bottom-color: var(--paper); }

.nav__lab {
  display: flex;
  align-items: center;
  gap: var(--s-1);
  margin-left: var(--s-1);
}
.nav__logout { display: contents; }
.nav .nav__btn,
.nav__btn {
  display: inline-flex;
  align-items: center;
  min-height: var(--s-4);
  padding: 0 var(--s-2);
  border: var(--rule) solid var(--g-4);
  background: transparent;
  color: var(--paper);
  font: inherit;
  cursor: pointer;
  text-decoration: none;
  transition: background-color var(--dur) var(--ease-out), border-color var(--dur) var(--ease-out), color var(--dur) var(--ease-out);
}
.nav .nav__btn:hover,
.nav__btn:hover { background: var(--paper); border-color: var(--paper); color: var(--ink); }
.nav .nav__btn[aria-current="page"] { border-color: var(--paper); }

/* ------------------------------------------------------------------ page head */
.page-head { padding-top: var(--s-8); }
.page-head .wrap {
  padding-bottom: var(--s-6);
  border-bottom: var(--rule-heavy) solid var(--ink);
}
.page-head h1 {
  font-size: var(--fs-2xl);
  max-width: 18ch;
  letter-spacing: -0.02em;
}
.page-head .lead { margin-top: var(--s-2); }
.page-head__action { margin-top: var(--s-3); }

/* ------------------------------------------------------------------ home: hero */
.hero { padding-block: var(--s-8) var(--s-6); }
.hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.7fr) minmax(16rem, 1fr);
  gap: var(--s-6);
  align-items: end;
  padding-bottom: var(--s-6);
  border-bottom: var(--rule-heavy) solid var(--ink);
}
.hero__name {
  font-size: var(--fs-display);
  font-weight: 700;
  line-height: 0.95;
  letter-spacing: -0.03em;
  max-width: 9ch;
}
.hero__statement {
  margin-top: var(--s-3);
  font-family: var(--font-display);
  font-size: var(--fs-lg);
  font-weight: 500;
  line-height: 1.25;
  max-width: 30ch;
  text-wrap: balance;
}
.hero__lead {
  margin-top: var(--s-2);
  color: var(--g-5);
  max-width: 58ch;
}
.hero__actions { margin-top: var(--s-4); }

/* the colour key: legend for the research fields below */
.key ul { list-style: none; border-top: var(--rule) solid var(--ink); }
.key li { border-bottom: 1px solid var(--g-2); }
.key a {
  display: flex;
  align-items: center;
  gap: var(--s-2);
  padding: var(--s-2) 0;
  color: var(--ink);
  font-family: var(--font-display);
  font-weight: 500;
  font-size: var(--fs-base);
  line-height: 1.3;
  text-decoration: none;
}
.key a:hover { text-decoration: underline; text-decoration-thickness: 2px; }

.swatch {
  width: var(--s-3);
  height: var(--s-3);
  flex: none;
  background: var(--c, var(--g-3));
}
.swatch--blue  { --c: var(--blue); }
.swatch--red   { --c: var(--red); }
.swatch--ochre { --c: var(--ochre); }
.swatch--packages       { --c: var(--blue); }
.swatch--pipelines      { --c: var(--red); }
.swatch--libraries      { --c: var(--ink); }
.swatch--infrastructure { --c: var(--ochre); }
.swatch--computing      { --c: var(--g-4); }
.swatch--internal       { --c: var(--paper); box-shadow: inset 0 0 0 var(--rule) var(--ink); }

/* ------------------------------------------------------------------ home: research fields */
.area {
  --c: var(--g-4);
  --on-c: var(--paper);
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 2fr);
  border: var(--rule) solid var(--c);
  scroll-margin-top: var(--s-3);
}
.area + .area { margin-top: var(--s-3); }
.area--blue  { --c: var(--blue); }
.area--red   { --c: var(--red); }
.area--ochre { --c: var(--ochre); --on-c: var(--ink); }

.area__field {
  background: var(--c);
  color: var(--on-c);
  padding: var(--s-3);
  font-size: var(--fs-lg);
  line-height: 1.15;
}
.area__text {
  padding: var(--s-3) var(--s-4);
  max-width: var(--measure);
}

/* the one authored motion: each field fills in as it enters, like ink laid on a chart */
@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    .area__field {
      animation: field-fill linear both;
      animation-timeline: view();
      animation-range: entry 10% cover 30%;
    }
  }
}
@keyframes field-fill {
  from { clip-path: inset(0 100% 0 0); }
  to   { clip-path: inset(0 0 0 0); }
}

/* ------------------------------------------------------------------ home: split bands */
.split {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
  gap: var(--s-6);
  align-items: start;
}
.split__text p { max-width: 58ch; }
.split__text .section__title { margin-bottom: var(--s-2); }
.split__action { margin-top: var(--s-3); }

.facts-band { margin: 0; border-top: var(--rule) solid var(--ink); }
.facts-band > div {
  display: grid;
  grid-template-columns: 6rem 1fr;
  align-items: baseline;
  gap: var(--s-2);
  padding: var(--s-2) 0;
  border-bottom: 1px solid var(--g-3);
}
.facts-band dt { font-size: var(--fs-xs); color: var(--g-4); }
.facts-band dd { margin: 0; }
.facts-band a { color: var(--ink); text-decoration: none; }
.facts-band a:hover { text-decoration: underline; text-decoration-thickness: 2px; }
.facts-band__value {
  font-family: var(--font-mono);
  font-size: var(--fs-lg);
  font-weight: 500;
  font-variant-numeric: tabular-nums;
  line-height: 1;
  margin-right: var(--s-1);
}

.note {
  border-top: var(--rule) solid var(--ink);
  padding-top: var(--s-2);
  color: var(--g-4);
}
.note__title { font-size: var(--fs-md); color: var(--ink); margin-bottom: var(--s-1); }

/* ------------------------------------------------------------------ tools & docs */
/* the section index: the colour key, laid out as a grid of rows */
.key--index { margin-bottom: var(--s-6); }
.key--index ul {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  column-gap: var(--s-4);
}
.key__label { flex: 1; }
.key__count {
  display: inline-flex;
  align-items: center;
  gap: var(--s-1);
  font-family: var(--font-body);
  font-size: var(--fs-sm);
  font-weight: 500;
  color: var(--g-4);
}
.key__count.num { font-family: var(--font-mono); }

.tool-group {
  --c: var(--g-4);
  --on-c: var(--paper);
  scroll-margin-top: var(--s-3);
}
.tool-group + .tool-group { margin-top: var(--s-6); }
.tool-group--packages       { --c: var(--blue); }
.tool-group--pipelines      { --c: var(--red); }
.tool-group--libraries      { --c: var(--ink); }
.tool-group--infrastructure { --c: var(--ochre); --on-c: var(--ink); }
.tool-group--computing      { --c: var(--g-4); }
.tool-group--submissions    { --c: var(--blue); }
.tool-group--lab            { --c: var(--ochre); --on-c: var(--ink); }
/* lab only: an empty field, framed in ink */
.tool-group--internal       { --c: var(--ink); }
.tool-group--internal .tool-group__head {
  background: var(--paper);
  color: var(--ink);
  border: var(--rule) solid var(--ink);
}

.tool-group__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: var(--s-2);
  background: var(--c);
  color: var(--on-c);
  padding: var(--s-2) var(--s-3);
}
.tool-group__head h2 { font-size: var(--fs-lg); }
.tool-group__count {
  display: inline-flex;
  align-items: center;
  gap: var(--s-1);
  font-weight: 500;
  font-size: var(--fs-sm);
  white-space: nowrap;
}

/* a group whose content is not a list: the lab area's submissions */
.tool-group__body {
  padding: var(--s-3);
  border: var(--rule) solid var(--c);
  border-top: 0;
}
.tool-group__body > p { max-width: var(--measure); }
.notice + .tool-group { margin-top: var(--s-4); }

.tool-locked {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--s-2) var(--s-4);
  padding: var(--s-3);
  border: var(--rule) solid var(--ink);
  border-top: 0;
}

.tool-list {
  list-style: none;
  border: var(--rule) solid var(--c);
  border-top: 0;
}

.tool {
  display: grid;
  grid-template-columns: 13rem minmax(0, 1fr);
  grid-template-areas:
    "name desc"
    "name links";
  gap: var(--s-1) var(--s-4);
  padding: var(--s-3);
}
.tool:has(.tool__logo) {
  grid-template-columns: 13rem minmax(0, max-content) auto;
  grid-template-rows: auto 1fr;
  justify-content: start;
  grid-template-areas:
    "name desc logo"
    "name links logo";
}
.tool__logo {
  grid-area: logo;
  align-self: start;
  width: auto;
  height: calc(var(--m) * 16);
  /* wide logos are capped by width and keep their proportions */
  max-width: 18rem;
  object-fit: contain;
  object-position: left top;
}
.tool + .tool { border-top: 1px solid var(--g-2); }

.tool__name {
  grid-area: name;
  font-family: var(--font-mono);
  font-size: var(--fs-md);
  font-weight: 500;
  letter-spacing: 0;
  overflow-wrap: anywhere;
}
.tool__desc { grid-area: desc; max-width: var(--measure); }
.tool__note {
  grid-column: 2;
  max-width: var(--measure);
  font-size: var(--fs-sm);
  color: var(--g-4);
}
.tool__links {
  grid-area: links;
  align-self: start;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--s-1);
  margin-top: var(--s-1);
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: var(--s-1);
  min-height: var(--s-4);
  padding: 0 var(--s-2) 0 calc(var(--s-1) + 2px);
  border: var(--rule) solid var(--ink);
  color: var(--ink);
  font-size: var(--fs-xs);
  text-decoration: none;
  transition: background-color var(--dur) var(--ease-out), color var(--dur) var(--ease-out);
}
a.chip:hover { background: var(--ink); color: var(--paper); }
.chip--muted {
  border-color: transparent;
  color: var(--g-4);
  padding-left: 0;
}

/* ------------------------------------------------------------------ team */
.team-grid {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(15rem, 1fr));
  gap: var(--s-6) var(--s-3);
}
.member__photo {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  background: var(--g-1);
}
.member__name {
  font-size: var(--fs-md);
  margin-top: var(--s-2);
}
.member__role {
  font-size: var(--fs-xs);
  color: var(--g-4);
  margin-top: var(--s-1);
}
.member__bio { font-size: var(--fs-sm); margin-top: var(--s-1); }
.member__contact {
  list-style: none;
  display: grid;
  gap: var(--s-1);
  margin-top: var(--s-1);
  font-size: var(--fs-xs);
  overflow-wrap: anywhere;
}
.member__contact a {
  display: inline-flex;
  align-items: center;
  gap: var(--s-1);
}

/* ------------------------------------------------------------------ publications */
.pub-grid {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(14rem, 1fr));
  gap: var(--s-6) var(--s-3);
}
.pub__card {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  align-content: start;
  gap: var(--s-1);
  color: var(--ink);
  text-decoration: none;
}
.pub__page {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  object-position: top;
  background: #fff;
  border: var(--rule) solid var(--g-2);
  margin-bottom: var(--s-1);
  transition: border-color var(--dur) var(--ease-out);
}
.pub__page--text {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: var(--s-2);
  padding: var(--s-3);
  background: var(--g-1);
  color: var(--g-4);
  font-size: var(--fs-sm);
}
.pub__page--text span { color: var(--link); font-family: var(--font-display); font-weight: 600; }
.pub__title {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: var(--fs-base);
  line-height: 1.3;
  border-top: var(--rule) solid var(--ink);
  padding-top: var(--s-1);
}
.pub__meta {
  font-size: var(--fs-sm);
  color: var(--g-4);
}
.pub__venue { font-style: italic; }
.pub__card:hover .pub__page { border-color: var(--ink); }
.pub__card:hover .pub__title { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 0.2em; }

/* funding: the dense band */
.funding-list {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr));
  border-top: var(--rule) solid var(--g-1);
}
.funding {
  display: grid;
  align-content: start;
  gap: var(--s-1);
  padding: var(--s-3) var(--s-3) var(--s-3) 0;
  border-bottom: 1px solid var(--g-5);
}
.funding__project { font-family: var(--font-display); font-size: var(--fs-md); font-weight: 600; color: #fff; }
.funding__funder { font-size: var(--fs-xs); color: var(--g-3); margin-top: var(--s-1); }
.funding__detail { font-size: var(--fs-sm); color: var(--g-2); }

/* ------------------------------------------------------------------ about / contact */
.prose > * + * { margin-top: var(--s-3); }
.prose p { max-width: var(--measure); }

.contact-list {
  margin: 0;
  border-top: var(--rule) solid var(--ink);
  max-width: 44rem;
}
.contact-list > div {
  display: grid;
  grid-template-columns: 8rem 1fr;
  gap: var(--s-2);
  padding: var(--s-2) 0;
  border-bottom: 1px solid var(--g-2);
}
.contact-list dt { font-size: var(--fs-xs); color: var(--g-4); padding-top: 0.3em; }
.contact-list dd { margin: 0; font-size: var(--fs-md); overflow-wrap: anywhere; }
.contact-list address { font-style: normal; }

/* ------------------------------------------------------------------ empty state */
.empty {
  background: var(--g-1);
  padding: var(--s-4);
  color: var(--g-4);
  font-size: var(--fs-sm);
}

/* ------------------------------------------------------------------ lab area */
.page-title {
  font-size: var(--fs-2xl);
  letter-spacing: -0.02em;
}
.crumbs {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: var(--fs-sm);
  color: var(--g-4);
  margin-bottom: var(--s-2);
}
.page-title + .lead,
.page-title + .status-line { margin-top: var(--s-2); }
.subhead {
  font-size: var(--fs-lg);
  margin: var(--s-6) 0 var(--s-2);
}
.section .lead + * { margin-top: var(--s-4); }

.notice {
  border: var(--rule) solid var(--ink);
  background: #fff;
  padding: var(--s-2) var(--s-3);
  margin-top: var(--s-3);
  max-width: 44rem;
}
.notice strong { font-family: var(--font-display); font-weight: 600; }
.notice--error { border-color: var(--red); }
.notice--error strong { color: var(--red); }

.kinds {
  display: grid;
  gap: var(--s-2);
  grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr));
  margin-top: var(--s-4);
}
.kind {
  display: grid;
  align-content: start;
  gap: var(--s-1);
  border: var(--rule) solid var(--ink);
  padding: var(--s-3);
  color: var(--g-4);
  font-size: var(--fs-sm);
  text-decoration: none;
  transition: background-color var(--dur) var(--ease-out), color var(--dur) var(--ease-out);
}
.kind strong { font-family: var(--font-display); font-weight: 600; font-size: var(--fs-md); color: var(--ink); }
.kind:hover { background: var(--ink); color: var(--g-2); }
.kind:hover strong { color: var(--paper); }

.table {
  width: 100%;
  border-collapse: collapse;
  font-size: var(--fs-sm);
  font-variant-numeric: tabular-nums;
}
.table th,
.table td {
  text-align: left;
  padding: var(--s-1) var(--s-2) var(--s-1) 0;
  border-bottom: 1px solid var(--g-2);
}
.table th { font-size: var(--fs-xs); color: var(--g-4); border-bottom: var(--rule) solid var(--ink); }

.status {
  display: inline-block;
  font-size: var(--fs-xs);
  line-height: 1;
  padding: 0.4em 0.6em;
  border: var(--rule) solid var(--g-4);
  color: var(--g-5);
  white-space: nowrap;
}
.status--checks_failed { background: var(--red); border-color: var(--red); color: #fff; }
.status--needs_confirmation,
.status--awaiting_approval,
.status--in_curation { background: var(--ochre); border-color: var(--ochre); color: var(--ink); }
.status--imported { background: var(--blue); border-color: var(--blue); color: #fff; }
.status--rejected { border-color: var(--ink); color: var(--ink); }

.report__title { font-size: var(--fs-md); margin-top: var(--s-4); }
.report { margin-top: var(--s-1); padding-left: 1.2em; font-size: var(--fs-sm); display: grid; gap: var(--s-1); }
.report--errors { color: var(--red); }

.actions { display: flex; flex-wrap: wrap; gap: var(--s-1); margin-top: var(--s-4); }
.actions form { margin: 0; }

.facts {
  display: grid;
  grid-template-columns: max-content 1fr;
  gap: var(--s-1) var(--s-3);
  margin: var(--s-4) 0 0;
  padding-top: var(--s-2);
  border-top: var(--rule) solid var(--ink);
  font-size: var(--fs-sm);
}
.facts dt { font-family: var(--font-display); font-weight: 500; color: var(--g-4); }
.facts dd { margin: 0; }
.mono { font-family: var(--font-mono); font-size: var(--fs-xs); overflow-wrap: anywhere; }

/* forms */
.form { max-width: 40rem; margin-top: var(--s-4); }
.form--wide { max-width: none; }
.form__row { display: grid; align-content: start; gap: var(--s-1); margin-bottom: var(--s-3); }
.form label { font-family: var(--font-display); font-weight: 500; font-size: var(--fs-sm); }
.form input[type="text"],
.form input[type="email"],
.form input[type="password"],
.form input[type="number"],
.form input[type="file"],
.form select,
.form textarea {
  width: 100%;
  font: inherit;
  font-size: var(--fs-base);
  color: var(--ink);
  background: #fff;
  border: 1px solid var(--g-4);
  border-radius: 0;
  padding: 0.55em 0.7em;
}
.form textarea { resize: vertical; min-height: 6rem; }
.form input[type="file"] { padding: 0.4em; font-size: var(--fs-sm); }
.form input[type="file"]::file-selector-button {
  margin-right: var(--s-2);
  padding: 0.35em 0.9em;
  border: var(--rule) solid var(--ink);
  background: transparent;
  color: var(--ink);
  font-family: var(--font-display);
  font-weight: 600;
  cursor: pointer;
}
.form input[type="file"]::file-selector-button:hover { background: var(--ink); color: var(--paper); }
.form textarea[wrap="off"] { font-family: var(--font-mono); font-size: var(--fs-xs); }
.form input:focus-visible,
.form select:focus-visible,
.form textarea:focus-visible { outline-offset: 0; border-color: var(--blue); }
.form input[type="checkbox"] { accent-color: var(--ink); width: 1.1rem; height: 1.1rem; }
.form .helptext { font-size: var(--fs-xs); color: var(--g-4); }
.form .errorlist { list-style: none; color: var(--red); font-size: var(--fs-sm); font-weight: 600; }
.form__note { font-size: var(--fs-sm); color: var(--g-4); max-width: var(--measure); margin-top: var(--s-2); }

.plate {
  border: var(--rule) solid var(--ink);
  padding: var(--s-3);
  margin: 0 0 var(--s-3);
}
.plate legend { font-family: var(--font-display); font-weight: 600; padding-inline: var(--s-1); }
.plate__coords { display: grid; gap: 0 var(--s-2); grid-template-columns: repeat(auto-fit, minmax(7rem, 1fr)); }
.plate__remove { display: flex; gap: var(--s-1); align-items: center; font-size: var(--fs-sm); }

/* ------------------------------------------------------------------ footer */
main > .section:last-child:not(.section--ink, .section--tint) { padding-bottom: var(--s-12); }
main > .section--ink:last-child { margin-bottom: var(--s-8); }
.footer {
  background: var(--ink);
  color: var(--g-2);
  padding-block: var(--s-6) var(--s-4);
}
.footer :focus-visible { outline-color: var(--focus-on-ink); }
.footer__inner {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: var(--s-4);
}
.footer__brand p { font-size: var(--fs-sm); margin-top: var(--s-1); max-width: 34ch; }
.footer__head { font-size: var(--fs-xs); color: var(--g-3); margin-bottom: var(--s-2); }
.footer ul { list-style: none; display: grid; gap: var(--s-1); }
.footer ul a { color: var(--g-2); font-size: var(--fs-sm); text-decoration: none; }
.footer ul a:hover { color: var(--paper); text-decoration: underline; }
.footer__legal {
  margin-top: var(--s-4);
  padding-top: var(--s-2);
  border-top: 1px solid var(--g-5);
  font-size: var(--fs-xs);
  color: var(--g-3);
}
.footer__legal a { color: inherit; }
.footer__legal a:hover { color: var(--paper); }

/* ------------------------------------------------------------------ responsive */
@media (max-width: 900px) {
  .hero__grid,
  .split,
  .footer__inner { grid-template-columns: 1fr; }
  .area { grid-template-columns: 1fr; }
  .area__text { padding: var(--s-3); }
  .tool,
  .tool:has(.tool__logo) {
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-rows: auto;
    grid-template-areas: "name logo" "desc desc" "links links";
  }
  .tool__logo { height: var(--s-8); max-width: 12rem; margin-top: 0; }
  .tool__note { grid-column: 1 / -1; }
  .key--index ul { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 560px) {
  .section { padding-block: var(--s-6); }
  .page-head { padding-top: var(--s-6); }
  .hero { padding-top: var(--s-6); }
  .nav { gap: var(--s-1) var(--s-2); }
  .nav__lab { margin-left: 0; }
  .tool-group__head { padding: var(--s-2); }
  .tool { padding: var(--s-2); }
  .tool-locked,
  .tool-group__body { padding: var(--s-2); }
  .key--index ul { grid-template-columns: 1fr; }
  .contact-list > div,
  .facts-band > div { grid-template-columns: 1fr; gap: 0; }
  .table { display: block; overflow-x: auto; }
  .pub__page--text { aspect-ratio: auto; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation: none !important;
    transition-duration: 0.01ms !important;
  }
}
