/* coldloads.com — "Inside the feed" live data section (assets/stats.json) */
.data-sec { position: relative; }
.data-sec::before { content: ""; position: absolute; inset: 0; background: radial-gradient(50% 40% at 80% 0%, rgba(37, 99, 235, .12), transparent 70%), radial-gradient(40% 30% at 0% 60%, rgba(255, 122, 26, .06), transparent 70%); pointer-events: none; }
.data-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 18px 32px; flex-wrap: wrap; }
.stamp { display: inline-flex; align-items: center; gap: 8px; font: 500 12.5px/1 var(--mono); color: var(--tx-3); border: 1px solid var(--line-2); border-radius: 99px; padding: 8px 12px; background: rgba(12, 19, 36, .7); white-space: nowrap; }
.stamp b { color: var(--tx); font-weight: 600; }
.dgrid { position: relative; display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 16px; margin-top: clamp(28px, 4vw, 44px); }
.dc { grid-column: span 4; min-width: 0; border: 1px solid var(--line-2); border-radius: var(--r-l); padding: 20px 20px 18px; background: linear-gradient(180deg, rgba(17, 26, 47, .78), rgba(8, 13, 25, .78)); display: flex; flex-direction: column; }
.dc.w8 { grid-column: span 8; } .dc.w6 { grid-column: span 6; }
.dc-h { display: flex; align-items: baseline; justify-content: space-between; gap: 6px 12px; flex-wrap: wrap; }
.dc-h b { font: 700 15.5px/1.25 var(--display); letter-spacing: -.01em; }
.dc-h span { font: 500 11.5px/1.3 var(--mono); color: var(--tx-3); text-transform: uppercase; letter-spacing: .06em; }
.dc-big { margin-top: 14px; display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.dc-big .n { font: 800 clamp(34px, 3.6vw, 48px)/1 var(--display); letter-spacing: -.04em; font-variant-numeric: tabular-nums; }
.dc-big .s { color: var(--tx-2); font-size: 14px; }
.dc-foot { margin-top: auto; padding-top: 14px; color: var(--tx-3); font-size: 12.5px; }

/* column charts (days, hours) */
.cols { position: relative; margin-top: 18px; height: 170px; display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); align-items: end; gap: 2px; border-bottom: 1px solid var(--line-2); }
.cols.h { height: 150px; }
.col { position: relative; height: 100%; display: flex; align-items: flex-end; cursor: default; }
.col i { display: block; width: 100%; min-height: 2px; border-radius: 4px 4px 0 0; background: var(--blue); transition: background .15s ease, height .9s cubic-bezier(.23, 1, .32, 1); }
.col.wk i { background: #2a4a8f; }
.col.peak i { background: var(--cta); }
.col:hover i, .col:focus-visible i { background: #7cb2ff; }
.col.peak:hover i { background: var(--cta-hi); }
.js .cols:not(.in) .col i { height: 2px !important; }
.axis { display: flex; justify-content: space-between; margin-top: 8px; font: 500 11px/1 var(--mono); color: var(--tx-3); }
.ctip { position: absolute; z-index: 5; bottom: calc(100% + 8px); left: 50%; transform: translateX(-50%); pointer-events: none; opacity: 0; transition: opacity .12s ease; white-space: nowrap; background: #0b1222; border: 1px solid var(--line-2); border-radius: 8px; padding: 6px 9px; font: 500 12px/1.3 var(--body); color: var(--tx-2); box-shadow: 0 8px 24px rgba(0, 0, 0, .4); }
.ctip b { color: var(--tx); font-variant-numeric: tabular-nums; }
.col:hover .ctip, .col:focus-visible .ctip { opacity: 1; }
.col:first-child .ctip, .col:nth-child(2) .ctip { left: 0; transform: none; }
.col:last-child .ctip, .col:nth-last-child(2) .ctip { left: auto; right: 0; transform: none; }

/* ranked bars (lanes, equipment, facilities) */
.rank { list-style: none; margin: 16px 0 0; padding: 0; display: grid; gap: 11px; }
.rank li { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 4px 12px; align-items: baseline; font-size: 14px; }
.rank .l { color: var(--tx); min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rank .l em { font-style: normal; color: var(--tx-3); font-size: 12.5px; margin-left: 6px; }
.rank .v { font: 600 13px/1 var(--mono); color: var(--tx-2); font-variant-numeric: tabular-nums; }
.rank .t { grid-column: 1 / -1; height: 6px; border-radius: 6px; background: rgba(138, 162, 214, .1); overflow: hidden; }
.rank .t i { display: block; height: 100%; width: var(--w); border-radius: 6px; background: var(--blue); transform-origin: left; transition: transform 1s cubic-bezier(.23, 1, .32, 1); }
.rank.o .t i { background: var(--cta); } .rank.g .t i { background: var(--green); }
.js .rank:not(.in) .t i { transform: scaleX(0); }
.lane-ab { font: 700 13px/1 var(--mono); letter-spacing: .02em; }
.lane-ab svg { width: 13px; height: 13px; vertical-align: -2px; margin: 0 5px; color: var(--tx-3); }

/* split bar (driver type) */
.split { margin-top: 18px; display: flex; gap: 2px; height: 14px; border-radius: 7px; overflow: hidden; }
.split i { display: block; height: 100%; }
.split .a { background: var(--blue); border-radius: 7px 0 0 7px; } .split .b { background: var(--green); border-radius: 0 7px 7px 0; }
.legend2 { display: flex; gap: 18px; flex-wrap: wrap; margin-top: 14px; font-size: 14px; color: var(--tx-2); }
.legend2 span { display: inline-flex; align-items: center; gap: 8px; }
.legend2 i { width: 10px; height: 10px; border-radius: 3px; display: inline-block; }
.legend2 b { color: var(--tx); font-variant-numeric: tabular-nums; }

/* live list */
.live-list { list-style: none; margin: 14px 0 0; padding: 0; display: grid; gap: 8px; }
.live-list li { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 4px 10px; padding: 10px 11px; border: 1px solid var(--line); border-radius: 12px; background: rgba(5, 8, 15, .45); font-size: 13px; animation: lin .5s cubic-bezier(.23, 1, .32, 1) both; }
.live-list .r { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--tx); }
.live-list .ago { font: 500 11.5px/1.4 var(--mono); color: var(--tx-3); }
.live-list .m { grid-column: 1 / -1; display: flex; gap: 6px; flex-wrap: wrap; align-items: center; }
@keyframes lin { from { opacity: 0; transform: translateY(-6px); } }

/* KPI strip + CTA band */
.kstrip { position: relative; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); margin-top: 16px; border: 1px solid var(--line-2); border-radius: var(--r-l); background: rgba(8, 13, 25, .6); }
.kstrip > div { padding: 18px 20px; border-left: 1px solid var(--line); }
.kstrip > div:first-child { border-left: 0; }
.kstrip b { display: block; font: 800 26px/1.1 var(--display); letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.kstrip span { display: block; margin-top: 6px; color: var(--tx-2); font-size: 13.5px; line-height: 1.35; }
.data-note { position: relative; margin-top: 14px; color: var(--tx-3); font-size: 12.5px; }
.ctaband { position: relative; margin-top: clamp(36px, 5vw, 56px); display: flex; align-items: center; justify-content: space-between; gap: 20px 32px; flex-wrap: wrap; padding: clamp(24px, 3vw, 34px); border-radius: var(--r-l); border: 1px solid rgba(255, 122, 26, .35); background: linear-gradient(110deg, rgba(255, 122, 26, .14), rgba(37, 99, 235, .12)); }
.ctaband h3 { font: 800 clamp(22px, 2.4vw, 30px)/1.15 var(--display); letter-spacing: -.03em; }
.ctaband p { margin: 8px 0 0; color: var(--tx-2); }

@media (max-width: 1000px) {
  .dc, .dc.w6 { grid-column: span 6; } .dc.w8 { grid-column: span 12; }
  .kstrip { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .kstrip > div:nth-child(3) { border-left: 0; } .kstrip > div:nth-child(n+3) { border-top: 1px solid var(--line); }
}
@media (max-width: 680px) {
  .dc, .dc.w6, .dc.w8 { grid-column: span 12; }
  .cols { height: 140px; } .cols.h { height: 120px; } .cols { gap: 1px; }
}
@media (prefers-reduced-motion: reduce) {
  .col i, .rank .t i { transition: none; } .live-list li { animation: none; }
  .js .cols:not(.in) .col i { height: var(--h) !important; } .js .rank:not(.in) .t i { transform: none; }
}
.dc.w8 .cols { flex: 1; height: auto; min-height: 170px; }
.rank .l { display: flex; align-items: baseline; gap: 0; }
.lane-ab { display: inline-flex; align-items: center; white-space: nowrap; flex: none; }
.lane-ab svg { display: inline-block; }
.rank .l em { overflow: hidden; text-overflow: ellipsis; }
.dc.w6 .cols { flex: 1; height: auto; min-height: 150px; }
@media (max-width: 680px) { .dc .axis span:nth-child(2) { display: none; } .dc.w6 .cols { min-height: 120px; } }
.dc { overflow: hidden; }

/* hero KPI row (first screen) */
.hero-kpis { display: grid; grid-template-columns: 1.35fr 1fr 1fr 1fr auto; margin-top: clamp(22px, 3vw, 34px); border: 1px solid var(--line-2); border-radius: 16px; background: rgba(12, 19, 36, .62); backdrop-filter: blur(8px); text-decoration: none; color: inherit; transition: border-color .2s ease, background .2s ease; }
.hero-kpis:hover { border-color: rgba(124, 178, 255, .45); background: rgba(17, 26, 47, .75); }
.hk { position: relative; display: flex; flex-direction: column; justify-content: center; gap: 5px; padding: 14px 18px; border-left: 1px solid var(--line); min-width: 0; }
.hk:first-child { border-left: 0; }
.hk-v { font: 600 15px/1.1 var(--body); color: var(--tx-2); white-space: nowrap; }
.hk-v b { font: 800 24px/1 var(--display); letter-spacing: -.03em; color: var(--tx); font-variant-numeric: tabular-nums; margin-right: 3px; }
.hk-k { font-size: 12.5px; color: var(--tx-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hk-k b { color: var(--tx-2); font-weight: 600; }
.hk-spark { padding-right: 140px; }
.spark { position: absolute; right: 16px; top: 50%; width: 112px; height: 34px; transform: translateY(-50%); overflow: visible; }
.spark .ln { fill: none; stroke: #7cb2ff; stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; }
.spark .ar { fill: url(#sparkFill); }
.spark .dt { fill: var(--cta); stroke: #05080f; stroke-width: 2; }
.hk-go { flex-direction: row; flex-wrap: wrap; align-items: center; align-content: center; gap: 4px 8px; font: 600 14px/1 var(--body); color: #cfe1ff; padding-right: 20px; }
.hk-go svg { width: 16px; height: 16px; transition: transform .2s ease; }
.hero-kpis:hover .hk-go svg { transform: translateX(3px); }
.hk-go .hk-k { flex-basis: 100%; }
@media (max-width: 1100px) { .hero-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); } .hk { border-top: 1px solid var(--line); } .hk:nth-child(-n+2) { border-top: 0; } .hk:nth-child(odd) { border-left: 0; } .hk-go { grid-column: 1 / -1; } }
@media (max-width: 520px) { .hk-spark { grid-column: 1 / -1; } .hk:nth-child(2) { border-top: 1px solid var(--line); } .hk:nth-child(2) { border-left: 0; } .hk:nth-child(3) { border-left: 1px solid var(--line); } .hk:nth-child(4) { border-left: 0; } .hk:nth-child(5) { border-left: 0; } .hk { padding: 12px 14px; } .hk-v b { font-size: 21px; } }
@media (max-width: 520px) { .hk-k { white-space: normal; } }
