:root {
  --bg: #f3f5f2;
  --panel: #ffffff;
  --ink: #16222d;
  --muted: #4f5f6f;
  --line: #d7ded2;
  --accent: #0f6d7a;
  --accent-soft: #e5f3f6;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: "Avenir Next", "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--bg);
}

.layout {
  display: grid;
  grid-template-columns: 270px 1fr;
  min-height: 100vh;
}

.sidebar {
  border-right: 1px solid var(--line);
  background: linear-gradient(180deg, #f7faf8 0%, #eef4ef 100%);
  padding: 18px 14px;
  position: sticky;
  top: 0;
  height: 100vh;
  display: flex;
  flex-direction: column;
}

.brand {
  font-weight: 700;
  font-size: 1.18rem;
  margin: 4px 6px 14px;
}

.nav a {
  display: block;
  margin: 6px 0;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 10px 11px;
  color: var(--ink);
  text-decoration: none;
  background: #fff;
  font-size: 0.92rem;
}

.nav a:hover {
  border-color: #9cb7bf;
  background: #f9fdff;
}

.nav a.active {
  border-color: var(--accent);
  background: var(--accent-soft);
}

.sidebar-foot {
  margin-top: auto;
  padding-top: 12px;
}

.repo-link {
  display: block;
  text-align: center;
  border: 1px solid #8fb9c3;
  border-radius: 10px;
  padding: 10px 10px;
  text-decoration: none;
  background: #e9f6f9;
  color: #124b58;
  font-size: 0.88rem;
}

.repo-link:hover {
  background: #dff1f5;
}

.main {
  padding: 28px 30px 50px;
}

.badge {
  display: inline-block;
  border: 1px solid #b9d7de;
  color: #155768;
  background: #eaf8fb;
  border-radius: 999px;
  font-size: 0.78rem;
  padding: 4px 9px;
}

h1 {
  margin: 8px 0 10px;
  font-size: 1.85rem;
}

h2 {
  margin-top: 26px;
  font-size: 1.2rem;
}

p, li {
  color: var(--muted);
  line-height: 1.5;
}

.card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 14px;
  margin-top: 12px;
}

.status-banner {
  margin-top: 12px;
  border-radius: 12px;
  border: 2px solid;
  padding: 12px 14px;
  font-weight: 600;
  letter-spacing: 0.1px;
}

.status-tested {
  border-color: #1f8f62;
  background: #e8f8ef;
  color: #0f5a3c;
}

.status-wip {
  border-color: #a7b0ba;
  background: #eef2f6;
  color: #4d5a69;
}

/* Per-pipeline theme accents for subpages */
.theme-long .badge {
  border-color: #9fd2b8;
  color: #1b6c4a;
  background: #e9f8ef;
}
.theme-long .status-tested {
  border-color: #1f8f62;
  background: #e8f8ef;
  color: #0f5a3c;
}
.theme-long .node {
  border-color: #8fc9ad;
  background: #eef9f3;
  color: #175c40;
}
.theme-long .arrow {
  color: #3f7a60;
}

.theme-short .badge {
  border-color: #9dbbe9;
  color: #1f5db7;
  background: #e9f2ff;
}
.theme-short .status-tested {
  border-color: #2f6fd6;
  background: #e8f0ff;
  color: #1a4f9f;
}
.theme-short .node {
  border-color: #95b5e6;
  background: #f1f6ff;
  color: #1e4f98;
}
.theme-short .arrow {
  color: #4a74b8;
}

.theme-pf .badge {
  border-color: #d3c2a1;
  color: #7b5d2a;
  background: #f7f1e7;
}
.theme-pf .node {
  border-color: #ccb991;
  background: #faf5eb;
  color: #6f5324;
}
.theme-pf .arrow {
  color: #8a7141;
}

.theme-rna .badge {
  border-color: #c3a4d8;
  color: #5e2f80;
  background: #f3eaf9;
}
.theme-rna .node {
  border-color: #c1a0d7;
  background: #f8f1fc;
  color: #5b2f79;
}
.theme-rna .arrow {
  color: #7a56a1;
}

.theme-tnseq .badge {
  border-color: #a2c8cd;
  color: #245c66;
  background: #e9f4f6;
}
.theme-tnseq .node {
  border-color: #9bc2c8;
  background: #edf7f9;
  color: #255963;
}
.theme-tnseq .arrow {
  color: #3f727a;
}

.workstation-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 14px;
  margin-top: 14px;
}

.workstation-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 14px;
}

.ws-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}

.ws-head h2 {
  margin: 0;
  font-size: 1.1rem;
}

.ws-loc {
  display: inline-block;
  font-size: 0.76rem;
  border-radius: 999px;
  border: 1px solid #c7d0da;
  background: #f2f5f8;
  color: #44515f;
  padding: 3px 8px;
}

