/* ===== Lifetime Laps Page Shell ===== */

.page-lifetime-laps {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: radial-gradient(circle at top, #fffd80 0, #ff9bd6 40%, #431f6b 80%, #14061f 100%);
  color: #fdfbff;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.lifetime-site-header {
  padding: 1rem 1.5rem;
}

.lifetime-header-inner {
  max-width: 1000px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.lifetime-logo-lockup {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.lifetime-logo-text {
  font-weight: 800;
  font-size: 1.3rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-decoration: none;
  color: #12040f;
  padding: 0.25rem 0.7rem;
  border-radius: 999px;
  background: #ffe600;
  box-shadow: 0 0 0 2px #12040f;
}

.lifetime-tagline {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: #ffeef6;
}

.lifetime-nav {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.lifetime-nav-link {
  font-size: 0.85rem;
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  padding: 0.35rem 0.7rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.6);
  color: #fff4ff;
  background: rgba(0, 0, 0, 0.1);
}

.lifetime-nav-link--active {
  background: #ff6fd6;
  color: #210714;
  border-color: #ffd83b;
}

.lifetime-main {
  flex: 1;
  display: flex;
  flex-direction: column;   /* stack sections top → bottom */
  align-items: center;      /* center them horizontally */
  padding: 2rem 1rem 3rem;
  gap: 2rem;                /* space between leaderboard and house laps */
}


.lifetime-site-footer {
  text-align: center;
  font-size: 0.8rem;
  padding: 1rem;
  color: rgba(255, 244, 255, 0.85);
}

/* ===== Lifetime Leaderboard Block ===== */

.catlap-lifetime {
  padding: 0;
  display: flex;
  justify-content: center;
  width: 100%;
}

.catlap-lifetime-inner {
  width: 100%;
  max-width: 900px;
  background: #1b1030;
  border-radius: 16px;
  border: 2px solid #ffd83b;
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.4);
  padding: 2rem 1.75rem 2.5rem;
}

.catlap-lifetime-header {
  text-align: center;
  margin-bottom: 1.5rem;
}

.catlap-lifetime-header h1 {
  font-size: 2rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #ffe600;
  margin-bottom: 0.5rem;
}

.catlap-lifetime-subtitle {
  font-size: 0.95rem;
  color: #f3f0ff;
  opacity: 0.9;
}

.catlap-lifetime-note {
  margin-bottom: 1.5rem;
  font-size: 0.95rem;
  color: #f3f0ff;
}

/* Table */

.catlap-lifetime-table-wrapper {
  overflow-x: auto;
  margin-bottom: 1.5rem;
}

.catlap-lifetime-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95rem;
}

.catlap-lifetime-table thead {
  background: #31205c;
}

.catlap-lifetime-table th,
.catlap-lifetime-table td {
  padding: 0.75rem 0.6rem;
  text-align: left;
}

.catlap-lifetime-table th {
  font-weight: 700;
  text-transform: uppercase;
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  color: #ffe600;
  border-bottom: 2px solid #ffd83b;
}

.catlap-lifetime-table tbody tr:nth-child(odd) {
  background: rgba(255, 255, 255, 0.03);
}

.catlap-lifetime-table tbody tr:nth-child(even) {
  background: rgba(255, 255, 255, 0.08);
}

.catlap-lifetime-table td {
  color: #fdfbff;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.catlap-lifetime-table td.rank {
  font-weight: 700;
  width: 3rem;
}

.catlap-lifetime-table td.runner {
  font-weight: 600;
}

.catlap-lifetime-table td.laps-total {
  font-weight: 700;
}

.catlap-lifetime-table td.format {
  white-space: nowrap;
}

/* Race format tags */

.race-tag {
  display: inline-block;
  padding: 0.15rem 0.6rem;
  border-radius: 999px;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 700;
  border: 1px solid rgba(255, 255, 255, 0.5);
}

.race-tag--three-hour {
  background: #2dd6ff;
  color: #071021;
}

.race-tag--last-cat {
  background: #ff6fd6;
  color: #210714;
}

/* Footer inside card */

.catlap-lifetime-footer {
  margin-top: 1rem;
  font-size: 0.9rem;
  text-align: center;
  color: #f3f0ff;
  opacity: 0.95;
}

/* Mobile */

@media (max-width: 700px) {
  .lifetime-header-inner {
    flex-direction: column;
    align-items: flex-start;
  }

  .lifetime-main {
    padding: 1.5rem 0.75rem 2.5rem;
  }

  .catlap-lifetime-inner {
    padding: 1.5rem 1.1rem 2rem;
  }

  .catlap-lifetime-header h1 {
    font-size: 1.6rem;
  }

  .catlap-lifetime-table th,
  .catlap-lifetime-table td {
    padding: 0.6rem 0.4rem;
  }

  .race-tag {
    font-size: 0.7rem;
    padding: 0.1rem 0.5rem;
  }
}

/* ===== Trail Work Crew ===== */

.catlap-trailwork {
  width: 100%;
  display: flex;
  justify-content: center;
  margin-top: 2rem;
}

.catlap-trail-inner {
  width: 100%;
  max-width: 900px;
  background: #082621;
  border-radius: 16px;
  border: 2px solid #8fffd4;
  box-shadow: 0 0 16px rgba(0, 0, 0, 0.35);
  padding: 1.75rem 1.5rem 2rem;
}

.catlap-trail-header {
  margin-bottom: 1.25rem;
  text-align: left;
}

.catlap-trail-header h2 {
  font-size: 1.4rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #8fffd4;
  margin-bottom: 0.35rem;
}

.catlap-trail-subtitle {
  font-size: 0.95rem;
  color: #e9fff8;
  opacity: 0.95;
}

/* Table */

.catlap-trail-table-wrapper {
  overflow-x: auto;
  margin-bottom: 1rem;
}

.catlap-trail-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95rem;
}

