
.ihro-account-cta{display:inline-block;background:#c51425!important;color:#fff!important;border:2px solid #c51425!important;border-radius:5px;padding:12px 20px;font-weight:800;text-decoration:none!important;line-height:1.2}
.ihro-account-cta:hover{filter:brightness(.9);color:#fff!important}
.ihro-auth-card{max-width:680px;margin:25px auto;padding:24px;border:1px solid #d9dee5;border-radius:10px;background:#fff;box-shadow:0 2px 10px rgba(0,0,0,.05)}
.ihro-auth-card form{display:grid;grid-template-columns:1fr 1fr;gap:15px}.ihro-auth-card label{display:flex;flex-direction:column;gap:5px;font-weight:700}.ihro-auth-card input{padding:10px;border:1px solid #b7bec7;border-radius:4px}.ihro-auth-card button{grid-column:1/-1;background:#c51425;color:#fff;border:0;border-radius:5px;padding:12px 18px;font-weight:800;cursor:pointer}.ihro-auth-error{background:#fde8e8;border-left:4px solid #c51425;padding:10px;margin:10px 0}
@media(max-width:650px){.ihro-auth-card form{grid-template-columns:1fr}}
/* Rider overview: support the existing plugin's participant wrappers without changing stored data. */
.ihro-participants-list,.ihro-participants-grid,.ihro-riders-grid{display:grid!important;grid-template-columns:repeat(4,minmax(0,1fr));gap:16px!important;align-items:stretch}
.ihro-participant-card,.ihro-rider-card{width:auto!important;margin:0!important;height:100%;box-sizing:border-box}
@media(max-width:950px){.ihro-participants-list,.ihro-participants-grid,.ihro-riders-grid{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media(max-width:700px){.ihro-participants-list,.ihro-participants-grid,.ihro-riders-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px!important}}


/* v4.2: plugin page layout starts directly below the site header/account row. */
body:has(.ihro-participants-list) .site-main,
body:has(.ihro-participants-grid) .site-main,
body:has(.ihro-riders-grid) .site-main,
body:has(.ihro-auth-card) .site-main,
body:has(.ihro2027) .site-main,
body:has(.ihro-participants-list) .content-area,
body:has(.ihro-participants-grid) .content-area,
body:has(.ihro-riders-grid) .content-area,
body:has(.ihro-auth-card) .content-area,
body:has(.ihro2027) .content-area,
body:has(.ihro-participants-list) .entry-content,
body:has(.ihro-participants-grid) .entry-content,
body:has(.ihro-riders-grid) .entry-content,
body:has(.ihro-auth-card) .entry-content,
body:has(.ihro2027) .entry-content{margin-top:0!important;padding-top:0!important}

.ihro-rider-card-grid{display:grid!important;grid-template-columns:repeat(4,minmax(0,1fr))!important;gap:16px!important;align-items:stretch!important}
.ihro-rider-card-grid>.ihro-rider-card-v420{width:auto!important;max-width:none!important;margin:0!important;box-sizing:border-box;height:100%}
.ihro-rider-card-v420 img{max-width:100%;height:auto}
@media(max-width:950px){.ihro-rider-card-grid{grid-template-columns:repeat(3,minmax(0,1fr))!important}}
@media(max-width:700px){.ihro-rider-card-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:10px!important}}

/* v4.2.1 rider overview refinements */
.ihro-rider-card-grid{width:100%!important;max-width:none!important;grid-template-columns:repeat(5,minmax(0,1fr))!important}
.ihro-rider-card-v420 .ihro-card-bike{font-size:13px;line-height:1.3;font-weight:700;color:#4b5563;margin:3px 14px 7px}
body:has(.ihro-rider-card-grid) .content-container,
body:has(.ihro-rider-card-grid) .site-container,
body:has(.ihro-rider-card-grid) .entry-content-wrap{max-width:none!important;width:100%!important}
@media(max-width:1100px){.ihro-rider-card-grid{grid-template-columns:repeat(4,minmax(0,1fr))!important}}
@media(max-width:900px){.ihro-rider-card-grid{grid-template-columns:repeat(3,minmax(0,1fr))!important}}
@media(max-width:700px){.ihro-rider-card-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important}}

/* v4.2.2: definitive Participants layout */
.ihro-app.ihro-participants{margin-top:0!important;max-width:none!important;width:100%!important}
.ihro-participants>.ihro-app-head{margin-top:0!important}
.ihro-participants>.ihro-participant-grid{
  width:min(100%,1280px)!important;
  max-width:1280px!important;
  display:grid!important;
  grid-template-columns:repeat(5,minmax(0,1fr))!important;
  gap:16px!important;
  align-items:stretch!important;
}
.ihro-participant-tile{min-width:0!important;width:100%!important}
.ihro-tile-caption{display:grid!important;grid-template-columns:1fr auto!important;align-items:center!important;column-gap:8px!important}
.ihro-tile-name{grid-column:1/-1!important}
.ihro-tile-bike{grid-column:1/-1!important;display:block!important;font-size:12px!important;line-height:1.25!important;color:#5a6470!important;font-weight:700!important;margin-top:3px!important}
@media(max-width:1100px){.ihro-participants>.ihro-participant-grid{grid-template-columns:repeat(4,minmax(0,1fr))!important}}
@media(max-width:900px){.ihro-participants>.ihro-participant-grid{grid-template-columns:repeat(3,minmax(0,1fr))!important}}
@media(max-width:700px){.ihro-participants>.ihro-participant-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:10px!important}}
/* Remove Kadence/content top space specifically when a plugin page contains an IHRO app. */
body:has(.ihro-app) #primary,
body:has(.ihro-app) .content-area,
body:has(.ihro-app) .site-main,
body:has(.ihro-app) .content-container,
body:has(.ihro-app) .entry-content,
body:has(.ihro-app) .entry-content-wrap{padding-top:0!important;margin-top:0!important}
body:has(.ihro-app) .entry-content>.ihro-app:first-child{margin-top:0!important}

/* v4.2.3 language-independent Riders grid.
   Targets the actual generated participant grid, not page-language wrappers. */
.ihro-participant-grid{
  display:grid!important;
  grid-template-columns:repeat(5,minmax(0,1fr))!important;
  gap:16px!important;
  align-items:stretch!important;
  width:min(100%,1280px)!important;
  max-width:1280px!important;
  margin-left:auto!important;
  margin-right:auto!important;
}
.ihro-participant-grid > .ihro-participant-tile{
  display:block!important;
  width:100%!important;
  min-width:0!important;
  max-width:none!important;
  margin:0!important;
  box-sizing:border-box!important;
}
@media(max-width:1100px){.ihro-participant-grid{grid-template-columns:repeat(4,minmax(0,1fr))!important}}
@media(max-width:900px){.ihro-participant-grid{grid-template-columns:repeat(3,minmax(0,1fr))!important}}
@media(max-width:700px){.ihro-participant-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:10px!important}}


/* v4.3: use the available desktop width for My IHRO / Race Entry without changing rider data. */
body:has(.ihro-app) .site-container,body:has(.ihro-app) .content-container,body:has(.ihro-app) .entry-content-wrap{width:100%!important;max-width:1320px!important}
body:has(.ihro-app) .ihro-app{width:min(100%,1280px)!important;max-width:1280px!important}
