/* ==========================================================================
   CXM Academy Podcasts (theme 1.2.7, 1.2.9): listen buttons, podcast home, episode pages, home page strip.
   Built from the theme's own parts (theme.css): page head, cards, tags, chips, kickers, meta rows, buttons.
   Logical properties throughout, so right to left sites mirror.
   ========================================================================== */

/* ---------- listen buttons: equal-height pills, a small monochrome brand mark and the name ---------- */
.cxm-listen{list-style:none;display:flex;flex-wrap:wrap;gap:8px;margin:0;padding:0}
.cxm-listen > li{display:flex;margin:0}
.cxm-listen-btn{display:inline-flex;align-items:center;gap:8px;height:40px;padding-inline:12px 16px;border:1px solid var(--cxm-line);border-radius:999px;background:var(--cxm-white);color:var(--cxm-navy);font:600 14px/1 var(--cxm-display);text-decoration:none;white-space:nowrap;transition:border-color .15s,color .15s,box-shadow .15s}
a.cxm-listen-btn:hover{border-color:var(--cxm-blue);color:var(--cxm-blue);box-shadow:0 6px 16px -12px rgba(0,59,92,.6)}
a.cxm-listen-btn:focus-visible{outline:3px solid var(--cxm-gold);outline-offset:2px}
.cxm-listen-i{width:18px;height:18px;flex:none;fill:currentColor}
.cxm-listen-i .cxm-s{fill:none;stroke:currentColor;stroke-width:1.9;stroke-linecap:round}
.cxm-listen.cxm-listen-sm .cxm-listen-btn{height:36px;font-size:13px;padding-inline:10px 14px;gap:7px}
.cxm-listen.cxm-listen-sm .cxm-listen-i{width:16px;height:16px}

