/* The video popup (site/assets/video-popup.js), as on CXO Dispatch: ▶ in a video header or card opens the
   whole video with sound, with the Key takeaway and the article's sections beside it. */
html.es-pop-open, html.es-pop-open body { overflow: hidden; }
.es-pop { position: fixed; inset: 0; z-index: 100000; display: grid; place-items: center; padding: 16px; font-family: var(--cs-font-secondary-family), sans-serif; }
.es-pop-scrim { position: absolute; inset: 0; background: rgb(0 0 0 / .82); animation: es-fade .25s ease; }
.es-pop-box { position: relative; width: min(1240px, 100%); max-height: calc(100vh - 32px); display: grid; grid-template-columns: minmax(0, 1fr) 320px;
  background: #141416; color: #fff; border-radius: 14px; overflow: hidden; box-shadow: 0 30px 90px rgb(0 0 0 / .5); animation: es-pop .3s ease; }
@media (min-width: 901px) { .es-pop-box > .es-pop-video { box-shadow: 0 0 0 100vmax #000; clip-path: inset(-100vmax 0); } } /* black above and below the video in its column */
.es-pop-video { position: relative; aspect-ratio: 16 / 9; background: #000; align-self: center; width: 100%; max-height: calc(100vh - 32px); }
.es-pop-video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.es-pop-side { position: relative; display: flex; flex-direction: column; gap: 14px; padding: 24px; overflow: auto; min-height: 0; max-height: calc(100vh - 32px); }
.es-pop .es-pop-x { position: absolute; top: 12px; right: 12px; width: 40px; height: 40px; padding: 0; border: 0; border-radius: 50%; background: rgb(255 255 255 / .12); color: #fff; display: grid; place-items: center; cursor: pointer; }
.es-pop .es-pop-x:hover, .es-pop .es-pop-x:focus-visible { background: rgb(255 255 255 / .25); color: #fff; }
.es-pop .es-pop-x svg { opacity: 1; }
.es-pop-panel { display: contents; } /* its items are spaced by the panel's flex gap */
.es-pop .es-pop-kicker { margin: 0; padding-right: 48px; color: #bdbdbd; font-size: 11px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }
.es-pop .es-pop-title { margin: 0; padding-right: 32px; color: #fff; font-family: var(--cs-font-primary-family, inherit), sans-serif; font-size: 18px; font-weight: 700; line-height: 1.3; }
.es-pop .es-pop-text { margin: 0; color: #c8c8c8; font-size: 13px; line-height: 1.6; }
.es-pop .es-pop-label { margin: 4px 0 0; color: #888; font-size: 11px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }
.es-pop .es-pop-sections { margin: 0; padding: 0; list-style: none; border-top: 1px solid #2a2a2e; font-size: 13px; line-height: 1.4; }
.es-pop .es-pop-sections li { margin: 0; border-bottom: 1px solid #2a2a2e; }
.es-pop .es-pop-sections a { display: flex; gap: 10px; padding: 10px 0; color: #ddd; text-decoration: none; }
.es-pop .es-pop-sections a:hover, .es-pop .es-pop-sections a:focus-visible { color: #fff; text-decoration: underline; }
.es-pop .es-pop-sections span { width: 28px; flex: none; color: #888; font-variant-numeric: tabular-nums; }
.es-pop .es-pop-read { display: block; width: 100%; box-sizing: border-box; text-align: center; text-decoration: none; margin-top: auto; align-self: stretch; border: 0; border-radius: 999px; padding: 16px 24px; background: #fff; color: #111;
  font-size: 15px; font-weight: 700; line-height: 1; letter-spacing: normal; text-transform: none; cursor: pointer; }
.es-pop .es-pop-read:hover, .es-pop .es-pop-read:focus-visible { background: #e6e6e6; color: #111; }
@keyframes es-fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes es-pop { from { opacity: 0; transform: scale(.96); } to { opacity: 1; transform: none; } }
@media (max-width: 900px) {
  .es-pop { padding: 12px; }
  .es-pop-box { grid-template-columns: 1fr; overflow: auto; max-height: calc(100vh - 24px); padding-top: 52px; }
  .es-pop-side { position: static; overflow: visible; max-height: none; padding: 18px; }
  .es-pop .es-pop-x { top: 6px; right: 6px; }  /* in a bar above the video, clear of YouTube's own buttons */
}

@media (prefers-reduced-motion: reduce) {
  .es-pop-scrim, .es-pop-box { animation: none; }
}

/* The round badge on video cards leads to the article, so it shows a "read" icon (an open book)
   instead of the theme's play triangle; ▶ in the card's video controls is what plays the video. */
.cs-entry-format > i.cs-format-video::after {
  content: ""; width: 16px; height: 16px; background-color: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M2 4h6a4 4 0 0 1 4 4v13a3 3 0 0 0-3-3H2z'/%3E%3Cpath d='M22 4h-6a4 4 0 0 0-4 4v13a3 3 0 0 1 3-3h7z'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M2 4h6a4 4 0 0 1 4 4v13a3 3 0 0 0-3-3H2z'/%3E%3Cpath d='M22 4h-6a4 4 0 0 0-4 4v13a3 3 0 0 1 3-3h7z'/%3E%3C/svg%3E") center / contain no-repeat;
}
.cs-posts-area__full .cs-entry-format > i.cs-format-video::after { width: 20px; height: 20px; }
