/* ===== RESEARCH LIBRARY HEADER ===== */
.lib-header {
  background: var(--ink);
  padding: 56px 40px 40px;
}

.lib-eyebrow {
  font-size: 10px; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--gold-l); margin-bottom: 16px;
  display: flex; align-items: center; gap: 10px;
}
.lib-eyebrow::before { content: ''; width: 22px; height: 1px; background: var(--gold); }

.lib-header h1 {
  font-family: var(--fd); font-size: 38px; font-weight: 400;
  color: #fff; line-height: 1.15; margin-bottom: 12px;
}

.lib-header p {
  font-size: 14px; color: rgba(255,255,255,0.48);
  line-height: 1.75; max-width: 520px;
}

/* ===== TABS ===== */
.tabs-bar {
  background: var(--ink);
  padding: 0 40px;
  border-bottom: 1px solid rgba(255,255,255,0.06);
  display: flex; gap: 0;
  overflow-x: auto;
  position: sticky; top: 58px; z-index: 90;
}

.tab-btn {
  font-size: 11px; letter-spacing: 0.06em;
  color: rgba(255,255,255,0.38);
  padding: 15px 22px;
  cursor: pointer;
  border: none; border-bottom: 2px solid transparent;
  background: none; white-space: nowrap;
  font-family: var(--fb);
  transition: color 0.15s;
}
.tab-btn.active { color: var(--gold-l); border-bottom-color: var(--gold); }
.tab-btn:hover:not(.active) { color: rgba(255,255,255,0.7); }

/* ===== ARTICLE PANE ===== */
.article-pane { display: none; }
.article-pane.active { display: block; }

/* ===== ARTICLE HERO ===== */
.art-hero {
  padding: 52px 40px 44px;
  border-bottom: 1px solid var(--border);
  max-width: 860px;
}

.art-meta {
  display: flex; gap: 10px; align-items: center;
  margin-bottom: 20px; flex-wrap: wrap;
}

.art-tag {
  font-size: 10px; letter-spacing: 0.1em; text-transform: uppercase;
  padding: 4px 11px; font-weight: 500;
}
.art-tag.gold { background: rgba(184,150,46,0.1); color: var(--gold); }
.art-tag.sage { background: var(--sage-p); color: var(--sage); }
.art-tag.stone { background: var(--stone); color: var(--mid); border: 1px solid var(--border); }

.art-date { font-size: 11px; color: var(--mid); }

.art-hero h2 {
  font-family: var(--fd); font-size: 30px; font-weight: 400;
  line-height: 1.22; color: var(--ink); margin-bottom: 16px;
}

.art-deck {
  font-size: 15px; color: var(--mid); line-height: 1.78; max-width: 640px;
}

/* ===== ARTICLE BODY ===== */
.art-body {
  display: grid; grid-template-columns: 1fr 220px;
  gap: 48px; padding: 48px 40px;
  max-width: 1040px;
}

.art-lede {
  font-size: 15px; line-height: 1.82; color: var(--ink);
  margin-bottom: 32px; font-weight: 300;
}

.art-h3 {
  font-family: var(--fd); font-size: 20px; font-weight: 400;
  color: var(--ink); margin: 36px 0 14px;
}

.art-p {
  font-size: 13px; line-height: 1.82; color: #3a4a3e;
  margin-bottom: 16px;
}

/* ===== DATA ROW ===== */
.data-row {
  display: flex; gap: 0; margin: 28px 0;
  border: 1px solid var(--border);
}

.data-cell {
  flex: 1; padding: 20px 18px;
  border-right: 1px solid var(--border); text-align: center;
}
.data-cell:last-child { border-right: none; }

.data-n {
  font-family: var(--fd); font-size: 30px; font-weight: 400;
  color: var(--sage); line-height: 1;
}
.data-n.gold { color: var(--gold); }

.data-l { font-size: 11px; color: var(--mid); margin-top: 6px; line-height: 1.45; }

/* ===== PULLQUOTE ===== */
.pullquote {
  border-left: 3px solid var(--gold);
  padding: 18px 22px; margin: 32px 0;
  background: rgba(184,150,46,0.04);
}

.pullquote p {
  font-family: var(--fd); font-size: 17px; font-style: italic;
  color: var(--ink); line-height: 1.52;
}

.pullquote cite {
  font-size: 11px; color: var(--mid); display: block;
  margin-top: 10px; font-style: normal; letter-spacing: 0.04em;
}

/* ===== CHART ===== */
.chart-wrap {
  margin: 28px 0; border: 1px solid var(--border);
  background: #fff; padding: 22px;
}

.chart-title {
  font-size: 11px; letter-spacing: 0.07em; text-transform: uppercase;
  color: var(--mid); margin-bottom: 18px;
}

