/* Approved three-site branding and aligned destination controls. */
.unified-header{--header-accent:#39ff14}
.track-site .unified-header{--header-accent:#ffe600}
.after-dark .unified-header{--header-accent:#58aaff}
.unified-header .container{width:calc(100% - 64px);max-width:1240px;margin-inline:auto;padding-inline:0}
.unified-header .brand-header__row,.unified-header .header-row{display:grid;grid-template-columns:minmax(0,1fr) 368px 250px;grid-template-rows:56px auto;gap:10px 18px;align-items:center;min-height:0;padding-block:10px;margin-block:0}
.unified-header .graphical-brand{grid-column:1;grid-row:1;display:flex;align-items:center;justify-content:flex-start;width:100%;max-width:560px;min-width:0;height:56px;padding:0;margin:0;line-height:1;text-decoration:none}
.unified-header .graphical-brand img{display:block;width:100%;height:70px;max-width:100%;object-fit:contain;object-position:left center;filter:drop-shadow(0 5px 8px #0008);flex-shrink:0}
.unified-header .destination-pair--header{grid-column:2;grid-row:1;justify-self:stretch;margin:0;width:368px;max-width:none;position:static;transform:none}
.unified-header .header-account-actions,.unified-header .account{grid-column:3;grid-row:1;display:grid;grid-template-columns:74px 116px 44px;gap:8px;align-items:center;width:250px;margin:0;padding:0;justify-content:start;flex-wrap:nowrap}
.unified-header .header-account-actions>a,.unified-header .account>a{display:flex;align-items:center;justify-content:center;box-sizing:border-box;min-width:0;width:100%;height:44px;min-height:44px;padding:8px 5px;border:1px solid #6a796a;border-radius:4px;font:800 12px/1.2 system-ui,sans-serif;text-transform:uppercase;white-space:nowrap;letter-spacing:0;text-align:center;box-shadow:none;text-decoration:none}
.unified-header .header-login,.unified-header #race-login{background:#11191b;color:#f4f7f5}
.unified-header .header-account,.unified-header .account>a:nth-child(2){background:var(--header-accent);border-color:var(--header-accent);color:#070c0a}
.after-dark .unified-header .account>a:nth-child(2){background:#f4f4ef;border-color:#fff;color:#111}
.unified-header .notification-bell{grid-column:3;width:44px;height:44px;min-width:44px;min-height:44px;padding:8px;margin:0;box-sizing:border-box}
.unified-header .header-nav-row{grid-column:1/-1;grid-row:2;width:100%;display:flex;align-items:center;gap:12px;min-width:0;margin:0;padding:10px 0 0;border-top:1px solid #344047;flex-wrap:wrap}
.unified-header .nav-row{justify-content:flex-start;overflow:visible;gap:4px;max-width:none}
.unified-header .nav-row>a{display:flex;align-items:center;justify-content:center;min-height:44px;padding:10px 11px;border-radius:4px;font:800 12px/1.25 system-ui,sans-serif;color:#d4ded5;white-space:nowrap;text-transform:uppercase;letter-spacing:0;text-decoration:none}
.unified-header .nav-row>a:hover,.unified-header .nav-row>a:focus-visible,.unified-header .nav-row>a[aria-current=page]{background:#58aaff;color:#081008}
.unified-header a:focus-visible{outline:3px solid var(--header-accent);outline-offset:3px}
/* Header and bottom destinations deliberately share one exact presentation. */
.destination-pair{gap:8px}
.destination-pair .destination-link{box-sizing:border-box;position:relative;display:flex;flex-direction:row;align-items:center;justify-content:flex-start;gap:8px;width:180px;min-width:0;max-width:none;flex:0 0 180px;height:50px;min-height:50px;margin:0;padding:5px 11px 6px 6px;border:2px solid #7c857e;border-radius:9px;overflow:hidden;box-shadow:0 8px 24px #0009;line-height:1.1;text-decoration:none}
.destination-pair .destination-link>img{display:block;width:32px;height:32px;flex:0 0 32px;object-fit:contain;border-radius:3px}
.destination-pair .destination-label{display:flex;flex-direction:column;gap:4px;min-width:0}
.destination-pair .destination-link strong{font:.85rem/1.15 Impact,Haettenschweiler,'Arial Narrow Bold',sans-serif;letter-spacing:.025em;text-transform:uppercase;white-space:nowrap;color:inherit}
.destination-pair .destination-link small{font:800 .5rem/1.2 system-ui,sans-serif;letter-spacing:.1em;color:inherit}
.unified-brand-page .destination-pair .destination-link--shop{background:#080d09;color:#f3fff5;border-color:#2fae4e}
.unified-brand-page .destination-pair .destination-link--shop small{color:#68e782}
.unified-brand-page .destination-pair .destination-link--track{background:linear-gradient(115deg,#fff,#c3c5c3);color:#151715;border-color:#7c857e;border-bottom-color:#ed1820}
.unified-brand-page .destination-pair .destination-link--track:after{content:'';position:absolute;bottom:0;left:0;right:0;height:4px;background:linear-gradient(90deg,#009e48 0 33%,#ffe500 33% 66%,#ed1820 66%)}
.unified-brand-page .destination-pair .destination-link--race{background:linear-gradient(125deg,#202426,#080a0b);color:#f5f5ef;border-color:#c4c8c9;border-radius:5px}
.unified-brand-page .destination-pair .destination-link--race small{color:#c1c8cb}
.unified-brand-page .destination-pair .destination-link--race strong span{color:#58aaff}
.unified-brand-page .destination-pair .destination-link--race:after{content:'';position:absolute;bottom:0;left:0;right:0;height:3px;background:linear-gradient(90deg,#86ff37 0 33.333%,#58aaff 33.333% 66.666%,#ff4257 66.666%)}
.destination-pair .destination-link:hover{filter:brightness(1.08);box-shadow:0 8px 30px #000c}
.destination-pair--bottom{gap:8px;max-width:calc(100% - 24px)}
/* Reserve identical top-strip space, including pages without a top strip. */
.unified-brand-page>.brand-topline,.unified-brand-page>.topline{height:38px;min-height:38px;padding:0;box-sizing:border-box;display:flex;align-items:center}
.unified-brand-page>.brand-topline>.container,.unified-brand-page>.topline>.container{width:calc(100% - 64px);max-width:1240px;padding-block:0;align-items:center}
@media(max-width:1100px){
 .unified-header .brand-header__row,.unified-header .header-row{grid-template-columns:minmax(0,1fr) 250px;grid-template-rows:56px 50px auto}
 .unified-header .header-account-actions,.unified-header .account{grid-column:2}
 .unified-header .destination-pair--header{grid-column:1/-1;grid-row:2;justify-self:start;order:initial}
 .unified-header .header-nav-row{grid-row:3}
}
@media(max-width:600px){
 .unified-header .container,.unified-brand-page>.brand-topline>.container,.unified-brand-page>.topline>.container{width:calc(100% - 28px)}
 .unified-header .brand-header__row,.unified-header .header-row{grid-template-columns:minmax(0,1fr);grid-template-rows:56px 44px 46px auto;gap:8px}
 .unified-header .graphical-brand{grid-column:1;grid-row:1;max-width:560px}
 .unified-header .header-account-actions,.unified-header .account{grid-column:1;grid-row:2;justify-self:end}
 .unified-header .destination-pair--header{grid-row:3;grid-column:1;width:auto;max-width:100%;gap:6px;justify-self:start}
 .unified-header .header-nav-row{grid-row:4}
 .destination-pair .destination-link{width:min(180px,calc((100vw - 36px)/2));flex:0 0 min(180px,calc((100vw - 36px)/2));height:46px;min-height:46px;padding:5px 8px;gap:6px}
 .destination-pair .destination-link>img{width:27px;height:27px;flex-basis:27px}
 .destination-pair .destination-link strong{font-size:.73rem}
 .destination-pair .destination-link small{font-size:.46rem}
 .destination-pair--bottom{gap:6px}
 .unified-header .nav-row>a{white-space:normal;flex:1 1 40%;font-size:11px}
 .unified-brand-page>.topline span:last-child{display:none}
}
@media print{.unified-header,.destination-pair{display:none!important}}
