.data {
  margin: 30px auto;
  max-width: 1200px;
  border-radius: 10px;
}

.data-container {
  padding: 50px 0;
}

.data-h1 {
  text-align: center;
  text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5);
}

.data-subtitle {
  text-align: center;
  font-size: 1.1rem;
  color: #ccc;
  margin: 0;
  text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5);
}

.dividerwhite {
  display: flex;
  width: 100%;
  max-width: 1200px;
  height: 3px;
  margin: 20px auto;
  background-color: white;
  border-radius: 5px;
}

/* Data index links */

.data-links {
  display: flex;
  flex-direction: column;
  gap: 15px;
  margin-top: 20px;
}

.data-link {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 20px;
  padding: 20px 25px;
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  text-decoration: none;
  color: white;
  transition: background-color 0.2s ease;
}

.data-link:hover {
  background-color: rgba(255, 255, 255, 0.2);
  text-decoration: none;
}

.data-link-label {
  font-size: 1.3rem;
  font-weight: bold;
  white-space: nowrap;
  text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5);
}

.data-link-description {
  font-size: 1rem;
  color: #ccc;
  text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5);
}

/* Appendix content */

.data-content {
  padding: 30px;
  margin-top: 20px;
  line-height: 1.8;
  font-size: 1rem;
  background-color: #fff;
  color: #000;
  border-radius: 8px;
}

.data-content p {
  margin-bottom: 15px;
}

/* Date headings */

.data-date {
  font-size: 1.3rem;
  font-weight: bold;
  margin-top: 30px;
  margin-bottom: 10px;
  color: #000;
}

/* Debate labels */

.data-debate {
  font-weight: bold;
  font-style: italic;
  color: #8b6914;
}

/* Table styles */

.data-table-wrapper {
  overflow-x: auto;
  margin: 20px 0;
}

.data-table {
  width: 100%;
  border-collapse: collapse;
}

.data-table thead {
  background-color: #333;
  color: #fff;
}

.data-table th {
  padding: 12px 16px;
  text-align: center;
  font-weight: bold;
  font-size: 0.95rem;
  white-space: nowrap;
}

.data-table td {
  padding: 10px 16px;
  font-size: 0.95rem;
  text-align: center;
  white-space: nowrap;
}

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

.data-table-totals {
  background-color: #e0e0e0;
}

.data-section-start {
  border-left: 3px solid #fff;
}

.data-footnote {
  font-size: 0.85rem;
  font-style: italic;
  color: #555;
}

/* Chart images */

.data-chart {
  margin: 30px 0;
  text-align: center;
}

.data-chart img {
  max-width: 600px;
  width: 100%;
  height: auto;
  border-radius: 8px;
}

.data-chart + .data-chart {
  margin-top: 200px;
}

/* Navigation links */

.data-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 40px;
  padding-top: 20px;
  border-top: 1px solid #ddd;
}

.data-nav-link {
  color: #333;
  text-decoration: none;
  font-size: 1rem;
}

.data-nav-link:hover {
  text-decoration: underline;
}

/* Responsive */

@media screen and (max-width: 600px) {
  .data-link {
    flex-direction: column;
    align-items: flex-start;
    gap: 5px;
  }

  .data-table th,
  .data-table td {
    padding: 8px 10px;
    font-size: 0.85rem;
  }
}
