/* Барометър на tibs (page-barometer.php). Mobile first. */

.bar-hero {
  background: radial-gradient(120% 90% at 85% 10%, rgba(93, 237, 154, 0.22) 0%, rgba(5, 7, 20, 0) 60%),
    linear-gradient(135deg, var(--bg-dark) 0%, #0a0820 100%);
  color: var(--text-light);
  padding: 6.5rem 0 2.5rem;
}

.bar-narrow {
  max-width: 860px;
}

.bar-eyebrow {
  display: block;
  color: var(--color-dna);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 0.5rem;
}

.bar-title {
  color: var(--text-light);
  font-size: clamp(1.8rem, 5vw, 2.75rem);
  line-height: 1.15;
  margin: 0 0 1rem;
}

.bar-lead {
  color: rgba(255, 255, 255, 0.8);
  font-size: 1.05rem;
  line-height: 1.6;
  margin: 0;
}

.bar-section {
  padding: 2.5rem 0;
}

.bar-section--gray {
  background: var(--bg-gray);
}

.bar-section h2 {
  font-size: clamp(1.4rem, 3.5vw, 1.8rem);
  margin: 2rem 0 1rem;
}

.bar-section h2:first-child {
  margin-top: 0;
}

.bar-findings {
  margin: 0;
  padding-left: 1.25rem;
  line-height: 1.7;
  font-size: 1.05rem;
}

.bar-findings li + li {
  margin-top: 0.4rem;
}

.bar-note {
  color: var(--text-muted);
  margin: 1rem 0 0;
}

/* Wide tables scroll inside their box, never the page. */
.bar-table-wrap {
  overflow-x: auto;
  margin: 0 0 1.75rem;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
}

.bar-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95rem;
  min-width: 480px;
}

.bar-table caption {
  text-align: left;
  font-weight: 600;
  padding: 0.85rem 1rem;
  border-bottom: 1px solid var(--border-color);
  background: var(--bg-gray);
}

.bar-table th,
.bar-table td {
  padding: 0.6rem 1rem;
  text-align: right;
  white-space: nowrap;
  border-bottom: 1px solid var(--border-color);
}

.bar-table th[scope="row"],
.bar-table thead th:first-child {
  text-align: left;
  font-weight: 500;
}

.bar-table thead th {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-muted);
}

.bar-table tbody tr:last-child th,
.bar-table tbody tr:last-child td {
  border-bottom: 0;
}

.bar-method {
  margin: 0 0 1.25rem;
  padding-left: 1.25rem;
  line-height: 1.7;
}

.bar-cite {
  margin: 0;
  padding: 0.85rem 1rem;
  border-left: 4px solid var(--color-dna);
  background: var(--bg-light);
  border-radius: var(--radius-sm);
}

.bar-cite a,
.bar-archive a,
.bar-dna a {
  color: var(--tibs-blue);
}

.bar-subscribe {
  margin-bottom: 2rem;
}

.bar-archive {
  padding-left: 1.25rem;
  line-height: 2;
}

.bar-archive a[aria-current="page"] {
  font-weight: 600;
  color: var(--text-dark);
}

.bar-dna {
  color: var(--text-muted);
}

@media (min-width: 1000px) {
  .bar-hero {
    padding: 8rem 0 3.5rem;
  }

  .bar-section {
    padding: 3.5rem 0;
  }
}
