/* MyIPScan article layout.
   Union of every inline <style> variant that shipped inside post_content, so no
   post loses a rule. Family A: mips-sitewide-article-layout-v3. Family B:
   myipscan-wp-phase6-content-layout-style. Every selector is scoped to
   body.single-post.mips-blog or .single-post .entry-content. */

body.single-post.mips-blog .mips-wrap-narrow {
  width: min(1320px, calc(100% - clamp(32px, 6vw, 96px))) !important;
  max-width: none !important;
  margin-left: auto !important;
  margin-right: auto !important;
}
body.single-post.mips-blog .mips-article {
  width: 100% !important;
  max-width: none !important;
  padding: clamp(24px, 4vw, 50px) clamp(22px, 4vw, 56px) !important;
}
body.single-post.mips-blog .mips-article-header,
body.single-post.mips-blog .mips-content {
  width: min(100%, 1240px) !important;
  max-width: none !important;
  margin-left: auto !important;
  margin-right: auto !important;
}
body.single-post.mips-blog .mips-article-header h1 {
  max-width: 1180px !important;
}
body.single-post.mips-blog .mips-content p,
body.single-post.mips-blog .mips-content li {
  width: 100% !important;
  max-width: none !important;
}
body.single-post.mips-blog .mips-content h2,
body.single-post.mips-blog .mips-content h3,
body.single-post.mips-blog .mips-content h4 {
  max-width: none !important;
}
body.single-post.mips-blog .mips-article-hero,
body.single-post.mips-blog .mips-content p.mips-article-hero,
body.single-post.mips-blog .mips-premium-toc,
body.single-post.mips-blog .mips-content figure,
body.single-post.mips-blog .mips-content table,
body.single-post.mips-blog .mips-content .mips-table-wrap,
body.single-post.mips-blog .mips-content .mips-premium-note,
body.single-post.mips-blog .mips-content .mips-related-card,
body.single-post.mips-blog .mips-content .mips-faq-card,
body.single-post.mips-blog .mips-content .mips-cta-card {
  width: 100% !important;
  max-width: 1240px !important;
  margin-left: auto !important;
  margin-right: auto !important;
}
body.single-post.mips-blog .mips-breadcrumbs {
  display: flex !important;
  flex-wrap: wrap !important;
  align-items: center !important;
  gap: 8px !important;
  max-width: 1240px !important;
  margin: 0 auto 18px !important;
  color: #9fb0ad !important;
  font: 800 12px/1.4 ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace !important;
  letter-spacing: .04em !important;
  text-transform: uppercase !important;
}
body.single-post.mips-blog .mips-breadcrumbs a {
  color: #d6e3ef !important;
  text-decoration: none !important;
}
body.single-post.mips-blog .mips-breadcrumbs a:hover {
  color: #7dd3fc !important;
  text-decoration: underline !important;
  text-underline-offset: 3px !important;
}
body.single-post.mips-blog .mips-breadcrumbs .sep {
  color: #4ade80 !important;
}
body.single-post.mips-blog .mips-content figure.mips-article-hero {
  margin-top: 24px !important;
  margin-bottom: 32px !important;
}
body.single-post.mips-blog .mips-content figure.mips-article-hero figcaption {
  margin-top: 10px !important;
  color: #9fb0ad !important;
  font-size: 14px !important;
  line-height: 1.55 !important;
}
body.single-post.mips-blog .mips-content p.mips-article-hero {
  margin-top: 28px !important;
  margin-bottom: 10px !important;
  padding: 0 !important;
  line-height: 0 !important;
}
body.single-post.mips-blog .mips-content .mips-legacy-hero-caption {
  margin: 0 auto 28px !important;
  max-width: 1240px !important;
  color: #9fb0ad !important;
  font-size: 14px !important;
  line-height: 1.55 !important;
}
body.single-post.mips-blog .mips-content .mips-legacy-hero-img {
  display: block !important;
  width: 100% !important;
  max-width: 1240px !important;
  height: auto !important;
  margin: 0 auto !important;
  border-radius: 10px !important;
  border: 1px solid rgba(125, 211, 252, .24) !important;
  box-shadow: 0 22px 70px rgba(0, 0, 0, .34) !important;
}
body.single-post.mips-blog .mips-content .tool-cta-block,
body.single-post.mips-blog .mips-content .mips-cta,
body.single-post.mips-blog .mips-content [style*="background:#f0f7ff"],
body.single-post.mips-blog .mips-content [style*="background: #f0f7ff"],
body.single-post.mips-blog .mips-content [style*="background-color:#f0f7ff"],
body.single-post.mips-blog .mips-content [style*="background-color: #f0f7ff"] {
  width: 100% !important;
  max-width: 1240px !important;
  margin: 26px auto !important;
  padding: clamp(18px, 2.6vw, 26px) !important;
  color: #d6e3ef !important;
  background: linear-gradient(180deg, rgba(22, 34, 50, 0.96), rgba(12, 24, 38, 0.96)) !important;
  border: 1px solid rgba(125, 211, 252, 0.24) !important;
  border-radius: 10px !important;
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.24) !important;
}
body.single-post.mips-blog .mips-content .tool-cta-block p,
body.single-post.mips-blog .mips-content .tool-cta-block li,
body.single-post.mips-blog .mips-content .mips-cta p,
body.single-post.mips-blog .mips-content .mips-cta li {
  color: #d6e3ef !important;
}
body.single-post.mips-blog .mips-content .tool-cta-block strong,
body.single-post.mips-blog .mips-content .mips-cta strong {
  color: #f5f8fc !important;
}
body.single-post.mips-blog .mips-content .tool-cta-block a,
body.single-post.mips-blog .mips-content .mips-cta a {
  color: #7dd3fc !important;
  font-weight: 750 !important;
}
body.single-post.mips-blog .mips-content img,
body.single-post.mips-blog .mips-content video,
body.single-post.mips-blog .mips-content iframe {
  max-width: 100% !important;
  height: auto;
}
body.single-post.mips-blog .mips-author-line {
  display: flex !important;
  flex-wrap: wrap !important;
  align-items: center !important;
  gap: 8px 12px !important;
  margin: 0 0 18px !important;
  color: #9fb0ad !important;
  font: 800 12px/1.4 ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace !important;
  letter-spacing: .04em !important;
  text-transform: uppercase !important;
}
body.single-post.mips-blog .mips-author-line span {
  display: inline-flex !important;
  align-items: center !important;
}
body.single-post.mips-blog .mips-author-line span + span::before {
  content: "" !important;
  display: inline-block !important;
  width: 4px !important;
  height: 4px !important;
  margin: 0 12px 1px 0 !important;
  border-radius: 999px !important;
  background: #4ade80 !important;
  box-shadow: 0 0 12px rgba(74, 222, 128, .45) !important;
}
body.single-post.mips-blog .mips-author-line a {
  color: inherit !important;
  text-decoration: none !important;
}
body.single-post.mips-blog .mips-author-line a:hover {
  color: #ffffff !important;
  text-decoration: underline !important;
  text-underline-offset: 3px;
}
body.single-post.mips-blog #ez-toc-container {
  width: min(100%, 520px) !important;
  max-width: 100% !important;
  margin: 28px 0 36px !important;
  padding: 20px 22px !important;
  color: #eef6ff !important;
  background: linear-gradient(180deg, rgba(12, 18, 27, .98), rgba(8, 13, 20, .98)) !important;
  border: 1px solid rgba(74, 222, 128, .55) !important;
  border-radius: 10px !important;
  box-shadow: 0 18px 44px rgba(0, 0, 0, .24) !important;
}
body.single-post.mips-blog #ez-toc-container .ez-toc-box-title {
  position: static !important;
  display: inline-flex !important;
  margin: 0 0 10px !important;
  padding: 0 !important;
  color: #9fb0ad !important;
  background: transparent !important;
  font: 800 12px/1.3 ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace !important;
  letter-spacing: .08em !important;
  text-transform: uppercase !important;
}
body.single-post.mips-blog #ez-toc-container .ez-toc-title-container {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 16px !important;
  margin: 0 0 10px !important;
}
body.single-post.mips-blog #ez-toc-container .ez-toc-title {
  margin: 0 !important;
  color: #f5f8fc !important;
  font-weight: 850 !important;
}
body.single-post.mips-blog #ez-toc-container a {
  color: #eef6ff !important;
  text-decoration: none !important;
}
body.single-post.mips-blog #ez-toc-container a:hover {
  color: #7dd3fc !important;
}
body.single-post.mips-blog .mips-content table {
  border-collapse: separate !important;
  border-spacing: 0 !important;
  overflow: hidden !important;
  color: #d6e3ef !important;
  background: rgba(8, 13, 20, .78) !important;
  border: 1px solid rgba(125, 211, 252, .24) !important;
  border-radius: 10px !important;
}
body.single-post.mips-blog .mips-content table.mips-legacy-data-table {
  margin-top: 26px !important;
  margin-bottom: 34px !important;
}
body.single-post.mips-blog .mips-content th,
body.single-post.mips-blog .mips-content td {
  padding: 14px 16px !important;
  border-bottom: 1px solid rgba(125, 211, 252, .18) !important;
  vertical-align: top !important;
}
body.single-post.mips-blog .mips-content th {
  color: #f5f8fc !important;
  background: rgba(34, 197, 94, .12) !important;
  font-weight: 850 !important;
}
body.single-post.mips-blog .mips-content tr:last-child td {
  border-bottom: 0 !important;
}
@media (min-width: 1500px) {
  body.single-post.mips-blog .mips-wrap-narrow {
    width: min(1460px, calc(100% - 128px)) !important;
  }
  body.single-post.mips-blog .mips-article-header,
  body.single-post.mips-blog .mips-content {
    width: min(100%, 1320px) !important;
  }
}
@media (max-width: 980px) {
  body.single-post.mips-blog .mips-wrap-narrow {
    width: min(100% - 36px, 1200px) !important;
  }
  body.single-post.mips-blog .mips-article {
    padding: 28px !important;
  }
  body.single-post.mips-blog .mips-article-header,
  body.single-post.mips-blog .mips-content,
  body.single-post.mips-blog .mips-content p,
  body.single-post.mips-blog .mips-content li {
    max-width: 100% !important;
  }
}
@media (max-width: 640px) {
  body.single-post.mips-blog .mips-wrap-narrow {
    width: calc(100% - 12px) !important;
  }
  body.single-post.mips-blog .mips-article {
    padding: 14px !important;
  }
  body.single-post.mips-blog .mips-article-header,
  body.single-post.mips-blog .mips-content,
  body.single-post.mips-blog .mips-content p,
  body.single-post.mips-blog .mips-content li,
  body.single-post.mips-blog .mips-content h2,
  body.single-post.mips-blog .mips-content h3 {
    width: 100% !important;
    max-width: 100% !important;
  }
  body.single-post.mips-blog .mips-author-line {
    gap: 6px !important;
    font-size: 11px !important;
  }
  body.single-post.mips-blog .mips-author-line span + span::before {
    display: none !important;
  }
}

