/* LeMans24h – shared profile CSS, centralized in Point 15.9. */

/* PROFILE VARIANT 1 – shared by 12 pages */
.lm-profile{--navy:#0d2747;--blue:#0f5d91;--red:#bd1f2d;--border:#d9e0e7;--muted:#687381;--band-a:#fff;--band-b:#f5f8fb;color:#101820}
.lm-profile *{box-sizing:border-box}
.lm-profile .top-accent{height:4px;display:grid;grid-template-columns:58% 42%;margin-bottom:28px;border-radius:999px;overflow:hidden}
.lm-profile .top-accent span:first-child{background:var(--blue)}
.lm-profile .top-accent span:last-child{background:var(--red)}
.lm-profile .profile-grid{display:grid;grid-template-columns:minmax(260px,360px) 1fr;gap:42px;align-items:start}
.lm-profile .profile-side{display:flex;flex-direction:column;gap:18px}
.lm-profile .profile-visual{aspect-ratio:1/1;border:1px solid var(--border);border-radius:8px;display:flex;align-items:center;justify-content:center;text-align:center;color:#4d5b69;font-size:1rem;background:linear-gradient(145deg,#f8fafc,#edf1f5);overflow:hidden;padding:18px}
.lm-profile .profile-visual img{width:100%;height:100%;object-fit:cover;display:block}
.lm-profile .profile-main h1{font-size:2rem;line-height:1.2;margin:3px 0 20px;color:var(--navy);display:flex;align-items:center;gap:11px;font-weight:600}
.lm-profile .profile-flag{width:34px;height:23px;object-fit:cover;display:inline-block;border:1px solid #cfd6dd;border-radius:3px;box-shadow:0 1px 2px rgba(0,0,0,.06);flex:0 0 auto}
.lm-profile .info{border-top:1px solid var(--border);border-bottom:1px solid var(--border);max-width:940px}
.lm-profile .info-row{display:grid;grid-template-columns:34% 66%;min-height:58px;padding:8px 14px;align-items:center}
.lm-profile .info-row:nth-child(odd){background:var(--band-a)}
.lm-profile .info-row:nth-child(even){background:var(--band-b)}
.lm-profile .info-label{font-weight:600;font-size:1rem;align-self:center}
.lm-profile .info-value{font-size:1rem;min-height:42px;display:flex;flex-direction:column;justify-content:center;align-self:stretch}
.lm-profile .info-value>div:first-child,.lm-profile .info-value .secondary{min-height:22px;display:flex;align-items:center}
.lm-profile .info-value .secondary{color:#586574;margin-top:2px}
.lm-profile .stats-table{margin-top:18px;max-width:940px;border:1px solid var(--border);border-radius:8px;overflow:hidden;background:#fff}
.lm-profile .stats-table table{width:100%;min-width:0;border-collapse:collapse;table-layout:fixed;margin:0}
.lm-profile .stats-table th,.lm-profile .stats-table td{padding:10px 16px;border-bottom:1px solid #e7ebef;text-align:left}
.lm-profile .stats-table tr:last-child th,.lm-profile .stats-table tr:last-child td{border-bottom:none}
.lm-profile .stats-table th{width:34%;background:transparent;color:#101820;font-size:1rem;font-weight:600}
.lm-profile .stats-table td{font-size:1rem;font-weight:600;color:var(--navy)}
.lm-profile .stats-table tr:nth-child(even){background:var(--band-b)}
.lm-profile .section{margin-top:42px}
.lm-profile .section-title{font-size:1.5rem;color:var(--navy);margin:0 0 15px;font-weight:600}
.lm-profile .profile-card{border:1px solid var(--border);border-radius:9px;background:#fff;overflow:hidden}
.lm-profile .text-card{padding:24px 26px}
.lm-profile .text-card p{margin:0;font-size:1rem;max-width:1100px}
.lm-profile .legend{padding:11px 14px;border-top:1px solid var(--border);font-size:13px;color:var(--muted)}
.lm-profile .summary-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));border:1px solid var(--border);border-radius:8px;overflow:hidden;background:#fff;margin-top:18px}
.lm-profile .summary-cell{padding:13px 16px;border-right:1px solid #e7ebef}
.lm-profile .summary-cell:last-child{border-right:none}
.lm-profile .summary-label{font-size:.82rem;color:var(--muted);margin-bottom:2px}
.lm-profile .summary-value{font-size:1rem;font-weight:700;color:var(--navy)}
.lm-profile .table-box{border:0;border-radius:0}
.lm-profile .table-responsive{margin:0}
.lm-profile .lm-table{margin-bottom:0}
.lm-profile .lm-table tbody tr:hover{background:#fafcfe}
.lm-profile .profile-card a{transition:color .15s ease}
.lm-profile .profile-card a:hover{color:var(--red)}
@media (max-width:991.98px){
  .lm-profile .profile-grid{grid-template-columns:1fr;gap:26px}
  .lm-profile .profile-side{max-width:430px}
}
@media (max-width:767.98px){
  .lm-profile .profile-main h1{font-size:1.7rem}
  .lm-profile .info-row{grid-template-columns:42% 58%;padding:8px 10px}
  .lm-profile .stats-table th{width:42%}
  .lm-profile .summary-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
  .lm-profile .summary-cell:nth-child(2){border-right:none}
  .lm-profile .summary-cell:nth-child(-n+2){border-bottom:1px solid #e7ebef}
}

/* PROFILE VARIANT 2 – shared by 7 pages */
.lm-profile{--navy:#0d2747;--blue:#0f5d91;--red:#bd1f2d;--border:#d9e0e7;--muted:#687381;--band-a:#fff;--band-b:#f5f8fb;color:#101820}
.lm-profile *{box-sizing:border-box}
.lm-profile .top-accent{height:4px;display:grid;grid-template-columns:58% 42%;margin-bottom:28px;border-radius:999px;overflow:hidden}
.lm-profile .top-accent span:first-child{background:var(--blue)}
.lm-profile .top-accent span:last-child{background:var(--red)}
.lm-profile .profile-grid{display:grid;grid-template-columns:minmax(260px,360px) 1fr;gap:42px;align-items:start}
.lm-profile .profile-side{display:flex;flex-direction:column;gap:18px}
.lm-profile .profile-visual{aspect-ratio:1/1;border:1px solid var(--border);border-radius:8px;display:flex;align-items:center;justify-content:center;text-align:center;color:#4d5b69;font-size:1rem;background:linear-gradient(145deg,#f8fafc,#edf1f5);overflow:hidden;padding:18px}
.lm-profile .profile-visual img{width:100%;height:100%;object-fit:cover;display:block}
.lm-profile .profile-title{display:flex;align-items:center;gap:11px;margin:3px 0 20px}
.lm-profile .profile-main h1{font-size:2rem;line-height:1.2;margin:0;color:var(--navy);font-weight:600}
.lm-profile .profile-flag{width:34px;height:23px;object-fit:cover;display:inline-block;border:1px solid #cfd6dd;border-radius:3px;box-shadow:0 1px 2px rgba(0,0,0,.06);flex:0 0 auto}
.lm-profile .info{border-top:1px solid var(--border);border-bottom:1px solid var(--border);max-width:940px}
.lm-profile .info-row{display:grid;grid-template-columns:34% 66%;min-height:58px;padding:8px 14px;align-items:center}
.lm-profile .info-row:nth-child(odd){background:var(--band-a)}
.lm-profile .info-row:nth-child(even){background:var(--band-b)}
.lm-profile .info-label{font-weight:600;font-size:1rem;align-self:center}
.lm-profile .info-value{font-size:1rem;min-height:42px;display:flex;flex-direction:column;justify-content:center;align-self:stretch}
.lm-profile .info-value>div:first-child,.lm-profile .info-value .secondary{min-height:22px;display:flex;align-items:center}
.lm-profile .info-value .secondary{color:#586574;margin-top:2px}
.lm-profile .stats-table{margin-top:18px;max-width:940px;border:1px solid var(--border);border-radius:8px;overflow:hidden;background:#fff}
.lm-profile .stats-table table{width:100%;min-width:0;border-collapse:collapse;table-layout:fixed;margin:0}
.lm-profile .stats-table th,.lm-profile .stats-table td{padding:10px 16px;border-bottom:1px solid #e7ebef;text-align:left}
.lm-profile .stats-table tr:last-child th,.lm-profile .stats-table tr:last-child td{border-bottom:none}
.lm-profile .stats-table th{width:34%;background:transparent;color:#101820;font-size:1rem;font-weight:600}
.lm-profile .stats-table td{font-size:1rem;font-weight:600;color:var(--navy)}
.lm-profile .stats-table tr:nth-child(even){background:var(--band-b)}
.lm-profile .section{margin-top:42px}
.lm-profile .section-title{font-size:1.5rem;color:var(--navy);margin:0 0 15px;font-weight:600}
.lm-profile .profile-card{border:1px solid var(--border);border-radius:9px;background:#fff;overflow:hidden}
.lm-profile .text-card{padding:24px 26px}
.lm-profile .text-card p{margin:0;font-size:1rem;max-width:1100px}
.lm-profile .legend{padding:11px 14px;border-top:1px solid var(--border);font-size:13px;color:var(--muted)}
.lm-profile .summary-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));border:1px solid var(--border);border-radius:8px;overflow:hidden;background:#fff;margin-top:18px}
.lm-profile .summary-cell{padding:13px 16px;border-right:1px solid #e7ebef}
.lm-profile .summary-cell:last-child{border-right:none}
.lm-profile .summary-label{font-size:.82rem;color:var(--muted);margin-bottom:2px}
.lm-profile .summary-value{font-size:1rem;font-weight:700;color:var(--navy)}
.lm-profile .table-box{border:0;border-radius:0}
.lm-profile .table-responsive{margin:0}
.lm-profile .lm-table{margin-bottom:0}
.lm-profile .lm-table tbody tr:hover{background:#fafcfe}
.lm-profile .profile-card a{transition:color .15s ease}
.lm-profile .profile-card a:hover{color:var(--red)}
@media (max-width:991.98px){
  .lm-profile .profile-grid{grid-template-columns:1fr;gap:26px}
  .lm-profile .profile-side{max-width:430px}
}
@media (max-width:767.98px){
  .lm-profile .profile-main h1{font-size:1.7rem}
  .lm-profile .info-row{grid-template-columns:42% 58%;padding:8px 10px}
  .lm-profile .stats-table th{width:42%}
  .lm-profile .summary-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
  .lm-profile .summary-cell:nth-child(2){border-right:none}
  .lm-profile .summary-cell:nth-child(-n+2){border-bottom:1px solid #e7ebef}
}

/* PROFILE VARIANT 3 – shared by 2 pages */
.lm-profile{--navy:#0d2747;--blue:#0f5d91;--red:#bd1f2d;--border:#d9e0e7;--muted:#687381;--band-a:#fff;--band-b:#f5f8fb;color:#101820}
.lm-profile *{box-sizing:border-box}
.lm-profile .top-accent{height:4px;display:grid;grid-template-columns:58% 42%;margin-bottom:28px;border-radius:999px;overflow:hidden}
.lm-profile .top-accent span:first-child{background:var(--blue)}
.lm-profile .top-accent span:last-child{background:var(--red)}
.lm-profile .profile-grid{display:grid;grid-template-columns:minmax(260px,360px) 1fr;gap:42px;align-items:start}
.lm-profile .profile-side{display:flex;flex-direction:column;gap:18px}
.lm-profile .profile-visual{aspect-ratio:1/1;border:1px solid var(--border);border-radius:8px;display:flex;align-items:center;justify-content:center;text-align:center;color:#4d5b69;font-size:1rem;background:linear-gradient(145deg,#f8fafc,#edf1f5);overflow:hidden;padding:18px}
.lm-profile .profile-visual img{width:100%;height:100%;object-fit:contain;display:block}
.lm-profile .profile-main h1{font-size:2rem;line-height:1.2;margin:3px 0 20px;color:var(--navy);display:flex;align-items:center;gap:11px;font-weight:600}
.lm-profile .profile-flag{width:34px;height:23px;object-fit:cover;display:inline-block;border:1px solid #cfd6dd;border-radius:3px;box-shadow:0 1px 2px rgba(0,0,0,.06);flex:0 0 auto}
.lm-profile .info{border-top:1px solid var(--border);border-bottom:1px solid var(--border);max-width:940px}
.lm-profile .info-row{display:grid;grid-template-columns:34% 66%;min-height:58px;padding:8px 14px;align-items:center}
.lm-profile .info-row:nth-child(odd){background:var(--band-a)}
.lm-profile .info-row:nth-child(even){background:var(--band-b)}
.lm-profile .info-label{font-weight:600;font-size:1rem;align-self:center}
.lm-profile .info-value{font-size:1rem;min-height:42px;display:flex;flex-direction:column;justify-content:center;align-self:stretch}
.lm-profile .info-value>div:first-child,.lm-profile .info-value .secondary{min-height:22px;display:flex;align-items:center}
.lm-profile .info-value .secondary{color:#586574;margin-top:2px}
.lm-profile .stats-table{margin-top:18px;max-width:940px;border:1px solid var(--border);border-radius:8px;overflow:hidden;background:#fff}
.lm-profile .stats-table table{width:100%;min-width:0;border-collapse:collapse;table-layout:fixed;margin:0}
.lm-profile .stats-table th,.lm-profile .stats-table td{padding:10px 16px;border-bottom:1px solid #e7ebef;text-align:left}
.lm-profile .stats-table tr:last-child th,.lm-profile .stats-table tr:last-child td{border-bottom:none}
.lm-profile .stats-table th{width:34%;background:transparent;color:#101820;font-size:1rem;font-weight:600}
.lm-profile .stats-table td{font-size:1rem;font-weight:600;color:var(--navy)}
.lm-profile .stats-table tr:nth-child(even){background:var(--band-b)}
.lm-profile .section{margin-top:42px}
.lm-profile .section-title{font-size:1.5rem;color:var(--navy);margin:0 0 15px;font-weight:600}
.lm-profile .profile-card{border:1px solid var(--border);border-radius:9px;background:#fff;overflow:hidden}
.lm-profile .text-card{padding:24px 26px}
.lm-profile .text-card p{margin:0;font-size:1rem;max-width:1100px}
.lm-profile .legend{padding:11px 14px;border-top:1px solid var(--border);font-size:13px;color:var(--muted)}
.lm-profile .summary-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));border:1px solid var(--border);border-radius:8px;overflow:hidden;background:#fff;margin-top:18px}
.lm-profile .summary-cell{padding:13px 16px;border-right:1px solid #e7ebef}
.lm-profile .summary-cell:last-child{border-right:none}
.lm-profile .summary-label{font-size:.82rem;color:var(--muted);margin-bottom:2px}
.lm-profile .summary-value{font-size:1rem;font-weight:700;color:var(--navy)}
.lm-profile .table-box{border:0;border-radius:0}
.lm-profile .table-responsive{margin:0}
.lm-profile .lm-table{margin-bottom:0}
.lm-profile .lm-table tbody tr:hover{background:#fafcfe}
.lm-profile .profile-card a{transition:color .15s ease}
.lm-profile .profile-card a:hover{color:var(--red)}
@media (max-width:991.98px){
  .lm-profile .profile-grid{grid-template-columns:1fr;gap:26px}
  .lm-profile .profile-side{max-width:430px}
}
@media (max-width:767.98px){
  .lm-profile .profile-main h1{font-size:1.7rem}
  .lm-profile .info-row{grid-template-columns:42% 58%;padding:8px 10px}
  .lm-profile .stats-table th{width:42%}
  .lm-profile .summary-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
  .lm-profile .summary-cell:nth-child(2){border-right:none}
  .lm-profile .summary-cell:nth-child(-n+2){border-bottom:1px solid #e7ebef}
}
