/* ============================================================
   Homepage — Sports odds desk section (#444): three match cards + Sharpest books
   (template-parts/home/odds-desk.php · inc/home-odds.php · assets/js/home-odds.js).
   Scope prefix cdho-. The card shell follows the tracker board's cdhb-card (style.css §6b):
   same surface, edge, radius, hover lift and footer hairline; the grid folds like it
   (4 columns from a 1060 px column, 2 below) and becomes a swipe row in a 600 px column.
   Every region has a fixed height, so a card the script redraws keeps its size.
   ============================================================ */
.cdho{scroll-margin-top:calc(var(--top-h) + 12px)}
.cdho>.wrap{container:cdho/inline-size}
.cdho-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}
@container cdho (min-width:1060px){.cdho-grid{grid-template-columns:repeat(4,minmax(0,1fr))}}
@container cdho (max-width:600px){
  .cdho-grid{display:flex;gap:12px;margin-inline:calc(-1 * var(--pad,16px));padding:4px var(--pad,16px) 10px;overflow-x:auto;scroll-snap-type:x mandatory;scroll-padding-inline:var(--pad,16px);overscroll-behavior-x:contain;scrollbar-width:thin}
  .cdho-card{flex:0 0 min(84%,320px);scroll-snap-align:start}
}

.cdho-card{position:relative;display:flex;flex-direction:column;min-width:0;padding:16px 16px 0;overflow:hidden;border-radius:var(--r-lg);border:1px solid var(--line);background:linear-gradient(180deg,rgba(255,255,255,.028),rgba(255,255,255,0) 40%),var(--surface);background:linear-gradient(180deg,light-dark(rgba(17,24,39,0.032),rgba(255,255,255,.028)),light-dark(rgba(17,24,39,0),rgba(255,255,255,0)) 40%),var(--surface);isolation:isolate;transition:transform .3s var(--ease),border-color .3s,box-shadow .3s}
.cdho-card::before{content:"";position:absolute;z-index:-1;inset:0 0 auto;height:96px;background:radial-gradient(120% 100% at 0 0,color-mix(in srgb,var(--a) 16%,transparent),transparent 70%);pointer-events:none}
.cdho-card:hover,.cdho-card:focus-within{transform:translateY(-3px);border-color:color-mix(in srgb,var(--a) 45%,transparent);box-shadow:0 24px 50px -30px color-mix(in srgb,var(--a) 70%,transparent)}

