/* Fiser Lab site styles (2026 redesign).
   Colors come from the lab's original logo and banner:
   orange #d14501 and grey #666666. The old css_fiserlab.css is kept for
   the picture galleries and sub-sites that still link to it. */

:root {
  --orange: #d14501;        /* accents, large text, bars */
  --orange-ink: #a83800;    /* links and small text on white (AA contrast) */
  --orange-soft: #fbeee6;
  --grey: #666666;
  --charcoal: #2e2c2b;
  --charcoal-2: #3b3836;
  --ink: #1f1d1c;
  --muted: #5d5955;
  --line: #e7e2dd;
  --paper: #ffffff;
  --paper-warm: #f7f4f1;

  --font-sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-serif: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", Georgia, serif;

  --wrap: 72rem;
  --radius: 10px;
  --shadow: 0 1px 2px rgb(0 0 0 / .05), 0 4px 14px rgb(0 0 0 / .05);
}

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

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 1.0625rem;
  line-height: 1.65;
}

img, svg { max-width: 100%; }

a { color: var(--orange-ink); text-underline-offset: .18em; text-decoration-thickness: 1px; }
a:hover { color: var(--orange); }
a:focus-visible, .nav-toggle:focus-visible + .nav-toggle__button {
  outline: 3px solid var(--orange);
  outline-offset: 2px;
  border-radius: 4px;
}

h1, h2, h3 { font-family: var(--font-serif); font-weight: 600; line-height: 1.2; margin: 0 0 .5em; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 1.25rem; }

.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap;
}

.skip-link {
  position: absolute; left: -999px; top: .5rem; z-index: 10;
  background: var(--paper); padding: .5rem 1rem; border-radius: 6px;
}
.skip-link:focus { left: .5rem; }

/* ---------- Header ---------- */

.site-header { background: var(--paper); border-bottom: 1px solid var(--line); }

.site-header__bar {
  display: flex; align-items: center; justify-content: space-between;
  padding-top: .9rem; padding-bottom: .9rem;
}

.brand { display: flex; align-items: center; gap: 1rem; color: var(--ink); text-decoration: none; }
.brand:hover { color: var(--ink); }
.brand__logo { width: 48px; height: 70px; flex: none; }
.brand__text { display: flex; flex-direction: column; line-height: 1.15; }
.brand__name { font-family: var(--font-serif); font-size: 2.4rem; font-weight: 600; letter-spacing: .01em; }
.brand__org { font-size: 1rem; color: var(--muted); }

@media (max-width: 860px) {
  .brand { gap: .75rem; }
  .brand__logo { width: 36px; height: 52px; }
  .brand__name { font-size: 1.85rem; }
  .brand__org { font-size: .85rem; }
}

