/* Race Lab: navy instrumentation, clear timing signals, static graphics. */
.race-lab-nav{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));background:#fff;border:1px solid #d7e0eb;border-top:0;border-radius:0 0 3px 3px}
.race-lab-nav a{display:flex;align-items:center;justify-content:center;gap:10px;position:relative;padding:17px 12px;color:#273d55;font-weight:600;font-size:12px;border-right:1px solid #d7e0eb}
.race-lab-nav a:last-child{border-right:0}
.race-lab-nav a svg{width:19px;height:19px;fill:none;stroke:currentColor;stroke-width:1.4;flex:none}
.race-lab-nav a span{font-size:7px;font-weight:500;letter-spacing:.09em;color:#60748a}
.race-lab-nav a:hover{background:#eef4f8}
.race-lab-nav a[aria-current]{background:#eaf3f7;color:#075566}
.race-lab-nav a[aria-current]:after{content:"";position:absolute;bottom:0;left:20%;right:20%;height:3px;background:#087c8e}
.insight-heading{margin:30px 0 24px;align-items:center}
.insight-heading h2{font-size:38px}
.insight-heading p:last-child{max-width:670px;font-size:12px;line-height:1.75}
.insight-badge{flex:none;font-size:8px;letter-spacing:.16em;border-left:3px solid #c7431f;padding:9px 0 9px 12px;color:#60748a}
.rival-lineup{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;margin-bottom:20px}
.rival-slot{border:1px solid #d4dfeb;border-top:3px solid #344f6a;background:white;padding:20px 22px;min-width:0;border-radius:3px;display:flex;flex-direction:column;align-items:start}
.rival-slot-1{border-top-color:#087d8c}.rival-slot-2{border-top-color:#3275b9}
.rival-slot>span{font-size:8px;font-weight:600;letter-spacing:.13em;color:#546b82}
.rival-slot>strong{font-size:23px;font-style:italic;letter-spacing:-.04em;margin:15px 0 8px;overflow-wrap:anywhere}
.rival-slot>small{font-size:10px;color:#586c82}
.rival-slot>div{display:flex;justify-content:space-between;gap:10px;align-items:center;width:100%;margin-top:auto;padding-top:20px;font-size:8px;color:#536b80;line-height:1.6}
.rival-slot>div a{text-decoration:underline;text-underline-offset:4px;min-height:28px;display:flex;align-items:center}
.rival-slot-empty{align-items:center;justify-content:center;border:1px dashed #9db1c4;background:#eef3f7;padding:17px;min-height:160px;text-align:center}
.rival-slot-empty b{font-size:28px;line-height:1;color:#607a92;font-weight:400}
.rival-slot-empty>strong{font-size:16px;margin:10px 0;font-style:normal;letter-spacing:0}
.rival-slot-empty:hover{background:#e4edf4;border-color:#247388}
.insight-empty{display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center;background:linear-gradient(120deg,#142a44,#091827);color:#fff;padding:44px 28px;border-radius:3px}
.empty-track{font-size:46px;font-style:italic;font-weight:700;letter-spacing:-8px;color:#55d8e3;padding-right:8px}
.insight-empty h3{font-size:28px;letter-spacing:-.04em;font-style:italic;margin:16px 0}
.insight-empty p{color:#bdccdc;max-width:570px;font-size:12px;line-height:1.8}
.gap-metrics{display:grid;grid-template-columns:repeat(auto-fit,minmax(230px,1fr));gap:12px;margin:20px 0}
.gap-metric{padding:20px 25px;background:white;border:1px solid #d4dfeb;border-radius:3px;position:relative;overflow:hidden}
.gap-metric:after{content:"";position:absolute;right:-45px;top:-30px;width:110px;height:180px;transform:rotate(24deg);background:#eff5f8}
.gap-metric>*{position:relative;z-index:1}
.gap-metric>span{font-size:8px;letter-spacing:.1em;color:#526b82;font-weight:600}
.gap-metric>strong{font-size:44px;display:block;letter-spacing:-.055em;margin:12px 0 8px;font-style:italic;color:#096b7b;font-variant-numeric:tabular-nums}
.gap-metric.gap-series-1>strong{color:#3265a0}
.gap-metric p{font-size:11px;color:#29445f}
.gap-metric>small{font-size:9px;color:#64788d;display:block;margin-top:12px;line-height:1.6}
.gap-panel{background:linear-gradient(115deg,#132b46,#091725);color:#f4f8fc;border:1px solid #2b435c;border-radius:3px;padding:30px 32px 22px;overflow:hidden}
.gap-panel-heading{display:flex;align-items:center;justify-content:space-between;gap:20px}
.gap-panel-heading .eyebrow{font-size:8px;letter-spacing:.16em;color:#9cb3cb;margin-bottom:10px}
.gap-panel-heading h3{font-size:30px;letter-spacing:-.04em;font-style:italic}
.gap-panel .opening-toggle{font-size:10px;color:#c0d5e7}
.gap-legend{display:flex;gap:24px;flex-wrap:wrap;margin:25px 0 8px;font-size:10px;color:#c2d3e4}
.gap-legend>span{display:flex;align-items:center;gap:7px}
.gap-legend i{width:18px;height:3px;background:currentColor;display:inline-block}
.gap-series-0{color:#4fd9e6}.gap-series-1{color:#80baff}
.gap-reference{color:#d5dfe9}
.gap-chart{display:block;width:100%;height:auto;min-width:540px;overflow:visible}
.gap-chart-scroll{overflow-x:auto;overscroll-behavior-inline:contain}
.gap-series polyline{fill:none;stroke:currentColor;stroke-width:2.8;stroke-linejoin:round;stroke-linecap:round}
.gap-series .gap-glow{stroke-width:10;opacity:.07}
.gap-series circle{fill:currentColor;stroke:#10263e;stroke-width:2}
.gap-grid line{stroke:#45607b;stroke-opacity:.35;stroke-dasharray:3 5}
.gap-grid .gap-zero{stroke:#c1d3e7;stroke-opacity:.65;stroke-dasharray:6 5}
.gap-grid text{fill:#b5c7d9;font-size:11px;font-family:Inter,Arial,sans-serif;font-variant-numeric:tabular-nums}
.gap-hit{cursor:crosshair;outline:none}
.gap-hit line{stroke:#c0e1f0;stroke-opacity:0;stroke-dasharray:3 4}
.gap-hit:hover line,.gap-hit:focus line,.gap-hit.is-active line{stroke-opacity:.65}
.gap-hit:focus rect{stroke:#a3c8e7;stroke-width:1;stroke-dasharray:2 3}
.gap-readout{padding:13px 17px;border:1px solid #334c65;background:#0b1c2e;font-size:11px;line-height:1.6;font-variant-numeric:tabular-nums;color:#d6e9f4;min-height:45px;border-radius:2px}
.gap-guide{display:flex;justify-content:space-between;gap:10px;margin-top:17px;color:#9eb5cb;font-size:9px}
.gap-panel+.race-note{margin:15px 0 20px}
.gap-data{border:1px solid #d6e1eb;border-radius:3px;background:white;margin-top:18px}
.gap-data>summary{padding:18px 22px;font-size:11px;font-weight:600;cursor:pointer;display:flex;justify-content:space-between;list-style:none}
.gap-data[open]>summary{border-bottom:1px solid #d6e1eb}
.insight-picker{margin-top:30px;min-width:0}
.picker-heading{display:flex;gap:20px;justify-content:space-between;align-items:end;margin-bottom:16px}
.picker-heading .eyebrow{font-size:8px;color:#62778c;letter-spacing:.12em;margin-bottom:8px}
.picker-heading h3{font-size:23px;font-style:italic;letter-spacing:-.03em}
.picker-heading>p{max-width:260px;font-size:10px;color:#5b7187;line-height:1.7}
.picker-list{border:1px solid #d8e2eb;border-radius:3px;overflow:hidden;background:white}
.picker-row{display:flex;align-items:center;gap:14px;padding:14px 18px;border-bottom:1px solid #e5ecf2}
.picker-row:last-child{border-bottom:0}.picker-row:hover{background:#f3f7fa}
.picker-number{font-size:11px;font-weight:700;min-width:43px;max-width:75px;overflow-wrap:anywhere;color:#4b6880}
.picker-row>div{flex:1;min-width:0}
.picker-row strong{font-size:12px;display:block;overflow-wrap:anywhere}
.picker-row small{font-size:9px;color:#61758a;display:block;margin-top:5px}
.picker-row .rider-compare{flex:none;width:auto;font-size:10px;padding:9px 12px}
.heatmap-intro{display:flex;gap:30px;align-items:center;background:#10263f;color:white;padding:24px 28px;border-radius:3px}
.heatmap-intro>div{min-width:210px}
.heatmap-intro .eyebrow{font-size:8px;letter-spacing:.1em;color:#afc7db}
.heatmap-intro strong{font-size:38px;font-style:italic;letter-spacing:-.05em;display:block;margin-top:11px}
.heatmap-intro strong small{font-size:12px;font-weight:400;font-style:normal;letter-spacing:0;color:#c0d3e4}
.heatmap-intro p{font-size:11px;line-height:1.8;color:#b3cadf;max-width:540px}
.heatmap-intro .opening-toggle{color:#d3e5f2;font-size:10px;margin-left:auto}
.heat-legend{display:flex;align-items:center;flex-wrap:wrap;gap:15px;padding:22px 0;font-size:9px;color:#3b526a}
.heat-legend>span{display:flex;align-items:center;gap:7px}
.heat-legend i{display:inline-block;width:15px;height:15px;border-radius:2px;border:1px solid #132b4612}
.heatmap-shell{border:1px solid #d4dfeb;border-radius:3px;overflow:hidden;background:white}
.heatmap-topline{display:flex;justify-content:space-between;gap:15px;background:#eaf0f6;padding:13px 20px;font-size:8px;color:#426078;letter-spacing:.07em}
.heatmap-table{border-collapse:separate;border-spacing:0;width:100%;font-variant-numeric:tabular-nums}
.heatmap-scroll{max-height:650px}
.heatmap-table thead th{position:sticky;top:0;z-index:3}
.heatmap-table thead .sticky-rider{z-index:4}
.heatmap-table th,.heatmap-table td{border-bottom:1px solid #e6ecf2}
.heatmap-table thead th{background:#10263f;color:#bbd0e3;padding:12px 10px;text-align:center;font-size:8px;letter-spacing:.1em}
.heatmap-table thead th b{display:block;font-size:21px;color:white;font-style:italic;letter-spacing:-.04em;margin-top:4px}
.heatmap-table thead th small{display:block;font-size:8px;max-width:120px;letter-spacing:0;white-space:normal;margin-top:5px}
.heatmap-table .sticky-rider{position:sticky;left:0;z-index:2;min-width:220px;max-width:220px;text-align:left;box-shadow:3px 0 0 #10263f0a}
.heatmap-table tbody .sticky-rider{background:#fff;padding:14px 18px;font-weight:400}
.heatmap-table .sticky-rider strong{display:block;font-size:12px;color:#162f48;font-weight:600;margin:4px 0;overflow-wrap:anywhere}
.heatmap-table .sticky-rider small{display:block;font-size:9px;color:#64798e}
.heat-rider-number{color:#39718b;font-size:9px;font-weight:700}
.heatmap-table .sticky-rider a{display:inline-block;font-size:8px;margin-top:7px;color:#27677d;text-decoration:underline;text-underline-offset:3px}
.heatmap-table td{padding:5px;min-width:106px;background:#fafcfd}
.heat-cell{padding:14px 10px;min-height:65px;text-align:center;border-radius:2px;white-space:nowrap;border:1px solid transparent}
.heat-cell strong{display:block;font-size:12px;font-weight:600;letter-spacing:-.03em}
.heat-cell small{display:block;font-size:8px;margin-top:7px;letter-spacing:.03em}
.heat-best{background:#155771;color:#fff}.heat-close{background:#78cdd3;color:#063f4b}.heat-steady{background:#d3e6ea;color:#244f5c}.heat-off{background:#f9dfad;color:#684718}.heat-slow{background:#e6a44a;color:#4e310c}.heat-missing{background:repeating-linear-gradient(135deg,#eef2f6,#eef2f6 4px,#e5ebf1 4px,#e5ebf1 5px);color:#5c6f82}.heat-neutral{background:#e2edf5;color:#24445f}
.heat-cell:focus{outline:2px solid #092a48;outline-offset:1px;box-shadow:0 0 0 4px white}
.heat-cell:hover{border-color:#315d78;box-shadow:0 2px 8px #10263f24}
.race-card-layout{display:grid;grid-template-columns:minmax(0,1.04fr) minmax(0,1fr);gap:38px;align-items:start}
.race-card-studio{background:#e9eff5;border:1px solid #d3dfeb;border-radius:3px;padding:25px;min-width:0}
.race-card-preview{max-width:480px;margin:auto;box-shadow:0 16px 35px #10213a2b;line-height:0;transform:rotate(-.8deg)}
.race-card-preview svg{display:block;width:100%;height:auto}
.card-download-actions{display:flex;justify-content:center;flex-wrap:wrap;gap:9px;margin-top:26px}
.card-download-actions .button{width:100%;justify-content:center;min-height:46px;font-size:12px}
.card-download-actions .page-button{min-height:39px;font-size:10px;background:#f7faff}
.card-download-actions button:disabled{opacity:.65;cursor:wait}
.race-card-studio .race-note{margin-top:16px;font-size:9px;line-height:1.8;text-align:center}
.race-card-layout .insight-picker{margin-top:0}
.race-card-layout .picker-heading{display:block}
.race-card-layout .picker-heading>p{max-width:none;margin-top:12px}
.race-card-layout .picker-list{max-height:640px;overflow:auto;scrollbar-width:thin;scrollbar-color:#91a9be #e8eef4}
.race-card-layout .event-pagination{flex-wrap:wrap;gap:14px}
@media(min-width:1500px){.gap-panel{padding:35px 42px 25px}}
@media(max-width:1100px){.race-lab-nav a span{display:none}.race-card-layout{gap:22px}.rival-slot{padding:17px}.rival-slot>strong{font-size:20px}.insight-badge{display:none}.heatmap-intro{gap:20px}.race-card-studio{padding:18px}}
@media(max-width:760px){
  .race-lab-nav a{font-size:9px;padding:14px 4px;gap:5px}.race-lab-nav a svg{width:14px;height:14px}.race-lab-nav a[aria-current]:after{left:10%;right:10%}
  .insight-heading{margin:24px 0 18px}.insight-heading h2{font-size:30px}.insight-heading p:last-child{font-size:11px}
  .rival-lineup{gap:7px}.rival-slot{padding:12px 9px}.rival-slot>span{font-size:6px;letter-spacing:.04em}.rival-slot>strong{font-size:16px;margin:11px 0 7px;line-height:1.2}.rival-slot>small{font-size:8px;line-height:1.5}.rival-slot>div{flex-wrap:wrap;gap:3px;font-size:7px;padding-top:12px}.rival-slot>div>span{display:none}.rival-slot-empty{min-height:140px}.rival-slot-empty>strong{font-size:12px;line-height:1.4}.rival-slot-empty>small{font-size:8px}
  .gap-metrics{gap:9px;grid-template-columns:repeat(auto-fit,minmax(140px,1fr));margin:15px 0}.gap-metric{padding:16px 13px}.gap-metric>span{font-size:7px;line-height:1.7;display:block}.gap-metric>strong{font-size:32px}.gap-metric p{font-size:9px;line-height:1.5}.gap-metric>small{font-size:8px}
  .gap-panel{padding:21px 14px 17px}.gap-panel-heading{gap:12px;align-items:start;flex-wrap:wrap}.gap-panel-heading h3{font-size:25px}.gap-panel-heading .eyebrow{font-size:7px}.gap-panel .opening-toggle{font-size:9px}.gap-legend{gap:12px;font-size:9px;margin-top:20px}.gap-readout{font-size:10px;padding:11px}.gap-guide{font-size:7px}.gap-data>summary{font-size:10px;padding:16px}
  .insight-empty{padding:30px 18px}.insight-empty h3{font-size:25px}.insight-empty p{font-size:11px}.picker-heading{display:block}.picker-heading>p{max-width:none;margin-top:12px}.picker-row{padding:13px 12px;gap:8px}.picker-number{min-width:32px;font-size:9px}.picker-row strong{font-size:11px}.picker-row .rider-compare{font-size:9px;padding:8px}
  .heatmap-intro{padding:20px;flex-wrap:wrap;gap:15px}.heatmap-intro>div{min-width:0;width:100%}.heatmap-intro p{font-size:10px}.heatmap-intro .opening-toggle{margin-left:0}.heat-legend{gap:11px;font-size:8px;padding:17px 0}.heat-legend i{width:12px;height:12px}.heatmap-topline{padding:13px 11px;font-size:7px}.heatmap-table .sticky-rider{min-width:145px;max-width:145px}.heatmap-table tbody .sticky-rider{padding:12px}.heatmap-table .sticky-rider strong{font-size:10px}.heatmap-table .sticky-rider small{font-size:8px}.heatmap-table td{min-width:96px;padding:4px}.heat-cell{padding:12px 7px}.heat-cell strong{font-size:11px}
  .race-card-layout{grid-template-columns:1fr;gap:28px}.race-card-studio{padding:18px}.race-card-preview{max-width:450px}.card-download-actions{margin-top:22px}.race-card-layout .picker-heading h3{font-size:24px}.race-card-layout .picker-list{max-height:450px}.heatmap-scroll{max-height:520px}
}
@media(max-width:380px){.race-lab-nav a{font-size:8px;gap:4px}.race-lab-nav a svg{width:12px;height:12px}.rival-slot{padding:11px 7px}.rival-slot>strong{font-size:14px}.rival-slot-empty>strong{font-size:10px}.gap-metrics{grid-template-columns:1fr}.heatmap-table .sticky-rider{min-width:125px;max-width:125px}.heatmap-table tbody .sticky-rider{padding:10px}.race-card-studio{padding:14px}.gap-panel-heading h3{font-size:22px}}
@media print{.race-lab-nav,.insight-badge,.insight-picker,.card-download-actions,.gap-readout,.rival-slot>div a{display:none!important}.race-card-layout{display:block}.race-card-studio{background:none;border:0;padding:0}.race-card-preview{max-width:480px;transform:none;box-shadow:none}.race-card-studio>.race-note{display:none}.gap-panel,.heat-cell{-webkit-print-color-adjust:exact;print-color-adjust:exact}.gap-chart{min-width:0}.heatmap-table .sticky-rider{position:static}.heatmap-scroll{overflow:auto}.gap-panel{break-inside:avoid}}
