/* Custom styles for LOBS5 website (extends template) */

/* Better paragraph readability */
p {
  line-height: 1.7em;
  font-size: 15px;
}

/* Center all images by default */
img {
  display: block;
  margin-left: auto;
  margin-right: auto;
}

/* Section headers */
h2 {
  margin-top: 2em;
  padding-bottom: 0.3em;
  border-bottom: 1px solid #eee;
}

/* Blockquote for TL;DR */
blockquote {
  border-left: none;
  border: 1px solid #d0d0d0;
  border-radius: 12px;
  padding: 25px 30px;
  margin: 25px 0;
  background-color: #f0f5fa;
  font-size: 15px;
  line-height: 1.7em;
  box-shadow: 0 1px 3px rgba(0,0,0,0.06);
}

blockquote p {
  margin: 0;
}

/* Data tables */
.data-table {
  width: 100%;
  border-collapse: collapse;
  margin: 1em 0;
  font-size: 14px;
}

.data-table th {
  background-color: #f5f5f5;
  border: 1px solid #ddd;
  padding: 8px 12px;
  text-align: left;
  font-weight: 700;
}

.data-table td {
  border: 1px solid #ddd;
  padding: 8px 12px;
}

.data-table tr:nth-child(even) {
  background-color: #fafafa;
}

/* Collapsible sections */
.collapsible {
  background-color: #f1f1f1;
  color: #333;
  cursor: pointer;
  padding: 12px 18px;
  width: 100%;
  border: 1px solid #ddd;
  border-radius: 4px;
  text-align: left;
  outline: none;
  font-size: 14px;
  margin-top: 10px;
  transition: background-color 0.3s;
}

.collapsible:hover {
  background-color: #e1e1e1;
}

.collapsible:after {
  content: '\25BC';
  float: right;
  font-size: 12px;
}

.collapsible.active:after {
  content: '\25B2';
}

.contentx {
  padding: 0 18px;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease-out;
  background-color: #fafafa;
  border: 1px solid #ddd;
  border-top: none;
  border-radius: 0 0 4px 4px;
}

.contentx.show {
  max-height: 2000px;
  padding: 12px 18px;
}

/* Footnotes */
.footnotes {
  margin-top: 3em;
  padding-top: 1em;
  border-top: 1px solid #ddd;
  font-size: 13px;
  color: #666;
}

.footnotes p {
  font-size: 13px;
  line-height: 1.5em;
}

/* Author list styling */
.author-list li {
  font-size: 15px;
}

/* Key metrics highlight */
.metric-highlight {
  font-weight: 700;
  color: #1772d0;
}

/* Figure captions */
.fig-caption {
  text-align: center;
  font-size: 13px;
  color: #666;
  margin-top: 8px;
  font-style: italic;
}

/* Open Questions */
.oq-item {
  margin-bottom: 10px;
}

.oq-btn {
  width: 100%;
  text-align: left;
  padding: 12px 18px;
  border: 1px solid #d0d0d0;
  border-radius: 8px;
  background: #fafafa;
  font-size: 15px;
  font-weight: 600;
  color: #333;
  cursor: pointer;
  transition: background 0.2s;
}

.oq-btn:hover {
  background: #f0f0f0;
}

.oq-num {
  display: inline-block;
  background: #1772d0;
  color: #fff;
  border-radius: 4px;
  padding: 2px 8px;
  font-size: 12px;
  margin-right: 8px;
  font-weight: 700;
}

.oq-body {
  padding: 12px 18px;
  border: 1px solid #e8e8e8;
  border-top: none;
  border-radius: 0 0 8px 8px;
  background: #fdfdfd;
}

.oq-body p {
  font-size: 14px;
  line-height: 1.7em;
}

.oq-comment-toggle {
  margin-top: 8px;
  padding-top: 8px;
  border-top: 1px dashed #e0e0e0;
}

/* giscus scaling handled via JS MutationObserver */

/* Pipeline diagram styling */
.pipeline-box {
  border: 2px solid #1772d0;
  border-radius: 8px;
  padding: 15px;
  margin: 10px 5px;
  text-align: center;
  background: linear-gradient(135deg, #f8f9ff 0%, #fff 100%);
}

.pipeline-arrow {
  font-size: 24px;
  color: #1772d0;
  text-align: center;
  padding: 5px 0;
}