/* ---------- cover art ---------- */
.cxm-ep-art{position:relative;display:block;margin:0;aspect-ratio:1/1;overflow:hidden;background:var(--cxm-sky);border-radius:6px;isolation:isolate}
.cxm-ep-art img{position:relative;z-index:1;display:block;width:100%;height:100%;object-fit:cover;border-radius:0}
/* a wide cover (old YouTube thumbnails) shows whole between two solid bands in the colors of its own top and bottom edge */
.cxm-ep-art.cxm-art-wide{background:linear-gradient(to bottom,var(--cxm-band-top,#0A6DF5) 50%,var(--cxm-band-bottom,var(--cxm-band-top,#0A6DF5)) 50%)}
.cxm-ep-art.cxm-art-wide img{object-fit:contain}
/* a wide cover with a set crop (override map) fills the square at that position */
.cxm-ep-art.cxm-art-crop img{object-fit:cover;object-position:var(--cxm-art-pos,50% 50%)}
/* the episode hero lets a wide cover keep its own 16:9 shape */
.cxm-ep-art.cxm-art-169{aspect-ratio:16/9}
.cxm-ep-art.cxm-art-169 img{object-fit:cover}
/* the 2026 Table Stakes covers carry a sliver of a cut-off logo along the top: crop it away */
.cxm-ep-art.cxm-art-trim-top img{object-position:50% 100%;transform:scale(1.045);transform-origin:50% 100%}
.cxm-ep-art.cxm-art-empty::after{content:"";position:absolute;inset:0;margin:auto;width:34%;height:34%;background:var(--cxm-blue);-webkit-mask:var(--cxm-i-mic) center/contain no-repeat;mask:var(--cxm-i-mic) center/contain no-repeat}

/* ---------- shared episode text ---------- */
.cxm-ep-tag{margin:0}
.cxm-meta.cxm-ep-meta{margin:0;gap:6px 14px}
.cxm-ep-body .cxm-by,.cxm-spot-body .cxm-by,.cxm-ep-hero-txt .cxm-by{margin:0 0 10px}

/* ---------- player: Play episode button, thin progress bar and the length; the audio element stays hidden ---------- */
.cxm-player{display:flex;flex-wrap:wrap;align-items:center;gap:12px 18px;min-width:0}
.cxm-player audio{display:block;width:100%;max-width:520px;height:40px}
.cxm-play,.cxm-player-bar{display:none}
.cxm-play svg{width:14px;height:14px;flex:none;fill:currentColor}
.cxm-play .cxm-pause-i{display:none}
.cxm-player.is-playing .cxm-play .cxm-play-i{display:none}
.cxm-player.is-playing .cxm-play .cxm-pause-i{display:block}
.cxm-js .cxm-player audio{display:none}
.cxm-js .cxm-play{display:inline-flex}
.cxm-js .cxm-player.is-open .cxm-player-bar{display:flex}
.cxm-player-bar{flex:1 1 220px;max-width:420px;min-width:0;align-items:center;gap:12px}
.cxm-player-time{flex:none;font:600 13px/1 var(--cxm-display);color:var(--cxm-muted);white-space:nowrap;font-variant-numeric:tabular-nums;unicode-bidi:isolate}
.cxm-player-seek{--cxm-seek:0%;flex:1;min-width:80px;height:20px;margin:0;padding:0;background:transparent;cursor:pointer;-webkit-appearance:none;appearance:none}
.cxm-player-seek::-webkit-slider-runnable-track{height:4px;border-radius:2px;background:linear-gradient(to right,var(--cxm-blue) var(--cxm-seek),var(--cxm-line) var(--cxm-seek))}
.cxm-player-seek::-moz-range-track{height:4px;border-radius:2px;background:var(--cxm-line)}
.cxm-player-seek::-moz-range-progress{height:4px;border-radius:2px;background:var(--cxm-blue)}
.cxm-player-seek::-webkit-slider-thumb{-webkit-appearance:none;appearance:none;width:14px;height:14px;margin-top:-5px;border-radius:50%;background:var(--cxm-navy);border:2px solid var(--cxm-white);box-shadow:0 0 0 1px var(--cxm-line)}
.cxm-player-seek::-moz-range-thumb{width:14px;height:14px;border-radius:50%;background:var(--cxm-navy);border:2px solid var(--cxm-white);box-shadow:0 0 0 1px var(--cxm-line)}
.cxm-player-seek:focus-visible{outline:3px solid var(--cxm-gold);outline-offset:2px;border-radius:4px}
html[dir="rtl"] .cxm-player-seek::-webkit-slider-runnable-track{background:linear-gradient(to left,var(--cxm-blue) var(--cxm-seek),var(--cxm-line) var(--cxm-seek))}
/* the open player of the episode page sits in a white card of the theme's card system */
.cxm-player.cxm-player-open{width:100%;max-width:560px;padding:14px 18px;background:var(--cxm-white);border:1px solid var(--cxm-line);border-radius:var(--cxm-radius)}
.cxm-player.cxm-player-open .cxm-player-bar{max-width:none}
html:not(.cxm-js) .cxm-player.cxm-player-open{padding:8px}
/* a light outline button (the strip's All episodes, the list's Show more) */
.wp-element-button.cxm-btn-line{background:var(--cxm-white);color:var(--cxm-blue);border:2px solid var(--cxm-blue);padding:8px 16px;font-size:14px}
.wp-element-button.cxm-btn-line:hover{background:var(--cxm-soft);color:var(--cxm-navy);border-color:var(--cxm-navy)}

/* ---------- podcast home: page head ---------- */
.cxm-pod-head-grid{display:grid;grid-template-columns:minmax(0,1fr) 220px;gap:48px;align-items:center}
.cxm-pod-head .cxm-kicker{font-size:13px;letter-spacing:.14em;margin:0 0 10px}
.cxm-pod-head h1{margin-block-end:14px}
.cxm-pod-head .cxm-page-intro{max-width:640px}
.cxm-pod-head .cxm-listen{margin-block-start:26px}
.cxm-pod-cover{margin:0;width:220px;aspect-ratio:1/1;border-radius:var(--cxm-radius);overflow:hidden;background:var(--cxm-sky);box-shadow:0 22px 44px -26px rgba(0,59,92,.55)}
.cxm-pod-cover img{display:block;width:100%;height:100%;object-fit:cover}

/* ---------- podcast home: spotlight ---------- */
.cxm-section.cxm-pod-spot.cxm-pod-spot{padding-block:56px 72px}
.cxm-spot{display:grid;grid-template-columns:minmax(0,1.9fr) minmax(0,1fr);gap:24px;align-items:start}
.cxm-spot.cxm-spot-solo{grid-template-columns:minmax(0,1fr)}
.cxm-spot-main{display:grid;grid-template-columns:minmax(0,300px) minmax(0,1fr);gap:32px;padding:24px;border-block-start:4px solid var(--cxm-gold);align-items:start}
.cxm-spot-body{display:flex;flex-direction:column;align-items:flex-start;min-width:0;padding-block-start:4px}
.cxm-spot-body .cxm-kicker{margin:0 0 14px}
.cxm-spot-title{font-size:clamp(23px,2.5vw,30px);line-height:1.18;margin:12px 0 8px}
.cxm-spot-title a{color:var(--cxm-navy);text-decoration:none}
.cxm-spot-title a:hover{color:var(--cxm-blue)}
.cxm-spot-sum{display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;color:var(--cxm-muted);font-size:15px;line-height:1.6;margin:16px 0 20px}
.cxm-spot-actions{display:flex;flex-wrap:wrap;align-items:center;gap:14px 22px;width:100%}
.cxm-spot-actions .cxm-player.is-open{flex-basis:100%}
.cxm-spot-side{display:grid;gap:16px;align-content:start}
.cxm-spot-label{font:700 12px/1.3 var(--cxm-display);letter-spacing:.14em;text-transform:uppercase;color:var(--cxm-muted);margin:4px 0 0}

/* ---------- episode cards (grid) and rows (spotlight side) ---------- */
.cxm-ep-card,.cxm-ep-row{position:relative;flex:1;overflow:hidden;transition:border-color .15s,box-shadow .15s}
.cxm-ep-card:hover,.cxm-ep-row:hover{border-color:#B7CDE0;box-shadow:0 16px 32px -22px rgba(0,59,92,.45)}
.cxm-ep-card .cxm-ep-art{border-radius:0}
.cxm-ep-body{display:flex;flex-direction:column;align-items:flex-start;flex:1;min-width:0;padding:18px 18px 20px}
.cxm-ep-body h3{font-size:17px;line-height:1.3;margin:10px 0 6px}
.cxm-ep-body h3 a{color:var(--cxm-navy);text-decoration:none}
.cxm-ep-body h3 a::after{content:"";position:absolute;inset:0;z-index:2}
.cxm-ep-card:hover h3 a,.cxm-ep-row:hover h3 a{color:var(--cxm-blue)}
.cxm-ep-body h3 a:focus-visible{outline:none}
.cxm-ep-card:has(h3 a:focus-visible),.cxm-ep-row:has(h3 a:focus-visible){outline:3px solid var(--cxm-gold);outline-offset:2px}
.cxm-ep-body .cxm-ep-meta{margin-block-start:auto;padding-block-start:6px}
.cxm-ep-row{display:grid;grid-template-columns:112px minmax(0,1fr);gap:16px;padding:14px;align-items:start}
.cxm-ep-row .cxm-ep-body{padding:2px 0 0}
.cxm-ep-row .cxm-ep-body h3{font-size:16px;margin-block-start:8px}

/* ---------- list with series chips ---------- */
.cxm-pod-list .cxm-sec-head{align-items:center}
a.cxm-chip{display:inline-flex;align-items:center;gap:8px;text-decoration:none}
a.cxm-chip:focus-visible{outline:3px solid var(--cxm-gold);outline-offset:2px}
.cxm-chip[aria-current="true"]{background:var(--cxm-navy);border-color:var(--cxm-navy);color:var(--cxm-white)}
.cxm-chip .cxm-chip-n{font:600 12px/1 var(--cxm-display);color:var(--cxm-muted)}
.cxm-chip[aria-current="true"] .cxm-chip-n{color:#CADBE8}
.cxm-ep-grid{list-style:none;display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:24px;margin:0;padding:0}
.cxm-ep-grid.cxm-ep-grid-3{grid-template-columns:repeat(3,minmax(0,1fr))}
.cxm-ep-grid > li{display:flex;margin:0;min-width:0}
.cxm-ep-grid > li[hidden]{display:none}
.cxm-ep-empty{max-width:680px;color:var(--cxm-muted);margin:0}
.cxm-ep-more-wrap{display:none;margin:20px 0 0;text-align:center}

/* ---------- episode page ---------- */
.cxm-ep-head{padding-block:40px 56px}
.cxm-ep-hero{display:grid;grid-template-columns:minmax(0,340px) minmax(0,1fr);gap:48px;align-items:center}
.cxm-ep-hero > .cxm-ep-art{border-radius:var(--cxm-radius);box-shadow:0 24px 48px -28px rgba(0,59,92,.55)}
.cxm-ep-hero.cxm-ep-hero-wide{grid-template-columns:minmax(0,420px) minmax(0,1fr)}
.cxm-ep-hero-txt{min-width:0}
.cxm-ep-title.cxm-ep-title{font-size:clamp(30px,4vw,46px);line-height:1.1;margin:14px 0 12px}
.cxm-ep-hero-txt .cxm-by{font-size:16px;color:var(--cxm-ink);font-weight:600}
.cxm-ep-hero-txt .cxm-ep-meta{margin-block-end:22px}
.cxm-ep-removed{margin:16px 0 0;padding:12px 16px;border-radius:6px;background:var(--cxm-white);border:1px solid var(--cxm-line);color:var(--cxm-navy);font:600 14px/1.45 var(--cxm-display)}
.cxm-listen-wrap{margin-block-start:26px;padding-block-start:20px;border-block-start:1px solid var(--cxm-line)}
.cxm-listen-label{font:700 12px/1.3 var(--cxm-display);letter-spacing:.14em;text-transform:uppercase;color:var(--cxm-muted);margin:0 0 12px}
.cxm-ep-notes h2{font-size:26px;margin:0 0 20px}
.cxm-ep-prose{font-size:17px;line-height:1.75;color:var(--cxm-ink)}
.cxm-ep-prose p{margin:0 0 1.1em}
.cxm-ep-prose h3,.cxm-ep-prose h4{font:700 20px/1.3 var(--cxm-display);color:var(--cxm-navy);margin:36px 0 12px}
.cxm-ep-prose > h3:first-child{margin-block-start:0}
.cxm-ep-prose li strong{color:var(--cxm-navy)}
.cxm-ep-prose ul,.cxm-ep-prose ol{padding-inline-start:1.3em;margin:0 0 1.3em}
.cxm-ep-prose li{margin-block-end:.45em}
.cxm-ep-prose a{overflow-wrap:anywhere}
.cxm-ep-prose > :last-child{margin-block-end:0}
.cxm-ep-pager{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:24px;margin-block-end:64px}
.cxm-ep-pager a{display:flex;flex-direction:column;gap:8px;padding:20px 22px;border:1px solid var(--cxm-line);border-radius:var(--cxm-radius);background:var(--cxm-white);text-decoration:none;transition:border-color .15s}
.cxm-ep-pager a:hover{border-color:var(--cxm-blue)}
.cxm-ep-pager .cxm-ep-next{grid-column:2;text-align:end;align-items:flex-end}
.cxm-ep-pager-k{display:inline-flex;align-items:center;gap:6px;font:700 12px/1.3 var(--cxm-display);letter-spacing:.14em;text-transform:uppercase;color:var(--cxm-blue)}
.cxm-ep-pager-t{font:700 17px/1.35 var(--cxm-display);color:var(--cxm-navy)}
.cxm-ep-prev .cxm-ep-pager-k::before,.cxm-ep-next .cxm-ep-pager-k::after{content:"";flex:none;width:14px;height:14px;background:currentColor;-webkit-mask:var(--cxm-i-arrow) center/contain no-repeat;mask:var(--cxm-i-arrow) center/contain no-repeat}
.cxm-ep-prev .cxm-ep-pager-k::before{transform:scaleX(-1)}
html[dir="rtl"] .cxm-ep-prev .cxm-ep-pager-k::before{transform:none}
html[dir="rtl"] .cxm-ep-next .cxm-ep-pager-k::after{transform:scaleX(-1)}

/* ---------- home page strip: latest episode next to the listen buttons ---------- */
.cxm-podcast.cxm-podcast-live{gap:24px 40px}
.cxm-podcast.cxm-podcast-live::before{display:none}
.cxm-podcast-ep{flex:1 1 320px;display:flex;align-items:center;gap:22px;min-width:0}
.cxm-podcast-art.cxm-ep-art{flex:none;width:104px;height:104px;border-radius:6px}
.cxm-podcast-ep .cxm-podcast-txt{min-width:0}
.cxm-podcast-txt h3 a{color:var(--cxm-navy);text-decoration:none}
.cxm-podcast-txt h3 a:hover{color:var(--cxm-blue)}
.cxm-podcast-txt p.cxm-podcast-meta{font:600 13px/1.5 var(--cxm-display);color:var(--cxm-muted);margin:0 0 12px}
.cxm-podcast-meta .cxm-seg{unicode-bidi:isolate;white-space:nowrap}
.cxm-podcast-txt p.cxm-podcast-note{font-size:13px;margin-block-start:8px}
.cxm-podcast-txt .cxm-player audio{max-width:420px}
/* the listen buttons and All episodes on one row, vertically centered, at the end of the strip (as in the mockup) */
.cxm-podcast-links{flex:0 1 auto;display:flex;flex-wrap:wrap;align-items:center;justify-content:flex-end;gap:8px;margin-inline-start:auto}
.cxm-podcast-links .cxm-listen{flex-wrap:nowrap}
.cxm-podcast-all.wp-element-button{height:36px;padding-block:0;margin-inline-start:4px;white-space:nowrap}

/* ---------- responsive ---------- */
@media (max-width:1180px){
  .cxm-podcast-links{justify-content:flex-start;margin-inline-start:0}
  .cxm-podcast-links .cxm-listen{flex-wrap:wrap}
}
@media (max-width:1080px){
  .cxm-ep-grid{grid-template-columns:repeat(3,minmax(0,1fr))}
  .cxm-spot{grid-template-columns:minmax(0,1fr)}
  .cxm-spot-side{grid-template-columns:repeat(2,minmax(0,1fr))}
  .cxm-spot-label{grid-column:1/-1}
}
@media (max-width:960px){
  .cxm-ep-grid,.cxm-ep-grid.cxm-ep-grid-3{grid-template-columns:repeat(2,minmax(0,1fr))}
  .cxm-pod-head-grid{grid-template-columns:minmax(0,1fr) 160px;gap:32px}
  .cxm-pod-cover{width:160px}
  .cxm-spot-main{grid-template-columns:minmax(0,240px) minmax(0,1fr);gap:24px}
  .cxm-ep-hero{grid-template-columns:minmax(0,260px) minmax(0,1fr);gap:32px}
  .cxm-ep-hero.cxm-ep-hero-wide{grid-template-columns:minmax(0,300px) minmax(0,1fr)}
}
@media (max-width:640px){
  .cxm-listen-btn{height:38px;font-size:13px;padding-inline:10px 14px;gap:7px}
  .cxm-pod-head-grid{grid-template-columns:minmax(0,1fr);gap:20px}
  .cxm-pod-cover{order:-1;width:96px;border-radius:6px}
  .cxm-pod-head .cxm-listen{margin-block-start:20px}
  .cxm-spot-main{grid-template-columns:minmax(0,1fr);gap:18px;padding:16px}
  .cxm-spot-side{grid-template-columns:minmax(0,1fr)}
  .cxm-ep-grid,.cxm-ep-grid.cxm-ep-grid-3{grid-template-columns:minmax(0,1fr);gap:12px}
  .cxm-ep-card{display:grid;grid-template-columns:96px minmax(0,1fr);gap:14px;padding:12px;align-items:start}
  .cxm-ep-card .cxm-ep-art{border-radius:6px}
  .cxm-ep-card .cxm-ep-body,.cxm-ep-row .cxm-ep-body{padding:0}
  .cxm-ep-body h3,.cxm-ep-row .cxm-ep-body h3{font-size:16px;margin-block-start:8px}
  .cxm-ep-row{grid-template-columns:96px minmax(0,1fr);padding:12px;gap:14px}
  .cxm-ep-card .cxm-ep-body,.cxm-ep-row .cxm-ep-body{display:block}
  .cxm-ep-body .cxm-ep-meta{margin-block-start:4px;padding-block-start:0}
  .cxm-section.cxm-pod-spot.cxm-pod-spot{padding-block:40px 56px}
  .cxm-pod-list .cxm-sec-head{align-items:flex-start;flex-direction:column;gap:16px}
  .cxm-ep-head{padding-block:28px 40px}
  .cxm-ep-hero{grid-template-columns:minmax(0,1fr);gap:24px}
  .cxm-ep-hero > .cxm-ep-art{width:min(240px,70%)}
  .cxm-ep-hero.cxm-ep-hero-wide{grid-template-columns:minmax(0,1fr)}
  .cxm-ep-hero > .cxm-ep-art.cxm-art-169{width:100%}
  .cxm-js .cxm-ep-more-wrap{display:block}
  .cxm-ep-grid.is-collapsed > li.cxm-ep-extra{display:none}
  .cxm-player.cxm-player-open{padding:12px 14px}
  .cxm-ep-pager{grid-template-columns:minmax(0,1fr);gap:12px;margin-block-end:48px}
  .cxm-ep-pager .cxm-ep-next{grid-column:auto}
  .cxm-ep-prose{font-size:16px}
  .cxm-podcast-ep{flex-basis:100%;align-items:flex-start;gap:16px}
  .cxm-podcast-art.cxm-ep-art{width:80px;height:80px}
  .cxm-podcast-links{flex-basis:100%;flex-direction:column;align-items:flex-start;gap:14px}
  .cxm-podcast-all.wp-element-button{margin-inline-start:0}
}
