.feature-table-wrapper {
  max-width: 950px;
  margin: 20px 0;
  font-family: Arial, Helvetica, sans-serif;
}

.feature-table-wrapper h3 {
  margin-bottom: 10px;
  color: #0077cc;
}

.feature-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95em;
}

.feature-table th {
  background: #f0f4f8;
  text-align: left;
  padding: 10px;
  border-bottom: 2px solid #cbd5e1;
}

.feature-table td {
  padding: 9px 10px;
  vertical-align: top;
  border-bottom: 1px solid #e2e8f0;
}

.feature-table tr.pass td:last-child {
  color: #1a7f37;
  font-weight: bold;
}

.feature-table tr.fail td:last-child {
  color: #b42318;
  font-weight: bold;
}

.feature-table tr.pass {
  background: #f8fcf9;
}

.feature-table tr.fail {
  background: #fff5f5;
}

.feature-table td[rowspan] {
  background: #f9fafb;
  font-weight: bold;
  border-right: 1px solid #e2e8f0;
}

@media (max-width: 800px) {
  .feature-table {
    font-size: 0.9em;
  }
}


/* ===== GLOBAL ===== */

/* Header row */
.offtarget-header-grid {
  display: grid;
  grid-template-columns: 140px 340px 60px 1fr 90px;
  gap: 12px;
  font-size: 0.75rem;
  font-weight: bold;
  color: #555;
  padding: 6px 8px;
  border-bottom: 2px solid #ccc;
  margin-top: 10px;
}

/* Data rows */
.offtarget-grid {
  display: grid;
  grid-template-columns: 140px 340px 60px 1fr 90px;
  gap: 12px;
  align-items: center;
  width: 100%;
}

/* Card */
.offtarget-card {
  padding: 6px 8px;
  border-bottom: 1px solid #e0e0e0;
}

