/* A2TEC V109 — native HTML5 playback for A2TEC LinkedIn videos */
.linkedin-post-card.linkedin-video-card .linkedin-post-media{
  position:relative;
  overflow:hidden;
  cursor:pointer;
}
.linkedin-post-card.linkedin-video-card .linkedin-post-media::after{
  content:"";
  position:absolute;
  inset:0;
  background:linear-gradient(180deg,rgba(5,18,31,.04),rgba(5,18,31,.42));
  pointer-events:none;
  transition:background .25s ease;
}
.linkedin-post-card.linkedin-video-card .linkedin-post-media:hover::after{
  background:linear-gradient(180deg,rgba(5,18,31,.02),rgba(5,18,31,.55));
}
.linkedin-video-play{
  position:absolute;
  left:50%;
  top:50%;
  transform:translate(-50%,-50%);
  z-index:3;
  display:flex;
  align-items:center;
  gap:.62rem;
  padding:.68rem .92rem .68rem .72rem;
  border:1px solid rgba(255,255,255,.7);
  border-radius:999px;
  background:rgba(5,22,38,.82);
  color:#fff;
  font-size:.78rem;
  font-weight:800;
  letter-spacing:.02em;
  box-shadow:0 10px 30px rgba(0,0,0,.28);
  backdrop-filter:blur(12px);
  -webkit-backdrop-filter:blur(12px);
  transition:transform .22s ease,background .22s ease,box-shadow .22s ease;
  pointer-events:none;
  white-space:nowrap;
}
.linkedin-video-play-icon{
  width:2.15rem;
  height:2.15rem;
  border-radius:50%;
  display:grid;
  place-items:center;
  flex:none;
  background:#0a66c2;
  box-shadow:0 0 0 5px rgba(10,102,194,.16);
}
.linkedin-video-play-icon svg{width:.9rem;height:.9rem;margin-left:.13rem;fill:#fff}
.linkedin-post-card.linkedin-video-card .linkedin-post-media:hover .linkedin-video-play{
  transform:translate(-50%,-50%) scale(1.045);
  background:rgba(5,22,38,.94);
  box-shadow:0 14px 36px rgba(0,0,0,.36);
}
.linkedin-video-badge{
  display:inline-flex;
  align-items:center;
  gap:.38rem;
  margin-top:.72rem;
  padding:.42rem .68rem;
  border-radius:999px;
  border:1px solid rgba(10,102,194,.22);
  background:rgba(10,102,194,.07);
  color:#0a66c2;
  font-size:.72rem;
  font-weight:800;
  letter-spacing:.02em;
}
.linkedin-video-badge::before{content:"▶";font-size:.65rem}

.linkedin-video-dialog{
  width:min(900px,calc(100vw - 32px));
  max-width:900px;
  max-height:92vh;
  padding:0;
  border:0;
  border-radius:22px;
  overflow:hidden;
  background:#071522;
  color:#fff;
  box-shadow:0 28px 90px rgba(0,0,0,.55);
}
.linkedin-video-dialog::backdrop{
  background:rgba(2,10,18,.76);
  backdrop-filter:blur(5px);
  -webkit-backdrop-filter:blur(5px);
}
.linkedin-video-dialog-shell{display:flex;flex-direction:column;max-height:92vh}
.linkedin-video-dialog-head{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:1rem;
  padding:18px 20px 15px;
  border-bottom:1px solid rgba(255,255,255,.1);
}
.linkedin-video-dialog-kicker{
  margin:0 0 5px;
  color:#6eb6ff;
  font-size:.7rem;
  font-weight:800;
  letter-spacing:.12em;
  text-transform:uppercase;
}
.linkedin-video-dialog-title{margin:0;font-size:clamp(1rem,2vw,1.28rem);line-height:1.3;color:#fff}
.linkedin-video-dialog-close{
  width:40px;
  height:40px;
  flex:none;
  border:1px solid rgba(255,255,255,.18);
  border-radius:50%;
  background:rgba(255,255,255,.07);
  color:#fff;
  font-size:1.35rem;
  line-height:1;
  cursor:pointer;
}
.linkedin-video-dialog-close:hover{background:rgba(255,255,255,.14)}
.linkedin-video-frame-wrap{
  min-height:420px;
  background:#000;
  display:grid;
  place-items:center;
  overflow:auto;
}
.linkedin-video-frame-wrap video{
  display:block;
  width:100%;
  max-width:100%;
  max-height:72vh;
  background:#000;
  object-fit:contain;
}
.linkedin-video-error{
  min-height:420px;
  width:100%;
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  text-align:center;
  gap:.75rem;
  padding:2rem;
  color:#fff;
  background:radial-gradient(circle at 50% 35%,#12314b 0,#071522 62%);
}
.linkedin-video-error-icon{
  width:58px;height:58px;border-radius:50%;display:grid;place-items:center;
  background:#0a66c2;color:#fff;font-size:1.2rem;padding-left:3px;
}
.linkedin-video-error strong{font-size:1rem}
.linkedin-video-error p{margin:0;color:#9eb1c1;font-size:.82rem}
.linkedin-video-error a{color:#8cc7ff;font-weight:800;text-decoration:none}
.linkedin-video-dialog-foot{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:1rem;
  padding:13px 20px 16px;
  background:#071522;
}
.linkedin-video-dialog-note{margin:0;color:#9eb1c1;font-size:.76rem;line-height:1.45}
.linkedin-video-external{
  display:inline-flex;
  align-items:center;
  gap:.38rem;
  padding:.66rem .85rem;
  border-radius:999px;
  background:#0a66c2;
  color:#fff!important;
  text-decoration:none!important;
  font-size:.76rem;
  font-weight:800;
  white-space:nowrap;
}
.linkedin-video-external:hover{background:#0958a8}
body.linkedin-video-modal-open{overflow:hidden}

@media (max-width:700px){
  .linkedin-video-play{padding:.56rem .76rem .56rem .6rem;font-size:.7rem}
  .linkedin-video-play-icon{width:1.9rem;height:1.9rem}
  .linkedin-video-dialog{width:calc(100vw - 18px);border-radius:16px;max-height:94vh}
  .linkedin-video-dialog-shell{max-height:94vh}
  .linkedin-video-dialog-head{padding:14px 14px 12px}
  .linkedin-video-frame-wrap{min-height:360px}
  .linkedin-video-frame-wrap video{max-height:68vh}
  .linkedin-video-dialog-foot{padding:12px 14px 14px;align-items:flex-start;flex-direction:column}
}

@media (prefers-reduced-motion:reduce){
  .linkedin-video-play,.linkedin-post-card.linkedin-video-card .linkedin-post-media::after{transition:none}
}

/* V108 — safe document preview for LinkedIn posts that are not embeddable */
.linkedin-document-link{
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  gap:.8rem;
  text-decoration:none!important;
  background:linear-gradient(135deg,#eef6fb 0%,#dcecf7 100%);
  color:#0b3857!important;
}
.linkedin-document-icon{
  width:3.5rem;
  height:3.5rem;
  border-radius:18px;
  display:grid;
  place-items:center;
  background:#fff;
  box-shadow:0 12px 28px rgba(12,70,107,.12);
}
.linkedin-document-icon svg{width:1.8rem;height:1.8rem;fill:#0a66c2}
.linkedin-document-label{font-size:.78rem;font-weight:850;letter-spacing:.01em;text-align:center;padding:0 1rem}
.linkedin-document-link:hover .linkedin-document-icon{transform:translateY(-2px)}
