.cpx-slot { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }
.cpx-slot[hidden] { display: none; }
.cpx-slot:empty { padding: 0; height: 1px; }      /* still laid out, so the lazy loader can see it arrive */
.cpx-box { margin: 44px 0 10px; padding: 22px 24px 18px; border: 1px solid var(--line); border-radius: var(--radius, 14px); background: linear-gradient(180deg, color-mix(in srgb, var(--accent) 7%, var(--surface)), var(--surface) 70%); font-size: var(--fs-sm); }
.cpx-hd { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; margin-bottom: 14px; }
.cpx-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 16px; }
.cpx-card { display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; overflow: hidden; transition: border-color .15s, box-shadow .15s; }
.cpx-card:hover { border-color: var(--accent); box-shadow: 0 6px 18px rgba(2,6,23,.16); }
.cpx-cimg { display: block; aspect-ratio: 16 / 7; background: var(--surface-2, var(--bg)); overflow: hidden; }
.cpx-cbody { display: flex; flex-direction: column; gap: 4px; padding: 12px 14px 14px; flex: 1; }
.cpx-cbody h3 { font-size: var(--fs-sm); line-height: 1.3; margin: 0; font-weight: 650; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.cpx-cbody h3 a { color: var(--ink); text-decoration: none; } .cpx-cbody h3 a:hover { color: var(--accent); text-decoration: underline; }
.cpx-tags { display: flex; gap: 6px; font-size: .66rem; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; color: var(--faint, var(--muted)); margin: 0; }
.cpx-tags .od { color: var(--od-ink); } .cpx-tags .rel { color: var(--accent); }
.cpx-tags span + span::before { content: "·"; margin-right: 6px; color: var(--faint, var(--muted)); }
.cpx-buy { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: auto; padding-top: 8px; }
.cpx-two { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px 36px; margin-top: 10px; } .cpx-two:has(> div:only-child) { grid-template-columns: 1fr; }
.cpx-bottom { display: flex; flex-wrap: wrap; gap: 8px 32px; align-items: flex-start; margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--line); }
.cpx-bottom .cpx-form { margin: 0; flex: 0 1 380px; } .cpx-bottom .cpx-disc { flex: 1 1 320px; margin: 2px 0 0; }
.cpx-btn.solid { background: var(--accent); color: #fff; } .cpx-btn.solid:hover { filter: brightness(1.1); }
.cpx-kicker { font-size: var(--fs-2xs); font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--faint, var(--muted)); margin-right: 6px; }
.cpx-box h2 { font-size: var(--fs-base); margin: 0 0 2px; font-weight: 700; }
.cpx-blurb { color: var(--muted); font-size: var(--fs-xs); margin: 0 0 8px; max-width: 70ch; }
.cpx-sub { font-size: var(--fs-xs); text-transform: uppercase; letter-spacing: .06em; color: var(--faint, var(--muted)); margin: 14px 0 4px; font-weight: 700; }
.cpx-row, .cpx-art { display: flex; align-items: center; gap: 12px; padding: 8px 0; border-bottom: 1px solid color-mix(in srgb, var(--line) 60%, transparent); }
.cpx-th { flex: none; width: 88px; aspect-ratio: 16 / 9; border-radius: 5px; overflow: hidden; background: var(--surface-2, var(--bg)); display: block; }
.cpx-th.sm { width: 56px; }
.cpx-img, .cpx-ph { display: block; width: 100%; height: 100%; object-fit: cover; }
.cpx-ph { display: grid; place-items: center; text-align: center; font-weight: 800; font-size: .6rem; line-height: 1.1; padding: 2px; color: #fff; overflow: hidden; background: linear-gradient(135deg, #2f6bff, #7c3aed); }
.cpx-t-sql { background: linear-gradient(135deg, #2563eb, #0ea5e9); } .cpx-t-excel { background: linear-gradient(135deg, #15803d, #22c55e); }
.cpx-t-power-query { background: linear-gradient(135deg, #0f766e, #14b8a6); } .cpx-t-power-pivot { background: linear-gradient(135deg, #166534, #84cc16); }
.cpx-t-dax { background: linear-gradient(135deg, #b45309, #f59e0b); } .cpx-t-power-bi { background: linear-gradient(135deg, #b45309, #eab308); } .cpx-t-reporting { background: linear-gradient(135deg, #6d28d9, #a855f7); }
.cpx-rb { flex: 1; min-width: 0; }
.cpx-rb h3, .cpx-rb h4 { font-size: var(--fs-sm); line-height: 1.3; margin: 0; font-weight: 600; }
.cpx-rb h4 { font-size: var(--fs-xs); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.cpx-rb a { color: var(--ink); text-decoration: none; } .cpx-rb a:hover { color: var(--accent); text-decoration: underline; }
.cpx-meta { display: flex; flex-wrap: wrap; gap: 0 10px; font-size: var(--fs-xs); color: var(--muted); margin: 1px 0 0; }
.cpx-meta span + span::before { content: "·"; margin-right: 10px; color: var(--faint, var(--muted)); }
.cpx-who { color: var(--faint, var(--muted)); }
.cpx-stars { letter-spacing: 0; color: color-mix(in srgb, var(--faint, #94a3b8) 55%, transparent); } .cpx-stars i { font-style: normal; } .cpx-stars i.on { color: #f59e0b; }
.cpx-act { display: flex; align-items: center; gap: 10px; flex: none; }
.cpx-price { font-size: var(--fs-xs); color: var(--muted); } .cpx-price b { color: var(--ink); } .cpx-price s { margin-right: 4px; }
.cpx-btn { display: inline-block; padding: 5px 12px; border-radius: 8px; background: transparent; color: var(--accent); font-weight: 600; font-size: var(--fs-xs); text-decoration: none; border: 1px solid var(--accent); cursor: pointer; font-family: inherit; white-space: nowrap; }
.cpx-btn:hover { background: var(--accent); color: #fff; }
.cpx-btn:focus-visible, .cpx-link:focus-visible, .cpx-x:focus-visible, .cpx-rb a:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.cpx-btn[disabled] { opacity: .6; cursor: progress; }
.cpx-foot { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 16px; margin: 10px 0 0; }
.cpx-link { font-weight: 600; font-size: var(--fs-xs); color: var(--accent); text-decoration: none; } .cpx-link:hover { text-decoration: underline; }
.cpx-disc { font-size: .68rem; color: var(--faint, var(--muted)); line-height: 1.45; flex: 1 1 320px; }
.cpx-form { margin-top: 18px; } .cpx-lbl { display: block; font-size: var(--fs-xs); font-weight: 600; margin-bottom: 5px; }
.cpx-srow { display: flex; gap: 6px; } .cpx-srow input { flex: 1; min-width: 0; padding: 6px 10px; border-radius: 8px; border: 1px solid var(--line-strong, var(--line)); background: var(--surface-2, var(--bg)); color: var(--ink); font: inherit; font-size: var(--fs-xs); }
.cpx-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.cpx-consent { font-size: .68rem; color: var(--faint, var(--muted)); margin: 4px 0 0; } .cpx-msg { min-height: 1.2em; font-size: var(--fs-xs); margin: 2px 0 0; } .cpx-msg.bad { color: #ef4444; } .cpx-msg.good { color: #10b981; font-weight: 700; }
.cpx-strip { display: flex; align-items: center; gap: 16px; margin: 40px 0 8px; padding: 12px 14px; border: 1px solid var(--line); border-radius: 12px; background: linear-gradient(90deg, color-mix(in srgb, var(--accent) 9%, var(--surface)), var(--surface)); font-size: var(--fs-xs); }
.cpx-bk { flex: none; font-size: .64rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; line-height: 1.3; color: var(--faint, var(--muted)); }
.cpx-mini { flex: 1 1 0; min-width: 0; display: flex; align-items: center; gap: 12px; padding: 4px 0 4px 16px; border-left: 1px solid var(--line); }
.cpx-mini .cpx-th { width: 84px; }
.cpx-mini .cpx-rb { display: flex; flex-direction: column; gap: 1px; }
.cpx-mini .cpx-kicker { margin: 0; font-size: .64rem; color: var(--accent); }
.cpx-b-title { font-weight: 650; font-size: var(--fs-sm); line-height: 1.3; color: var(--ink); text-decoration: none; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; } .cpx-b-title:hover { color: var(--accent); text-decoration: underline; }
.cpx-x { background: none; border: 0; color: var(--muted); font-size: 1.2rem; line-height: 1; cursor: pointer; padding: 2px 6px; }
.cpx-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
@media (max-width: 900px) { .cpx-strip { flex-wrap: wrap; } .cpx-bk { display: none; } .cpx-mini { flex-basis: 100%; padding-left: 0; border-left: 0; } .cpx-two { grid-template-columns: 1fr; } .cpx-act .cpx-price { display: none; } }
@media print { .cpx-slot { display: none !important; } }

.cpx-slot.top { padding-top: 14px; }
.cpx-slot.top .cpx-strip { margin: 0; }
.cpx-slot.top:empty { padding-top: 0; }

/* the right rail on the guide pages (wide screens only) */
.cpx-slot.side { padding: 0; position: sticky; top: calc(var(--header-h, 61px) + 18px); align-self: start; }
.cpx-slot.side:empty { display: none; }
.cpx-sidecard { display: flex; flex-direction: column; gap: 6px; padding: 14px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); font-size: var(--fs-xs); }
.cpx-simg { display: block; aspect-ratio: 16 / 9; border-radius: 8px; overflow: hidden; margin: 4px 0 2px; background: var(--surface-2, var(--bg)); }
.cpx-sidecard h3 { font-size: var(--fs-sm); line-height: 1.3; margin: 0; } .cpx-sidecard h3 a { color: var(--ink); text-decoration: none; } .cpx-sidecard h3 a:hover { color: var(--accent); text-decoration: underline; }
.cpx-sevent { margin-top: 8px; padding-top: 10px; border-top: 1px solid var(--line); display: flex; flex-direction: column; gap: 3px; } .cpx-sevent > a:not(.cpx-link) { color: var(--ink); text-decoration: none; font-weight: 600; } .cpx-sevent > a:hover { color: var(--accent); }
.cpx-sidecard .cpx-link.all { margin-top: 6px; }
.cpx-rail { display: none; }
@media (min-width: 1500px) { .doc-wrap.has-rail { grid-template-columns: 270px minmax(0, 1fr) 280px; } .doc-wrap.has-rail .cpx-rail { display: block; } }

/* ---- quieter: the panel is a suggestion, not a billboard ---- */
.cpx-box { margin: 28px 0 6px; padding: 14px 18px 12px; }
.cpx-hd { margin-bottom: 8px; }
.cpx-blurb { display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical; overflow: hidden; margin-bottom: 0; }
.cpx-cards { gap: 12px; }
.cpx-cimg { aspect-ratio: 5 / 1; }
.cpx-cbody { padding: 8px 12px 10px; gap: 2px; }
.cpx-card .cpx-rate, .cpx-card .cpx-who { display: none; }
.cpx-buy { padding-top: 4px; }
.cpx-two { margin-top: 4px; gap: 4px 28px; }
.cpx-sub { margin: 10px 0 2px; }
.cpx-row, .cpx-art { padding: 6px 0; gap: 10px; }
.cpx-th { width: 64px; } .cpx-th.sm { width: 48px; }
.cpx-bottom { margin-top: 10px; padding-top: 10px; }
.cpx-simg { aspect-ratio: 16 / 7; }

/* ---- the quiet card in the margin of reading pages (wide screens only) ---- */
.cpx-slot.float { display: none; position: fixed; top: calc(var(--header-h, 61px) + 28px); width: 250px; padding: 0; z-index: 5; }
.cpx-slot.float:empty { display: none !important; }
@media (min-width: 1500px) {
  .cpx-slot.float { display: block; }
  /* beside the centered reading column */
  .cpx-slot.float.prose { left: calc(50% + var(--maxw-prose) / 2 + 28px); }
  /* at the right edge of the page container */
  .cpx-slot.float.edge { left: calc(50% + var(--maxw) / 2 - 250px - 24px); }
  /* guide pages show the card in their own right column; hide the panel under the article there */
  .doc-wrap.has-rail ~ .cpx-slot { display: none; }
  /* pages with the edge card (e.g. /docs): keep the content clear of it */
  body:has(.cpx-slot.float.edge:not(:empty):not([hidden])) .docs { padding-right: 300px; }
}

/* ---- the front-page panel: three classes, one signup, nothing else ---- */
.cpx-homebox { margin: 36px 0 12px; }
.cpx-signupbar { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 28px; margin-top: 16px; padding: 14px 18px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); }
.cpx-su-text { flex: 1 1 320px; display: flex; flex-direction: column; gap: 2px; } .cpx-su-text b { font-size: var(--fs-sm); } .cpx-su-text span { font-size: var(--fs-xs); color: var(--muted); }
.cpx-signupbar .cpx-form { flex: 0 1 430px; margin: 0; } .cpx-signupbar .cpx-srow input { padding: 10px 14px; font-size: var(--fs-sm); } .cpx-signupbar .cpx-btn { padding: 10px 20px; }
.cpx-homebox .cpx-disc { margin: 10px 0 0; flex: none; }