/* Cells */
.cell {
  font-size: 0.82rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.cell.seq {
  font-family: Consolas, "Courier New", monospace;
}

.cell.context {
  font-size: 0.78rem;
  color: #444;
}

/* Mismatch badge */


.cell.mm {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
}

.cell.mm .mm {
  display: block;
  width: 100%;
  max-width: 48px;
  text-align: center;

  padding: 4px 0;
  border-radius: 12px;
  font-weight: bold;
  color: #fff;
}




.mm0 { background: #2e7d32; }
.mm1 { background: #558b2f; }
.mm2 { background: #f9a825; }
.mm3 { background: #c62828; }

/* Row hover */
.offtarget-card:hover {
  background: #f5faff;
}


.guide-fail {
  display: none;
}

.guide-struct-img {
  cursor: zoom-in;
}

/* Modal background */
.img-modal {
  display: none;
  position: fixed;
  z-index: 10000;   /* VERY IMPORTANT */
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.85);
}
/* Modal image */
.img-modal-content {
  display: block;
  margin: auto;
  max-width: 90%;
  max-height: 90%;
  margin-top: 5%;
  box-shadow: 0 0 12px rgba(0,0,0,0.5);
}

/* Close button */
.img-modal-close {
  position: absolute;
  top: 12px;
  right: 20px;
  font-size: 36px;
  font-weight: bold;
  color: #fff;
  cursor: pointer;
}

.guide-wide-box {
  display: grid;
  grid-template-columns: 2.4fr 2.2fr 2.2fr 2fr 1.3fr;
  gap: 10px;
  border: 1px solid #ccc;
  border-radius: 6px;
  padding: 8px;
  margin-bottom: 8px;
  font-size: 88%;
  align-items: start;
}

.guide-seq {
  font-family: Consolas, "Courier New", monospace;
  font-size: 1.0rem;
  display: block;
  margin-bottom: 4px;
}

.guide-struct-img {
  max-width: 140px;
  width: 100%;
  height: auto;
  display: block;
  border: 1px solid #ddd;
  border-radius: 4px;
}

.check-title {
  font-weight: bold;
  font-size: 90%;
  margin-bottom: 3px;
}
.eval-mini td {
  padding: 1px 3px;
  border-bottom: 1px solid #eee;
}

.guide-eff {
  margin-top: 4px;
  padding: 2px 5px;
  border-radius: 4px;
  font-weight: bold;
  display: inline-block;
}
.guide-struct-img {
  max-width: 140px;
  width: 100%;
  height: auto;
  display: block;
}
.guide-col-struct img {
  border: 1px solid #ddd;
  border-radius: 4px;
}

.guide-offtarget {
  font-size: 85%;
  margin-bottom: 4px;
}

.offtarget-form select,
.offtarget-form button {
  font-size: 85%;
}

.offtarget-form {
  margin-top: 4px;
  font-size: 75%;
}

.offtarget-form select {
  font-size: 90%;
  margin-left: 4px;
}

.offtarget-form button {
  margin-left: 6px;
  padding: 2px 6px;
  font-size: 85%;
}

.result-box {
  border: 1px solid #cccccc;
  border-radius: 6px;
  background: #fafafa;
  padding: 12px 15px;
  margin-top: 15px;
}

.result-box h3 {
  margin-top: 0;
  margin-bottom: 8px;
  font-size: 16px;
}

.eval-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 90%;
}

.eval-table td {
  padding: 6px 8px;
  border-bottom: 1px solid #e5e5e5;
}

.eval-table td:first-child {
  width: 70%;
}

.eval-fail {
  font-weight: bold;
  color: #black;
  background: lightgrey;
  text-align: center;
  border-radius: 4px;
}
.eval-pass {
  font-weight: bold;
  color: #155724;
  background: #d4edda;
  text-align: center;
  border-radius: 4px;
}


.right-figure-stack {
  float: right;
  width: 320px;          /* fixed column */
  margin-left: 20px;
  margin-top: 20px;
  margin-right: 20px;
}

.right-figure-stack img {
  width: 100%;
  display: block;
  margin-bottom: 12px;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
  margin: 0;
  padding: 0;
  background: #ffffff;
  color: #222;
}

.page {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 16px 40px;
}

/* ===== HEADER ===== */

header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 0 12px;
  border-bottom: 2px solid #d0d0d0;
  margin-bottom: 24px;
  gap: 12px;
  background: #ffffff;
}

.logo-area {
  display: flex;
  align-items: center;
  gap: 14px;
}

.logo-area img {
  height: 75px;
}

.title-wrap {
  display: flex;
  flex-direction: column;
}

header h1 {
  margin: 0;
  font-size: 2rem;
  color: #004b8d;
}

.subtitle {
  margin: 0;
  color: #555;
  font-size: 0.9rem;
}

/* ===== NAVIGATION ===== */

nav {
  margin-left: auto;
  padding-left: 20px;
  white-space: nowrap;
}

nav a {
  color: #004b8d;
  text-decoration: none;
  margin: 0 12px;
  font-size: 1rem;
  font-weight: 500;
  padding-bottom: 4px;
  border-bottom: 3px solid transparent;
}

nav a:hover {
  border-bottom-color: #b8cce5;
}

nav a.active {
  border-bottom-color: #004b8d;
  font-weight: 700;
}

/* ===== CONTENT BOXES ===== */

.box {
  background: #ffffff;
  border: 1px solid #d0d0d0;
  border-radius: 10px;
  padding: 22px 26px;
  box-shadow: 0 1px 4px rgba(0,0,0,0.08);
  margin-bottom: 26px;
}

.box h2 {
  margin-top: 0;
  font-size: 1.35rem;
  margin-bottom: 10px;
  color: #222;
}

.box h3 {
  margin-top: 18px;
  font-size: 1.1rem;
  margin-bottom: 6px;
}

p {
  margin: 0 0 10px;
  line-height: 1.5;
  font-size: 0.96rem;
  color: #444;
}

ul {
  margin: 0 0 10px 18px;
  padding: 0;
}

li {
  margin-bottom: 4px;
}

.highlight-box {
  border-left: 4px solid #004b8d;
  background: #f7f9ff;
  padding: 10px 12px;
  border-radius: 4px;
  margin: 10px 0 16px;
}

/* ===== FIGURES ===== */

figure {
  margin: 16px 0 14px;
  padding: 10px 12px 12px;
  border-radius: 6px;
  background: #fafafa;
  border: 1px solid #ddd;
  text-align: center;
}

figure img {
  max-width: 60%;
  height: auto;
  border-radius: 4px;
}

figcaption {
  margin-top: 8px;
  font-size: 0.88rem;
  color: #555;
  text-align: left;
}

/* ===== FOOTER ===== */

footer {
  margin-top: 32px;
  font-size: 0.75rem;
  color: #888;
}

footer a {
  color: #004b8d;
  text-decoration: none;
}

footer a:hover {
  text-decoration: underline;
}

/* ===== RESPONSIVE ===== */

@media(max-width:900px) {
  header {
    flex-direction: column;
    text-align: center;
  }

  nav {
    margin-left: 0;
    padding-left: 0;
    margin-top: 10px;
    width: 100%;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
  }

  nav a {
    margin: 6px 10px;
  }

  figure img {
    max-width: 90%;
  }
}
/* ============================
   GLOSSARY (definition list)
   ============================ */

.glossary {
  margin: 0 0 20px 0;
  padding: 18px 22px;
  background: #fafafa;
  border: 1px solid #d0d0d0;
  border-radius: 10px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}

.glossary dt {
  font-weight: 600;
  font-size: 1rem;
  margin-top: 12px;
  color: #004b8d; /* matches your header/nav colour */
}

.glossary dd {
  margin: 3px 0 12px 0;
  padding-left: 12px;
  border-left: 3px solid #e0e0e0;
  font-size: 0.95rem;
  line-height: 1.45;
  color: #444;
}

.glossary dt:first-child {
  margin-top: 0;
}

