/* Team identity follows driver profiles; racing stays above the conversation. */
.team-profile-page{--ts-line:#293342;--ts-card:#111722;--ts-muted:#9aa8bd;--ts-accent:var(--team-accent-primary,#dc4fac);max-width:1240px;margin:26px auto 60px;padding:0 20px}
.team-profile-page *,.ts-thread *{box-sizing:border-box}.team-profile-page>.shell{max-width:none;width:100%;margin-left:0;margin-right:0}
.team-profile-page .ts-cover{height:270px;border:1px solid var(--ts-line);border-radius:22px 22px 0 0;margin:0;background-image:var(--team-banner,linear-gradient(125deg,#141e31,#0d121c));background-size:cover;background-position:center;overflow:hidden;position:relative}
.team-profile-page .ts-cover>div{background:linear-gradient(0deg,#10162099,transparent 85%);height:100%}.team-profile-page .ts-cover .ts-cover-art{display:flex;flex-direction:column;justify-content:center;align-items:flex-start;padding:32px 8%;font-size:clamp(28px,5vw,52px);font-weight:900;letter-spacing:-.035em;line-height:1.1;background:radial-gradient(ellipse at 85% 0%,rgba(var(--team-accent-primary-rgb),.26),transparent 65%),linear-gradient(125deg,#1b2338,#0e1520)}.ts-cover-art strong{color:var(--ts-accent)}
.team-profile-page .team-profile-hero{display:flex;align-items:center;gap:22px;position:relative;margin:0!important;padding:0 28px 26px!important;background:#111722!important;border:1px solid var(--ts-line)!important;border-top:0!important;border-radius:0 0 22px 22px;box-shadow:none!important;overflow:visible}
.team-profile-page .team-profile-logo,.team-profile-page .team-profile-mark{position:relative;flex:none;width:124px;height:124px;margin-top:-32px;border:5px solid #111722;border-radius:24px;background:#0d131e;z-index:1;display:grid;place-items:center;font-size:26px;font-weight:800;box-shadow:0 8px 24px #0004}.team-profile-page .team-profile-logo img{width:100%;height:100%;object-fit:contain;padding:8px}.team-profile-page .team-profile-heading{min-width:0;flex:1;padding-top:20px}.team-profile-page .team-profile-heading h1{font-size:clamp(24px,3vw,34px);line-height:1.15;overflow-wrap:anywhere}.team-profile-page .team-profile-heading p{font-size:12px;color:var(--ts-muted)}.team-profile-page .team-profile-facts{gap:7px;flex-wrap:wrap}.team-profile-page .team-profile-facts>span,.team-profile-page .team-profile-facts>a{padding:6px 9px;border:1px solid #30394b;background:#18212f;border-radius:7px;font-size:11px}.team-profile-page .team-profile-facts small{font-size:8px}.team-profile-page .team-profile-actions{max-width:225px;display:flex;flex-wrap:wrap;gap:7px;padding-top:18px}.team-profile-page .team-profile-actions .button{min-height:34px;font-size:11px;padding:9px 12px}.team-profile-page .team-section-nav{margin:18px 0!important;background:#101620;border:1px solid var(--ts-line);border-radius:13px;padding:8px;box-shadow:none;position:relative;top:auto}.team-profile-page .team-section-nav a{background:transparent;border:1px solid transparent;border-radius:8px;min-height:40px}.team-profile-page .team-section-nav a[aria-current]{border-color:var(--ts-accent);background:rgba(var(--team-accent-primary-rgb),.09)}
.ts-heading{display:flex;align-items:center;justify-content:space-between;gap:14px;min-width:0}.ts-heading h2{font-size:21px;line-height:1.2;margin:6px 0}.ts-heading a{font-size:12px;white-space:nowrap}.ts-heading small{font-size:11px;color:var(--ts-muted)}.ts-next{margin:24px 0 28px}.ts-next>.ts-heading{margin-bottom:16px}.ts-race-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px}.ts-race{background:var(--ts-card);border:1px solid var(--ts-line);border-radius:16px;overflow:hidden;color:#eef1f8;text-decoration:none;transition:border-color .15s}.ts-race:hover{border-color:var(--ts-accent)}.ts-race-art{height:155px;position:relative;background:#182234}.ts-race-art>img{width:100%;height:100%;object-fit:cover}.ts-race-art:after{content:'';position:absolute;inset:0;background:linear-gradient(0deg,#101620bb,transparent 80%)}.ts-race-status{position:absolute;top:12px;left:12px;z-index:1;background:#0e1425d9;border:1px solid #516075;color:#f1f4fa;padding:5px 8px;border-radius:6px;font-size:10px;font-weight:800}.ts-track-mark{position:absolute;right:12px;bottom:13px;width:90px;height:44px;z-index:1}.ts-track-mark img{width:100%;height:100%;object-fit:contain}.ts-track-mark.needs-light{background:#eeeeeedb;border-radius:7px;padding:4px}.ts-race-copy{padding:18px}.ts-kicker{font-size:9px;letter-spacing:.13em;font-weight:800;color:var(--ts-accent)}.ts-race h3{font-size:18px;line-height:1.3;margin:8px 0;overflow-wrap:anywhere}.ts-race p{font-size:12px;color:var(--ts-muted);margin:8px 0 14px}.ts-race time{font-size:12px;font-weight:700;display:block}.ts-race-link{font-size:11px;display:block;margin-top:14px;color:var(--ts-accent)}.ts-race-empty{grid-column:1/-1}
.ts-layout{display:grid;grid-template-columns:310px minmax(0,1fr);gap:24px;margin-top:24px}.ts-sidebar,.ts-feed{display:flex;flex-direction:column;gap:18px;min-width:0}.ts-card{border:1px solid var(--ts-line,#293342);background:var(--ts-card,#111722);border-radius:16px;padding:22px;box-shadow:0 8px 24px #00000012;min-width:0;overflow-wrap:anywhere}.ts-card h2{font-size:19px;margin:8px 0 14px}.ts-card h3{font-size:20px}.ts-card p{font-size:13px;line-height:1.7}.ts-card a,.ts-heading a{color:#d3e3f5;text-decoration:none}.ts-card a:hover{text-decoration:underline}.ts-muted{color:var(--ts-muted,#9aa8bd);font-size:12px;line-height:1.5}.ts-body{white-space:pre-wrap;overflow-wrap:anywhere}.ts-stats{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;border-top:1px solid var(--ts-line);padding-top:16px;margin-top:16px}.ts-stats a{display:flex;flex-direction:column;gap:5px}.ts-stats strong{font-size:23px}.ts-stats span{font-size:9px;color:var(--ts-muted)}.ts-garage{display:grid;gap:20px}.ts-garage a{display:flex;flex-direction:column;gap:6px;min-width:0}.ts-garage img{width:100%;height:145px;object-fit:contain;background:#0a1019;border-radius:9px}.ts-garage strong{font-size:13px}.ts-garage small,.ts-vacancy small{font-size:11px;color:var(--ts-muted)}.ts-roster>div{display:flex;gap:12px;justify-content:space-between;border-top:1px solid var(--ts-line);padding:11px 0;font-size:12px}.ts-roster span{font-size:10px;color:var(--ts-muted)}.ts-vacancy{display:flex;flex-direction:column;gap:6px;padding:12px 0;border-bottom:1px solid var(--ts-line);margin-bottom:14px;font-size:13px}
.ts-post-heading{display:flex;gap:12px;align-items:center}.ts-team-avatar{width:48px;height:48px;flex:none;display:grid;place-items:center;background:#0b121e;border-radius:12px;font-weight:800;font-size:12px;color:var(--ts-accent)}.ts-team-avatar img{width:100%;height:100%;object-fit:contain;padding:5px}.ts-post-heading>div{min-width:0;flex:1}.ts-post-heading strong{font-size:14px}.ts-post-heading small,.ts-post-heading time{display:block;font-size:10px;color:var(--ts-muted);margin-top:5px}.ts-post>.ts-body{font-size:14px;margin:23px 0}.ts-reactions{display:flex;align-items:center;gap:16px;border-top:1px solid var(--ts-line,#293342);border-bottom:1px solid var(--ts-line,#293342);padding:11px 0;font-size:11px;color:var(--ts-muted)}.ts-reactions form{margin:0}.ts-like,.ts-text-button{font:inherit;background:transparent;border:0;color:inherit;padding:6px;cursor:pointer}.ts-like.is-liked{color:var(--ts-accent,#df65bc)}.ts-comments{padding-top:16px}.ts-comment{display:flex;gap:10px;margin-bottom:14px}.ts-person{flex:none;width:30px;height:30px;display:grid;place-items:center;background:#283145;border-radius:50%;overflow:hidden;font-size:10px}.ts-person img{height:100%;width:100%;object-fit:cover}.ts-comment-content{flex:1;min-width:0;background:#1a2230;border:1px solid #283345;border-radius:12px;padding:11px 14px}.ts-comment-content strong{font-size:12px}.ts-comment-content p{white-space:pre-wrap;font-size:12px;margin:7px 0}.ts-comment time{font-size:9px;color:var(--ts-muted,#9aa8bd)}.ts-tools{position:relative;flex:none;font-size:10px;color:var(--ts-muted,#9aa8bd)}.ts-tools summary{cursor:pointer;padding:6px 0}.ts-tools>div{padding:8px;border:1px solid #354156;border-radius:8px;min-width:120px}.ts-post-heading>.ts-tools>div{position:absolute;right:0;top:28px;z-index:2;width:min(250px,65vw);background:#192131;box-shadow:0 8px 24px #0008}.ts-comment .ts-tools{display:inline-block;margin-left:12px}.ts-form{display:flex;flex-direction:column;gap:14px;margin-top:16px}.ts-form label{font-size:12px;line-height:1.5}.ts-form textarea,.ts-reply input{width:100%;min-width:0;background:#0d131e;border:1px solid #364155;border-radius:9px;color:#eef1f8;font:inherit;padding:12px}.ts-form textarea{display:block;margin-top:6px;resize:vertical;max-width:100%}.ts-check{display:flex;align-items:flex-start;gap:10px}.ts-check input{width:16px;height:16px;flex:none;margin:2px 0 0;accent-color:var(--ts-accent)}.ts-form .button{width:auto;align-self:flex-start}.ts-form small{color:var(--ts-muted,#9aa8bd);font-size:11px;line-height:1.5}.ts-composer>summary,.ts-settings>summary{cursor:pointer;font-size:13px;font-weight:700}.ts-settings{padding:14px 22px}.ts-reply{margin-top:18px}.ts-reply>label{font-size:10px;color:var(--ts-muted,#9aa8bd);display:block;margin-bottom:7px}.ts-reply>div{display:flex;gap:8px}.ts-reply input{font-size:12px}.ts-reply .button{flex:none}.ts-empty>span{font-size:34px;color:var(--ts-accent);font-weight:900}.ts-empty p{color:var(--ts-muted)}.ts-all-comments{font-size:12px}.ts-thread{max-width:900px;margin:32px auto;padding:0 20px;--ts-muted:#9aa8bd}.ts-thread>.ts-card{margin:20px 0}.ts-thread .ts-reactions{flex-wrap:wrap}.ts-layout [id],.ts-next{scroll-margin-top:140px}.team-profile-page :focus-visible,.ts-thread :focus-visible{outline:2px solid var(--ts-accent,#e05abb);outline-offset:4px}
@media(max-width:1000px){.ts-layout{grid-template-columns:260px minmax(0,1fr);gap:18px}.team-profile-page .team-profile-hero{flex-wrap:wrap}.team-profile-page .team-profile-actions{max-width:none;width:100%;padding:0;margin-left:146px}.ts-race-grid{gap:12px}.ts-card{padding:18px}.ts-race-copy{padding:14px}}
@media(max-width:700px){.team-profile-page{margin-top:16px;padding:0 12px}.team-profile-page .ts-cover{height:165px;border-radius:15px 15px 0 0}.team-profile-page .team-profile-hero{gap:13px;padding:0 16px 20px!important;border-radius:0 0 15px 15px}.team-profile-page .team-profile-logo,.team-profile-page .team-profile-mark{width:80px;height:80px;border-radius:18px;margin-top:-22px}.team-profile-page .team-profile-heading{padding-top:14px}.team-profile-page .team-profile-heading h1{font-size:23px}.team-profile-page .team-profile-actions{margin-left:0}.team-profile-page .team-profile-facts{gap:4px}.team-profile-page .team-profile-facts>span,.team-profile-page .team-profile-facts>a{padding:4px 6px;font-size:9px}.team-profile-page .team-section-nav{display:flex;flex-wrap:nowrap;overflow-x:auto;max-width:100%;padding:5px}.team-profile-page .team-section-nav a{white-space:nowrap;flex:none;font-size:11px}.ts-race-grid{grid-template-columns:1fr}.ts-race{display:grid;grid-template-columns:110px minmax(0,1fr)}.ts-race-art{height:100%;min-height:165px}.ts-track-mark{width:70px;right:10px;height:34px}.ts-race h3{font-size:16px;margin-top:5px}.ts-race p{margin:6px 0 10px;font-size:11px}.ts-race-link{margin-top:8px}.ts-layout{grid-template-columns:1fr}.ts-sidebar{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));align-items:start}.ts-sidebar>#about{grid-column:1/-1}.ts-feed{grid-row:2}.ts-heading h2{font-size:19px}.ts-heading{flex-wrap:wrap;gap:8px}.ts-feed>.ts-heading>.ts-muted{font-size:10px}.ts-card{padding:16px}.ts-garage img{height:110px}.ts-post-heading .ts-tools{font-size:9px}.ts-post-heading .ts-team-avatar{width:38px;height:38px}.ts-form .ts-heading{align-items:flex-start}.ts-reply>div{flex-wrap:wrap}.ts-reply .button{margin-left:auto}.ts-reply input{flex:1;min-width:130px}.ts-comment-content{padding:10px}.ts-roster>div{flex-wrap:wrap;gap:3px}.ts-race time{font-size:11px}}
@media(max-width:420px){.ts-sidebar{grid-template-columns:1fr}.ts-sidebar>#about{grid-column:auto}.ts-race{grid-template-columns:88px minmax(0,1fr)}.ts-race-art{min-height:185px}.ts-race-status{left:7px;top:9px;font-size:8px;padding:4px}.ts-track-mark{width:64px}.ts-post-heading{gap:9px}.ts-post-heading strong{font-size:12px}.team-profile-page .team-profile-heading h1{font-size:21px}.ts-reactions{gap:12px}}
@media(prefers-reduced-motion:reduce){.ts-race{transition:none}}
/* Upcoming entries share the sidebar's visual scale, not full-width thirds. */
.team-profile-page .ts-race-grid{grid-template-columns:repeat(3,minmax(0,310px));justify-content:start;align-items:stretch}
.team-profile-page .ts-race-art{height:112px}
.team-profile-page .ts-race-copy{padding:14px 16px}
.team-profile-page .ts-race h3{font-size:16px;margin:6px 0;line-height:1.3}
.team-profile-page .ts-race p{margin:6px 0 10px}
.team-profile-page .ts-race-link{margin-top:10px}
@media(max-width:1000px) and (min-width:701px){
 .team-profile-page .ts-race-grid{grid-template-columns:repeat(3,minmax(0,260px))}
 .team-profile-page .ts-race-art{height:100px}
 .team-profile-page .ts-race-copy{padding:12px}
}
@media(max-width:700px){
 .team-profile-page .ts-race-grid{grid-template-columns:minmax(0,310px)}
 .team-profile-page .ts-race{grid-template-columns:88px minmax(0,1fr)}
 .team-profile-page .ts-race-art{height:100%;min-height:150px}
 .team-profile-page .ts-race-copy{padding:12px}
 .team-profile-page .ts-race h3{font-size:15px}
 .team-profile-page .ts-race-link{margin-top:8px}
}
