/* ── Font Awesome ───────────────────────────────────────────────────────── */
@import url("https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.5.0/css/all.min.css");

/* ── Page width ─────────────────────────────────────────────────────────── */
/* Widen the main content column without touching Bootstrap grid classes    */
/* bs4_book layout: left nav (col-lg-3) + main (col-lg-7) + right TOC (col-lg-2) */
@media (min-width: 992px) {
  main#content {
    flex: 0 0 66.666% !important;
    max-width: 66.666% !important;
  }
  .sidebar-chapter {
    flex: 0 0 8.333% !important;
    max-width: 8.333% !important;
  }
}

@media (min-width: 1200px) {
  main#content {
    flex: 0 0 70% !important;
    max-width: 70% !important;
  }
  .sidebar-chapter {
    flex: 0 0 10% !important;
    max-width: 10% !important;
  }
}

/* ── Headings ────────────────────────────────────────────────────────────── */
.section.level1 h1 {
  font-size: 48px !important;
}

.section.level2 h2 {
  font-size: 32px !important;
  margin: 48px 0px 8px;
}

.section.level3 h3 {
  font-size: 24px !important;
  margin: 32px 0px 8px;
}

p, li {
  font-size: 16px;
  margin: 0 0 8px;
}

body, p {
  text-align: justify;
}

code {
  color: #D63384;
  background-color: transparent;
  font-size: 14px;
}

.table thead {
  font-size: 14px;
  padding: 8px 24px 8px;
}
.table thead th {
  border-top: 0px;
  border-bottom: 2px solid #dee2e6;
}
.table tbody {
  font-size: 14px;
  text-align: left;
}

pre {
  font-size: 14px;
  color: #212529;
  background-color: #F8F9FA;
  margin: 0 0 0 0;
  padding: 12px 20px;
}

.example-table {
  background: #f8f9fa;
  font-size: 14px;
  border: 1px solid #ddd;
  border-radius: 4px;
  padding: 12px;
  margin: 16px 0;
  font-family: monospace;
}
.example-table thead th {
  border-bottom: 1px solid #000000;
}
.example-table p {
  font-family: monospace;
  font-size: 14px;
}

/* ── Dataset colour labels (inline in text) ─────────────────────────────── */
.somatic    { background-color: #90EE90; padding: 2px 5px; border-radius: 3px; font-weight: 500; }
.germline   { background-color: #2d5016; color: white; padding: 2px 5px; border-radius: 3px; font-weight: 500; }
.fusion     { background-color: #FFB6C1; padding: 2px 5px; border-radius: 3px; font-weight: 500; }
.expression { background-color: #87CEEB; padding: 2px 5px; border-radius: 3px; font-weight: 500; }
.shared     { background-color: #FFD700; padding: 2px 5px; border-radius: 3px; font-weight: 500; }

/* ── File cards grid ────────────────────────────────────────────────────── */
.file-cards-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin: 24px 0 32px;
}

@media (max-width: 768px) {
  .file-cards-grid { grid-template-columns: 1fr; }
}

.file-card {
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid #dee2e6;
  background: #ffffff;
  box-shadow: 0 1px 4px rgba(0,0,0,0.08);
}

.file-card-header {
  padding: 10px 16px;
  font-weight: 600;
  font-size: 15px;
  color: #ffffff;
  display: flex;
  align-items: center;
  gap: 10px;
}

.file-card-header i {
  font-size: 16px;
  width: 18px;
  text-align: center;
}

.file-card-header.somatic-header    { background-color: #5a9e2f; }
.file-card-header.germline-header   { background-color: #45818e; }
.file-card-header.fusion-header     { background-color: #b8860b; }
.file-card-header.expression-header { background-color: #3c78d8; }

.file-card-body {
  padding: 12px 16px;
}

.file-section-label {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #6c757d;
  margin: 8px 0 5px;
}

.file-item {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  padding: 3px 0;
  font-size: 14px;
  color: #212529;
  line-height: 1.45;
}

.file-item.optional {
  color: #6c757d;
}

.file-item .fi-icon {
  flex-shrink: 0;
  width: 16px;
  margin-top: 2px;
  text-align: center;
  font-size: 13px;
}

.file-item.optional .fi-icon {
  color: #adb5bd;
}

.file-item.required .fi-icon {
  color: #5a9e2f;
}

.file-item code {
  font-size: 12px !important;
  background: #f1f3f5 !important;
  padding: 1px 4px !important;
  border-radius: 3px !important;
  color: #c0392b !important;
}

.file-card-divider {
  border: none;
  border-top: 1px solid #f0f0f0;
  margin: 10px 0;
}

/* ── Keyword badges in naming rules table ───────────────────────────────── */
.kw-badge {
  display: inline-block;
  font-family: monospace;
  font-size: 12px;
  padding: 2px 7px;
  border-radius: 4px;
  font-weight: 600;
  white-space: nowrap;
  margin: 1px 2px;
}
.kw-required  { background: #d4edda; color: #155724; }
.kw-forbidden { background: #f8d7da; color: #721c24; }