.catlap-trail-table thead {
  background: #0f3a33;
}

.catlap-trail-table th,
.catlap-trail-table td {
  padding: 0.7rem 0.6rem;
  text-align: left;
}

.catlap-trail-table th {
  font-weight: 700;
  text-transform: uppercase;
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  color: #d2fff3;
  border-bottom: 2px solid rgba(208, 255, 238, 0.8);
}

.catlap-trail-table tbody tr:nth-child(odd) {
  background: rgba(255, 255, 255, 0.03);
}

.catlap-trail-table tbody tr:nth-child(even) {
  background: rgba(255, 255, 255, 0.08);
}

.catlap-trail-table td {
  color: #fdfbff;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.catlap-trail-table td.trail-name {
  font-weight: 600;
  width: 7rem;
}

.catlap-trail-table td.trail-notes {
  font-size: 0.9rem;
  opacity: 0.95;
}

/* Note */

.catlap-trail-note {
  font-size: 0.85rem;
  color: rgba(226, 255, 247, 0.95);
  margin-top: 0.25rem;
}

/* Mobile tweaks for trail work */

@media (max-width: 700px) {
  .catlap-trail-inner {
    padding: 1.4rem 1.05rem 1.8rem;
  }

  .catlap-trail-header h2 {
    font-size: 1.2rem;
  }

  .catlap-trail-table th,
  .catlap-trail-table td {
    padding: 0.6rem 0.4rem;
  }
}

/* ===== House and Visitor Laps ===== */

.catlap-house-laps {
  width: 100%;
  display: flex;
  justify-content: center;
  margin-top: 2rem;
}

.catlap-house-inner {
  width: 100%;
  max-width: 900px;
  background: rgba(27, 16, 48, 0.94);
  border-radius: 16px;
  border: 2px dashed #ffb6ff;
  box-shadow: 0 0 16px rgba(0, 0, 0, 0.35);
  padding: 1.75rem 1.5rem 2rem;
}

.catlap-house-header {
  margin-bottom: 1.25rem;
  text-align: left;
}

.catlap-house-header h2 {
  font-size: 1.4rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #ffb6ff;
  margin-bottom: 0.35rem;
}

.catlap-house-subtitle {
  font-size: 0.95rem;
  color: #f3f0ff;
  opacity: 0.9;
}

/* Table */

.catlap-house-table-wrapper {
  overflow-x: auto;
  margin-bottom: 1rem;
}

.catlap-house-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95rem;
}

.catlap-house-table thead {
  background: #3b255f;
}

.catlap-house-table th,
.catlap-house-table td {
  padding: 0.7rem 0.6rem;
  text-align: left;
}

.catlap-house-table th {
  font-weight: 700;
  text-transform: uppercase;
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  color: #ffe6ff;
  border-bottom: 2px solid rgba(255, 214, 255, 0.7);
}

.catlap-house-table tbody tr:nth-child(odd) {
  background: rgba(255, 255, 255, 0.03);
}

.catlap-house-table tbody tr:nth-child(even) {
  background: rgba(255, 255, 255, 0.08);
}

.catlap-house-table td {
  color: #fdfbff;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.catlap-house-table td.house-runner {
  font-weight: 600;
}

.catlap-house-table td.house-laps {
  font-weight: 700;
  width: 6rem;
}

.catlap-house-table td.house-notes {
  font-size: 0.9rem;
  opacity: 0.95;
}

.house-laps-unknown {
  opacity: 0.7;
  font-style: italic;
}

/* Note */

.catlap-house-note {
  font-size: 0.85rem;
  color: rgba(243, 240, 255, 0.9);
  margin-top: 0.25rem;
}

/* Mobile tweaks for house laps */

@media (max-width: 700px) {
  .catlap-house-inner {
    padding: 1.4rem 1.05rem 1.8rem;
  }

  .catlap-house-header h2 {
    font-size: 1.2rem;
  }

  .catlap-house-table th,
  .catlap-house-table td {
    padding: 0.6rem 0.4rem;
  }
}
