body {
  font-family: Arial, sans-serif;
  margin: 0;
  background: #f9fafb;
}

header {
  background: #166534;
  color: white;
  padding: 15px;
}

nav a {
  color: white;
  margin-right: 10px;
  text-decoration: none;
  padding: 6px 10px;
}

nav a:hover {
  background: #14532d;
}

.container {
  max-width: 1000px;
  margin: auto;
  padding: 20px;
}

.bracket {
  display: flex;
  gap: 40px;
  align-items: center;
}

.round {
  display: flex;
  flex-direction: column;
  gap: 30px;
}

.match.winner {
  font-size: 16px;
}

.bracket {
  display: flex;
  gap: 40px;
  align-items: center;
  overflow-x: auto;
}

.round {
  display: flex;
  flex-direction: column;
  gap: 25px;
}

.match {
  background: #f9fafb;
  border: 1px solid #ddd;
  border-radius: 6px;
  padding: 6px 10px;
  min-width: 130px;
}

.team {
  padding: 4px 0;
}

.team + .team {
  border-top: 1px solid #ddd;
}

.round h3 {
  margin-bottom: 5px;
  font-size: 14px;
  color: #166534;
}

.champion .match {
  background: #166534;
  color: white;
  font-weight: bold;
  text-align: center;
}

.match.winner {
  font-size: 16px;
}

.team.winner {
  font-weight: bold;
  color: #166534;
}

.card {
  background: white;
  padding: 15px;
  border: 1px solid #ddd;
  border-radius: 8px;
  margin-bottom: 30px;
}

table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 10px;
  font-size: 14px;
}

td {
  padding: 8px;
  border-bottom: 1px solid #ddd;
}

tr:nth-child(even) {
  background-color: #f9fafb;
}

tr:hover {
  background-color: #eef6ee;
}


th {
  background-color: #e5e7eb;
}
.hcp-up {
  color: #dc2626; /* red */
}

.hcp-down {
  color: #16a34a; /* green */
}

.hcp-even {
  color: #6b7280; /* gray */
}

/* Title spacing */
.subtitle {
  margin: 5px 0;
  color: #555;
}

.date {
  margin-bottom: 15px;
}

/* Table */
.hcp-report {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}

.hcp-report th {
  background-color: #166534;
  color: white;
  padding: 10px;
  text-align: left;
}

.hcp-report td {
  padding: 8px;
  border-bottom: 1px solid #e5e7eb;
}

/* Zebra rows */
.hcp-report tr:nth-child(even) {
  background-color: #f9fafb;
}

/* Hover effect */
.hcp-report tr:hover {
  background-color: #eef6ee;
}

/* Right align numbers */
.hcp-report td:nth-child(1),
.hcp-report td:nth-child(4),
.hcp-report td:nth-child(5),
.hcp-report td:nth-child(6),
.hcp-report td:nth-child(7) {
  text-align: right;
}

/* Align numeric columns (headers + data) */
.hcp-report th:nth-child(1),
.hcp-report th:nth-child(4),
.hcp-report th:nth-child(5),
.hcp-report th:nth-child(6),
.hcp-report th:nth-child(7)  {
  text-align: right;
}

.hcp-report th:nth-child(1),
.hcp-report td:nth-child(1) {
  width: 60px;
}

.hcp-report th:nth-child(2),
.hcp-report td:nth-child(2) {
  width: 200px;
}

.hcp-report th:nth-child(8),
.hcp-report td:nth-child(8) {
  text-align: center;
}

.hcp-report td,
.hcp-report th {
  padding: 8px 10px;
}

/* Change colors */
.up {
  color: #dc2626;
  font-weight: bold;
}

.down {
  color: #16a34a;
  font-weight: bold;
}

.even {
  color: #6b7280;
}

/* Legend */
.legend {
  margin-top: 15px;
  font-size: 13px;
  color: #444;
}

.hcp-report td:nth-child(2) {
  font-weight: 500;
}

.hcp-report thead {
  position: sticky;
  top: 0;
  z-index: 3;
}

.hcp-report thead th {
  background-color: #166534;
  color: white;
}

/* THIS creates the visible shadow */
.hcp-report thead tr {
  box-shadow: 0 4px 8px rgba(0,0,0,0.25);
}

.table-wrap {
  max-height: 500px;   /* adjust as needed */
  overflow-y: auto;
  border: 1px solid #ddd;
  border-radius: 6px;
}

/* Past winners table alignment */
table th:nth-child(1),
table td:nth-child(1) {
  text-align: right;
  width: 80px;
}

table th:nth-child(2),
table td:nth-child(2),
table th:nth-child(3),
table td:nth-child(3),
table th:nth-child(4),
table td:nth-child(4) {
  text-align: left;
}

table th,
table td {
  padding: 8px 12px;
}

table td:nth-child(4) {
  font-weight: 600;
  color: #166534;
}