/* ============================================================
   SINGLE BLOG POST STANDARD LAYOUT
   Matches blog archive / sitewide white card standard
============================================================ */

body.single-post,
body.single-post .site,
body.single-post #page,
body.single-post .blog-main,
body.single-post .wx-single-post-main{
  background:#ffffff !important;
  font-family:Roboto, sans-serif;
  color:#0f172a !important;
}

body.single-post .blog-hero.wx-single-post-hero{
  padding:28px 20px !important;
  text-align:center !important;
  background:#ffffff !important;
  border-bottom:1px solid #e5e7eb !important;
  min-height:auto !important;
  display:block !important;
  color:#0f172a !important;
  overflow:visible !important;
}

body.single-post .blog-hero-inner{
  width:100%;
  max-width:980px;
  margin:0 auto;
}

body.single-post .wx-eyebrow{
  display:inline-flex;
  align-items:center;
  width:max-content;
  padding:5px 11px;
  border-radius:999px;
  background:#ede9fe;
  color:#5b21b6 !important;
  font-size:11px;
  font-weight:800;
  text-transform:uppercase;
  letter-spacing:.08em;
  margin-bottom:10px;
}

body.single-post .blog-title,
body.single-post .blog-hero h1{
  margin:0 !important;
  font-size:clamp(26px,3vw,38px) !important;
  line-height:1.15 !important;
  font-weight:900 !important;
  letter-spacing:-.03em;
  color:#1A3552 !important;
}

body.single-post .blog-sub{
  margin:8px auto 0 !important;
  color:#64748b !important;
  font-size:13px !important;
  font-weight:600 !important;
}

body.single-post .wx-single-post-grid{
  width:100%;
  max-width:1280px;
  margin:0 auto;
  padding:24px 18px 70px;
  display:grid;
  grid-template-columns:minmax(0,1fr) 320px;
  gap:22px;
  align-items:start;
}

body.single-post .wx-single-post-content{
  min-width:0;
  background:#ffffff;
  border:1px solid #e5e7eb;
  border-radius:16px;
  box-shadow:0 10px 28px rgba(2,6,23,.08);
  padding:22px;
}

body.single-post .wx-single-featured-image{
  margin:0 0 22px;
  border-radius:14px;
  overflow:hidden;
  border:1px solid #e5e7eb;
  background:#f8fafc;
}

body.single-post .wx-single-featured-image img{
  display:block;
  width:100%;
  height:auto;
  max-height:480px;
  object-fit:cover;
}

body.single-post .wx-single-entry-content{
  font-size:15px;
  line-height:1.78;
  color:#334155;
}

body.single-post .wx-single-entry-content p{
  margin:0 0 18px !important;
  font-size:15px !important;
  line-height:1.78 !important;
  color:#334155 !important;
}

body.single-post .wx-single-entry-content h2,
body.single-post .wx-single-entry-content h3,
body.single-post .wx-single-entry-content h4{
  color:#1A3552 !important;
  font-weight:900 !important;
  letter-spacing:-.02em;
  line-height:1.22;
}

body.single-post .wx-single-entry-content h2{
  font-size:24px !important;
  margin:34px 0 14px !important;
}

body.single-post .wx-single-entry-content h3{
  font-size:20px !important;
  margin:28px 0 12px !important;
}

body.single-post .wx-single-entry-content h4{
  font-size:17px !important;
  margin:22px 0 10px !important;
}

body.single-post .wx-single-entry-content ul,
body.single-post .wx-single-entry-content ol{
  margin:0 0 20px 22px !important;
  padding:0 !important;
}

body.single-post .wx-single-entry-content li{
  margin:0 0 8px !important;
  color:#334155 !important;
}

body.single-post .wx-single-entry-content a{
  color:#6d28d9 !important;
  font-weight:700;
  text-decoration:none;
}

body.single-post .wx-single-entry-content a:hover{
  text-decoration:underline;
}

body.single-post .wx-single-entry-content img{
  max-width:100%;
  height:auto;
  border-radius:12px;
}

body.single-post .wx-single-entry-content blockquote{
  margin:24px 0;
  padding:16px 18px;
  border-left:4px solid #6d28d9;
  background:#f8fafc;
  border-radius:0 12px 12px 0;
  color:#334155;
}

body.single-post .wx-single-post-nav{
  display:flex;
  justify-content:space-between;
  gap:12px;
  margin-top:34px;
  padding-top:22px;
  border-top:1px solid #e5e7eb;
}

body.single-post .wx-single-post-nav > div{
  flex:1;
}

body.single-post .wx-single-post-nav a{
  display:flex;
  align-items:center;
  justify-content:center;
  min-height:42px;
  padding:10px 14px;
  border:1px solid #e5e7eb;
  border-radius:12px;
  background:#ffffff;
  color:#1A3552 !important;
  font-size:13px;
  font-weight:800;
  text-decoration:none;
  box-shadow:0 6px 16px rgba(2,6,23,.05);
  transition:.2s ease;
}

body.single-post .wx-single-post-nav a:hover{
  background:#f8fafc;
  transform:translateY(-2px);
}

body.single-post .wx-single-post-sidebar{
  position:sticky;
  top:90px;
  align-self:start;
}

body.single-post .wx-comments-wrap{
  margin-top:28px;
  padding-top:22px;
  border-top:1px solid #e5e7eb;
}

@media(max-width:1100px){
  body.single-post .wx-single-post-grid{
    grid-template-columns:1fr;
    max-width:900px;
  }

  body.single-post .wx-single-post-sidebar{
    position:relative;
    top:auto;
  }
}

@media(max-width:640px){
  body.single-post .blog-hero.wx-single-post-hero{
    padding:22px 14px !important;
  }

  body.single-post .wx-single-post-grid{
    padding:16px 12px 50px;
    gap:16px;
  }

  body.single-post .wx-single-post-content{
    padding:16px;
    border-radius:14px;
  }

  body.single-post .wx-single-post-nav{
    flex-direction:column;
  }
}

/* ============================================================
   EDGE TO EDGE SINGLE BLOG WIDTH PATCH
   Only adjusts the single blog wrapper width to match home/blog pages.
============================================================ */
body.single-post .blog-main.wx-single-post-main,
body.single-post .wx-single-post-main{
  width:100% !important;
  max-width:100% !important;
  margin:0 !important;
  padding-left:0 !important;
  padding-right:0 !important;
}

body.single-post .blog-hero.wx-single-post-hero{
  width:100% !important;
  max-width:100% !important;
  margin-left:0 !important;
  margin-right:0 !important;
}

body.single-post .blog-hero-inner{
  width:100% !important;
  max-width:100% !important;
}

body.single-post .wx-single-post-grid{
  width:100% !important;
  max-width:100% !important;
  margin-left:0 !important;
  margin-right:0 !important;
  padding-left:14px !important;
  padding-right:14px !important;
  box-sizing:border-box !important;
}

@media(max-width:1100px){
  body.single-post .wx-single-post-grid{
    max-width:100% !important;
  }
}