.site-nav { background: var(--charcoal); }
.site-nav ul {
  list-style: none; margin: 0 auto; display: flex; flex-wrap: wrap;
  gap: .15rem; padding-top: .35rem; padding-bottom: .35rem;
}
.site-nav a {
  display: block; padding: .5rem .8rem; border-radius: 6px;
  color: #f1ede9; text-decoration: none; font-size: .95rem; font-weight: 500;
}
.site-nav a:hover { background: var(--charcoal-2); color: #fff; }
.site-nav a[aria-current="page"] { background: var(--orange); color: #fff; }
.site-nav .ext { opacity: .7; font-size: .85em; }
.site-nav .nav-disabled {
  display: block; padding: .5rem .8rem; color: #9a948f; font-size: .95rem; font-weight: 500; cursor: default;
}

/* The checkbox toggle is only used on narrow screens. */
.nav-toggle { position: absolute; opacity: 0; pointer-events: none; }
.nav-toggle__button { display: none; }

@media (max-width: 860px) {
  .nav-toggle__button {
    display: inline-flex; align-items: center; justify-content: center;
    width: 44px; height: 44px; border: 1px solid var(--line); border-radius: 8px; cursor: pointer;
  }
  .bars { display: grid; gap: 5px; }
  .bars span { display: block; width: 20px; height: 2px; background: var(--ink); border-radius: 2px; }

  .site-nav { display: none; }
  .site-header:has(.nav-toggle:checked) .site-nav { display: block; }
  .site-nav ul { flex-direction: column; padding-top: .5rem; padding-bottom: .75rem; }
  .site-nav a { padding: .7rem .8rem; }
}

/* ---------- Banners ---------- */

.hero, .page-head {
  position: relative; overflow: hidden;
  background: var(--charcoal); color: #fff;
  border-bottom: 4px solid var(--orange);
}
.spirals {
  position: absolute; inset: 0 0 0 auto; width: min(60%, 640px); height: 100%;
  color: var(--orange); opacity: .55; pointer-events: none;
}

.hero__inner { position: relative; padding-top: 4.5rem; padding-bottom: 4.5rem; max-width: var(--wrap); }
.hero__eyebrow {
  margin: 0 0 .75rem; color: #f3b38f; font-size: .85rem; font-weight: 600;
  letter-spacing: .08em; text-transform: uppercase;
}
.hero__title { font-size: clamp(2.1rem, 5vw, 3.4rem); max-width: 22ch; margin-bottom: .4em; }
.hero__lede { font-size: 1.2rem; max-width: 40rem; color: #e9e4df; margin: 0 0 1.75rem; }
.hero__actions { display: flex; flex-wrap: wrap; gap: .75rem; margin: 0; }

.page-head .wrap { position: relative; padding-top: 2.75rem; padding-bottom: 2.5rem; }
.page-head h1 { font-size: clamp(1.9rem, 4vw, 2.6rem); margin: 0; }
.page-head__lede { margin: .5rem 0 0; color: #e9e4df; max-width: 42rem; font-size: 1.1rem; }

/* On wider screens the menu bar and banner form one rounded dark panel,
   the same width as the page content, instead of spanning the window. */
@media (min-width: 861px) {
  .site-header { border-bottom: 0; }
  .site-nav, .hero, .page-head {
    width: calc(100% - 2.5rem); max-width: calc(var(--wrap) - 2.5rem); margin: 0 auto;
  }
  .site-nav { border-radius: var(--radius) var(--radius) 0 0; }
  .site-nav ul { padding-left: .75rem; padding-right: .75rem; }
  .hero, .page-head { border-radius: 0 0 var(--radius) var(--radius); border-top: 1px solid rgb(255 255 255 / .12); }
  .hero .wrap, .page-head .wrap { padding-left: 2rem; padding-right: 2rem; }
}

.button {
  display: inline-block; padding: .7rem 1.25rem; border-radius: 8px;
  font-weight: 600; text-decoration: none; border: 2px solid transparent;
}
.button--primary { background: var(--orange); color: #fff; }
.button--primary:hover { background: #b53c00; color: #fff; }
.button--ghost { border-color: rgb(255 255 255 / .6); color: #fff; }
.button--ghost:hover { background: rgb(255 255 255 / .1); color: #fff; }

/* ---------- Page body ---------- */

.page-body { padding-top: 2.5rem; padding-bottom: 4rem; }

.section-title {
  font-size: 1.5rem; margin: 2.5rem 0 1.1rem; padding-bottom: .4rem;
  border-bottom: 2px solid var(--line); position: relative;
}
.section-title::after {
  content: ""; position: absolute; left: 0; bottom: -2px; width: 3rem; height: 2px; background: var(--orange);
}
.page-body > .section-title:first-child { margin-top: 0; }

.cards { display: grid; gap: 1.25rem; }
.cards--3 { grid-template-columns: repeat(auto-fill, minmax(min(100%, 18rem), 1fr)); }
.cards--4 { grid-template-columns: repeat(auto-fill, minmax(min(100%, 14rem), 1fr)); }

.card {
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.4rem 1.5rem; box-shadow: var(--shadow);
}
.card h3 { font-size: 1.2rem; }
.card p { margin: 0 0 .6em; }
.card p:last-child { margin-bottom: 0; }

.card--link { display: block; color: var(--ink); text-decoration: none; border-top: 3px solid var(--orange); transition: transform .15s, box-shadow .15s; }
.card--link h3 { color: var(--orange-ink); }
.card--link p { color: var(--muted); font-size: .97rem; }
.card--link:hover { color: var(--ink); transform: translateY(-2px); box-shadow: 0 6px 20px rgb(0 0 0 / .08); }

/* People */
.person__name { font-size: 1.15rem; margin-bottom: .2em; }
.person__degree { font-weight: 400; color: var(--muted); }
.person__role { color: var(--orange-ink); font-weight: 600; font-size: .95rem; margin: 0 0 .75rem; }
.person__contact { display: grid; grid-template-columns: auto 1fr; gap: .2rem .9rem; margin: 0; font-size: .95rem; }
.person__contact dt { color: var(--muted); }
.person__contact dd { margin: 0; overflow-wrap: break-word; min-width: 0; }

.table-scroll { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); }
.data-table { width: 100%; border-collapse: collapse; font-size: .97rem; }
.data-table th, .data-table td { text-align: left; padding: .65rem 1rem; vertical-align: top; }
.data-table thead th {
  background: var(--paper-warm); font-size: .82rem; text-transform: uppercase;
  letter-spacing: .05em; color: var(--muted); border-bottom: 1px solid var(--line);
}
.data-table tbody tr + tr td { border-top: 1px solid var(--line); }
.data-table td:first-child { font-weight: 600; white-space: nowrap; }

/* Publications */
.year-filter { display: flex; flex-wrap: wrap; gap: .4rem; margin-bottom: 1.25rem; }
.year-filter a {
  padding: .3rem .7rem; border: 1px solid var(--line); border-radius: 999px;
  color: var(--ink); text-decoration: none; font-size: .9rem; font-variant-numeric: tabular-nums;
}
.year-filter a:hover { border-color: var(--orange); color: var(--orange-ink); }
.year-filter a[aria-current="page"] { background: var(--orange); border-color: var(--orange); color: #fff; }

.pub-count { color: var(--muted); margin: 0 0 1rem; }

.pub-list { list-style: none; margin: 0; padding: 0; }
.pub { display: flex; gap: 1.1rem; padding: 1.15rem 0; border-top: 1px solid var(--line); }
.pub__num {
  flex: none; width: 2.6rem; text-align: right; color: var(--orange-ink);
  font-weight: 700; font-variant-numeric: tabular-nums; padding-top: .1rem;
}
.pub__body p { margin: 0; }
.pub__title { font-family: var(--font-serif); font-size: 1.15rem; font-weight: 600; line-height: 1.35; margin-bottom: .3rem !important; }
.pub__title a { color: var(--ink); text-decoration: none; }
.pub__title a:hover { color: var(--orange-ink); text-decoration: underline; }
.pub__authors { color: var(--muted); }
.pub__source { font-size: .97rem; }
.pub__meta { display: flex; flex-wrap: wrap; align-items: center; gap: .4rem 1rem; margin-top: .5rem !important; font-size: .9rem; }

.badge {
  display: inline-block; padding: .1rem .55rem; border-radius: 999px; font-size: .78rem; font-weight: 600;
  background: #eeebe8; color: var(--muted);
}
.badge--review { background: var(--orange-soft); color: var(--orange-ink); }

/* Resource lists (servers, programs, links, proteomics) */
.resources { list-style: none; margin: 0; padding: 0; display: grid; gap: .9rem; }
.resources > li {
  border: 1px solid var(--line); border-left: 3px solid var(--orange); border-radius: 8px;
  padding: .9rem 1.2rem; background: var(--paper);
}
.resources > li > a:first-child { font-weight: 600; font-size: 1.08rem; }
.resources p { margin: .2rem 0 0; color: var(--muted); }
/* Entries whose service is not online (yet): name as plain text, grey accent. */
.resources > li.is-unavailable { border-left-color: var(--line); background: var(--paper-warm); }
.resources .resource-name { font-weight: 600; font-size: 1.08rem; color: var(--muted); }
.resources .badge { margin-left: .4rem; vertical-align: middle; }
.size {
  display: inline-block; margin-left: .35rem; padding: 0 .45rem; border-radius: 4px;
  background: var(--paper-warm); font-size: .82rem; color: var(--muted);
}

/* Pictures */
.albums { list-style: none; margin: 0; padding: 0; display: grid; gap: .75rem;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 16rem), 1fr)); }
.albums a {
  display: block; height: 100%; padding: 1rem 1.15rem; border: 1px solid var(--line); border-radius: 8px;
  text-decoration: none; color: var(--ink); background: var(--paper-warm); font-weight: 500;
}
.albums a::before { content: ""; display: block; width: 1.5rem; height: 3px; background: var(--orange); margin-bottom: .6rem; }
.albums a:hover { border-color: var(--orange); color: var(--orange-ink); }

/* Contact */
.contact { display: grid; gap: 1.25rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 20rem), 1fr)); }
.contact h2 { font-size: 1.3rem; }
.contact h2 + .person__role { margin-top: -.3rem; }
.contact p + h2 { margin-top: 1.5rem; }

/* Contact page map */
.contact-map { margin-top: 2.5rem; }
.contact-map__frame {
  position: relative; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden;
  aspect-ratio: 16 / 7; min-height: 280px; background: var(--paper-warm);
}
.contact-map__frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.contact-map__link { margin: .5rem 0 0; font-size: .92rem; }

/* ---------- Readme / documentation pages ---------- */

code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
  font-size: .9em; background: var(--paper-warm); border: 1px solid var(--line);
  border-radius: 4px; padding: .05em .35em;
}
.section-title code { font-size: .85em; background: none; border: 0; padding: 0; }

.readme-summary {
  border: 1px solid var(--line); border-left: 3px solid var(--orange); border-radius: var(--radius);
  padding: 1.25rem 1.5rem; background: var(--paper-warm); margin-bottom: 1.75rem;
}
.readme-summary > p:first-child { margin-top: 0; }
.readme-facts { display: grid; grid-template-columns: auto 1fr; gap: .3rem 1.25rem; margin: 0 0 1rem; }
.readme-facts dt { color: var(--muted); }
.readme-facts dd { margin: 0; }
.readme-actions { display: flex; flex-wrap: wrap; gap: .6rem; margin: 0; }
.button__meta { font-weight: 400; opacity: .85; margin-left: .35rem; font-size: .9em; }
.button--quiet { border-color: var(--line); color: var(--ink); background: var(--paper); }
.button--quiet:hover { border-color: var(--orange); color: var(--orange-ink); }

.readme-toc { display: flex; flex-wrap: wrap; gap: .4rem; margin-bottom: .5rem; }
.readme-toc a {
  padding: .25rem .65rem; border: 1px solid var(--line); border-radius: 999px; text-decoration: none; color: var(--ink);
}
.readme-toc a:hover { border-color: var(--orange); }
.readme-toc a code { background: none; border: 0; padding: 0; }

.readme-table { scroll-margin-top: 1rem; }
.readme-note {
  display: inline-block; font-size: .92rem; color: var(--muted); background: var(--paper-warm);
  border-radius: 6px; padding: .3rem .7rem;
}
.readme-subtitle { font-size: 1.1rem; margin: 1.5rem 0 .75rem; }

.data-table--fields td:first-child { width: 1%; }
.data-table td.num { font-variant-numeric: tabular-nums; }
.table-scroll--narrow { max-width: 28rem; }

.code-block {
  background: var(--charcoal); color: #f1ede9; border-radius: var(--radius); padding: 1rem 1.25rem;
  overflow-x: auto; font-size: .92rem; line-height: 1.5;
}
.code-block code { background: none; border: 0; padding: 0; color: inherit; font-size: inherit; }
.code-key { color: #f3b38f; font-weight: 600; }

.readme-steps { padding-left: 1.25rem; }
.readme-steps li { margin-bottom: .4rem; }

.citation, .citations li { color: var(--muted); }
.citations { padding-left: 1.5rem; }
.citations li { margin-bottom: .6rem; }

.readme-license {
  margin-top: 2.25rem; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.1rem 1.4rem; background: var(--orange-soft);
}
.readme-license h2 { font-size: 1.15rem; margin-bottom: .4rem; }
.readme-license p { margin: 0; }

.resources .resource-name--plain { color: var(--ink); }
.resource-links { display: flex; flex-wrap: wrap; align-items: center; gap: .3rem 1rem; }
.resource-links .size { margin-left: -.6rem; }

/* ---------- Footer ---------- */

.site-footer { background: var(--paper-warm); border-top: 1px solid var(--line); color: var(--muted); font-size: .93rem; }
.site-footer__grid {
  display: grid; gap: 1.5rem; padding-top: 2.25rem; padding-bottom: 1.5rem;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 14rem), 1fr));
}
.site-footer p { margin: 0; }
.site-footer__name { font-family: var(--font-serif); font-size: 1.15rem; color: var(--ink); font-weight: 600; margin-bottom: .3rem !important; }
.site-footer__copy { padding-bottom: 1.75rem; font-size: .85rem; }

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; }
}