.cdho-top{display:flex;align-items:center;justify-content:space-between;gap:10px;height:24px}
.cdho-lg{display:inline-flex;align-items:center;gap:7px;min-width:0}
.cdho-glyph{flex:0 0 22px;display:grid;place-items:center;width:22px;height:22px;border-radius:7px;background:color-mix(in srgb,var(--a) 16%,transparent);color:var(--a);color:light-dark(color-mix(in srgb,var(--a) 55%,#0B1220),var(--a))}
.cdho-glyph svg{display:block;width:16px;height:16px}
.cdho-lgn{overflow:hidden;color:var(--muted);font:600 12.5px/1.2 var(--font-body);white-space:nowrap;text-overflow:ellipsis}
.cdho-kick{flex:0 0 auto;color:var(--text-2);font:600 12px/1 var(--font-body);white-space:nowrap;font-variant-numeric:tabular-nums}
.cdho-live{flex:0 0 auto;display:inline-flex;align-items:center;gap:6px;color:var(--up);font:700 12px/1 var(--font-mono);letter-spacing:.08em}
.cdho-live i{width:7px;height:7px;border-radius:50%;background:currentColor;box-shadow:0 0 0 3px rgba(46,212,127,.16);animation:cdhoBlink 1.4s ease-in-out infinite}
@keyframes cdhoBlink{50%{opacity:.35}}

.cdho-teams{height:42px;margin:12px 0 0;font:600 16px/21px var(--font-display);letter-spacing:-.01em}
.cdho-open{display:flex;flex-direction:column;color:#fff;color:light-dark(#0B1220,#fff);text-decoration:none}
.cdho-open::after{content:"";position:absolute;inset:0;z-index:2;border-radius:var(--r-lg)}
.cdho-open:focus-visible{outline:none}
.cdho-open:focus-visible::after{outline:2px solid var(--cyan);outline-offset:-2px}
.cdho-card:hover .cdho-open{color:var(--cyan)}
.cdho-team{display:block;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}

.cdho-prices{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:6px;height:58px;margin-top:12px}
.cdho-prices.n2{grid-template-columns:repeat(2,minmax(0,1fr))}
.cdho-chip{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:5px;min-width:0;border:1px solid var(--line);border-radius:9px;background:var(--surface-2)}
.cdho-chip.is-fav{border-color:color-mix(in srgb,var(--a) 40%,var(--line))}
.cdho-chip-p{display:flex;align-items:baseline;justify-content:center;gap:5px;max-width:100%;padding:0 4px;white-space:nowrap}
.cdho-chip-k{color:var(--dim);font:700 12px/1 var(--font-mono)}
.cdho-chip b{color:var(--text);font:700 16px/1 var(--font-mono);letter-spacing:-.02em;font-variant-numeric:tabular-nums}
.cdho-chip img,.cdho-rank img{display:block;width:16px;height:16px;border-radius:4px;object-fit:contain}
.cdho-dot{display:block;width:8px;height:8px;margin:4px;border-radius:50%;background:var(--surface-3)}
.cdho-wait{grid-column:1/-1;display:grid;place-items:center;margin:0;padding:0 8px;border:1px dashed var(--line-2);border-radius:9px;color:var(--muted);font-size:13px;text-align:center}

.cdho-spark{height:34px;margin-top:14px}
.cdho-spark svg{display:block;width:100%;height:100%;overflow:visible}
.cdho-line{fill:none;stroke:var(--a);stroke:light-dark(color-mix(in srgb,var(--a) 70%,#0B1220),var(--a));stroke-width:1.75;stroke-linejoin:round;stroke-linecap:round;vector-effect:non-scaling-stroke}
.cdho-area{fill:color-mix(in srgb,var(--a) 14%,transparent);stroke:none}
.cdho-spark.is-flat{display:flex;align-items:center}
.cdho-spark.is-flat b{flex:1 1 auto;height:2px;border-radius:1px;background:repeating-linear-gradient(90deg,var(--surface-3) 0 6px,transparent 6px 10px)}
.cdho-fav{display:flex;align-items:baseline;justify-content:space-between;gap:10px;height:18px;margin:8px 0 14px;color:var(--muted);font-size:12.5px;line-height:18px}
.cdho-fav-l{min-width:0;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}
.cdho-fav-l i{display:inline-block;min-width:16px;margin-right:6px;padding:0 3px;border-radius:4px;background:var(--surface-2);color:var(--text-2);font:700 12px/16px var(--font-mono);font-style:normal;text-align:center}
.cdho-fav-v{flex:0 0 auto;color:var(--text);font:600 12.5px/18px var(--font-mono);white-space:nowrap;font-variant-numeric:tabular-nums}
.cdho-fav-v.is-up{color:var(--up)}
.cdho-fav-v.is-down{color:var(--down-l)}

.cdho-foot{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-top:auto;padding:12px 0 14px;border-top:1px solid var(--line);color:var(--dim);font:500 12px/1.2 var(--font-mono);white-space:nowrap}
.cdho-foot b{color:var(--text-2);font-weight:600}
.cdho-hold{color:var(--text-2)}

/* Sharpest books */
.cdho-sharp .cdho-teams{height:auto}
.cdho-rank{display:grid;grid-auto-rows:28px;align-content:start;gap:2px;height:148px;margin:10px 0 14px;padding:0;list-style:none}
.cdho-rank .cdho-wait{grid-template-columns:1fr;height:148px}
.cdho-rank li{display:grid;grid-template-columns:14px 18px minmax(0,1fr) auto;align-items:center;gap:9px;height:28px;color:var(--text-2);font-size:13.5px}
.cdho-rank img{width:18px;height:18px}
.cdho-rk{color:var(--dim);font:700 12px/1 var(--font-mono);text-align:center}
.cdho-rank li:first-child .cdho-rk{color:var(--gold)}
.cdho-rk-n{overflow:hidden;color:var(--text);font-weight:600;white-space:nowrap;text-overflow:ellipsis}
.cdho-rank b{color:var(--text);font:600 13px/1 var(--font-mono);font-variant-numeric:tabular-nums}
.cdho-note{margin:auto 0 0;padding:12px 0 14px;border-top:1px solid var(--line);color:var(--dim);font-size:12px;line-height:1.45}

/* The desk's refreshing state: the card keeps its size, nothing on it reads as a current price. */
.cdho-card.is-wait .cdho-live,.cdho-card.is-wait .cdho-spark,.cdho-card.is-wait .cdho-fav,.cdho-card.is-wait .cdho-foot>*{visibility:hidden}

@media (prefers-reduced-motion:reduce){
  .cdho-live i{animation:none}
  .cdho-card{transition:none}
  .cdho-card:hover,.cdho-card:focus-within{transform:none}
}
