:root {
  --test-blue: #0b74de;
  --test-ink: #0f172a;
  --test-muted: #64748b;
  --test-line: #e2e8f0;
  --test-soft: #f8fafc;
  --test-green: #16a34a;
}

body {
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--test-ink);
  background: #fff;
}

.tka-test-shell {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
}

.tka-test-header {
  position: sticky;
  top: 0;
  z-index: 1030;
  background: rgba(255, 255, 255, .96);
  border-bottom: 1px solid var(--test-line);
  box-shadow: 0 8px 24px rgba(15, 23, 42, .06);
  backdrop-filter: blur(14px);
}

.tka-test-nav {
  min-height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.tka-test-brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--test-ink);
  font-weight: 900;
  text-decoration: none;
  white-space: nowrap;
}

.tka-test-brand:hover {
  color: var(--test-ink);
  text-decoration: none;
}

.tka-test-brand img {
  height: 40px;
  width: auto;
}

.tka-test-brand span {
  display: grid;
  line-height: 1.05;
}

.tka-test-brand small {
  color: var(--test-muted);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .03em;
  text-transform: uppercase;
}

.tka-test-links {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 4px;
}

.tka-test-links a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  padding: 8px 11px;
  border-radius: 999px;
  color: #334155;
  font-size: 14px;
  font-weight: 800;
  text-decoration: none;
}

.tka-test-links a:hover {
  background: #eff6ff;
  color: var(--test-blue);
  text-decoration: none;
}

.tka-test-links .tka-test-cta,
.tka-test-cta {
  background: var(--test-blue);
  color: #fff;
  padding: 9px 16px;
  box-shadow: 0 10px 22px rgba(11, 116, 222, .18);
}

.tka-test-main {
  min-height: 60vh;
}

.tka-test-hero {
  padding: 76px 0 68px;
  background:
    radial-gradient(circle at 12% 18%, rgba(11, 116, 222, .14), transparent 28%),
    radial-gradient(circle at 84% 26%, rgba(22, 163, 74, .13), transparent 28%),
    linear-gradient(135deg, #f8fbff 0%, #fff 52%, #f3fbf7 100%);
  border-bottom: 1px solid var(--test-line);
}

.tka-test-hero-simple {
  padding: 52px 0 44px;
}

.tka-test-hero-simple h1 {
  max-width: 780px;
  margin-bottom: 20px;
}

.tka-test-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(340px, .92fr);
  gap: 42px;
  align-items: center;
}

.tka-kicker {
  display: inline-flex;
  margin-bottom: 14px;
  color: var(--test-blue);
  font-size: 13px;
  font-weight: 900;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.tka-test-hero h1,
.tka-test-hub-hero h1 {
  margin: 0 0 16px;
  color: #0b1220;
  font-size: clamp(38px, 5vw, 70px);
  line-height: 1;
  font-weight: 900;
}

.tka-test-hero p,
.tka-test-hub-hero p {
  max-width: 740px;
  color: #475569;
  font-size: 18px;
  line-height: 1.75;
}

.tka-test-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 24px;
}

.tka-test-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 12px 18px;
  border-radius: 8px;
  border: 1px solid transparent;
  font-weight: 900;
  text-decoration: none;
}

.tka-test-button:hover {
  text-decoration: none;
}

.tka-test-button-primary {
  background: var(--test-blue);
  color: #fff;
}

.tka-test-button-secondary {
  background: #fff;
  border-color: var(--test-line);
  color: var(--test-ink);
}

.tka-test-panel,
.tka-test-card,
.tka-topic-card {
  border: 1px solid var(--test-line);
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 18px 48px rgba(15, 23, 42, .075);
}

.tka-test-panel {
  padding: 24px;
}

.tka-test-panel h2 {
  margin: 0 0 16px;
  color: #064d87;
  font-size: 24px;
  font-weight: 900;
}

.tka-test-stats {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.tka-test-stat {
  padding: 16px;
  border-radius: 12px;
  background: #f8fafc;
}

.tka-test-stat strong {
  display: block;
  color: var(--test-blue);
  font-size: 24px;
  font-weight: 900;
}

.tka-test-stat span {
  color: var(--test-muted);
  font-weight: 800;
}

.tka-test-section {
  padding: 58px 0;
}

.tka-test-section h2 {
  margin: 0 0 10px;
  font-size: 34px;
  font-weight: 900;
}

.tka-test-lead {
  color: var(--test-muted);
  font-size: 17px;
  line-height: 1.7;
}

.tka-topic-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin-top: 28px;
}

.tka-topic-card {
  display: flex;
  flex-direction: column;
  min-height: 230px;
  padding: 22px;
  color: var(--test-ink);
  text-decoration: none;
  transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease;
}