/* --- phase 6 content layout --- */
.single-post .entry-content .myipscan-phase6-content-layout{box-sizing: border-box;
  margin: 1.2rem 0 2rem;
  max-width: 860px;
  color: #d7e2ee;}
.single-post .entry-content .myipscan-phase6-content-layout *{box-sizing: border-box;}
.single-post .entry-content .mips-phase6-quick-answer,
.single-post .entry-content .mips-phase6-flow,
.single-post .entry-content .mips-phase6-faq,
.single-post .entry-content .mips-phase6-related{border: 1px solid rgba(148, 163, 184, 0.24);
  border-radius: 8px;
  background: #0d1828;
  box-shadow: 0 14px 38px rgba(0, 0, 0, 0.22);}
.single-post .entry-content .mips-phase6-quick-answer{display: grid;
  gap: 14px;
  padding: 18px;}
.single-post .entry-content .mips-phase6-eyebrow{margin: 0 0 6px;
  color: #7dd3fc;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;}
.single-post .entry-content .mips-phase6-quick-answer p,
.single-post .entry-content .mips-phase6-flow p,
.single-post .entry-content .mips-phase6-faq p,
.single-post .entry-content .mips-phase6-related p{color: #d7e2ee;
  font-size: 1rem;
  line-height: 1.62;
  margin: 0;}
.single-post .entry-content .mips-phase6-visual-lead{margin: 18px 0 0;
  overflow: hidden;
  border: 1px solid rgba(125, 211, 252, 0.22);
  border-radius: 8px;
  background: #08111f;}
.single-post .entry-content .mips-phase6-visual-lead img{display: block;
  width: 100%;
  max-height: 260px;
  object-fit: cover;
  border-radius: 0;}
.single-post .entry-content .mips-phase6-visual-lead figcaption{color: #9fb1c6;
  font-size: 0.9rem;
  line-height: 1.45;
  padding: 12px 14px;}
.single-post .entry-content .mips-phase6-flow{margin-top: 18px;
  padding: 18px;}
.single-post .entry-content .mips-phase6-flow-grid,
.single-post .entry-content .mips-phase6-related-grid{display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin-top: 14px;}
.single-post .entry-content .mips-phase6-flow-grid > div,
.single-post .entry-content .mips-phase6-related-grid a{min-width: 0;
  padding: 12px;
  border: 1px solid rgba(148, 163, 184, 0.18);
  border-radius: 8px;
  background: rgba(15, 23, 42, 0.54);}
.single-post .entry-content .mips-phase6-flow-grid strong,
.single-post .entry-content .mips-phase6-related-grid strong{display: block;
  margin-bottom: 4px;
  color: #f8fafc;
  font-size: 0.92rem;
  line-height: 1.25;}
.single-post .entry-content .mips-phase6-flow-grid span,
.single-post .entry-content .mips-phase6-related-grid span{display: block;
  color: #a9bacd;
  font-size: 0.88rem;
  line-height: 1.38;}
.single-post .entry-content .mips-phase6-actions{display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 16px;}
.single-post .entry-content .mips-phase6-btn{display: inline-flex;
  min-height: 42px;
  align-items: center;
  justify-content: center;
  padding: 10px 14px;
  border: 1px solid rgba(125, 211, 252, 0.28);
  border-radius: 8px;
  background: #0ea5e9;
  color: #05121f !important;
  font-weight: 800;
  line-height: 1.2;
  text-decoration: none;}
.single-post .entry-content .mips-phase6-btn.secondary{background: transparent;
  color: #d7e2ee !important;}
.single-post .entry-content .mips-phase6-note{margin-top: 12px !important;
  color: #9fb1c6 !important;
  font-size: 0.92rem !important;}
.single-post .entry-content .mips-phase6-faq,
.single-post .entry-content .mips-phase6-related{margin-top: 18px;
  padding: 18px;}
.single-post .entry-content .mips-phase6-faq details{margin: 10px 0 0;
  padding: 12px 0 0;
  border-top: 1px solid rgba(148, 163, 184, 0.16);}
.single-post .entry-content .mips-phase6-faq summary{cursor: pointer;
  color: #f8fafc;
  font-weight: 800;}
.single-post .entry-content .mips-phase6-related-grid{grid-template-columns: repeat(3, minmax(0, 1fr));}
.single-post .entry-content .mips-phase6-related-grid a{color: #d7e2ee;
  text-decoration: none;}
.single-post .entry-content .mips-phase6-flow-grid,
  .single-post .entry-content .mips-phase6-related-grid{grid-template-columns: minmax(0, 1fr);}
.single-post .entry-content .mips-phase6-actions{display: grid;
    grid-template-columns: minmax(0, 1fr);}
.single-post .entry-content .mips-phase6-quick-answer,
  .single-post .entry-content .mips-phase6-flow,
  .single-post .entry-content .mips-phase6-faq,
  .single-post .entry-content .mips-phase6-related{padding: 14px;}
