:root {
  font-family: "Segoe UI", Arial, sans-serif;
  color: #163741;
  background: #fff;
  font-synthesis: none;
  --ink: #163741;
  --muted: #48636c;
  --teal: #08796e;
  --line: #d5e1e2;
}
* { box-sizing: border-box; }
html { scroll-padding-top: 24px; }
body { margin: 0; font-size: 16px; line-height: 1.6; }
a { color: inherit; }
button, input { font: inherit; touch-action: manipulation; }
button { cursor: pointer; }
button:focus-visible, a:focus-visible, input:focus-visible {
  outline: 3px solid #a34c22;
  outline-offset: 4px;
}
h1, h2, h3, p { margin-top: 0; }
.wrap { width: min(1216px, calc(100% - 80px)); margin-inline: auto; }
.site-header { min-height: 88px; display: flex; align-items: center; justify-content: space-between; gap: 24px; border-bottom: 1px solid var(--line); }
.brand { display: inline-flex; align-items: center; gap: 11px; text-decoration: none; font-weight: 700; font-size: 23px; letter-spacing: -.6px; }
.brand svg { width: 36px; height: 36px; color: var(--teal); }
.brand-light { font-weight: 400; }
.site-header nav { display: flex; gap: 28px; font-size: 15px; }
.site-header nav a { padding-block: 10px; text-underline-offset: 5px; text-decoration-color: transparent; }
.site-header nav a:hover { text-decoration-color: currentColor; }
.catalog { padding-block: 36px 48px; }
.directory-heading h1 { font-size: clamp(27px, 3vw, 36px); line-height: 1.25; font-weight: 650; letter-spacing: -.8px; margin-bottom: 14px; }
.directory-heading p { max-width: 850px; color: var(--muted); margin-bottom: 26px; }
.catalog-tools { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-bottom: 14px; }
.filters { display: flex; flex-wrap: wrap; gap: 7px; }
.filter { border: 1px solid transparent; border-radius: 5px; background: transparent; color: var(--muted); padding: 8px 12px; font-size: 14px; min-height: 44px; white-space: nowrap; }
.filter span { margin-left: 5px; }
.filter.active { border-color: #9fc8be; background: #eaf5f1; color: #075e54; font-weight: 650; }
.filter:hover { background: #edf3f1; }
.search { display: flex; align-items: center; border: 1px solid #9fb6bc; border-radius: 5px; min-height: 44px; padding: 0 11px; gap: 8px; flex: 0 1 260px; }
.search svg { height: 18px; width: 18px; stroke: #48636c; stroke-width: 1.6; flex: none; }
.search input { border: 0; background: transparent; min-width: 0; width: 100%; font-size: 16px; color: var(--ink); }
.search input::placeholder { color: #526b74; opacity: 1; }
.result-count { color: var(--muted); font-size: 14px; margin-bottom: 20px; }
.lab-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.lab-card { border: 1px solid var(--line); border-radius: 8px; overflow: hidden; position: relative; display: flex; flex-direction: column; }
.lab-card:hover { border-color: #87aaa2; }
.lab-card:focus-within { outline: 3px solid #08796e; outline-offset: 3px; }
.lab-card[hidden] { display: none; }
.card-visual { height: 148px; padding: 10px 20px; color: var(--teal); background: #edf6f2; border-bottom: 1px solid #ddebe5; }
.card-visual svg { height: 104px; width: 100%; }
.card-visual .trace { fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.card-visual .baseline { fill: none; stroke: currentColor; stroke-width: 1; opacity: .18; }
.card-visual .secondary { fill: none; stroke: #b56d41; stroke-width: 2; stroke-dasharray: 4 4; }
.visual-label { font-size: 12px; display: block; text-align: center; line-height: 1.4; }
.ecg-art { background: #edf5f8; color: #286b86; }
.cv-art { background: #f9f1eb; color: #9e532d; }
.lung-art { background: #eef5fa; color: #376d8b; }
.salt-art { background: #f1f1f9; color: #695488; }
.sequence-art { background: #f4f6f2; color: #4c6a4c; }
.writing-art { background: #f8f2ed; color: #94603f; }
.model-art { background: #edf5f6; color: #366e79; }
.card-body { padding: 23px 24px; display: flex; flex-direction: column; flex: 1; }
.card-tag { font-size: 12px; font-weight: 600; color: var(--muted); margin-bottom: 9px; }
.card-body h2 { font-size: 21px; letter-spacing: -.4px; line-height: 1.35; margin-bottom: 12px; font-weight: 650; }
.card-body h2 a { text-decoration: none; }
.card-body h2 a:after { content: ""; position: absolute; inset: 0; }
.card-body h2 a:focus-visible { outline: none; }
.card-body > p:not(.card-tag) { font-size: 16px; color: var(--muted); line-height: 1.6; margin-bottom: 20px; }
.topics { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 22px; }
.topics li { font-size: 12px; border: 1px solid #d9e3e1; padding: 2px 7px; border-radius: 3px; color: #405e65; }
.card-link { font-size: 14px; color: var(--teal); font-weight: 650; margin-top: auto; text-decoration: underline; text-underline-offset: 4px; }
.about { border-top: 1px solid var(--line); display: grid; grid-template-columns: 1fr 2fr; gap: 40px; padding-block: 30px 36px; }
.about h2 { font-size: 22px; line-height: 1.4; margin-bottom: 16px; font-weight: 600; }
.about p { font-size: 16px; color: var(--muted); margin-bottom: 14px; }
.text-link { font-size: 16px; text-underline-offset: 4px; color: var(--teal); }
.site-footer { border-top: 1px solid var(--line); display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 88px; font-size: 12px; color: var(--muted); }
.footer-brand { font-size: 18px; gap: 0; color: var(--ink); }
.empty-state { padding: 32px; background: #f3f7f6; border-radius: 6px; color: var(--muted); }
.button { display: inline-flex; align-items: center; min-height: 44px; padding: 10px 20px; border-radius: 5px; text-decoration: none; }
.primary { background: var(--teal); color: #fff; }
.eyebrow { font-size: 14px; color: var(--teal); }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.skip-link { position: fixed; left: 10px; top: -100px; background: #fff; padding: 10px 16px; z-index: 100; }
.skip-link:focus { top: 10px; }
@media(max-width: 1100px) {
  .catalog-tools { align-items: start; flex-direction: column; gap: 16px; }
  .search { flex: initial; width: 100%; max-width: 350px; }
  .lab-grid { gap: 18px; }
  .card-body { padding: 20px; }
}
@media(max-width: 800px) {
  .wrap { width: calc(100% - 40px); }
  .site-header { min-height: 76px; }
  .brand { font-size: 21px; }
  .brand svg { width: 30px; height: 30px; }
  .site-header nav { gap: 18px; font-size: 14px; }
  .catalog { padding-block: 28px 36px; }
  .lab-grid { grid-template-columns: repeat(2, 1fr); gap: 18px; }
  .card-body { padding: 20px; }
  .about { grid-template-columns: 1fr; gap: 0; }
  .site-footer { flex-wrap: wrap; gap: 12px; padding-block: 22px; min-height: 0; }
}
@media(max-width: 520px) {
  .site-header { flex-wrap: wrap; gap: 2px 20px; padding-block: 15px; }
  .site-header nav { gap: 20px; }
  .directory-heading h1 { font-size: 28px; }
  .lab-grid { grid-template-columns: 1fr; }
  .filter { padding-inline: 9px; }
  .card-body { padding: 23px; }
  .site-footer > span { flex-basis: 100%; }
}