.tka-topic-card:hover {
  transform: translateY(-3px);
  border-color: #bfdbfe;
  color: var(--test-ink);
  text-decoration: none;
}

.tka-topic-card b {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 54px;
  height: 42px;
  margin-bottom: 18px;
  border-radius: 12px;
  background: #eff6ff;
  color: var(--test-blue);
}

.tka-topic-card strong {
  font-size: 22px;
  font-weight: 900;
}

.tka-topic-card span {
  margin-top: 8px;
  color: var(--test-muted);
  line-height: 1.6;
}

.tka-topic-card small {
  margin-top: 14px;
  color: #475569;
  font-size: 13px;
  font-weight: 800;
  line-height: 1.45;
}

.tka-board-group {
  margin-top: 34px;
}

.tka-board-group h3 {
  margin: 0 0 16px;
  color: var(--test-ink);
  font-size: 24px;
  font-weight: 900;
}

.tka-leader-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.tka-leader-card {
  min-height: 190px;
  padding: 20px;
  border: 1px solid var(--test-line);
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 18px 38px rgba(15, 23, 42, .06);
}

.tka-leader-card b {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 58px;
  height: 42px;
  padding: 0 12px;
  border-radius: 12px;
  background: #eff6ff;
  color: var(--test-blue);
  font-size: 18px;
  font-weight: 900;
}

.tka-leader-card strong,
.tka-leader-card span,
.tka-leader-card em,
.tka-leader-card small {
  display: block;
}

.tka-leader-card strong {
  margin-top: 18px;
  color: var(--test-ink);
  font-size: 19px;
  font-weight: 900;
  line-height: 1.25;
}

.tka-leader-card span {
  margin-top: 10px;
  color: #475569;
  font-size: 15px;
  font-weight: 800;
}

.tka-leader-card em {
  margin-top: 7px;
  color: var(--test-muted);
  font-style: normal;
  font-size: 14px;
}

.tka-leader-card small {
  margin-top: 12px;
  color: #334155;
  font-size: 13px;
  font-weight: 800;
  line-height: 1.4;
}

.tka-test-hub-hero {
  padding: 58px 0;
  background: linear-gradient(135deg, #eff6ff 0%, #fff 60%, #ecfdf5 100%);
  border-bottom: 1px solid var(--test-line);
}

.tka-test-footer {
  background: #08111f;
  color: #dbeafe;
  padding: 42px 0 20px;
}

.tka-test-footer-grid {
  display: grid;
  grid-template-columns: 1.3fr repeat(3, 1fr);
  gap: 26px;
}

.tka-test-footer h3 {
  color: #fff;
  font-size: 16px;
  font-weight: 900;
}

.tka-test-footer a {
  display: block;
  margin: 9px 0;
  color: #bfdbfe;
}

.tka-test-footer-bottom {
  margin-top: 24px;
  padding-top: 18px;
  border-top: 1px solid rgba(255,255,255,.12);
  color: #94a3b8;
}

@media (max-width: 991px) {
  .tka-test-nav {
    align-items: flex-start;
    flex-direction: column;
    padding: 12px 0;
  }
  .tka-test-links {
    justify-content: flex-start;
  }
  .tka-test-hero-grid,
  .tka-topic-grid,
  .tka-leader-grid,
  .tka-test-footer-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 575px) {
  .tka-test-shell {
    width: min(100% - 20px, 1180px);
  }
  .tka-test-brand img {
    height: 34px;
  }
  .tka-test-brand small {
    display: none;
  }
  .tka-test-hero {
    padding: 46px 0;
  }
  .tka-test-actions,
  .tka-test-stats {
    grid-template-columns: 1fr;
  }
  .tka-test-button {
    width: 100%;
  }
}

/* Leaderboard term tooltip */
.tka-term {
  position: relative;
  cursor: help;
  border-bottom: 2px dotted currentColor;
  display: inline-block;
}
.tka-term::after {
  content: attr(data-tip);
  position: absolute;
  left: 50%;
  top: calc(100% + 10px);
  transform: translateX(-50%);
  background: #1e293b;
  color: #f1f5f9;
  font-size: 0.82rem;
  font-weight: 400;
  line-height: 1.4;
  padding: 8px 14px;
  border-radius: 8px;
  width: max-content;
  max-width: 260px;
  white-space: normal;
  text-align: center;
  box-shadow: 0 4px 16px rgba(0,0,0,0.22);
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.18s ease;
  z-index: 99;
}
.tka-term::before {
  content: ;
  position: absolute;
  left: 50%;
  top: calc(100% + 4px);
  transform: translateX(-50%);
  border: 6px solid transparent;
  border-bottom-color: #1e293b;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.18s ease;
  z-index: 99;
}
.tka-term:hover::after,
.tka-term:hover::before {
  opacity: 1;
}
