/* UKSOR DRIVER PROFILE — THEME INTEGRATION v1 */
.uksor-driver-profile{--dp-red:#d40000;--dp-black:#171717;--dp-text:#222;--dp-muted:#666;--dp-border:#ddd;--dp-soft:#f7f7f7;width:100%;color:var(--dp-text)}
.uksor-driver-profile .uksor-card{background:#fff;border:1px solid var(--dp-border);border-radius:7px;box-shadow:0 2px 8px rgba(0,0,0,.06);overflow:hidden}

/* HERO */
.uksor-driver-profile .hero{position:relative;display:grid;grid-template-columns:160px minmax(0,1fr);grid-template-areas:"photo info" "pills pills";gap:0 24px;padding:22px 24px 0;border-top:4px solid var(--dp-red)}
.uksor-driver-profile .hero:before{content:"UKSOR REGISTERED DRIVER";position:absolute;top:18px;right:22px;font-size:10px;font-weight:900;letter-spacing:.09em;color:var(--dp-red)}
.uksor-driver-profile .uksor-photo{grid-area:photo;width:160px;height:160px;object-fit:cover;display:block;border:1px solid #d5d5d5;border-radius:6px;background:#fff}
.uksor-driver-profile .uksor-hero-middle{grid-area:info;min-width:0;align-self:center;padding:18px 0 20px}
.uksor-driver-profile .uksor-driver-name{margin:0 0 12px;padding:0;color:#111;font-size:clamp(24px,3vw,32px);line-height:1.12;font-weight:900;letter-spacing:-.02em}
.uksor-driver-profile .uksor-flag{display:inline-flex;vertical-align:middle;margin:0 9px 8px 0}
.uksor-driver-profile .uksor-flag img{display:block;width:40px;height:25px;object-fit:cover;border:1px solid #ddd}
.uksor-driver-profile .uksor-country{display:inline-block;vertical-align:top;margin-top:3px;font-size:14px;color:var(--dp-muted)}
.uksor-driver-profile .uksor-status,.uksor-driver-profile .uksor-lastseen{margin-top:7px;font-size:13px;color:var(--dp-muted)}
.uksor-driver-profile .uksor-status{display:table;padding:5px 8px;border-radius:999px;background:#e8f5e9;color:#267a2d;font-size:10px;line-height:1;font-weight:900;text-transform:uppercase}
.uksor-driver-profile .uksor-lastseen strong{color:#333}
.uksor-driver-profile .uksor-hero-pills{grid-area:pills;display:flex;flex-wrap:wrap;gap:6px;margin-top:20px;padding:14px 0 16px;border-top:1px solid #e5e5e5}
.uksor-driver-profile .uksor-pill{display:inline-flex;align-items:center;min-height:25px;padding:4px 9px;border-radius:999px;background:#ededed;color:#333;font-size:10px;line-height:1;font-weight:900;white-space:nowrap}

/* TABS — behaviour unchanged */
.uksor-driver-profile .uksor-tabs{display:flex;flex-wrap:wrap;gap:7px;margin:13px 0 18px;padding-bottom:8px;border-bottom:3px solid var(--dp-red)}
.uksor-driver-profile .uksor-tabs .tab-btn{appearance:none;border:1px solid #d5d5d5;border-radius:5px;background:#f2f2f2;color:#222;padding:10px 15px;font:inherit;font-size:13px;font-weight:800;line-height:1;cursor:pointer}
.uksor-driver-profile .uksor-tabs .tab-btn:hover{background:#e8e8e8}
.uksor-driver-profile .uksor-tabs .tab-btn.active{border-color:var(--dp-red);background:var(--dp-red);color:#fff}
.uksor-driver-profile .uksor-tabs .tab-btn i{margin-right:5px}
.uksor-driver-profile .tab-content{display:none}.uksor-driver-profile .tab-content.active{display:block}

/* SECTION CARDS */
.uksor-driver-profile .summary-card{margin:0 0 16px}
.uksor-driver-profile .summary-card>h3{margin:0;padding:12px 14px;background:var(--dp-black);color:#fff;border-bottom:3px solid var(--dp-red);font-size:15px;line-height:1.2;font-weight:900}
.uksor-driver-profile .summary-grid,.uksor-driver-profile .formula-stats-grid,.uksor-driver-profile .uksor-pb-list,.uksor-driver-profile .uksor-meeting-results{padding:14px}

/* CAREER + SEASON */
.uksor-driver-profile .summary-grid{display:grid;gap:10px}
.uksor-driver-profile .career-cards{grid-template-columns:repeat(5,minmax(0,1fr))}
.uksor-driver-profile .season-cards{grid-template-columns:repeat(4,minmax(0,1fr))}
.uksor-driver-profile .career-card,.uksor-driver-profile .season-card{position:relative;min-width:0;padding:13px 12px 12px;border:1px solid #e0e0e0;border-radius:6px;background:var(--dp-soft);text-align:left}
.uksor-driver-profile .career-card:before,.uksor-driver-profile .season-card:before{content:"";position:absolute;left:0;top:0;bottom:0;width:3px;background:var(--dp-red)}
.uksor-driver-profile .career-card h4,.uksor-driver-profile .season-card h4{margin:0 0 8px;color:var(--dp-muted);font-size:9px;line-height:1.1;font-weight:900;letter-spacing:.06em;text-transform:uppercase}
.uksor-driver-profile .stat-number{color:#111;font-size:27px;line-height:1;font-weight:900}

/* FORMULA STATS */
.uksor-driver-profile .formula-stats-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
.uksor-driver-profile .formula-stat-card{overflow:hidden;border:1px solid #e0e0e0;border-radius:6px;background:#fff}
.uksor-driver-profile .formula-stat-card h4{margin:0;padding:10px 12px;background:var(--dp-soft);border-bottom:1px solid #e2e2e2;color:#222;font-size:13px;font-weight:900}
.uksor-driver-profile .formula-stat-row{display:flex;align-items:center;justify-content:space-between;gap:15px;padding:8px 12px;border-bottom:1px solid #ededed;font-size:12px}
.uksor-driver-profile .formula-stat-row:last-child{border-bottom:0}.uksor-driver-profile .formula-stat-row span{color:var(--dp-muted)}.uksor-driver-profile .formula-stat-row strong{color:#111;font-weight:900}

/* PERSONAL BESTS */
.uksor-driver-profile .uksor-pb-track{display:flex;align-items:center;gap:8px;margin:14px 0 6px;padding:9px 11px;border-left:4px solid var(--dp-red);background:var(--dp-black);color:#fff}
.uksor-driver-profile .uksor-pb-track:first-child{margin-top:0}.uksor-driver-profile .uksor-pb-track-name{font-size:13px;font-weight:900}
.uksor-driver-profile .uksor-pb-track-code{margin-left:auto;padding:3px 6px;border-radius:3px;background:rgba(255,255,255,.12);color:#ddd;font-size:9px;font-weight:900}
.uksor-driver-profile .uksor-pb-row{display:grid;grid-template-columns:minmax(0,1fr) 110px 100px;align-items:center;gap:12px;padding:9px 11px;border:1px solid #e5e5e5;border-top:0;background:#fff}
.uksor-driver-profile .uksor-pb-car{min-width:0;font-size:12px;font-weight:800}.uksor-driver-profile .uksor-pb-time{color:var(--dp-red);text-align:right;font-size:15px;font-weight:900}.uksor-driver-profile .uksor-pb-date{color:var(--dp-muted);text-align:right;font-size:10px}

/* RESULTS */
.uksor-driver-profile .meeting-card{overflow:hidden;margin-bottom:12px;border:1px solid #ddd;border-radius:6px;background:#fff}.uksor-driver-profile .meeting-card:last-child{margin-bottom:0}
.uksor-driver-profile .meeting-header{display:flex;align-items:center;justify-content:space-between;gap:15px;padding:10px 12px;background:var(--dp-black);border-bottom:3px solid var(--dp-red);color:#fff}
.uksor-driver-profile .meeting-header h4{margin:0;color:#fff;font-size:14px;font-weight:900}.uksor-driver-profile .meeting-date{color:#ddd;font-size:10px;font-weight:800;white-space:nowrap}
.uksor-driver-profile .meeting-body{padding:12px}.uksor-driver-profile .formula-block{margin-bottom:10px;padding:10px 11px;border:1px solid #e4e4e4;border-radius:5px;background:var(--dp-soft)}
.uksor-driver-profile .result-line{display:flex;flex-wrap:wrap;gap:5px 10px;padding:4px 0;font-size:12px}.uksor-driver-profile .heat-item{color:var(--dp-muted)}
.uksor-driver-profile .meeting-summary{margin-top:11px;padding-top:10px;border-top:1px solid #ddd;color:var(--dp-muted);font-size:11px}.uksor-driver-profile .meeting-summary strong{color:#222}
.uksor-driver-profile .uksor-pagination{display:flex;justify-content:space-between;gap:10px;margin-top:14px}.uksor-driver-profile .uksor-page-btn{display:inline-flex;align-items:center;justify-content:center;min-height:36px;padding:8px 12px;border-radius:5px;background:var(--dp-black);color:#fff!important;text-decoration:none!important;font-size:11px;font-weight:900}.uksor-driver-profile .uksor-page-btn:hover{background:var(--dp-red)}

@media(max-width:900px){.uksor-driver-profile .career-cards{grid-template-columns:repeat(3,minmax(0,1fr))}.uksor-driver-profile .formula-stats-grid{grid-template-columns:1fr}}
@media(max-width:650px){
.uksor-driver-profile .hero{grid-template-columns:105px minmax(0,1fr);gap:0 14px;padding:16px 16px 0}.uksor-driver-profile .hero:before{display:none}.uksor-driver-profile .uksor-photo{width:105px;height:105px}.uksor-driver-profile .uksor-hero-middle{padding:2px 0 12px}.uksor-driver-profile .uksor-driver-name{margin-bottom:8px;font-size:21px}
.uksor-driver-profile .uksor-flag img{width:32px;height:20px}.uksor-driver-profile .uksor-country{margin-top:1px;font-size:12px}.uksor-driver-profile .uksor-status,.uksor-driver-profile .uksor-lastseen{font-size:11px}.uksor-driver-profile .uksor-hero-pills{margin-top:13px;padding:11px 0 13px}
.uksor-driver-profile .uksor-tabs{display:grid;grid-template-columns:repeat(3,1fr);gap:5px}.uksor-driver-profile .uksor-tabs .tab-btn{min-width:0;padding:9px 5px;font-size:10px}
.uksor-driver-profile .career-cards,.uksor-driver-profile .season-cards{grid-template-columns:repeat(2,minmax(0,1fr))}
.uksor-driver-profile .summary-grid,.uksor-driver-profile .formula-stats-grid,.uksor-driver-profile .uksor-pb-list,.uksor-driver-profile .uksor-meeting-results{padding:10px}
.uksor-driver-profile .uksor-pb-row{grid-template-columns:minmax(0,1fr) auto;gap:5px 10px}.uksor-driver-profile .uksor-pb-date{grid-column:1/-1;text-align:left}
.uksor-driver-profile .meeting-header{align-items:flex-start;flex-direction:column;gap:4px}}
@media(max-width:420px){.uksor-driver-profile .hero{grid-template-columns:82px minmax(0,1fr);gap:0 11px;padding:13px 13px 0}.uksor-driver-profile .uksor-photo{width:82px;height:82px}.uksor-driver-profile .uksor-driver-name{font-size:18px}.uksor-driver-profile .uksor-tabs .tab-btn i{display:none}.uksor-driver-profile .stat-number{font-size:23px}}
