/* Cyber Thunder archive: the original league and the iRacing era share one line. */
/* Archival palette sampled from the supplied 2010 Statpak, schedule and leaders.
   Scoped to History; no claim that the pending logo is 2018 artwork. */
@property --lime{syntax:"<color>";inherits:true;initial-value:#d0fa4b}
@property --line{syntax:"<color>";inherits:true;initial-value:#35493e}
body{transition:--lime .4s ease,--line .4s ease,background-color .4s ease,color .4s ease}
body.founding-era-mode{--lime:#ffcc00;--line:#4b787e;--bg:#000;--panel:#1f2035;--panel2:#292a46;--text:#fff;--muted:#b2c9cc}
.top{transition:background-color .4s ease,border-color .4s ease}
.founding-era-mode .top{background:#000000f5}
.history-eras,.history-entry details,.history-traffic,.history-then-now div,.history-live div,.archive-shot,.racing-shot{transition:background-color .4s ease,border-color .4s ease}
.founding-era-mode .history-eras{background:var(--panel);border-color:var(--line)}
.founding-era-mode :is(.history-entry details,.history-then-now div,.history-live div,.archive-shot,.racing-shot){background:var(--panel);border-color:var(--line)}
.founding-era-mode .history-traffic{background:var(--panel2);border-color:var(--line)}
.founding-era-mode :is(.history-entry-inner,.history-actions a,.history-then-now,.archive-shot figcaption){border-color:var(--line)}
.founding-era-mode .history-entry-major .history-entry-inner{border-color:var(--lime)}
.founding-era-mode .history-track:before{background:linear-gradient(var(--lime),var(--line))}
.founding-era-mode .history-node{background:var(--bg)}
.founding-era-mode .history-distant{text-shadow:0 0 50px #ffcc003d}
.founding-era-mode .history-hero:after{color:#ffcc000b}
/* Crossfade broad background treatments without replacing any content. */
.history-hero,.history-dark,.history-revival{position:relative;isolation:isolate}
.history-hero:before,.history-dark:before,.history-revival:before{content:"";position:absolute;inset:0;z-index:-1;background:linear-gradient(115deg,#000 35%,#1f2035 75%,#4b787e);opacity:0;pointer-events:none;transition:opacity .4s ease}
.history-dark:before{background:#000}
.founding-era-mode :is(.history-hero,.history-dark,.history-revival):before{opacity:1}
.founding-brand-wrap{position:relative;flex-shrink:0}
.founding-brand{position:relative}
.founding-brand img{transition:opacity .4s ease,filter .4s ease}
.founding-era-mode .founding-brand>img:first-child{filter:saturate(.35)}
.founding-brand .founding-archive-logo{position:absolute;inset:0;width:100%;height:100%;max-height:none;object-fit:contain;opacity:0;pointer-events:none}
.founding-era-mode.founding-archive-ready .founding-brand>img:first-child{opacity:0}
.founding-era-mode.founding-archive-ready .founding-archive-logo{opacity:1}
.founding-label{position:absolute;top:calc(100% + 5px);left:0;white-space:nowrap;color:var(--lime);font:700 .57rem/1.1 Inter,Arial,sans-serif;letter-spacing:.09em;opacity:0;visibility:hidden;pointer-events:none;transition:opacity .4s ease,visibility .4s}
.founding-era-mode .founding-label{opacity:1;visibility:visible}
.founding-trigger{appearance:none;border:0;border-radius:2px;background:none;padding:0;color:inherit;font:inherit;letter-spacing:inherit;cursor:pointer;touch-action:manipulation;transition:text-shadow .2s ease}
.founding-trigger:hover{text-shadow:0 0 10px color-mix(in srgb,var(--lime) 35%,transparent)}
.founding-trigger:focus-visible{outline:2px solid var(--lime);outline-offset:5px}
.history-distant .founding-trigger{padding:4px 12px}
.eyebrow .founding-trigger{min-height:28px;padding:4px 0;margin:-4px 0}
.founding-toast{position:fixed;right:20px;bottom:calc(22px + env(safe-area-inset-bottom));z-index:20;width:min(340px,calc(100vw - 40px));padding:15px 18px;background:var(--panel);border:1px solid var(--line);border-left:2px solid var(--lime);box-shadow:0 8px 25px #0004;opacity:0;visibility:hidden;pointer-events:none;transition:opacity .3s ease,visibility .3s}
.founding-toast.is-visible{opacity:1;visibility:visible}
.founding-toast strong{display:block;color:var(--lime);font-size:.75rem;letter-spacing:.09em;margin-bottom:5px}
.founding-toast span{display:block;color:var(--text);font-size:.8rem;line-height:1.5}
@media(prefers-reduced-motion:reduce){html{scroll-behavior:auto}body,.top,.founding-brand img,.founding-label,.founding-trigger,.founding-toast,.history-eras,.history-entry details,.history-traffic,.history-then-now div,.history-live div,.archive-shot,.racing-shot,.history-hero:before,.history-dark:before,.history-revival:before{transition:none}}
.history-hero{background:radial-gradient(ellipse at 85% 27%,#245a32 0,transparent 43%),linear-gradient(115deg,#0b1511,#152b20);border-bottom:1px solid var(--line);min-height:74vh;display:flex;align-items:center;position:relative;overflow:hidden}
.history-hero:after{content:"2001 →";position:absolute;right:-.04em;bottom:-.19em;font:900 clamp(10rem,32vw,34rem)/1 Barlow Condensed,sans-serif;color:#d0fa4b0b;pointer-events:none}
.history-hero .shell{position:relative;z-index:1;padding:90px 0}.history-hero h1{font-size:clamp(4.5rem,10vw,9rem);line-height:.88;margin:28px 0}.history-years{color:var(--lime);font-weight:800;letter-spacing:.14em;text-transform:uppercase}.history-lead{font-size:clamp(1.1rem,2vw,1.45rem);color:#e1eae0;line-height:1.5;margin:28px 0 0}.history-hero-actions{display:flex;gap:30px;align-items:center;flex-wrap:wrap;margin-top:38px}.history-hero-actions>span{font-size:.8rem;text-transform:uppercase;letter-spacing:.12em;color:var(--muted)}.history-hero-actions strong{font:900 2.6rem Barlow Condensed,sans-serif;color:var(--lime);vertical-align:middle;margin-right:8px}
.history-eras{position:sticky;top:82px;z-index:4;background:#0d1b15f5;border-block:1px solid #35503e;backdrop-filter:blur(12px)}.history-eras .shell{display:flex;overflow:auto;scrollbar-width:thin}.history-eras a{display:block;padding:12px 13px;min-width:130px;border-bottom:3px solid transparent;white-space:nowrap;font:800 1.05rem Barlow Condensed,sans-serif}.history-eras small{display:block;color:var(--muted);font:600 .7rem Inter,Arial,sans-serif;text-transform:uppercase;letter-spacing:.04em}.history-eras a[aria-current="location"]{border-color:var(--lime);color:var(--lime)}
.history-era{padding:110px 0 130px;scroll-margin-top:150px}.history-era-intro{max-width:820px}.history-era h2,.history-revival h2,.history-dark h2{font-size:clamp(4rem,9vw,8rem);line-height:.88;margin:25px 0}.history-era-intro>p,.history-era-heading>p,.history-revival p,.history-dark p{font-size:clamp(1.05rem,1.5vw,1.25rem);line-height:1.7;color:#c8d7cb;max-width:770px}.history-origin-stats{display:flex;gap:18px;align-items:center;flex-wrap:wrap;margin:34px 0;padding:23px 0;border-block:1px solid var(--line);font-weight:800;text-transform:uppercase;letter-spacing:.1em}.history-origin-stats strong{font:900 5rem/.8 Barlow Condensed,sans-serif;color:var(--lime)}
.history-quote{border:0;margin:80px auto;padding:45px 0 45px 35px;border-left:5px solid #758d70;max-width:850px}.history-quote p{font:700 clamp(1.6rem,3vw,2.7rem)/1.18 Barlow Condensed,sans-serif;text-transform:none;margin-bottom:20px}.history-quote footer{color:var(--muted);font-size:.8rem;letter-spacing:.06em}.history-quote-main{border-left-color:var(--lime);padding-block:65px}.history-quote-main p{font-size:clamp(2.3rem,5.8vw,5rem);color:var(--lime)}
.history-era-heading{max-width:890px;margin-bottom:60px}.history-track{position:relative;padding:8px 0 10px}.history-track:before{content:"";position:absolute;top:0;bottom:0;left:50%;width:2px;background:linear-gradient(var(--lime),#41644c)}.history-entry{position:relative;width:50%;padding:10px 46px 55px 0}.history-entry-right{margin-left:50%;padding:10px 0 55px 46px}.history-node{position:absolute;right:-8px;top:24px;width:16px;height:16px;border:3px solid var(--lime);background:#0c1513;border-radius:50%;z-index:1}.history-entry-right .history-node{right:auto;left:-8px}.history-entry-inner{border-top:1px solid #49674e;padding:20px 0 0}.history-entry-major .history-entry-inner{border-top:5px solid var(--lime)}.history-date{color:var(--lime);font-weight:800;letter-spacing:.13em;text-transform:uppercase;font-size:.8rem}.history-entry h3{font-size:clamp(2rem,4vw,3.4rem);margin:12px 0 16px}.history-entry p{color:#cfdbd0;line-height:1.65}.history-entry details{border:1px solid #426047;background:#14241b;margin-top:17px;padding:13px 16px}.history-entry summary{color:var(--lime);font-weight:800;cursor:pointer}.history-entry details p{margin:15px 0 3px}.history-traffic{margin:45px auto 0;padding:30px;background:#182e20;border:1px solid #587345;display:flex;align-items:center;gap:24px;justify-content:space-around;text-transform:uppercase;letter-spacing:.08em;text-align:center}.history-traffic b{font:900 clamp(3.8rem,8vw,7rem)/1 Barlow Condensed,sans-serif;color:var(--lime)}.history-then-now{display:grid;grid-template-columns:1fr 1fr;gap:1px;background:#4a6148;border:1px solid #4a6148;margin:50px 0}.history-then-now div{background:#14231a;padding:29px}.history-then-now span{display:block;color:var(--lime);font-size:.8rem;text-transform:uppercase;letter-spacing:.14em;font-weight:900;margin-bottom:17px}.history-then-now strong{font:700 clamp(1.35rem,2.5vw,2rem)/1.25 Barlow Condensed,sans-serif}
.history-dark{background:linear-gradient(#080d0c,#050808 70%,#0a120d);padding:150px 0 0;min-height:145vh;scroll-margin-top:150px}.history-dark h2{color:#b6beb6}.history-dark .shell{position:relative}.history-dark p{max-width:620px;color:#a7b0a8}.history-silence{color:#77827a;font:700 clamp(2rem,4vw,4rem)/1.3 Barlow Condensed,sans-serif;text-transform:uppercase;margin:90px 0}.history-distant{display:block;margin-top:38vh;color:var(--lime);font:900 clamp(5rem,12vw,11rem)/1 Barlow Condensed,sans-serif;text-align:center;text-shadow:0 0 50px #baff363d}
.history-revival{scroll-margin-top:150px;border-block:1px solid var(--lime);background:radial-gradient(ellipse at center,#285a2b 0,#142e1e 50%,#0c1513 85%);padding:160px 0}.history-revival h2{font-size:clamp(4.5rem,10vw,10rem)}.history-bridge{padding:110px 0;border-bottom:1px solid var(--line)}.history-bridge p{padding:18px 0;border-bottom:1px solid var(--line);display:grid;grid-template-columns:70px 1fr;gap:15px;color:var(--lime);font-weight:900}.history-bridge p span{color:var(--text);font-weight:500}.history-bridge strong,.history-values strong{display:block;color:var(--lime);font:900 clamp(4.2rem,10vw,9rem)/1 Barlow Condensed,sans-serif;text-transform:uppercase;margin:45px 0 12px}.history-bridge small{display:block;color:#b5c8b5;font-size:1rem}.history-values{margin:100px 0 0;border-top:1px solid var(--line);padding:50px 0}.history-values span{color:var(--lime);letter-spacing:.2em;font-size:.8rem}.history-values p{font-size:1.35rem}.history-today{border-top:1px solid var(--line);padding:105px 0 20px;margin-top:100px}.history-live{display:flex;flex-wrap:wrap;gap:10px;margin:35px 0}.history-live:empty{display:none}.history-live div{background:#192c21;border:1px solid #3a5a40;padding:14px 18px;min-width:170px}.history-live span{display:block;color:var(--muted);font-size:.75rem;text-transform:uppercase;letter-spacing:.08em}.history-live strong{font:800 1.7rem Barlow Condensed,sans-serif}.history-today>p{font-size:1.35rem;color:#c9dcc9}.history-actions{display:flex;gap:10px;flex-wrap:wrap;margin-top:30px}.history-actions a{padding:13px 16px;border:1px solid #5d834d;color:var(--lime);font-weight:800}.history-actions a:hover{background:var(--lime);color:#0c1513}
@media (max-width:760px){.history-hero{min-height:0}.history-hero .shell{padding:80px 0}.history-hero h1{font-size:clamp(3.6rem,15vw,6rem)}.history-eras{top:106px}.history-eras a{min-width:105px;padding:9px}.history-era{padding:70px 0;scroll-margin-top:160px}.history-track:before{left:8px}.history-entry,.history-entry-right{margin:0;width:100%;padding:0 0 47px 35px}.history-node,.history-entry-right .history-node{left:1px;right:auto;top:13px}.history-entry h3{font-size:2.25rem}.history-quote{margin:45px auto;padding:30px 0 30px 22px}.history-traffic{display:block}.history-traffic b{display:block;margin:12px 0}.history-then-now{grid-template-columns:1fr}.history-dark{padding-top:85px;min-height:125vh}.history-revival{padding:100px 0}.history-bridge{padding:75px 0}.history-bridge strong,.history-values strong{overflow-wrap:anywhere}.history-today{padding-top:75px;margin-top:60px}}
@media(prefers-reduced-motion:no-preference){.reveal{opacity:0;transform:translateY(25px);transition:opacity .6s ease,transform .6s ease}.reveal.is-visible{opacity:1;transform:none}}
@media(prefers-reduced-motion:reduce){.reveal{opacity:1;transform:none}}
/* Actual 2010 screenshots retain their pixels and proportions. */
.archive-group{border-top:1px solid var(--line);margin:65px 0 90px;padding-top:35px}.archive-group-head{max-width:690px;margin-bottom:28px}.archive-group-head h3{font-size:clamp(2.7rem,5vw,4.2rem);margin:13px 0}.archive-group-head p{color:#bccfc0;line-height:1.65}.archive-grid{display:grid;gap:22px;align-items:start}.archive-grid-web{grid-template-columns:minmax(0,1.15fr) minmax(0,.85fr)}.archive-grid-stats{grid-template-columns:1fr 1fr}.archive-shot{margin:0;min-width:0;background:#0b1111;border:1px solid #3d554a;padding:12px}.archive-open{display:block;width:100%;background:#060909;border:0;color:var(--lime);padding:0;cursor:zoom-in;text-align:left}.archive-open img{display:block;width:100%;height:auto;max-height:600px;object-fit:contain;object-position:top center;image-rendering:auto}.archive-grid-web .archive-shot:first-child .archive-open img{max-height:760px}.archive-open>span{display:block;padding:10px 4px 2px;font-weight:800;font-size:.8rem;text-transform:uppercase;letter-spacing:.07em}.archive-shot figcaption{border-top:1px solid #344638;margin-top:9px;padding:13px 4px 4px}.archive-shot figcaption strong,.archive-shot figcaption span{display:block}.archive-shot figcaption strong{font-size:.95rem}.archive-shot figcaption span{font-size:.83rem;color:var(--muted);margin-top:5px;line-height:1.5}.archive-schedule>.archive-shot{max-width:740px}.archive-dialog{max-width:min(96vw,1100px);max-height:94vh;background:#080e0c;color:var(--text);border:1px solid var(--lime);padding:15px;overflow:auto}.archive-dialog::backdrop{background:#000d}.archive-dialog img{display:block;max-width:100%;height:auto;margin:auto}.archive-close{position:sticky;top:0;display:block;margin:0 0 12px auto;border:1px solid var(--lime);background:#12231a;color:var(--lime);font:800 .9rem Inter,Arial,sans-serif;padding:10px 15px;cursor:pointer;z-index:1}
@media(max-width:760px){.archive-grid-web,.archive-grid-stats{grid-template-columns:1fr}.archive-group{margin:50px 0 65px}.archive-open img,.archive-grid-web .archive-shot:first-child .archive-open img{max-height:550px}.archive-dialog{padding:9px}}
/* The modern racing images bridge the revival to the web era without assigning undated shots to specific races. */
.history-racing-gallery{border-top:1px solid var(--line);padding-top:40px;margin:45px 0 30px}.history-racing-intro{max-width:720px;margin-bottom:28px}.history-racing-intro h3{font-size:clamp(2.8rem,5vw,4.4rem);margin:14px 0}.history-racing-intro p{color:#c4d3c5;line-height:1.65}.history-racing-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:20px}.racing-shot{margin:0;min-width:0;background:#101d17;border:1px solid #395640}.racing-shot button{display:block;position:relative;width:100%;border:0;background:#080d0b;color:#fff;padding:0;cursor:zoom-in;overflow:hidden}.racing-shot img{display:block;width:100%;height:auto}.racing-shot button>span{position:absolute;right:12px;bottom:12px;padding:8px 11px;background:#0a1714e8;border:1px solid #a7ce78;color:#e3ffc5;font-size:.75rem;font-weight:800;text-transform:uppercase;letter-spacing:.06em}.racing-shot button:focus-visible{outline:3px solid var(--lime);outline-offset:3px;z-index:1}.racing-shot figcaption{display:grid;gap:4px;padding:16px 19px 19px}.racing-shot figcaption strong{font:800 1.35rem Barlow Condensed,sans-serif}.racing-shot figcaption span{font-size:.9rem;line-height:1.5;color:#bbcebd}.racing-shot-wide{margin:4px 0 42px}.racing-shot-wide figcaption{display:flex;align-items:baseline;flex-wrap:wrap;gap:8px 22px}
@media(max-width:760px){.history-racing-grid{grid-template-columns:1fr}.racing-shot button>span{font-size:.7rem}.racing-shot-wide{margin-bottom:30px}}

/* Modern chapters extend the original archive's headline and quotation language. */
.history-modern-hero{padding:65px 0;border-top:1px solid var(--line);margin:35px 0}
.history-modern-hero h2{font-size:clamp(3.3rem,8.5vw,8rem);color:var(--lime);overflow-wrap:break-word}
.history-modern-hero>p{color:var(--muted);font-size:1.15rem;line-height:1.6}
.history-prose{max-width:800px}.history-prose h3,.history-leaders h3,.history-era-heading h3{font-size:clamp(2rem,4vw,3.2rem);margin:20px 0}
.history-prose p,.history-leaders p,.history-reading p{line-height:1.75;color:#c8d7cb}
.history-leaders{display:grid;grid-template-columns:1fr 1fr;gap:28px}.history-leaders article{border-top:4px solid var(--lime);padding:30px;background:var(--panel)}
.history-leaders .history-service{font-size:.9rem;color:var(--lime);min-height:3.5em}
.history-reading{border:1px solid var(--line);padding:24px;margin:40px 0}.history-reading summary{cursor:pointer;font-weight:800;color:var(--lime);line-height:1.5}.history-reading .history-quote{margin:35px 0;padding:20px}.history-reading .history-quote p{font-size:clamp(1.5rem,3vw,2.3rem);color:var(--text)}
.history-leadership-timeline{padding-left:25px}.history-leadership-timeline li{padding:20px 0 10px}.history-leadership-timeline strong{color:var(--lime)}.history-retrospective{margin-top:80px}.history-philosophy{margin-top:90px}
@media(max-width:760px){.history-leaders{grid-template-columns:1fr}.history-leaders article{padding:24px}.history-modern-hero{padding:40px 0}.history-reading{padding:18px}.history-reading .history-quote{padding-left:16px}}

/* Three readable chapters, with archive images placed in the narrative. */
#nr2003-era,#iracing-era,#modern-era{scroll-margin-top:150px}
.history-category-label{padding-top:65px}.history-category-label+.history-era{padding-top:35px}
.history-eras .shell>a{flex:1;min-width:180px}.history-eras small{white-space:normal;line-height:1.5}
.history-story-row{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);align-items:center;gap:clamp(28px,5vw,75px);margin:65px 0 95px}
.history-story-row>*{min-width:0}.history-story-row .archive-shot,.history-story-row .racing-shot{margin:0}.history-story-row .archive-shot img{max-height:660px;object-fit:contain;background:var(--panel)}
.history-story-reverse .history-story-copy{order:2}.history-story-copy h3,.history-story-chapter>h3{font-size:clamp(2.2rem,4vw,3.5rem);margin:18px 0}.history-story-copy p{color:#c8d7cb;line-height:1.75}
.history-story-chapter{padding-top:45px;margin-top:60px;border-top:1px solid var(--line);scroll-margin-top:160px}.history-story-chapter .history-era-heading{margin-bottom:35px}.history-story-chapter .history-era-heading h3{font-size:clamp(2.5rem,5vw,4.5rem)}
#modern-era .history-quote-main{margin:65px auto}#modern-era .history-quote-main p{font-size:clamp(2.3rem,5vw,4.6rem)}
@media(max-width:760px){.history-story-row{grid-template-columns:1fr;gap:25px;margin:45px 0 65px}.history-story-reverse .history-story-copy{order:0}.history-story-row .archive-shot img{max-height:520px}.history-category-label{padding-top:45px}.history-eras .shell>a{min-width:145px}#nr2003-era,#iracing-era,#modern-era{scroll-margin-top:170px}}
