/* TriZentro: Events is the source of truth for the site chrome and visual system. */
:root{--tz-dark:#102123;--tz-accent:#b9fa83;--tz-bg:#f7f8f4;--tz-text:#132326;--tz-muted:#71817a;--tz-stroke:#e1e7df}
*{box-sizing:border-box}
body.tz-performance{margin:0;background:var(--tz-bg)!important;color:var(--tz-text)!important;font-family:Inter,ui-sans-serif,system-ui,-apple-system,"Segoe UI",sans-serif;font-synthesis:none}
body.tz-performance .tz-site-header{background:#102123!important;color:white}
body.tz-performance .tz-site-nav{max-width:1180px;width:100%;padding:20px 24px;margin:auto;display:flex;align-items:center;justify-content:space-between;gap:10px;min-height:80px}
body.tz-performance .tz-site-brand{font-size:22px;font-weight:950;letter-spacing:-.9px;text-decoration:none;color:#fff;white-space:nowrap;display:inline-flex;align-items:center;gap:0}
body.tz-performance .tz-site-brand b{color:#a9f275}
body.tz-performance .tz-site-links{display:flex;align-items:center;justify-content:flex-end;flex-wrap:wrap;gap:8px}
body.tz-performance .tz-site-links a{font:750 13px/1.3 Inter,ui-sans-serif,system-ui,sans-serif;display:inline-flex;align-items:center;text-decoration:none;padding:10px 16px;border:1px solid #486062;border-radius:100px;background:#243839;color:#fff}
body.tz-performance .tz-site-links a:hover,body.tz-performance .tz-site-links a[aria-current="page"]{background:#b9fa83;color:#11231c;border-color:#b9fa83}
body.tz-performance .tz-site-links .tz-organizers{background:transparent;border-radius:10px;border-color:#536d65;color:#edf7ed;font-size:12px}
body.tz-performance .tz-site-links .tz-organizers:hover{background:#243839;color:#b9fa83}
body.tz-performance .tz-page-hero{background:#102123!important;color:#fff!important;position:relative;overflow:hidden;padding:49px 24px 65px;min-height:300px}
body.tz-performance .tz-hero-inner,body.tz-performance .tz-page-hero>.wrap{width:100%;max-width:1132px;margin:auto;padding:0!important;position:relative;z-index:1}
body.tz-performance .tz-page-hero:after{display:none!important}
body.tz-performance .tz-page-hero .tz-kicker,body.tz-performance .tz-page-hero .eyebrow{color:#b9fa83!important;letter-spacing:.15em;text-transform:uppercase;font-size:12px;font-weight:800}
body.tz-performance .tz-page-hero h1{font-size:clamp(38px,5.2vw,70px);letter-spacing:-.06em;line-height:1.04;margin:16px 0;color:#fff!important;max-width:850px}
body.tz-performance .tz-page-hero h1 em{font-style:normal;color:#b9fa83!important}
body.tz-performance .tz-page-hero p{font-size:17px;line-height:1.6;color:#bacdcb!important;max-width:700px;margin:0}
body.tz-performance .tz-page-main{max-width:1180px;margin:-31px auto 70px;padding:0 24px;position:relative}
body.tz-performance .tz-tool-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px}
body.tz-performance .tz-tool-card{background:#fff;border:1px solid #e2e9e1;border-radius:15px;padding:22px;min-height:235px;display:flex;flex-direction:column;transition:transform .12s,box-shadow .12s;box-shadow:0 10px 32px #0c282210}
body.tz-performance .tz-tool-card:hover{transform:translateY(-2px);box-shadow:0 10px 30px #0d332414}
body.tz-performance .tz-tool-card .tz-card-label{color:#546a5e;font-size:11px;font-weight:800;letter-spacing:.05em;text-transform:uppercase}
body.tz-performance .tz-tool-card h2{font-size:21px;line-height:1.18;letter-spacing:-.035em;margin:14px 0 10px;color:#132326}
body.tz-performance .tz-tool-card p{font-size:13px;line-height:1.55;color:#71817a;margin:0 0 20px}
body.tz-performance .tz-tool-card a{display:inline-flex;align-self:flex-start;align-items:center;font-size:12px;font-weight:800;text-decoration:none;color:#173c31;margin-top:auto}
body.tz-performance .tz-tool-card a:hover{text-decoration:underline}
body.tz-performance .tz-smallprint{margin:20px 0;color:#687971;font-size:12px}
body.tz-performance .dashboard,body.tz-performance .fuel{padding-top:30px}
body.tz-performance .tri-main{padding-top:30px}
body.tz-performance .dashboard h1,body.tz-performance .fuel h1{letter-spacing:-.05em}
body.tz-performance :is(.panel,.tri-panel){background:#fff;border:1px solid #e1e7df;border-radius:18px;box-shadow:0 10px 36px #1021230c}
body.tz-performance :is(.field input,.field select,.tri-field input,.tri-field textarea){background:#f6f8f5;border-color:#dce5dd;color:#142723;border-radius:9px}
body.tz-performance :is(.field input,.field select,.tri-field input,.tri-field textarea):focus-visible{border-color:#5ba66e;outline:3px solid #b9fa8360;outline-offset:1px}
body.tz-performance :is(.actions button,.actions a,.tri-btn){background:#173c31;color:#fff;border-radius:9px}
body.tz-performance .actions .secondary{background:#e8f5df;color:#235b38}
body.tz-performance .distance-selector button{background:#f6f8f5;color:#142723;border-color:#dce5dd}
body.tz-performance .distance-selector button[aria-pressed="true"]{background:#173c31;color:#fff;border-color:#173c31;box-shadow:inset 0 -4px 0 #b9fa83}
body.tz-performance :is(.metric,.stat){background:#edf6ea}
body.tz-performance .tri-insight{border-color:#dce5dd;background:#f6f8f5}
body.tz-performance .tri-insight strong{color:#173c31}
body.tz-performance .tz-breadcrumb{color:#587165;font-size:13px;margin:0 0 16px}
body.tz-performance .tz-breadcrumb a{color:#235b38}
body.tz-performance a:focus-visible,body.tz-performance button:focus-visible{outline:3px solid #90d176;outline-offset:3px}
@media(max-width:900px){body.tz-performance .tz-tool-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:660px){body.tz-performance .tz-site-nav{padding:13px 15px;align-items:flex-start;flex-direction:column}body.tz-performance .tz-site-links{justify-content:flex-start;gap:6px}body.tz-performance .tz-site-links a{padding:9px 11px;font-size:12px}body.tz-performance .tz-page-hero{padding:38px 17px 67px;min-height:0}body.tz-performance .tz-page-hero h1{font-size:44px}body.tz-performance .tz-page-hero p{font-size:14px}body.tz-performance .tz-page-main{padding:0 17px;margin-top:-24px}body.tz-performance .tz-tool-grid{grid-template-columns:1fr}body.tz-performance :is(.panel,.tri-panel){padding:18px}}
@media(max-width:420px){body.tz-performance .tz-page-hero h1{font-size:36px}body.tz-performance .tz-site-links a{font-size:11px;padding:8px 10px}}
@media print{body.tz-performance .tz-site-header,body.tz-performance .tz-page-hero{display:none!important}}

/* Neutralize legacy blue sport-tool tokens so the forms belong to TriZentro Events. */
:root{--navy:#102123;--blue:#76b89b;--aqua:#6da982;--orange:#d1a66b;--tri-navy:#102123;--tri-sea:#408e74;--tri-mint:#3c9b70;--tri-run:#b9894f;--tri-bg:#f7f8f4;--tri-line:#e1e7df;--tri-ink:#132326}
body.tz-performance .tri-custom-grid{background:#edf6ea;border-color:#b4d3ac}
body.tz-performance .tri-eyebrow{color:#287b53}
body.tz-performance .tri-field{color:#173c31}
body.tz-performance .tri-field small{color:#667a70}
body.tz-performance .tri-split-visual .swim{background:#edf6ea}
body.tz-performance .tri-split-visual .bike{background:#e7f3ed}
body.tz-performance .tri-split-visual .run{background:#f5f4e9}
body.tz-performance .tri-insight>span,body.tz-performance .tri-insight>p{color:#4f6c5e}
body.tz-performance .tri-insight.baseline,body.tz-performance .tri-insight.faster{background:#edf6ea}
body.tz-performance :is(.dashboard,.fuel,.tri-main) :is(.panel,.tri-panel){border-radius:18px}
body.tz-performance .tz-site-brand .tz-logo-mark{display:none}

/* Shared inner-page footer, exactly the same on all three core calculators. */
body.tz-performance .tz-footer{background:#102123!important;color:#c9dbd2;padding:28px 0}
body.tz-performance .tz-footer .wrap{max-width:1180px;width:calc(100% - 48px);margin:auto;display:flex;align-items:center;justify-content:space-between;gap:18px;flex-wrap:wrap}
body.tz-performance .tz-footer a{color:#c9dbd2;text-decoration:none;font-size:13px;font-weight:700}
body.tz-performance .tz-footer a:hover{text-decoration:underline;color:#b9fa83}
/* Organizer-specific legacy reset: no second padding area around the shared header. */
body.tz-performance .tz-site-header{padding:0!important}
body.tz-performance .tz-site-header .tz-site-nav{min-height:80px}
body.tz-performance .tz-page-main .orgActions{margin-top:0}
body.tz-performance .tz-page-main input:focus-visible,body.tz-performance .tz-page-main textarea:focus-visible,body.tz-performance .tz-page-main select:focus-visible{outline:3px solid #b9fa8360;border-color:#5ba66e}
@media(max-width:660px){body.tz-performance .tz-footer .wrap{width:calc(100% - 34px)}}

/* Performance sport selection and event-style filter toolbar */
body.tz-performance .tz-sport-toolbar{position:relative;background:#fff;border:1px solid #e1e7df;border-radius:18px;box-shadow:0 10px 48px #0c28221d;padding:22px;margin-bottom:26px}
body.tz-performance .tz-sport-label{display:block;color:#677670;font-size:11px;font-weight:800;letter-spacing:.06em;text-transform:uppercase;margin-bottom:11px}
body.tz-performance .tz-sport-switch{display:flex;gap:8px;flex-wrap:wrap}
body.tz-performance .tz-sport-switch button,body.tz-performance .tz-sport-switch a{display:inline-flex;align-items:center;gap:8px;background:#fff;color:#375249;border:1px solid #d8e2d9;border-radius:40px;padding:11px 16px;font-size:13px;font-weight:800;text-decoration:none;cursor:pointer}
body.tz-performance .tz-sport-switch button[aria-selected="true"],body.tz-performance .tz-sport-switch a[aria-current="true"]{background:#13392d;color:white;border-color:#13392d}
body.tz-performance .tz-sport-switch button:hover,body.tz-performance .tz-sport-switch a:hover{border-color:#4c8465}
body.tz-performance .tz-sport-panel[hidden]{display:none!important}
body.tz-performance .tz-panel-heading{font-size:25px;margin:0 0 8px;letter-spacing:-.04em}
body.tz-performance .tz-panel-desc{color:#71817a;font-size:14px;margin:0 0 22px}
body.tz-performance .tz-calc-fields{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px;margin:18px 0}
body.tz-performance .tz-calc-fields label{display:flex;flex-direction:column;gap:7px;color:#365549;font-size:12px;font-weight:800}
body.tz-performance .tz-calc-fields :is(input,select){width:100%;min-height:46px;background:#f6f8f5;border:1px solid #dce5dd;border-radius:9px;padding:10px 12px;font:inherit;font-size:16px;color:#132326}
body.tz-performance .tz-calc-results{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;margin-top:17px}
body.tz-performance .tz-calc-result{border:1px solid #e1e7df;background:#eff6ed;padding:18px;border-radius:12px}
body.tz-performance .tz-calc-result span{display:block;font-size:12px;color:#587165}
body.tz-performance .tz-calc-result strong{display:block;font-size:clamp(21px,3vw,29px);line-height:1.25;margin-top:8px;overflow-wrap:anywhere}
body.tz-performance .tz-calc-error{color:#ab3a2b;min-height:1.5em;font-size:13px;font-weight:700}
body.tz-performance .tz-calc-help{color:#63766d;font-size:12px;line-height:1.6}
@media(max-width:700px){body.tz-performance .tz-sport-toolbar{padding:15px}body.tz-performance .tz-sport-switch>*{flex:1;justify-content:center}body.tz-performance .tz-calc-fields{grid-template-columns:1fr}body.tz-performance .tz-calc-results{grid-template-columns:1fr}}

/* Canonical TriZentro sport-edition chrome, matching docs/raceatlas/sport-edition.css + brand.css.
   All Performance pages share these rules, avoiding independent visual variants. */
:root{--tz-dark:#071925;--tz-accent:#c7ff37;--tz-bg:#f5f8fa;--tz-text:#101d29;--tz-muted:#647384;--tz-stroke:#e3eaf0;--tz-brand-lime:#c7ff37}
body.tz-performance{background:#f5f8fa!important;color:#101d29!important;letter-spacing:-.005em}
body.tz-performance .tz-site-header{background:#071927!important;border-bottom:1px solid #ffffff19!important;position:relative;z-index:12}
body.tz-performance .tz-site-nav{max-width:1380px;min-height:70px;padding:12px 28px}
body.tz-performance .tz-site-brand{font-size:25px;font-style:italic;font-weight:950;letter-spacing:-1.4px;gap:9px}
body.tz-performance .tz-site-brand b{color:#c7ff37!important}
body.tz-performance .tz-site-brand .raLogoMark{display:inline-block!important;position:relative;width:32px;height:32px;flex:0 0 32px;background:transparent!important}
body.tz-performance .tz-site-brand .raLogoMark:before{content:"";position:absolute;inset:3px;border:3px solid #c7ff37;border-radius:50%;transform:rotate(-30deg) scaleX(.72)}
body.tz-performance .tz-site-brand .raLogoMark:after{content:"";position:absolute;width:28px;height:4px;top:14px;left:2px;background:#c7ff37;border-radius:4px;transform:rotate(-33deg);box-shadow:0 0 0 2px #071a25}
body.tz-performance .tz-site-links{gap:12px}
body.tz-performance .tz-site-links>a:not(.tz-organizers){background:transparent;color:#eaf4f8;border:0;border-radius:0;box-shadow:none;font-size:13px;font-weight:700;padding:11px 16px}
body.tz-performance .tz-site-links>a:not(.tz-organizers):hover{background:#ffffff14;color:#fff}
body.tz-performance .tz-site-links>a[aria-current="page"]:not(.tz-organizers){background:transparent;color:#fff;box-shadow:inset 0 -3px #c7ff37}
body.tz-performance .tz-site-links>a.tz-organizers{background:#c7ff37!important;border:0!important;color:#10201b!important;border-radius:11px!important;padding:13px 17px!important;font-weight:900!important;box-shadow:0 4px 15px #0002!important;font-size:13px}
body.tz-performance .tz-site-links>a.tz-organizers:hover{background:#dcff82!important}
body.tz-performance .raLanguageSwitch{display:inline-flex;align-items:center;justify-content:center;padding:3px;border:1px solid #73918c80;border-radius:999px;background:#071923;gap:2px;flex-shrink:0}
body.tz-performance .raLanguageSwitch button{font-family:inherit;font-weight:850;font-size:11px!important;letter-spacing:.025em;min-width:37px;min-height:33px;padding:7px 9px!important;border:0!important;border-radius:999px!important;background:transparent!important;color:#bbd5d6!important;box-shadow:none!important;line-height:1!important}
body.tz-performance .raLanguageSwitch button.active,body.tz-performance .raLanguageSwitch button[aria-pressed="true"]{background:#c7ff37!important;color:#102b25!important}
body.tz-performance .raLanguageSwitch button:focus-visible{outline:3px solid #fff;outline-offset:2px}
body.tz-performance .tz-page-hero{min-height:320px;background:linear-gradient(90deg,#091d2e 0%,#0a2434 51%,#10272d 100%)!important;isolation:isolate;position:relative;overflow:hidden;padding:53px 28px 75px}
body.tz-performance .tz-page-hero:before{content:"";position:absolute;z-index:-1;inset:0 0 0 50%;background:linear-gradient(90deg,#09202d 0%,#10253531 28%,#061b2633 100%),url("https://images.unsplash.com/photo-1552674605-db6ffd4facb5?auto=format&fit=crop&w=1300&q=85") center 38%/cover no-repeat;filter:saturate(.83) contrast(1.1)}
body.tz-performance .tz-page-hero:after{display:block!important;content:"";position:absolute;width:85px;height:150%;right:25%;top:-25%;transform:skew(-29deg);background:linear-gradient(180deg,#c7ff37,#9be500);opacity:.9;clip-path:polygon(0 0,24% 0,100% 100%,75% 100%);z-index:-1}
body.tz-performance .tz-page-hero .tz-hero-inner,body.tz-performance .tz-page-hero>.wrap{max-width:1324px!important}
body.tz-performance .tz-page-hero .tz-kicker,body.tz-performance .tz-page-hero .eyebrow{color:#c7ff37!important;letter-spacing:.19em;font-size:12px}
body.tz-performance .tz-page-hero h1{font-weight:950;font-style:italic;font-size:clamp(40px,5vw,68px);line-height:1.02;letter-spacing:-.064em;max-width:710px;margin:8px 0 17px}
body.tz-performance .tz-page-hero h1 em{color:#c7ff37!important}
body.tz-performance .tz-page-hero p{max-width:550px;font-size:16px;color:#e4edf0!important;line-height:1.6}
body.tz-performance .tz-page-main{max-width:1380px;padding:0 28px;margin-top:-37px}
body.tz-performance .tz-sport-toolbar{margin:-1px 0 31px!important;position:relative;z-index:5;border:1px solid #e1e8ef!important;border-radius:19px!important;box-shadow:0 14px 34px #00162620!important;background:#fff!important;padding:20px 22px 17px!important}
body.tz-performance .tz-sport-label{color:#1c2b39!important;text-transform:none!important;font-size:12px;font-weight:850;letter-spacing:0}
body.tz-performance .tz-sport-switch button[aria-selected="true"],body.tz-performance .tz-sport-switch a[aria-current="true"]{background:#071925!important;color:#c7ff37!important;border-color:#071925!important}
body.tz-performance .tz-panel-heading{font-weight:950;font-size:29px;letter-spacing:-.045em;color:#101d29}
body.tz-performance .tz-tool-card{border:1px solid #e1e8ed!important;border-radius:17px!important;box-shadow:0 6px 19px rgba(20,38,57,.07)!important;min-height:245px}
body.tz-performance .tz-tool-card:hover{transform:translateY(-3px);box-shadow:0 17px 35px #172d4422!important}
body.tz-performance .tz-tool-card h2{color:#101d29;font-weight:900}
body.tz-performance :is(.panel,.tri-panel){border-color:#e1e8ed;border-radius:19px;box-shadow:0 8px 24px rgba(20,38,57,.07)}
body.tz-performance :is(.field input,.field select,.tri-field input,.tri-field textarea,.tz-calc-fields input,.tz-calc-fields select){background:#f7f9fb;border-color:#d8e3e9;color:#101d29}
body.tz-performance :is(.actions button,.actions a,.tri-btn){background:#0d5b44;color:#fff}
body.tz-performance .distance-selector button[aria-pressed="true"]{background:#071925;color:#fff;box-shadow:inset 0 -4px 0 #c7ff37}
body.tz-performance .tz-footer{background:#071925!important}
body.tz-performance .tz-calc-result{background:#f0f7ed;border-color:#e1e8ed}
@media(max-width:850px){body.tz-performance .tz-site-nav{flex-wrap:wrap}body.tz-performance .tz-site-links{gap:6px}}
@media(max-width:660px){body.tz-performance .tz-site-nav{padding:12px 15px}body.tz-performance .tz-site-brand{font-size:21px}body.tz-performance .tz-site-links{width:100%;justify-content:flex-start;gap:5px}body.tz-performance .tz-site-links>a:not(.tz-organizers){padding:9px 8px;font-size:12px}body.tz-performance .tz-site-links>a.tz-organizers{padding:10px 9px!important;font-size:12px}body.tz-performance .raLanguageSwitch{margin-left:0}body.tz-performance .tz-page-hero{padding:37px 17px 64px;min-height:0}body.tz-performance .tz-page-hero:before{inset:0 0 0 32%;opacity:.45}body.tz-performance .tz-page-hero:after{right:23%;opacity:.55}body.tz-performance .tz-page-hero h1{font-size:clamp(36px,9vw,50px)}body.tz-performance .tz-page-main{padding:0 16px;margin-top:-26px}body.tz-performance .tz-sport-toolbar{padding:14px!important}}
@media print{body.tz-performance .raLanguageSwitch{display:none!important}}

/* TriZentro official icon-only mark, shared by Events and Performance. */
body.tz-performance .tz-site-brand img.tz-logo-image{display:block!important;width:52px!important;height:52px!important;min-width:52px!important;object-fit:contain;background:white;border-radius:13px;padding:2px;box-shadow:0 4px 18px #0003}
body.tz-performance .tz-site-brand{display:inline-flex;align-items:center;line-height:1;text-decoration:none}
@media(max-width:660px){body.tz-performance .tz-site-brand img.tz-logo-image{width:45px!important;height:45px!important;min-width:45px!important;border-radius:11px}}

/* Transparent emblem in header: never place on a white tile. */
body.tz-performance .tz-site-brand img.tz-logo-image{background:transparent!important;border-radius:0!important;padding:0!important;box-shadow:none!important;object-fit:contain!important}

/* Final left-hand emblem sizing, same as Events. */
body.tz-performance .tz-site-brand img.tz-logo-image{width:76px!important;min-width:76px!important;height:52px!important;object-fit:contain!important}
@media(max-width:660px){body.tz-performance .tz-site-brand img.tz-logo-image{width:62px!important;min-width:62px!important;height:43px!important}}
