/* Team identity is the stage, not a badge inside a box. */
#teams.team-showcase{padding:88px 6vw 100px;background:#e9e6dc;color:#17242b}
.team-showcase .team-story-head{max-width:1000px;margin-bottom:38px}
.team-showcase .team-story-head h2{font-size:clamp(2.8rem,6vw,6rem);line-height:.95;letter-spacing:-.025em;margin-bottom:25px}
.team-showcase .team-story-head h2 em{display:block;color:#7b4535;font-style:italic}
.team-showcase .team-story-head>p:last-child{max-width:660px;font-size:1rem}
.team-selector{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:0;margin-bottom:28px;border-block:1px solid #17242b40}
.team-select{appearance:none;border:0;border-bottom:5px solid transparent;background:transparent;color:#334047;text-align:left;min-height:88px;padding:15px 14px;font:700 clamp(1rem,1.8vw,1.45rem)/1.05 'Barlow Condensed',sans-serif;text-transform:uppercase;cursor:pointer;display:flex;align-items:center;gap:12px}
.team-select-number{font:500 .7rem 'Jost',sans-serif;align-self:flex-start;color:#647178;padding-top:5px}
.team-select[aria-selected=true]{border-bottom-color:var(--team-accent);color:var(--team-ink);background:#ffffff60}
.team-select:hover{background:#fff7}.team-select:focus-visible{outline:3px solid #17242b;outline-offset:3px;position:relative;z-index:2}
.team-showcase .team-story-grid{display:block}
.team-showcase article.team-story-card[data-team]{display:grid;grid-template-columns:1fr 1fr;border:0;border-radius:0;background:var(--team-paper);box-shadow:none;margin-bottom:32px;position:relative;isolation:isolate}
.team-showcase article.team-story-card[hidden]{display:none}
.team-showcase .team-identity{position:relative;overflow:hidden;display:flex;flex-direction:column;align-items:flex-start;justify-content:center;padding:32px 42px 40px;min-height:390px;border-top:0;background:var(--team-paper);color:var(--team-ink)}
.team-showcase .team-identity:before{content:'';position:absolute;inset:0 0 0 auto;width:17%;background:var(--team-accent);clip-path:polygon(90% 0,100% 0,100% 100%,0 100%);opacity:.9;z-index:-1}
.team-showcase .team-identity .chapter{font-size:.72rem;letter-spacing:.19em;margin:0 0 12px;color:var(--team-ink)}
.team-showcase .team-showcase-emblem{display:flex;align-items:center;width:clamp(150px,18vw,230px);height:170px;margin:0 0 22px;padding:0;background:none;border:0;border-radius:0;float:none}
.team-showcase .team-showcase-emblem img{display:block;max-width:100%;width:100%;height:100%;object-fit:contain;mix-blend-mode:multiply;background:transparent;border:0;padding:0;aspect-ratio:auto;object-position:left center}
.team-showcase .team-identity h3{font:900 italic clamp(2.8rem,4.3vw,5rem)/.91 'Barlow Condensed',sans-serif;text-transform:uppercase;letter-spacing:-.025em;color:var(--team-ink);margin:0;max-width:94%;min-height:0}
.team-showcase .team-identity .ninefold-wordmark{display:block;width:95%;max-width:430px;height:auto;margin:0;mix-blend-mode:multiply}
.team-showcase [data-team=ninefold] .team-identity h3{position:absolute;clip:rect(0,0,0,0);width:1px;height:1px;overflow:hidden}
.team-showcase .team-identity .team-livery{display:flex;width:80%;gap:0;border:0;padding:0;margin:27px 0 0;transform:skewX(-20deg);transform-origin:left}
.team-showcase .team-livery span{width:33.333%;height:9px;border:0}
.team-showcase .team-showcase-portrait{position:relative;min-width:0;margin:0;background:var(--team-dark);overflow:hidden;aspect-ratio:4/3;align-self:stretch}
.team-showcase .team-showcase-portrait>img{display:block;width:100%;height:100%;aspect-ratio:4/3;object-fit:cover;object-position:var(--portrait-focus,50% 30%)!important;padding:0;border:0}
.team-showcase .team-showcase-portrait figcaption{position:absolute;bottom:0;inset-inline:0;background:linear-gradient(transparent,#081119ee);color:#fff;padding:38px 26px 20px;font:600 .85rem 'Jost',sans-serif;letter-spacing:.025em}
.team-showcase .team-story-card>div.team-showcase-story{grid-column:1/-1;border:0;border-top:8px solid var(--team-accent);padding:28px 38px 32px;display:grid;grid-template-columns:1.2fr 1fr auto;column-gap:36px;background:var(--team-dark);color:#f4f2eb;align-items:start;position:relative}
.team-showcase .team-showcase-story .team-community{grid-column:1;grid-row:1;color:var(--team-paper);font-size:.62rem;line-height:1.6;margin:0 0 6px;letter-spacing:.09em}
.team-showcase .team-showcase-story h4{grid-column:1;grid-row:2;margin:0 0 10px;font:700 1.7rem/1.1 'Barlow Condensed',sans-serif}
.team-showcase .team-story-more{grid-column:1;grid-row:3;font-size:.85rem;line-height:1.7;color:#e0e4e2}
.team-showcase .team-story-more summary{cursor:pointer;text-decoration:underline;text-underline-offset:4px;min-height:30px;padding-top:8px}
.team-showcase .team-story-more p{margin-bottom:0}
.team-showcase .team-showcase-story dl{grid-column:2;grid-row:1/4;border:0;border-left:1px solid #ffffff35;padding:0 0 0 30px;margin:0}
.team-showcase .team-showcase-story dt{font-size:.6rem;color:#d4d9d5;margin:0 0 6px}.team-showcase .team-showcase-story dt:not(:first-child){margin-top:17px}.team-showcase .team-showcase-story dd{font-size:.85rem;line-height:1.5}
.team-showcase .team-showcase-story>a{grid-column:3;grid-row:1/4;color:#fff;font-size:.8rem;align-self:center;white-space:nowrap;padding:16px 0;border-bottom:2px solid var(--team-accent);text-decoration:none}
.team-showcase .team-showcase-story>a:after{content:' ↗';font-size:1.1rem;margin-left:14px}
/* Remove generic badge plates elsewhere without changing approved artwork. */
.driver-team-badge{background:transparent!important;border:0!important;border-radius:0!important;box-shadow:none!important;width:70px;height:60px}
.driver-team-badge img{mix-blend-mode:normal}
@media(max-width:1000px){.team-showcase .team-identity{min-height:330px;padding:26px}.team-showcase .team-showcase-emblem{height:140px}.team-showcase .team-showcase-portrait{aspect-ratio:auto}.team-showcase .team-story-card>div.team-showcase-story{grid-template-columns:1.2fr 1fr;gap:12px 24px;padding:26px}.team-showcase .team-showcase-story>a{grid-column:1;grid-row:4;justify-self:start}.team-select{padding:14px 9px;gap:7px}}
@media(max-width:600px){#teams.team-showcase{padding:56px 5vw}.team-showcase .team-story-head{margin-bottom:24px}.team-showcase .team-story-head h2{font-size:3.1rem}.team-selector{grid-template-columns:repeat(2,minmax(0,1fr));gap:0;margin-bottom:20px}.team-select{min-height:61px;font-size:1.1rem;border-bottom-width:3px;padding:10px}.team-select:last-child{grid-column:1/-1;min-height:48px}.team-select-number{font-size:.6rem}.team-showcase article.team-story-card[data-team]{grid-template-columns:1fr}.team-showcase .team-identity{min-height:0;padding:24px 22px 28px;display:grid;grid-template-columns:105px 1fr;column-gap:16px}.team-showcase .team-identity .chapter{grid-column:1/-1;margin-bottom:20px}.team-showcase .team-showcase-emblem{width:105px;height:100px;margin:0;grid-column:1;grid-row:2/4}.team-showcase .team-identity h3{font-size:2.3rem;grid-column:2;grid-row:2;max-width:100%}.team-showcase .team-identity .ninefold-wordmark{grid-column:2;grid-row:2;width:100%;margin:auto 0}.team-showcase .team-identity .team-livery{grid-column:2;grid-row:3;width:90%;margin:15px 0 0}.team-showcase .team-showcase-portrait{aspect-ratio:4/3}.team-showcase .team-showcase-portrait figcaption{font-size:.72rem;padding:28px 18px 15px}.team-showcase .team-story-card>div.team-showcase-story{grid-template-columns:1fr;padding:24px 22px;gap:0;border-top-width:6px}.team-showcase .team-showcase-story dl{grid-column:1;grid-row:4;border-left:0;border-top:1px solid #ffffff35;padding:20px 0 0;margin:20px 0 0}.team-showcase .team-showcase-story>a{grid-column:1;grid-row:5;margin-top:12px}.team-showcase .team-showcase-story h4{font-size:1.6rem}}
@media(prefers-reduced-motion:no-preference){.team-select{transition:background .2s,border-color .2s}}
.team-showcase .team-identity:before{z-index:0}.team-showcase .team-identity>*{position:relative;z-index:1}