.ws-visual {
  height: 86px;
  border-radius: 10px;
  border: 2px solid #b7c3d2;
  margin: 10px 0 12px;
  background:
    linear-gradient(180deg, #f8fbff 0%, #ecf2f9 100%);
  position: relative;
  overflow: hidden;
}

.ws-visual::before {
  content: \"\";
  position: absolute;
  left: 12px;
  right: 70px;
  top: 14px;
  bottom: 14px;
  border-radius: 8px;
  border: 2px solid rgba(255,255,255,0.9);
}

.ws-visual::after {
  content: \"\";
  position: absolute;
  right: 14px;
  top: 12px;
  width: 40px;
  height: 62px;
  border-radius: 8px;
}

.ws-nook {
  border-color: #7db89d;
  background:
    radial-gradient(circle at 78% 30%, rgba(103,170,136,0.35) 0 18%, transparent 19%),
    linear-gradient(180deg, #eefaf3 0%, #deefe5 100%);
}
.ws-nook::after {
  background: linear-gradient(180deg, #7fc5a2 0%, #4d8e6f 100%);
}

.ws-core2 {
  border-color: #86abd8;
  background:
    radial-gradient(circle at 76% 32%, rgba(91,142,208,0.35) 0 18%, transparent 19%),
    linear-gradient(180deg, #f0f6ff 0%, #dde9fa 100%);
}
.ws-core2::after {
  background: linear-gradient(180deg, #79a9e2 0%, #3f6faa 100%);
}

.ws-core3 {
  border-color: #b8a1d7;
  background:
    radial-gradient(circle at 76% 32%, rgba(157,115,202,0.3) 0 18%, transparent 19%),
    linear-gradient(180deg, #f7f1ff 0%, #ece1fb 100%);
}
.ws-core3::after {
  background: linear-gradient(180deg, #b89adf 0%, #7d5aa9 100%);
}

.ws-grid {
  border-color: #b7bcc7;
  background:
    radial-gradient(circle at 76% 32%, rgba(126,136,154,0.3) 0 18%, transparent 19%),
    linear-gradient(180deg, #f5f7fb 0%, #e8edf5 100%);
}
.ws-grid::after {
  background: linear-gradient(180deg, #b2bbca 0%, #717d92 100%);
}

.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 12px;
  margin-top: 12px;
}

.pipeline-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 14px;
}

.card-link {
  display: block;
  text-decoration: none;
  color: inherit;
}

.card-link:hover {
  text-decoration: none;
}

.pipeline-card h3 {
  margin: 0 0 6px;
  font-size: 1.02rem;
}

.card-badge {
  display: inline-block;
  border-radius: 999px;
  padding: 3px 9px;
  font-size: 0.74rem;
  border: 1px solid #cfd6cc;
  color: #50606a;
  background: #f4f6f2;
  margin-bottom: 8px;
}

.pipeline-card.featured {
  border: 2px solid #2b8f6b;
  background:
    radial-gradient(circle at 92% 12%, #d9f3e7 0%, transparent 42%),
    linear-gradient(180deg, #f4fff9 0%, #eefaf4 100%);
  position: relative;
  overflow: hidden;
}

.pipeline-card.featured h3 {
  color: #14583f;
}

.card-badge.live {
  border-color: #2b8f6b;
  color: #0f5a3c;
  background: #e8f8ef;
  font-weight: 600;
}

.longwgs-visual {
  margin-top: 10px;
  border: 2px solid #97cfb3;
  border-radius: 10px;
  height: 92px;
  background:
    radial-gradient(circle at 76% 48%, #8cc9ad 0 18%, transparent 19%),
    radial-gradient(circle at 88% 66%, #73b796 0 12%, transparent 13%),
    linear-gradient(90deg, #74b594 0 10%, transparent 10% 13%, #74b594 13% 23%, transparent 23% 26%, #74b594 26% 36%, transparent 36% 100%),
    linear-gradient(120deg, #ecfff4 0%, #ddf3e6 100%);
}

.pipeline-card.featured.shortwgs-featured {
  border-color: #2f6fd6;
  background:
    radial-gradient(circle at 92% 12%, #dce9ff 0%, transparent 42%),
    linear-gradient(180deg, #f6f9ff 0%, #edf3ff 100%);
}

.pipeline-card.featured.shortwgs-featured h3 {
  color: #17478f;
}

.pipeline-card.featured.shortwgs-featured .card-badge.live {
  border-color: #2f6fd6;
  color: #1a4f9f;
  background: #e8f0ff;
}

.shortwgs-visual {
  margin-top: 10px;
  border: 2px solid #9dbbe9;
  border-radius: 10px;
  height: 92px;
  background:
    radial-gradient(circle at 80% 50%, #87afe9 0 14%, transparent 15%),
    radial-gradient(circle at 68% 62%, #6d99db 0 9%, transparent 10%),
    repeating-linear-gradient(
      90deg,
      #4f84d5 0 9px,
      #dbe8ff 9px 13px
    ),
    linear-gradient(120deg, #f4f8ff 0%, #e6efff 100%);
}

.flow {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  margin-top: 14px;
}

.node {
  border: 2px solid #a8c3cb;
  background: #f5fbfd;
  color: #1e4050;
  border-radius: 999px;
  padding: 8px 14px;
  font-size: 0.92rem;
  font-weight: 600;
}

.arrow {
  color: #5e7383;
  font-size: 1rem;
  font-weight: 700;
}

pre {
  margin: 0;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 12px;
  overflow-x: auto;
}

code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.92rem;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 10px;
  overflow: hidden;
}

th, td {
  border-bottom: 1px solid var(--line);
  padding: 8px 10px;
  text-align: left;
}

th {
  background: #f0f4ef;
  color: #2c3c49;
}

@media (max-width: 900px) {
  .layout {
    grid-template-columns: 1fr;
  }
  .sidebar {
    position: static;
    height: auto;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }
  .main {
    padding: 20px 16px 34px;
  }
}
