/* Local font-face definitions */
@font-face {
  font-family: "PT Sans Narrow";
  font-weight: 400;
  font-style: normal;
}

@font-face {
  font-family: "PT Sans Narrow";
  font-weight: 700;
  font-style: normal;
}

/* Global font and layout */
body {
  font-family: "PT Sans Narrow", sans-serif;
  background: #fff;
  color: #333;
  margin: 20px;
  font-size: 16px;
}

h1, h2, h3 {
  text-align: center;
  font-weight: 700;
}

/* Table layout */
table {
  border-collapse: separate;
  border-spacing: 0px 2px;
  width: 95%;
  margin: 20px auto;
}

/* t2 Header Row */
td.t2 {
  background-color: #000;
  color: #fff;
  font-weight: bold;
  text-align: left;
  padding: 8px 3px;
  font-size: 13px;
  border-radius: 0;
  
}

tr:first-child td.t2:first-child {
  border-top-left-radius: 5px;
  text-align:center;
}

tr:first-child td.t2:last-child {
  border-top-right-radius: 5px;
}

/* Table cells */
tr td {
  padding: 2px 2px;
  font-size: 13px;
  border: none;
  background: #fff;
  transition: background 0.3s ease;
  height:30px;
}

/* Row striping */
tr:nth-child(odd) td:not(.t2) {
  background: #eee;
box-shadow: rgba(0, 0, 0, 0.1) 0px -5px 3px -3px inset;
}

tr:nth-child(even) td:not(.t2) {
  background: #fbba00; /* yellow */
box-shadow: rgba(0, 0, 0, 0.1) 0px -5px 3px -3px inset;
}

/* No-wrap for swimmer and club names */
td.t1_left, td.t4_left {
  text-align: left;
  color: #444;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 115px;
}

td.t1_centre, td.t4_centre {
  text-align: left;
  color: #444;
border-left: 0px solid var(--sidebar-row-border, #dddddd);

}

td.t1_right, td.t4_right {
  text-align: left;
  color: #444;
}

td.t1_split, td.t4_split {
  font-size: 11px;
  text-align: left;
  color: #666;
}

/* All highlighted cells */
tr.highlight td {
  background-color: #C0E7E5 !important;
  font-weight: bold;
  color: #000;
  border-top: 0px solid #d4aa00;
  border-bottom: 0px solid #d4aa00;
  border-left: none;
  border-right: none;
}

/* First cell gets left border + rounding */
tr.highlight td:first-child {
  border-left: 0px solid #d4aa00;
  border-top-left-radius: 5px;
  border-bottom-left-radius: 5px;
}

/* Last cell gets right border + rounding */
tr.highlight td:last-child {
  border-right: 0px solid #d4aa00;
  border-top-right-radius: 5px;
  border-bottom-right-radius: 5px;
}

/* Hover effect */
tr:hover td:not(.t2) {
  background-color: #fce577;
}

/* Rounded ends for pill effect */
tr td:first-child {
  border-top-left-radius: 5px;
  border-bottom-left-radius: 5px;
}
tr td:first-child {
  text-align: center;
}

tr td:last-child {
  border-top-right-radius: 5px;
  border-bottom-right-radius: 5px;
}

/* Links */
a {
  color: #5b59b6;
  text-decoration: none;
}

a:hover {
  color: #4169e1;
  text-decoration: none;
}