.bar-chart { display: flex; flex-direction: column; gap: 11px; }

.bar-row { display: flex; align-items: center; gap: 10px; }

.bar-label { font-size: 11px; color: var(--mid); width: 130px; text-align: right; flex-shrink: 0; }

.bar-track { flex: 1; background: var(--stone); height: 24px; position: relative; }

.bar-fill {
  height: 100%; background: var(--sage);
  position: absolute; left: 0; top: 0;
}
.bar-fill.gold { background: var(--gold); }
.bar-fill.mid { background: var(--sage-l); }

.bar-val { font-size: 11px; font-weight: 500; color: var(--ink); white-space: nowrap; min-width: 44px; }

/* ===== MECHANISM GRID (in articles) ===== */
.mech-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin: 28px 0; }

.mech-card { background: var(--stone); padding: 20px; }

.mech-n {
  font-family: var(--fd); font-size: 24px; color: var(--sage-m);
  margin-bottom: 8px; line-height: 1;
}

.mech-t { font-size: 13px; font-weight: 500; color: var(--ink); margin-bottom: 8px; }

.mech-b { font-size: 12px; color: var(--mid); line-height: 1.58; }

/* ===== TIMELINE ===== */
.timeline { margin: 28px 0; }

.tl-item {
  display: grid; grid-template-columns: 90px 1fr;
  margin-bottom: 0;
}

.tl-year {
  font-family: var(--fd); font-size: 14px; color: var(--gold);
  padding: 16px 16px 16px 0; text-align: right;
  border-right: 2px solid var(--sage-m);
}

.tl-content { padding: 16px 0 16px 24px; }

.tl-title { font-size: 13px; font-weight: 500; color: var(--ink); margin-bottom: 4px; }

.tl-text { font-size: 12px; color: var(--mid); line-height: 1.6; }

/* ===== SIDEBAR ===== */
.art-sidebar {}

.sidebar-card {
  background: #fff; border: 1px solid var(--border);
  padding: 18px; margin-bottom: 14px;
}

.sc-title {
  font-size: 10px; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--mid); margin-bottom: 10px;
}

.sc-stat {
  font-family: var(--fd); font-size: 28px; color: var(--sage);
  line-height: 1; margin-bottom: 6px;
}
.sc-stat.gold { color: var(--gold); }

.sc-desc { font-size: 11px; color: var(--mid); line-height: 1.52; }

.sc-source {
  font-size: 10px; color: var(--sage-m); margin-top: 10px;
  font-style: italic; border-top: 1px solid var(--border);
  padding-top: 10px; line-height: 1.4;
}

/* ===== COMPARISON TABLE ===== */
.comp-table {
  width: 100%; border-collapse: collapse;
  margin: 28px 0; font-size: 12px;
}

.comp-table th {
  background: var(--ink); color: rgba(255,255,255,0.65);
  padding: 11px 14px; text-align: left;
  font-weight: 400; font-size: 10px;
  letter-spacing: 0.08em; text-transform: uppercase;
}

.comp-table td {
  padding: 11px 14px; border-bottom: 1px solid var(--border);
  vertical-align: top; line-height: 1.55;
}

.comp-table tr:last-child td { border-bottom: none; }
.comp-table tr:hover td { background: var(--sage-p); }

.td-company { font-weight: 500; color: var(--ink); }
.td-win { color: var(--sage); font-weight: 500; }
.td-mid { color: var(--gold); font-weight: 500; }
.td-low { color: var(--mid); }

/* ===== FOOTNOTES ===== */
.fn-list {
  margin-top: 44px; padding-top: 28px; border-top: 1px solid var(--border);
}

.fn-title {
  font-size: 10px; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--mid); margin-bottom: 14px;
}

.fn-item {
  font-size: 11px; color: var(--mid); line-height: 1.65;
  margin-bottom: 7px; padding-left: 16px; position: relative;
}
.fn-item::before { content: '·'; position: absolute; left: 0; color: var(--gold); }

/* ===== ARTICLE FOOTER ===== */
.art-footer {
  background: var(--stone); padding: 26px 40px;
  border-top: 1px solid var(--border);
  display: flex; justify-content: space-between; align-items: center;
}

.af-credit { font-size: 12px; color: var(--mid); }

.af-nav { display: flex; gap: 12px; }

.af-btn {
  font-size: 11px; letter-spacing: 0.07em; text-transform: uppercase;
  color: var(--sage); cursor: pointer;
  border: 1px solid var(--sage-m); padding: 8px 16px;
  background: none; font-family: var(--fb);
  transition: background 0.15s, color 0.15s;
}
.af-btn:hover { background: var(--sage); color: #fff; border-color: var(--sage); }
