/* V2.7.14 — compact tournament cards + ranking readability polish. */

/* Tournament archive: reduce vertical bulk while keeping all cards aligned. */
body.post-type-archive-wpk_event #site-main .card-photo,
body.archive.post-type-archive-wpk_event #site-main .card-photo{
  height:190px!important;
  min-height:190px!important;
  max-height:190px!important;
}
body.post-type-archive-wpk_event #site-main .card-content,
body.archive.post-type-archive-wpk_event #site-main .card-content{
  padding:14px 15px 13px!important;
}
body.post-type-archive-wpk_event #site-main .card-content .eyebrow,
body.archive.post-type-archive-wpk_event #site-main .card-content .eyebrow{
  margin-bottom:7px!important;
  min-height:12px!important;
  font-size:9px!important;
}
body.post-type-archive-wpk_event #site-main .card-content h3,
body.archive.post-type-archive-wpk_event #site-main .card-content h3{
  min-height:44px!important;
  margin-bottom:7px!important;
  font-size:16px!important;
  line-height:1.25!important;
}
body.post-type-archive-wpk_event #site-main .card-content p,
body.archive.post-type-archive-wpk_event #site-main .card-content p{
  min-height:36px!important;
  margin-bottom:8px!important;
  line-height:1.45!important;
  font-size:12px!important;
}
body.post-type-archive-wpk_event #site-main .card-meta,
body.archive.post-type-archive-wpk_event #site-main .card-meta{
  min-height:52px!important;
  gap:5px!important;
  font-size:11px!important;
}
body.post-type-archive-wpk_event #site-main .card-meta span,
body.archive.post-type-archive-wpk_event #site-main .card-meta span{
  line-height:1.35!important;
}
body.post-type-archive-wpk_event #site-main .card-bottom,
body.archive.post-type-archive-wpk_event #site-main .card-bottom{
  padding-top:10px!important;
  gap:8px!important;
}
body.post-type-archive-wpk_event #site-main .card-bottom .chip,
body.archive.post-type-archive-wpk_event #site-main .card-bottom .chip{
  min-height:30px!important;
  min-width:100px!important;
  padding:6px 9px!important;
}
body.post-type-archive-wpk_event #site-main .card-bottom .text-link,
body.archive.post-type-archive-wpk_event #site-main .card-bottom .text-link{
  min-height:31px!important;
  min-width:92px!important;
  padding:7px 11px!important;
}

