/* Quiet scientific typography for OncoRef documentation and whitepaper */

.col-md-9 {
  max-width: 820px;
  line-height: 1.68;
  color: #1f2933;
}

.col-md-9 h1 {
  font-weight: 650;
  letter-spacing: -0.015em;
  margin-bottom: 0.45rem;
  color: #102a43;
}

.col-md-9 h2 {
  margin-top: 2.75rem;
  margin-bottom: 0.85rem;
  padding-top: 1.1rem;
  border-top: 1px solid #d9e2ec;
  font-weight: 600;
  color: #102a43;
}

.col-md-9 h3 {
  margin-top: 1.8rem;
  margin-bottom: 0.6rem;
  font-weight: 600;
  color: #243b53;
}

/* Compact top jump-to bar for long technical pages */
.col-md-9 .section-nav {
  font-size: 0.88rem;
  line-height: 1.6;
  color: #486581;
  padding: 0.45rem 0 0.65rem 0;
  margin: 0.35rem 0 1.25rem 0;
  border-top: 1px solid #e4ebf1;
  border-bottom: 1px solid #e4ebf1;
}

.col-md-9 .section-nav a {
  text-decoration: none;
}

.col-md-9 .section-nav a:hover {
  text-decoration: underline;
}

/* Minimal typographic blockquote (no tinted card background) */
.col-md-9 blockquote {
  background: transparent;
  border-left: 2px solid #9fb3c8;
  padding: 0.15rem 0 0.15rem 1.05rem;
  margin: 1.25rem 0;
  color: #334e68;
}

.col-md-9 blockquote p:last-child {
  margin-bottom: 0;
}

/* Borderless scientific figures and captions */
.col-md-9 img {
  display: block;
  max-width: 100%;
  height: auto;
  margin: 1.65rem auto 0.55rem auto;
}

.col-md-9 p > em:first-child:last-child {
  display: block;
  color: #486581;
  font-size: 0.9rem;
  line-height: 1.52;
  margin-bottom: 1.5rem;
}

/* Booktabs-style scientific tables */
.col-md-9 table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.15rem 0 1.55rem 0;
  font-size: 0.9rem;
  line-height: 1.45;
  font-variant-numeric: tabular-nums;
}

.col-md-9 table thead th {
  background: transparent;
  color: #102a43;
  font-weight: 600;
  border-top: 1.5px solid #486581;
  border-bottom: 1px solid #829ab1;
  padding: 0.52rem 0.65rem;
  text-align: left;
  vertical-align: bottom;
}

.col-md-9 table tbody td {
  border-bottom: 1px solid #e4ebf1;
  padding: 0.48rem 0.65rem;
  vertical-align: top;
}

.col-md-9 table tbody tr:last-child td {
  border-bottom: 1.5px solid #486581;
}

/* Quiet disclosure toggles without card chrome */
.col-md-9 details {
  margin: 1.15rem 0 1.5rem 0;
  padding: 0.45rem 0 0.45rem 0.9rem;
  border-left: 2px solid #d9e2ec;
}

.col-md-9 details > summary {
  cursor: pointer;
  font-weight: 600;
  color: #243b53;
  list-style: disclosure-closed inside;
}

.col-md-9 details[open] > summary {
  list-style: disclosure-open inside;
  margin-bottom: 0.75rem;
}

.col-md-9 code {
  font-size: 0.87em;
  background: #f0f4f8;
  color: #102a43;
  padding: 0.1em 0.3em;
  border-radius: 3px;
}

/* Semantic category and patient-choice inline tags (matched to figure palette) */
.cat {
  display: inline-block;
  font-size: 0.84em;
  font-weight: 600;
  line-height: 1.25;
  padding: 0.08em 0.44em;
  border-radius: 3px;
  border: 1px solid transparent;
  letter-spacing: 0.01em;
  vertical-align: baseline;
  white-space: nowrap;
}

.cat-cta {
  color: #1d573c;
  background: #ebf5ef;
  border-color: #b7d9c6;
}

.cat-ca {
  color: #1a567b;
  background: #ebf4fa;
  border-color: #b4d2e6;
}

.cat-ra {
  color: #266049;
  background: #f0f7f4;
  border-color: #c2dfd3;
}

.cat-other {
  color: #785416;
  background: #fbf5e7;
  border-color: #e4d1a3;
}

.cat-unsafe {
  color: #8c2d2a;
  background: #fbeeed;
  border-color: #e4b8b6;
}

.cat-protect {
  color: #8c2d2a;
  background: #fdf2f2;
  border-color: #e6bdbb;
}

.cat-loss {
  color: #785416;
  background: #fbf6e9;
  border-color: #e5d2a4;
}

.cat-absent {
  color: #1f5578;
  background: #eef5fa;
  border-color: #b8d3e6;
}
