:root{
  --wo-blog-navy:#101a39;
  --wo-blog-blue:#1677c8;
  --wo-blog-cyan:#22bfc4;
  --wo-blog-ink:#172033;
  --wo-blog-muted:#657087;
  --wo-blog-soft:#f4f8fb;
  --wo-blog-line:#e3eaf0;
  --wo-blog-white:#fff;
  --wo-blog-radius:24px;
  --wo-blog-shadow:0 18px 50px rgba(16,26,57,.10);
}

/* Prevent common theme title/featured-image duplicates on single posts. */
.single-post .entry-header,
.single-post .post-header,
.single-post .page-header,
.single-post .entry-title,
.single-post .post-title,
.single-post .featured-image:not(.wo-blog-hero-image),
.single-post .post-thumbnail:not(.wo-blog-card-image){display:none!important;}

.single-post .entry-content,
.single-post .post-content,
.single-post main article,
.single-post .site-main article{max-width:none!important;width:100%!important;margin:0!important;padding:0!important;}

.wo-blog-page,
.wo-blog-archive{color:var(--wo-blog-ink);font-family:inherit;}

.wo-blog-hero{padding:72px 24px 42px;background:linear-gradient(145deg,var(--wo-blog-navy),#162b57);overflow:hidden;}
.wo-blog-hero-inner{max-width:980px;margin:0 auto;text-align:center;}
.wo-blog-category,
.wo-blog-eyebrow{display:inline-block;font-size:12px;line-height:1.2;font-weight:800;letter-spacing:.13em;text-transform:uppercase;color:var(--wo-blog-blue);}
.wo-blog-hero .wo-blog-category{color:#7fe3e4;margin-bottom:18px;}
.wo-blog-hero h1{max-width:900px;margin:0 auto;color:#fff;font-size:clamp(38px,5vw,68px);line-height:1.04;letter-spacing:-.035em;font-weight:800;}
.wo-blog-standfirst{max-width:760px;margin:22px auto 0;color:rgba(255,255,255,.82);font-size:clamp(18px,2vw,22px);line-height:1.65;}
.wo-blog-meta{display:flex;justify-content:center;gap:10px 20px;flex-wrap:wrap;margin-top:26px;color:rgba(255,255,255,.68);font-size:14px;}
.wo-blog-meta span+span:before{content:"•";margin-right:20px;color:#6fd9dc;}
.wo-blog-hero-image{max-width:1160px;margin:42px auto -84px;border-radius:28px;overflow:hidden;box-shadow:0 28px 70px rgba(0,0,0,.25);aspect-ratio:16/7;background:#dfe8ee;}
.wo-blog-hero-image img{width:100%;height:100%;object-fit:cover;display:block;}
.wo-blog-hero:has(.wo-blog-hero-image){margin-bottom:92px;}

.wo-blog-reader{max-width:800px;margin:0 auto;padding:48px 24px 20px;}
.wo-blog-content{font-size:18px;line-height:1.82;color:#273044;}
.wo-blog-content p{margin:0 0 1.45em;}
.wo-blog-content h2{scroll-margin-top:120px;position:relative;margin:64px 0 22px;color:var(--wo-blog-navy);font-size:clamp(29px,3.3vw,40px);line-height:1.14;letter-spacing:-.025em;}
.wo-blog-content h2:before{content:"";display:block;width:48px;height:4px;margin-bottom:16px;border-radius:10px;background:linear-gradient(90deg,var(--wo-blog-blue),var(--wo-blog-cyan));}
.wo-blog-content h3{margin:38px 0 16px;color:var(--wo-blog-navy);font-size:24px;line-height:1.25;}
.wo-blog-content ul,.wo-blog-content ol{margin:0 0 1.55em;padding-left:1.35em;}
.wo-blog-content li{margin:.55em 0;padding-left:.2em;}
.wo-blog-content a{color:var(--wo-blog-blue);text-decoration-thickness:1px;text-underline-offset:3px;}
.wo-blog-content blockquote{margin:38px 0;padding:4px 0 4px 24px;border-left:4px solid var(--wo-blog-cyan);font-size:21px;line-height:1.6;color:var(--wo-blog-navy);}
.wo-blog-content img{max-width:100%;height:auto;border-radius:18px;}

.wo-blog-toc{margin:0 0 46px;background:var(--wo-blog-soft);border:1px solid var(--wo-blog-line);border-radius:20px;padding:0 24px;}
.wo-blog-toc summary{display:flex;align-items:center;justify-content:space-between;gap:20px;cursor:pointer;list-style:none;padding:20px 0;color:var(--wo-blog-navy);font-weight:800;font-size:17px;}
.wo-blog-toc summary::-webkit-details-marker{display:none;}
.wo-blog-toc-toggle{display:grid;place-items:center;width:30px;height:30px;border-radius:50%;background:#fff;border:1px solid var(--wo-blog-line);font-size:20px;transition:transform .2s ease;}
.wo-blog-toc[open] .wo-blog-toc-toggle{transform:rotate(45deg);}
.wo-blog-toc ol{margin:0;padding:0 0 22px;list-style:none;counter-reset:toc;}
.wo-blog-toc li{counter-increment:toc;display:grid;grid-template-columns:34px 1fr;gap:8px;margin:10px 0;}
.wo-blog-toc li:before{content:counter(toc,decimal-leading-zero);color:var(--wo-blog-blue);font-size:12px;font-weight:800;letter-spacing:.04em;padding-top:4px;}
.wo-blog-toc a{color:#39445b;text-decoration:none;line-height:1.45;}
.wo-blog-toc a:hover{color:var(--wo-blog-blue);}

.wo-blog-callout{margin:38px 0;padding:24px 26px;border-radius:18px;border:1px solid var(--wo-blog-line);background:#fff;box-shadow:0 10px 30px rgba(16,26,57,.05);}
.wo-blog-callout-label{margin-bottom:9px;font-size:12px;font-weight:900;letter-spacing:.12em;text-transform:uppercase;}
.wo-blog-callout-copy p:last-child{margin-bottom:0;}
.wo-blog-callout-tip{border-left:5px solid var(--wo-blog-cyan);}
.wo-blog-callout-tip .wo-blog-callout-label{color:#0f8f94;}
.wo-blog-callout-note{border-left:5px solid var(--wo-blog-blue);}
.wo-blog-callout-note .wo-blog-callout-label{color:var(--wo-blog-blue);}
.wo-blog-callout-mistake{border-left:5px solid #dd6b55;}
.wo-blog-callout-mistake .wo-blog-callout-label{color:#b84f3d;}

.wo-blog-inline-cta{margin:54px 0;padding:30px;border-radius:20px;background:linear-gradient(145deg,#f1f8fb,#f7fbfc);border:1px solid #d9eaef;}
.wo-blog-inline-cta h3{margin:8px 0 10px!important;font-size:27px!important;}
.wo-blog-inline-cta p{font-size:16.5px;line-height:1.7;margin-bottom:14px;}
.wo-blog-text-link{display:inline-flex;align-items:center;gap:7px;color:var(--wo-blog-blue)!important;text-decoration:none!important;font-weight:800;}
.wo-blog-text-link span{transition:transform .18s ease;}
.wo-blog-text-link:hover span{transform:translateX(4px);}

.wo-blog-wide{max-width:1160px;margin:40px auto 0;padding:0 24px 80px;}
.wo-blog-bottom-cta{display:grid;grid-template-columns:minmax(0,1.5fr) auto;align-items:center;gap:42px;padding:44px 48px;border-radius:var(--wo-blog-radius);background:linear-gradient(135deg,var(--wo-blog-navy),#183b71);box-shadow:var(--wo-blog-shadow);}
.wo-blog-bottom-cta h2{margin:8px 0 12px;color:#fff;font-size:clamp(30px,3.8vw,46px);line-height:1.08;letter-spacing:-.03em;}
.wo-blog-bottom-cta p{max-width:680px;margin:0;color:rgba(255,255,255,.76);font-size:17px;line-height:1.65;}
.wo-blog-eyebrow-light{color:#7fe3e4;}
.wo-blog-bottom-cta-actions{display:flex;gap:12px;flex-wrap:wrap;justify-content:flex-end;}
.wo-blog-btn{display:inline-flex;align-items:center;justify-content:center;min-height:48px;padding:12px 20px;border-radius:999px;text-decoration:none!important;font-size:14px;font-weight:800;white-space:nowrap;}
.wo-blog-btn-light{background:#fff;color:var(--wo-blog-navy)!important;}
.wo-blog-btn-ghost{border:1px solid rgba(255,255,255,.35);color:#fff!important;background:transparent;}

.wo-blog-related{margin-top:72px;}
.wo-blog-related-heading{text-align:center;margin-bottom:28px;}
.wo-blog-related-heading h2{margin:8px 0 0;color:var(--wo-blog-navy);font-size:36px;letter-spacing:-.025em;}
.wo-blog-related-grid,.wo-blog-archive-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:24px;}
.wo-blog-card{overflow:hidden;border:1px solid var(--wo-blog-line);border-radius:20px;background:#fff;box-shadow:0 10px 34px rgba(16,26,57,.06);transition:transform .2s ease,box-shadow .2s ease;}
.wo-blog-card:hover{transform:translateY(-4px);box-shadow:0 18px 45px rgba(16,26,57,.10);}
.wo-blog-card-image{display:block;aspect-ratio:16/10;overflow:hidden;background:#edf3f6;}
.wo-blog-card-image img{width:100%;height:100%;display:block;object-fit:cover;transition:transform .3s ease;}
.wo-blog-card:hover .wo-blog-card-image img{transform:scale(1.025);}
.wo-blog-card-image-placeholder{display:grid;place-items:center;text-decoration:none;background:linear-gradient(145deg,var(--wo-blog-navy),#214f8d);}
.wo-blog-card-image-placeholder span{color:#fff;font-weight:900;font-size:38px;letter-spacing:-.06em;}
.wo-blog-card-body{padding:22px 22px 24px;}
.wo-blog-card-cat{display:block;margin-bottom:9px;color:var(--wo-blog-blue);font-size:11px;font-weight:900;letter-spacing:.1em;text-transform:uppercase;}
.wo-blog-card h2,.wo-blog-card h3{margin:0 0 10px;color:var(--wo-blog-navy);font-size:21px;line-height:1.25;letter-spacing:-.015em;}
.wo-blog-card h2 a,.wo-blog-card h3 a{color:inherit!important;text-decoration:none!important;}
.wo-blog-card p{margin:0 0 18px;color:var(--wo-blog-muted);font-size:14.5px;line-height:1.65;}
.wo-blog-card-footer{display:flex;align-items:center;justify-content:space-between;gap:12px;color:#8290a4;font-size:12px;}

.wo-blog-archive{max-width:1240px;margin:0 auto;padding:42px 24px 90px;}
.wo-blog-archive-hero{padding:60px 52px;border-radius:28px;background:linear-gradient(135deg,var(--wo-blog-navy),#183b71);text-align:left;}
.wo-blog-archive-hero h1{max-width:850px;margin:10px 0 16px;color:#fff;font-size:clamp(40px,5vw,66px);line-height:1.02;letter-spacing:-.04em;}
.wo-blog-archive-hero p{max-width:720px;margin:0;color:rgba(255,255,255,.78);font-size:19px;line-height:1.65;}
.wo-blog-filters{display:flex;gap:9px;overflow:auto;padding:28px 0 22px;scrollbar-width:none;}
.wo-blog-filters::-webkit-scrollbar{display:none;}
.wo-blog-filters a{flex:0 0 auto;padding:10px 15px;border-radius:999px;border:1px solid var(--wo-blog-line);background:#fff;color:#455068;text-decoration:none;font-size:13px;font-weight:800;}
.wo-blog-filters a.is-active,.wo-blog-filters a:hover{background:var(--wo-blog-navy);border-color:var(--wo-blog-navy);color:#fff;}
.wo-blog-archive-card h2{font-size:23px;}
.wo-blog-pagination{display:flex;justify-content:center;gap:8px;margin-top:42px;flex-wrap:wrap;}
.wo-blog-pagination .page-numbers{display:grid;place-items:center;min-width:42px;min-height:42px;padding:8px 13px;border-radius:999px;border:1px solid var(--wo-blog-line);background:#fff;color:var(--wo-blog-navy);text-decoration:none;font-weight:800;font-size:13px;}
.wo-blog-pagination .page-numbers.current,.wo-blog-pagination .page-numbers:hover{background:var(--wo-blog-navy);border-color:var(--wo-blog-navy);color:#fff;}
.wo-blog-empty{padding:42px;border-radius:18px;background:var(--wo-blog-soft);text-align:center;color:var(--wo-blog-muted);}

@media (max-width:900px){
  .wo-blog-bottom-cta{grid-template-columns:1fr;padding:38px 34px;gap:24px;}
  .wo-blog-bottom-cta-actions{justify-content:flex-start;}
  .wo-blog-related-grid,.wo-blog-archive-grid{grid-template-columns:repeat(2,minmax(0,1fr));}
  .wo-blog-archive-hero{padding:48px 36px;}
}

@media (max-width:640px){
  .wo-blog-hero{padding:52px 18px 28px;}
  .wo-blog-hero h1{font-size:38px;}
  .wo-blog-standfirst{font-size:17px;line-height:1.55;}
  .wo-blog-meta{display:block;}
  .wo-blog-meta span{display:block;margin:5px 0;}
  .wo-blog-meta span+span:before{display:none;}
  .wo-blog-hero-image{margin:30px auto -58px;border-radius:18px;aspect-ratio:4/3;}
  .wo-blog-hero:has(.wo-blog-hero-image){margin-bottom:62px;}
  .wo-blog-reader{padding:34px 18px 10px;}
  .wo-blog-content{font-size:17px;line-height:1.75;}
  .wo-blog-content h2{margin-top:50px;font-size:30px;}
  .wo-blog-toc{padding:0 18px;}
  .wo-blog-inline-cta{padding:24px 22px;}
  .wo-blog-wide{padding:0 18px 60px;}
  .wo-blog-bottom-cta{padding:30px 24px;border-radius:20px;}
  .wo-blog-bottom-cta-actions{display:grid;grid-template-columns:1fr;width:100%;}
  .wo-blog-btn{width:100%;}
  .wo-blog-related{margin-top:54px;}
  .wo-blog-related-grid,.wo-blog-archive-grid{grid-template-columns:1fr;}
  .wo-blog-related-heading h2{font-size:30px;}
  .wo-blog-archive{padding:22px 16px 60px;}
  .wo-blog-archive-hero{padding:38px 24px;border-radius:22px;}
  .wo-blog-archive-hero h1{font-size:39px;}
  .wo-blog-archive-hero p{font-size:17px;}
}

/* v1.0.2: full-width single-post shell and stronger WO editorial typography. */
.wo-blog-template-active,
.wo-blog-main{
  margin:0!important;
  padding:0!important;
  width:100%!important;
  max-width:none!important;
  background:#fff;
}

.wo-blog-main > .wo-blog-page{
  width:100%!important;
  max-width:none!important;
  margin:0!important;
}

.wo-blog-page,
.wo-blog-archive{
  font-family:system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Helvetica,Arial,sans-serif!important;
}

.wo-blog-page h1,
.wo-blog-page h2,
.wo-blog-page h3,
.wo-blog-page h4,
.wo-blog-archive h1,
.wo-blog-archive h2,
.wo-blog-archive h3{
  font-family:system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Helvetica,Arial,sans-serif!important;
}

.wo-blog-page *{
  box-sizing:border-box;
}

/* Keep wide WO sections genuinely wide even when a theme has global content constraints. */
.wo-blog-hero,
.wo-blog-wide{
  width:100%;
  max-width:none;
}

.wo-blog-wide{
  max-width:1208px;
}

.wo-blog-bottom-cta-copy{
  min-width:0;
}

.wo-blog-bottom-cta h2{
  overflow-wrap:normal;
  word-break:normal;
  hyphens:none;
}

.wo-blog-card{
  min-width:0;
}

.wo-blog-card h2,
.wo-blog-card h3,
.wo-blog-card p{
  overflow-wrap:anywhere;
}

@media (min-width:901px){
  .wo-blog-bottom-cta{
    grid-template-columns:minmax(0,1fr) auto;
  }
  .wo-blog-bottom-cta-copy{
    max-width:700px;
  }
}

/* v1.0.3: preserve the block theme's normal header/footer layout context. */
.wo-blog-template-active > .wp-site-blocks{
  width:100%;
  min-height:100vh;
}

/* Author card: deliberately retained from the old blog sidebar, but moved into
   the reading flow so it works cleanly on desktop and mobile. */
.wo-blog-author{
  display:grid;
  grid-template-columns:150px minmax(0,1fr);
  gap:30px;
  align-items:center;
  max-width:920px;
  margin:0 auto 44px;
  padding:30px 34px;
  border:1px solid var(--wo-blog-line);
  border-radius:22px;
  background:linear-gradient(145deg,#f7fafc,#fff);
  box-shadow:0 12px 34px rgba(16,26,57,.06);
}
.wo-blog-author-avatar img{
  display:block;
  width:150px!important;
  height:150px!important;
  max-width:none!important;
  border-radius:28px!important;
  object-fit:cover;
}
.wo-blog-author-copy{min-width:0;}
.wo-blog-author-copy h2{
  margin:7px 0 9px;
  color:var(--wo-blog-navy);
  font-size:30px;
  line-height:1.15;
  letter-spacing:-.025em;
}
.wo-blog-author-copy p{
  margin:0;
  color:#4c586d;
  font-size:16px;
  line-height:1.7;
}

@media (max-width:640px){
  .wo-blog-author{
    grid-template-columns:1fr;
    gap:20px;
    padding:26px 22px;
    text-align:left;
  }
  .wo-blog-author-avatar img{
    width:110px!important;
    height:110px!important;
    border-radius:22px!important;
  }
  .wo-blog-author-copy h2{font-size:27px;}
}

/* v1.0.4: use the theme's native single-post template again.  The :has()
   selectors expand only the layout containers that actually contain the WO
   article, leaving the site's header and footer completely under theme control. */
body.single-post .wp-block-post-content:has(.wo-blog-page),
body.single-post .entry-content:has(.wo-blog-page),
body.single-post main:has(.wo-blog-page),
body.single-post .wp-block-group:has(> .wp-block-post-content .wo-blog-page),
body.single-post .wp-block-group:has(> .entry-content .wo-blog-page){
  width:100%!important;
  max-width:none!important;
  margin-left:0!important;
  margin-right:0!important;
  padding-left:0!important;
  padding-right:0!important;
}

/* If the legacy post template is a content/sidebar columns layout, collapse it
   to one full-width content column and hide the sidebar column only. */
body.single-post .wp-block-columns:has(.wo-blog-page){
  display:block!important;
  width:100%!important;
  max-width:none!important;
  margin-left:0!important;
  margin-right:0!important;
}
body.single-post .wp-block-columns:has(.wo-blog-page) > .wp-block-column:has(.wo-blog-page){
  display:block!important;
  width:100%!important;
  max-width:none!important;
  flex-basis:100%!important;
}
body.single-post .wp-block-columns:has(.wo-blog-page) > .wp-block-column:not(:has(.wo-blog-page)){
  display:none!important;
}

/* Remove the theme's usual constrained-content rule from the injected WO page. */
body.single-post .wp-block-post-content > .wo-blog-page,
body.single-post .entry-content > .wo-blog-page{
  width:100vw!important;
  max-width:none!important;
  margin-left:calc(50% - 50vw)!important;
  margin-right:calc(50% - 50vw)!important;
}

/* v1.0.5: after the front-end cleanup, the theme's normal header and footer
   remain untouched while <main> contains only the WO article. This removes
   the legacy single-post metadata gap and empty sidebar height. */
body.single-post main.wo-blog-clean-main{
  display:block!important;
  width:100%!important;
  max-width:none!important;
  min-height:0!important;
  margin:0!important;
  padding:0!important;
}
body.single-post main.wo-blog-clean-main > .wo-blog-page{
  display:block!important;
  width:100%!important;
  max-width:none!important;
  margin:0!important;
  padding:0!important;
}

/* Kill theme spacing rules that can survive on the main element itself. */
body.single-post main.wo-blog-clean-main.has-global-padding,
body.single-post main.wo-blog-clean-main.is-layout-constrained,
body.single-post main.wo-blog-clean-main.is-layout-flow{
  padding-left:0!important;
  padding-right:0!important;
}

/* Prevent the WO article's final section from inheriting large template gaps
   before the site's real footer. */
body.single-post .wo-blog-page{
  margin-bottom:0!important;
}
body.single-post .wo-blog-wide{
  margin-bottom:0!important;
  padding-bottom:72px!important;
}