/* Ranking search: lime CTA with dark navy type — no white-on-lime blur. */
.wpk-ranking .rank-search{
  display:grid!important;
  grid-template-columns:minmax(0,1fr) auto!important;
  align-items:stretch!important;
  gap:10px!important;
  margin-bottom:16px!important;
}
.wpk-ranking .rank-search input[type="search"]{
  max-width:none!important;
  min-height:46px!important;
  background:#102a40!important;
  border:1px solid #42617a!important;
  color:#eef6ff!important;
  box-shadow:none!important;
}
.wpk-ranking .rank-search input[type="search"]::placeholder{
  color:#a9bdce!important;
  opacity:1!important;
}
.wpk-ranking .rank-search input[type="search"]:focus{
  border-color:#eaff36!important;
  box-shadow:0 0 0 3px rgba(234,255,54,.12)!important;
  outline:none!important;
}
html body .wpk-ranking .rank-search .button.button-dark,
html body .wpk-ranking .rank-search button[type="submit"]{
  min-width:112px!important;
  min-height:46px!important;
  padding:0 18px!important;
  border:1px solid #f3ff7b!important;
  border-radius:8px!important;
  background:#eaff36!important;
  background-image:linear-gradient(135deg,#f4ff7a 0%,#eaff36 55%,#d6f313 100%)!important;
  color:#071a2f!important;
  -webkit-text-fill-color:#071a2f!important;
  text-shadow:none!important;
  font-weight:900!important;
  box-shadow:0 7px 18px rgba(0,0,0,.16),0 0 16px rgba(234,255,54,.18)!important;
}
html body .wpk-ranking .rank-search .button.button-dark:hover,
html body .wpk-ranking .rank-search button[type="submit"]:hover{
  background:#f2ff6d!important;
  background-image:linear-gradient(135deg,#fbffc5 0%,#eaff36 58%,#dcf81b 100%)!important;
  color:#071a2f!important;
  -webkit-text-fill-color:#071a2f!important;
  transform:translateY(-1px)!important;
  box-shadow:0 9px 22px rgba(0,0,0,.20),0 0 24px rgba(234,255,54,.32)!important;
}

/* Athlete rows: keep names readable; use lime only as hover accent. */
.wpk-ranking .wpk-table a.wpk-person,
.wpk-ranking .wpk-table a.wpk-person:visited{
  color:#f4f8fc!important;
  text-decoration:none!important;
}
.wpk-ranking .wpk-table a.wpk-person strong{
  color:#f4f8fc!important;
  transition:color .18s ease!important;
}
.wpk-ranking .wpk-table a.wpk-person small{
  color:#9fb6c9!important;
  text-decoration:underline!important;
  text-decoration-color:rgba(159,182,201,.55)!important;
  text-underline-offset:2px!important;
  transition:color .18s ease,text-decoration-color .18s ease!important;
}
.wpk-ranking .wpk-table a.wpk-person:hover strong,
.wpk-ranking .wpk-table a.wpk-person:focus-visible strong{
  color:#eaff36!important;
}
.wpk-ranking .wpk-table a.wpk-person:hover small,
.wpk-ranking .wpk-table a.wpk-person:focus-visible small{
  color:#cfe5f6!important;
  text-decoration-color:#eaff36!important;
}
.wpk-ranking .wpk-table tbody tr:hover{
  background:#1b3b54!important;
}

@media(max-width:1180px){
  body.post-type-archive-wpk_event #site-main .card-photo,
  body.archive.post-type-archive-wpk_event #site-main .card-photo{height:178px!important;min-height:178px!important;max-height:178px!important}
}
@media(max-width:760px){
  body.post-type-archive-wpk_event #site-main .card-photo,
  body.archive.post-type-archive-wpk_event #site-main .card-photo{height:150px!important;min-height:150px!important;max-height:150px!important}
  body.post-type-archive-wpk_event #site-main .card-content,
  body.archive.post-type-archive-wpk_event #site-main .card-content{padding:11px!important}
  body.post-type-archive-wpk_event #site-main .card-content h3,
  body.archive.post-type-archive-wpk_event #site-main .card-content h3{min-height:40px!important;font-size:13px!important}
  body.post-type-archive-wpk_event #site-main .card-content p,
  body.archive.post-type-archive-wpk_event #site-main .card-content p{min-height:34px!important;font-size:11px!important}
  body.post-type-archive-wpk_event #site-main .card-meta,
  body.archive.post-type-archive-wpk_event #site-main .card-meta{min-height:48px!important;font-size:10px!important}
}
@media(max-width:560px){
  .wpk-ranking .rank-search{grid-template-columns:1fr!important}
  html body .wpk-ranking .rank-search .button.button-dark,
  html body .wpk-ranking .rank-search button[type="submit"]{width:100%!important}
}
@media(max-width:420px){
  body.post-type-archive-wpk_event #site-main .card-photo,
  body.archive.post-type-archive-wpk_event #site-main .card-photo{height:126px!important;min-height:126px!important;max-height:126px!important}
  body.post-type-archive-wpk_event #site-main .card-content h3,
  body.archive.post-type-archive-wpk_event #site-main .card-content h3{min-height:36px!important;font-size:12px!important}
  body.post-type-archive-wpk_event #site-main .card-meta,
  body.archive.post-type-archive-wpk_event #site-main .card-meta{min-height:43px!important;font-size:9px!important}
}
