/* Styles apply only to the custom PHOX single-post template. */
.blog-content.wgm-insights-single > .container {
  width: calc(100% - 48px) !important;
  max-width: 1260px !important;
  margin-inline: auto !important;
}
.wgm-insights-single .wgm-insights-content-grid {
  display: grid !important;
  grid-template-columns: minmax(0, 1.85fr) minmax(280px, 1fr);
  gap: clamp(32px, 4vw, 60px);
  align-items: start;
}
.wgm-insights-single .wgm-insights-article,
.wgm-insights-single .wgm-insights-sidebar { min-width: 0; }
.wgm-insights-single .wgm-insights-article .body-article { font-size: 18px !important; line-height: 1.75 !important; }
.wgm-insights-single .wgm-insights-article .body-article p,
.wgm-insights-single .wgm-insights-article .body-article li {
  font-size: 18px !important;
  line-height: 1.75 !important;
  overflow-wrap: break-word;
}
.wgm-insights-single .wgm-insights-article .body-article h2,
.wgm-insights-single .wgm-insights-article .body-article h3 { line-height: 1.25; margin-block: 1.2em .5em; }
.wgm-insights-single .wgm-insights-article .body-article img,
.wgm-insights-single .wgm-insights-article .body-article video,
.wgm-insights-single .wgm-insights-article .body-article iframe { max-width: 100%; height: auto; }
.wgm-insights-single .wgm-featured { margin: 0 0 24px; }
.wgm-insights-single .wgm-featured-link { display: block; border-radius: 8px; overflow: hidden; border: 1px solid #e5ecf0; box-shadow: 0 8px 22px rgba(20,40,54,.08); cursor: zoom-in; }
.wgm-insights-single .wgm-featured-image { display: block; width: 100%; height: auto; }
.wgm-insights-single .wgm-featured-link:focus-visible { outline: 3px solid #228bd7; outline-offset: 4px; }
.wgm-insights-single .wgm-featured-caption { color: #5c707d; text-align: center; margin: 8px 0 0; font-size: 13px; }
.wgm-insights-single .wgm-side-card { padding: 20px 22px; margin: 0 0 18px; border-radius: 7px; background: #fff; border: 1px solid #e4ebef; }
.wgm-insights-single .wgm-side-card h2 { color: #122f42; font-size: 17px !important; line-height: 1.3; font-weight: 700; margin: 0 0 13px; }
.wgm-insights-single .wgm-side-card ul { margin: 0; padding: 0 0 0 18px; list-style: disc; }
.wgm-insights-single .wgm-side-card li { margin-bottom: 9px; line-height: 1.55; font-size: 14px; }
.wgm-insights-single .wgm-side-card li:last-child { margin-bottom: 0; }
.wgm-insights-single .wgm-side-card p { font-size: 14px; color: #617584; margin: 0; }
.wgm-insights-single .wgm-side-card a { overflow-wrap: break-word; }
.wgm-insights-single .wgm-side-search form { display: flex; gap: 6px; align-items: stretch; }
.wgm-insights-single .wgm-side-search input[type="search"] { flex: 1; min-width: 0; max-width: 100%; height: 40px; margin: 0; padding: 8px 10px; border: 1px solid #ccdbe3; border-radius: 5px; background: white; color: #172f3b; font-size: 14px; }
.wgm-insights-single .wgm-side-search button { flex: 0 0 auto; border: none; border-radius: 5px; background: #227fe5; color: white; font-size: 13px; padding: 0 13px; cursor: pointer; }
.wgm-insights-single .wgm-side-search button:hover { background: #165db2; }
.wgm-image-dialog { position: fixed; max-width: min(94vw, 1200px); width: auto; max-height: 94vh; border: 0; padding: 42px 16px 16px; border-radius: 8px; background: #15212b; color: white; box-shadow: 0 20px 70px rgba(0,0,0,.5); }
.wgm-image-dialog::backdrop { background: rgba(5,10,17,.88); }
.wgm-image-dialog img { display: block; object-fit: contain; width: auto; height: auto; max-width: calc(94vw - 32px); max-height: calc(94vh - 62px); }
.wgm-image-dialog .wgm-dialog-close { position: absolute; top: 7px; right: 8px; color: white; background: rgba(255,255,255,.13); border: 1px solid rgba(255,255,255,.5); border-radius: 5px; padding: 3px 11px; font-size: 24px; cursor: pointer; }
@media (max-width: 900px) { .wgm-insights-single .wgm-insights-content-grid { grid-template-columns: minmax(0,1fr); gap: 30px; } }
@media (max-width: 600px) {
  .blog-content.wgm-insights-single > .container { width: calc(100% - 32px) !important; }
  .wgm-insights-single .wgm-insights-article .body-article p,
  .wgm-insights-single .wgm-insights-article .body-article li { font-size: 16px !important; line-height: 1.7 !important; }
  .wgm-insights-single .wgm-side-card { padding: 16px; }
}

/* v1.2: Keep the PHOX author logo fully visible now that the featured image
   has been relocated out of the article column. All byline items flow inline. */
.wgm-insights-single .wgm-post-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  column-gap: 14px;
  row-gap: 8px;
  margin: 0 0 28px;
  min-height: 48px;
  padding: 4px 0;
  position: relative;
  overflow: visible;
  font-size: 13px;
  line-height: 1.4;
  color: #627b91;
}
.wgm-insights-single .wgm-post-meta-author {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  white-space: nowrap;
  text-decoration: none;
  color: #547397;
}
.wgm-insights-single .wgm-post-meta-author img.wgm-post-author-avatar {
  display: block;
  position: static !important;
  float: none !important;
  transform: none !important;
  margin: 0 !important;
  padding: 0 !important;
  width: 42px !important;
  height: 42px !important;
  max-width: none !important;
  border-radius: 50%;
  object-fit: contain;
  background: white;
  flex-shrink: 0;
}
.wgm-insights-single .wgm-post-meta-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
  color: #627b91;
  text-decoration: none;
}
.wgm-insights-single .wgm-post-meta .wgm-meta-separator {
  color: #a0b1bf;
  font-weight: 600;
}
.wgm-insights-single .wgm-post-meta a:hover { color: #1675b7; }
@media (max-width: 600px) {
  .wgm-insights-single .wgm-post-meta { column-gap: 10px; row-gap: 7px; font-size: 12px; }
  .wgm-insights-single .wgm-post-meta-author img.wgm-post-author-avatar {
    width: 36px !important;
    height: 36px !important;
  }
}
