/* Fix header/footer layout to match site */
.wp-block-group.is-content-justification-space-between {
    justify-content: space-between !important;
}
.wp-block-group.is-layout-flex {
    display: flex !important;
}
.wp-block-group.is-content-justification-right {
    justify-content: flex-end !important;
}
.wp-block-group.is-nowrap {
    flex-wrap: nowrap !important;
}
.wp-block-navigation .wp-block-navigation__container {
    display: flex;
    gap: 0.5em;
}

/* WKR Driver Profile Page */
.wkr-profile-wrap {
    max-width: 900px;
    margin: 40px auto;
    padding: 0 20px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}
.wkr-profile-card {
    background: #1a1a2e;
    border-radius: 16px;
    padding: 40px;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 30px;
    color: #fff;
    margin-bottom: 30px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.3);
}
.wkr-profile-avatar {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    overflow: hidden;
    flex-shrink: 0;
}
.wkr-silhouette {
    width: 100%;
    height: 100%;
    border-radius: 50%;
}
.wkr-silhouette.male {
    color: #4a90d9;
    background: #2a3a5c;
}
.wkr-silhouette.female {
    color: #d94a8a;
    background: #5c2a4a;
}
.wkr-profile-info {
    flex: 1;
    min-width: 200px;
}
.wkr-profile-name {
    font-size: 28px;
    font-weight: 700;
    margin: 0 0 8px 0;
    color: #fff;
    letter-spacing: -0.5px;
}
.wkr-profile-meta {
    font-size: 16px;
    color: #a0a8c0;
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}
.wkr-profile-flag {
    font-size: 24px;
    line-height: 1;
}
.wkr-profile-country {
    font-weight: 500;
}
.wkr-profile-sep {
    color: #555;
}
.wkr-profile-category {
    background: #2a3a5c;
    padding: 3px 12px;
    border-radius: 12px;
    font-size: 13px;
    font-weight: 600;
    color: #7ab4ff;
}
.wkr-profile-stats {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    width: 100%;
    margin-top: 10px;
    padding-top: 20px;
    border-top: 1px solid rgba(255,255,255,0.1);
}
.wkr-stat {
    text-align: center;
    flex: 1;
    min-width: 70px;
}
.wkr-stat-value {
    font-size: 24px;
    font-weight: 700;
    color: #fff;
}
.wkr-stat-label {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #6b7280;
    margin-top: 4px;
}
.wkr-profile-results h2 {
    font-size: 20px;
    font-weight: 600;
    margin: 0 0 16px 0;
    color: #1a1a2e;
}
.wkr-results-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}
.wkr-results-table thead {
    background: #f1f5f9;
}
.wkr-results-table th {
    padding: 12px 16px;
    text-align: left;
    font-weight: 600;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #64748b;
    border-bottom: 2px solid #e2e8f0;
}
.wkr-results-table td {
    padding: 12px 16px;
    border-bottom: 1px solid #f1f5f9;
    color: #334155;
}
.wkr-results-table tbody tr:hover {
    background: #f8fafc;
}
.wkr-results-table tbody tr:last-child td {
    border-bottom: none;
}
.wkr-position {
    font-weight: 700;
    text-align: center;
    border-radius: 6px;
    display: inline-block;
    min-width: 40px;
    padding: 2px 8px;
}
.wkr-position.gold {
    background: #fef3c7;
    color: #92400e;
}
.wkr-position.silver {
    background: #f1f5f9;
    color: #475569;
}
.wkr-position.bronze {
    background: #fed7aa;
    color: #9a3412;
}
.wkr-position.dsq {
    background: #fecaca;
    color: #991b1b;
}
.wkr-date {
    white-space: nowrap;
    color: #94a3b8;
    font-size: 13px;
}
.wkr-track {
    font-size: 13px;
}\n
/* === Responsive === */
@media (max-width: 768px) {
  .wkr-profile-wrap {
    padding: 0 12px !important;
    margin: 20px auto !important;
  }
  .wkr-profile-card {
    padding: 24px !important;
    gap: 16px !important;
  }
  .wkr-profile-name {
    font-size: 22px !important;
  }
}

@media (max-width: 640px) {
  .wkr-profile-wrap {
    padding: 0 10px !important;
    margin: 16px auto !important;
  }
  .wkr-profile-card {
    padding: 20px !important;
    flex-direction: column !important;
    text-align: center !important;
    gap: 12px !important;
    border-radius: 12px !important;
  }
  .wkr-profile-avatar {
    width: 80px !important;
    height: 80px !important;
  }
  .wkr-profile-name {
    font-size: 20px !important;
  }
  .wkr-profile-meta {
    justify-content: center !important;
    font-size: 14px !important;
  }
  .wkr-profile-stats {
    gap: 8px !important;
    padding-top: 14px !important;
    margin-top: 8px !important;
  }
  .wkr-stat {
    min-width: 55px !important;
  }
  .wkr-stat-value {
    font-size: 18px !important;
  }
  .wkr-stat-label {
    font-size: 9px !important;
    letter-spacing: 0.5px !important;
  }
  .wkr-profile-results {
    overflow-x: auto !important;
    -webkit-overflow-scrolling: touch !important;
  }
  .wkr-profile-results h2 {
    font-size: 18px !important;
  }
  .wkr-results-table {
    font-size: 12px !important;
    min-width: 480px !important;
  }
  .wkr-results-table th,
  .wkr-results-table td {
    padding: 8px 8px !important;
  }
}

@media (max-width: 380px) {
  .wkr-profile-card {
    padding: 16px !important;
  }
  .wkr-profile-name {
    font-size: 18px !important;
  }
  .wkr-stat-value {
    font-size: 16px !important;
  }
  .wkr-results-table {
    font-size: 11px !important;
  }
}