/* Bull Run Investment Management — site styles shared by every page.
   Tesla.com layout rebuilt for Bull Run. Page-specific styles live in each page.
   Colour rule: gold only where it means Bull Run, red only for a loss or a Bull Run mark on a ranking. */
/* @colors (written by build/build.js from content/site.json "colors"; edit that list, not these lines) */
:root{--src-ss:#9C8FC4;--src-pen:#C9C0E3;--src-inc:#E2CF9A;--src-out:#C2A383;--src-tax:#4F7CAC;--src-ira:#24356F;--src-roth:#2A9D8F;--ac-tax:#4F7CAC;--ac-joint:#4F7CAC;--ac-indiv:#84AEDB;--ac-trust:#86BCE8;--ac-itrust:#2E5A85;--ac-inh:#7381B8;--ac-ira:#24356F;--ac-trad:#24356F;--ac-k401:#7A5C3E;--ac-b403:#6B7A94;--ac-roll:#8B4F7D;--ac-sep:#B5654A;--ac-simple:#7D8B3E;--ac-roth:#2A9D8F;--ac-rothira:#2A9D8F;--ac-roth401:#4E9F5B;--ac-stk:#C2A383;--ac-oth:#9C8263;--ink:#171A20;--ink2:#393C41;--gray:#5C5E62;--gray2:#8E8E8E;--gray3:#A2A3A5;--axis:#9A9C9F;--line:#D0D1D2;--rule:#E3E4E5;--rule2:#EEEEEE;--outline:#C9CACC;--outline2:#D9DADC;--outline-on:#B9BBBE;--card:#F4F4F4;--hover:#E8E8E8;--soft:#F6F6F6;--wash:#F0F2FA;--wash2:#E2E5EE;--blue-tint:#E8EDFB;--gold-tint:#FAF6EA;--teal-tint:#EEF5F8;--blue:#3E6AE1;--blue-h:#3457B1;--indigo:#1F2C6E;--red:#E82127;--gold:#C9A84C;--gold-dark:#9A7B22;--teal:#2D6C8C;--slate:#1A2733;--night:#0D141B;--dark-line:#2A2A2A;--sp:#B5B7BA;--sp-line:#8E9196;--ok:#2E7D4F;--warn:#9A5B12;--warn-tint:#FBF4E6;--warn-ink:#5C3D0E;--warn-deep:#3D2808;--info:#2A3B6B;--info-tint:#EEF2FC;--err:#C0392B;--pdf-muted:#7C8B95;--pdf-line:#1B3446;--pdf-line2:#12283A;--pdf-foot:#6E7D87;--pdf-tint:#F3EAD3;--pdf-rose:#B07A6A;--navy:#0E2233;--gold-light:#E6D29A;--cover-muted:#8DA0AE;--cover-line:#23394B;--cover-line2:#1B3143;--stage:#EEF1F6;--stage2:#E4E8EF;--grid:#D6DAE1;--promo:#EFE3BF;--promo2:#F6EED6;--promo-ink:#3D2F0B;--bonds:#2E8B8B;--arkw:#8E8BD6;--arkk:#CAA6E6;--model:#5C6B7A;--pin:#171A20;--cmp1:#E0915A;--cmp2:#6FC2B4;--cmp3:#D58BA6;--cmp4:#B9C46E;--cmp5:#9DBBE6;--canvas:#EEEFF0;--canvas-grid:#FFFFFF;--backtest:#E3E4E5;--rp-s-s:#7FA7D1;--rp-pen:#A9B8C6;--rp-pay:#5E7487;--rp-thin:#9AA3AD;--c-src-ss:#9C8FC4;--c-src-pen:#C9C0E3;--c-src-inc:#E2CF9A;--c-src-out:#C2A383;--c-src-tax:#4F7CAC;--c-src-ira:#24356F;--c-src-roth:#2A9D8F;--c-ac-tax:#4F7CAC;--c-ac-joint:#4F7CAC;--c-ac-indiv:#84AEDB;--c-ac-trust:#86BCE8;--c-ac-itrust:#2E5A85;--c-ac-inh:#7381B8;--c-ac-ira:#24356F;--c-ac-trad:#24356F;--c-ac-k401:#7A5C3E;--c-ac-b403:#6B7A94;--c-ac-roll:#8B4F7D;--c-ac-sep:#B5654A;--c-ac-simple:#7D8B3E;--c-ac-roth:#2A9D8F;--c-ac-rothira:#2A9D8F;--c-ac-roth401:#4E9F5B;--c-ac-stk:#C2A383;--c-ac-oth:#9C8263;--c-ink:#171A20;--c-ink2:#393C41;--c-gray:#5C5E62;--c-gray2:#8E8E8E;--c-gray3:#A2A3A5;--c-axis:#9A9C9F;--c-line:#D0D1D2;--c-rule:#E3E4E5;--c-rule2:#EEEEEE;--c-outline:#C9CACC;--c-outline2:#D9DADC;--c-outline-on:#B9BBBE;--c-card:#F4F4F4;--c-hover:#E8E8E8;--c-soft:#F6F6F6;--c-wash:#F0F2FA;--c-wash2:#E2E5EE;--c-blue-tint:#E8EDFB;--c-gold-tint:#FAF6EA;--c-teal-tint:#EEF5F8;--c-blue:#3E6AE1;--c-blue-h:#3457B1;--c-indigo:#1F2C6E;--c-red:#E82127;--c-gold:#C9A84C;--c-gold-dark:#9A7B22;--c-teal:#2D6C8C;--c-slate:#1A2733;--c-night:#0D141B;--c-dark-line:#2A2A2A;--c-sp:#B5B7BA;--c-sp-line:#8E9196;--c-ok:#2E7D4F;--c-warn:#9A5B12;--c-warn-tint:#FBF4E6;--c-warn-ink:#5C3D0E;--c-warn-deep:#3D2808;--c-info:#2A3B6B;--c-info-tint:#EEF2FC;--c-err:#C0392B;--c-pdf-muted:#7C8B95;--c-pdf-line:#1B3446;--c-pdf-line2:#12283A;--c-pdf-foot:#6E7D87;--c-pdf-tint:#F3EAD3;--c-pdf-rose:#B07A6A;--c-navy:#0E2233;--c-gold-light:#E6D29A;--c-cover-muted:#8DA0AE;--c-cover-line:#23394B;--c-cover-line2:#1B3143;--c-stage:#EEF1F6;--c-stage2:#E4E8EF;--c-grid:#D6DAE1;--c-promo:#EFE3BF;--c-promo2:#F6EED6;--c-promo-ink:#3D2F0B;--c-bonds:#2E8B8B;--c-arkw:#8E8BD6;--c-arkk:#CAA6E6;--c-model:#5C6B7A;--c-pin:#171A20;--c-cmp1:#E0915A;--c-cmp2:#6FC2B4;--c-cmp3:#D58BA6;--c-cmp4:#B9C46E;--c-cmp5:#9DBBE6;--c-canvas:#EEEFF0;--c-canvas-grid:#FFFFFF;--c-backtest:#E3E4E5;--c-rp-s-s:#7FA7D1;--c-rp-pen:#A9B8C6;--c-rp-pay:#5E7487;--c-rp-thin:#9AA3AD}
/* /@colors */
:root{
  --disp:'Inter Tight',-apple-system,BlinkMacSystemFont,Arial,sans-serif;
  --text:'Inter',-apple-system,BlinkMacSystemFont,Arial,sans-serif;
  /* PAGE WIDTHS, one place for every page.
     --side: the gap between the screen edge and the nav, films and panels (Tesla: 48px on desktop).
     --col: the width of the centred column that headings, text, cards and tables sit in (Tesla: about 1,100px; ours 1140px, as before Nov 13 2026). */
  --side:48px; --col:1140px; --r:12px;
}
*{box-sizing:border-box}
html{-webkit-text-size-adjust:100%}
body{margin:0;font-family:var(--text);color:var(--ink);background:#fff;-webkit-font-smoothing:antialiased;overflow-x:hidden}
a{color:inherit;text-decoration:none}
img,video{display:block}
button{font:inherit;color:inherit;background:none;border:0;padding:0;cursor:pointer}
sup{font-size:.5em;vertical-align:super;line-height:0;margin-left:1px}
.sr{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}

/* ---------- buttons ---------- */
.btns{display:flex;gap:8px;flex-wrap:wrap}
.btn{display:inline-flex;align-items:center;justify-content:center;height:40px;min-width:200px;padding:0 24px;border-radius:4px;font-size:14px;font-weight:500;letter-spacing:.005em;transition:background-color .33s,color .33s,box-shadow .25s;white-space:nowrap}
.btn.w160{min-width:160px}.btn.w180{min-width:180px}.btn.auto{min-width:0;padding:0 28px}
.btn-blue{background:var(--blue);color:#fff}.btn-blue:hover{background:var(--blue-h)}
.btn-white{background:#fff;color:var(--ink2)}.btn-white:hover{background:var(--rule2)}
.btn-dark{background:var(--ink);color:#fff}.btn-dark:hover{background:var(--ink2)}
.btn-gray{background:var(--card);color:var(--ink2)}.btn-gray:hover{background:var(--hover)}
.btn:focus-visible,.arrow:focus-visible,.mi:focus-visible,.ic-btn:focus-visible{outline:2px solid var(--blue);outline-offset:2px}

/* ---------- nav ---------- */
.nav{position:relative;z-index:60;height:56px;display:flex;align-items:center;justify-content:space-between;padding:0 var(--side);background:#fff}
.logo{display:flex;align-items:center;height:56px;flex:0 0 auto;width:220px}
.logo img{height:42px;width:auto}
.menu{display:flex;gap:4px;align-items:center}
.mi{height:32px;padding:0 16px;border-radius:4px;font-size:14px;font-weight:500;transition:background-color .33s}
.mi:hover,.mi.on{background:rgba(0,0,0,.05)}
.nav-r{display:flex;gap:4px;align-items:center;justify-content:flex-end;width:220px}
.ic-btn{width:32px;height:32px;display:grid;place-items:center;border-radius:4px;transition:background-color .33s}
.ic-btn:hover{background:rgba(0,0,0,.05)}
.ic-btn svg{width:24px;height:24px}
.menu-btn{display:none;height:32px;padding:0 16px;border-radius:4px;background:rgba(0,0,0,.05);font-size:14px;font-weight:500}

/* mega menu */
.mega{position:absolute;left:0;right:0;top:56px;z-index:59;background:#fff;opacity:0;visibility:hidden;transform:translateY(-6px);transition:opacity .25s,transform .25s,visibility 0s .25s;box-shadow:0 12px 24px -16px rgba(0,0,0,.18)}
.mega.open{opacity:1;visibility:visible;transform:none;transition:opacity .25s,transform .25s}
.mega-in{display:flex;justify-content:center;gap:48px;padding:32px var(--side) 48px;max-width:1440px;margin:0 auto}
.mega-cards{display:grid;grid-template-columns:repeat(3,220px);gap:32px 40px}
.mega-cards.c4{grid-template-columns:repeat(4,220px)}
.mc{text-align:center}
.mc .th{display:block;width:220px;height:124px;border-radius:8px;overflow:hidden;background:var(--rule2)}
.mc .th img{width:100%;height:100%;object-fit:cover;transition:transform .5s}
.mc:hover .th img{transform:scale(1.04)}
.mc h4{margin:12px 0 2px;font-size:17px;font-weight:500}
.mc h4 em{font-style:normal;font-size:11px;font-weight:600;color:var(--blue);margin-left:6px;vertical-align:2px}
.mc .ml{display:flex;justify-content:center;gap:16px;font-size:14px;color:var(--ink2)}
.mc .ml a{text-decoration:underline;text-underline-offset:4px;text-decoration-color:rgba(57,60,65,.4)}
.mc .ml a:hover{text-decoration-color:var(--ink)}
.mega-links{border-left:1px solid var(--rule);padding-left:40px;display:flex;flex-direction:column;gap:2px;min-width:220px}
.mega-links a{font-size:14px;font-weight:500;padding:6px 0;color:var(--ink)}
.mega-links a:hover{text-decoration:underline;text-underline-offset:4px}
.scrim{position:fixed;inset:56px 0 0 0;z-index:58;background:rgba(255,255,255,.12);-webkit-backdrop-filter:blur(10px);backdrop-filter:blur(10px);opacity:0;visibility:hidden;transition:opacity .25s,visibility 0s .25s}
.scrim.open{opacity:1;visibility:visible;transition:opacity .25s}

/* audience card (tesla's location card) */
.aud{position:absolute;top:68px;right:var(--side);z-index:57;width:432px;max-width:calc(100vw - 32px);padding:24px;border-radius:8px;background:rgba(244,244,244,.94);-webkit-backdrop-filter:blur(8px);backdrop-filter:blur(8px);box-shadow:0 8px 24px rgba(0,0,0,.12)}
.aud[hidden]{display:none}
.aud h3{margin:0 0 4px;font-size:17px;font-weight:500}
.aud p{margin:0 0 18px;font-size:12px;line-height:18px;color:var(--ink2)}
.aud .btns{flex-wrap:nowrap}
.aud .btn{min-width:0;flex:1;height:50px;padding:0 12px;white-space:normal;text-align:center;line-height:18px}
.aud .btn-mid{background:var(--gray);color:#fff}.aud .btn-mid:hover{background:var(--ink2)}
.aud-x{position:absolute;top:12px;right:12px;width:32px;height:32px;display:grid;place-items:center;border-radius:4px}
.aud-x:hover{background:rgba(0,0,0,.05)}

/* ---------- arrows + dots ---------- */
.arrow{position:absolute;z-index:5;top:50%;margin-top:-20px;width:40px;height:40px;display:grid;place-items:center;border-radius:4px;background:rgba(244,244,244,.65);color:var(--ink);transition:background-color .33s,opacity .33s}
.arrow:hover{background:rgba(244,244,244,.9)}
.arrow svg{width:24px;height:24px}
.arrow.prev{left:var(--side)}.arrow.next{right:var(--side)}
.dots{display:flex;gap:10px;justify-content:center}
.dots button{width:10px;height:10px;border-radius:50%;background:var(--gray2);transition:background-color .33s}
.dots button.on{background:var(--ink)}
/* ---------- section rhythm ---------- */
/* ---------- section rhythm ---------- */
.sec{padding:0 var(--side);margin-top:48px}
.h40{margin:0;font-family:var(--disp);font-size:40px;line-height:48px;font-weight:500;letter-spacing:-.005em}
.h56{margin:0;font-family:var(--disp);font-size:56px;line-height:64px;font-weight:500;letter-spacing:-.01em}
/* ---------- notes + footer ---------- */
.notes{max-width:1116px;margin:40px auto 0;padding:0 16px;font-size:12px;line-height:18px;color:var(--gray)}
.notes p{margin:0 0 16px}
.foot{display:flex;flex-wrap:wrap;justify-content:center;gap:6px 14px;padding:40px 16px 96px;font-size:12px;font-weight:500;color:var(--gray)}
.foot a:hover{color:var(--ink)}

/* ---------- sticky call bar ---------- */
.callbar{position:fixed;left:0;right:0;bottom:0;z-index:40;height:60px;display:flex;align-items:center;justify-content:center;background:rgba(255,255,255,.88);-webkit-backdrop-filter:blur(8px);backdrop-filter:blur(8px);box-shadow:0 -1px 0 rgba(0,0,0,.06);transform:translateY(100%);transition:transform .4s}
.callbar.show{transform:none}
.callbtn{display:inline-flex;align-items:center;gap:10px;height:40px;padding:0 24px;border:1px solid var(--line);border-radius:4px;background:#fff;font-size:14px;font-weight:500;color:var(--ink2);transition:border-color .33s}
.callbtn:hover{border-color:var(--ink)}
.callbtn svg{width:22px;height:22px;color:var(--blue)}

/* ---------- mobile menu ---------- */
.mm{position:fixed;inset:0;z-index:100;background:#fff;transform:translateX(100%);transition:transform .35s cubic-bezier(.5,0,0,.75);overflow:hidden}
.mm.open{transform:none}
.mm-bar{height:56px;display:flex;align-items:center;justify-content:space-between;padding:0 16px 0 24px}
.mm-bar img{height:36px}
.mm-x{width:40px;height:40px;display:grid;place-items:center;border-radius:4px}
.mm-x:hover{background:rgba(0,0,0,.05)}
.mm-pane{position:absolute;top:56px;left:0;right:0;bottom:0;overflow-y:auto;padding:8px 24px 40px;transition:transform .35s cubic-bezier(.5,0,0,.75);background:#fff}
.mm-pane.sub{transform:translateX(100%)}
.mm-pane.sub.open{transform:none}
.mm-root.away{transform:translateX(-30%)}
.mm-item{width:100%;display:flex;align-items:center;justify-content:space-between;min-height:48px;padding:0 12px;border-radius:4px;font-size:17px;font-weight:500;text-align:left}
.mm-item:hover{background:rgba(0,0,0,.05)}
.mm-item svg{width:20px;height:20px;color:var(--gray)}
.mm-back{display:flex;align-items:center;gap:6px;height:44px;padding:0 8px;margin-bottom:8px;border-radius:4px;font-size:14px;font-weight:500}
.mm-back svg{width:20px;height:20px}
.mm-grid{display:grid;grid-template-columns:1fr 1fr;gap:24px 16px}
.mm-grid .mc .th{width:100%;height:auto;aspect-ratio:16/9}
.mm-grid .mc h4{font-size:15px;margin-top:10px}
.mm-grid .mc .ml{gap:12px;font-size:13px}
.mm-links{margin-top:28px;display:flex;flex-direction:column}
.mm-links a{font-size:15px;font-weight:500;padding:10px 0;border-top:1px solid var(--rule2)}

/* logo swap for pages whose nav sits over a film */
.logo .lw{display:none}
body.nav-over .nav{position:absolute;left:0;right:0;top:0;background:transparent;color:#fff;transition:background-color .25s,color .25s}
body.nav-over .nav .ln{display:none}
body.nav-over .nav .lw{display:block}
body.nav-over .mi:hover,body.nav-over .mi.on,body.nav-over .ic-btn:hover{background:rgba(255,255,255,.12)}
body.nav-over .menu-btn{background:rgba(255,255,255,.16)}
body.nav-over .nav:has(.mega.open){background:#fff;color:var(--ink)}
body.nav-over .nav:has(.mega.open) .ln{display:block}
body.nav-over .nav:has(.mega.open) .lw{display:none}
[data-aud-only][hidden]{display:none!important}
.asof{font-size:12px;color:var(--gray2)}

/* ---------- responsive (shared) ---------- */
@media (max-width:1199px){
  .menu,.nav-r .ic-btn{display:none}
  .menu-btn{display:inline-flex;align-items:center}
  .logo,.nav-r{width:auto}
  .mega,.scrim{display:none}
}
@media (max-width:899px){
  :root{--side:24px}
  .h56{font-size:40px;line-height:48px}
  .h40{font-size:32px;line-height:40px}
}
@media (max-width:599px){
  :root{--side:16px;--r:10px}
  .nav{padding:0 16px 0 24px}
  .logo img{height:36px}
  .h56{font-size:32px;line-height:40px}
  .h40{font-size:28px;line-height:36px}
  .aud{top:64px;right:16px}
}
@media (max-width:1199px) and (min-width:600px){ .aud{position:fixed;top:auto;bottom:24px;right:24px} }
@media (max-width:599px){ .aud{position:fixed;top:auto;bottom:0;left:0;right:0;width:auto;max-width:none;border-radius:12px 12px 0 0;padding:24px 16px calc(20px + env(safe-area-inset-bottom))} }
@media (prefers-reduced-motion:reduce){ *{transition:none!important} }
