/* blog page overrides (loaded after main.css)
 * Loads on: /blog/ + archives (index.php), single posts, 404, legal pages.
 * ------------------------------------------------------------------------ */

/* 1. Shared bits ---------------------------------------------------------- */
.screen-reader-text{position:absolute!important;width:1px;height:1px;margin:-1px;padding:0;border:0;overflow:hidden;clip:rect(1px,1px,1px,1px);clip-path:inset(50%);white-space:nowrap}
/* Long post titles in the breadcrumb: one line, ellipsis */
.crumbs li[aria-current]{display:block;max-width:min(58vw,520px);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.crumbs li[aria-current]::before{margin-right:6px}
/* Keep the chat launcher above the fixed mobile Call / Book bar */
@media (max-width:1023px){
	.chatbox-open,.main-chat-box,.wt-chat-bot-popup{bottom:calc(80px + env(safe-area-inset-bottom))!important}
	.wt_chat_bot_main.vertical.bottom,.wt_chat_bot_main.verticall.bottom{bottom:calc(80px + env(safe-area-inset-bottom))!important}
}

/* 2. Blog listing + archives ---------------------------------------------- */
.blog-filter a[aria-current]{color:var(--text);border-color:rgba(25,211,240,.5);background:rgba(25,211,240,.1)}
.post-card-body h2 a,.post-card-body h3 a{display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden;transition:color .25s}
.post-card:hover .post-card-body h2 a,.post-card:hover .post-card-body h3 a{color:var(--cyan)}
.post-card-body p{display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden}
.post-card-img img{display:block}
.pagination .nav-links{display:flex;flex-wrap:wrap;justify-content:center;gap:8px;width:100%}
.pagination .page-numbers.prev,.pagination .page-numbers.next{padding:0 18px}
.pagination .page-numbers.dots{min-width:28px;padding:0;color:var(--muted)}

/* 3. Single post ----------------------------------------------------------- */
.article-head .eyebrow a{color:inherit;transition:color .25s}
.article-head .eyebrow a:hover{color:var(--text)}
.article-head .post-meta{color:var(--muted)}
.article-head .post-meta time{color:var(--cyan)}
.article-hero{overflow:hidden;background:var(--bg-2)}
.article-hero img{width:100%;height:100%;object-fit:cover}
.article-side{top:calc(var(--head) + 24px)}
.side-card .btn+.btn{margin-top:10px}
.side-card .post-meta{display:flex;align-items:center;gap:8px;margin:18px 0 0;font-size:.78rem;letter-spacing:.04em;text-transform:none;color:var(--muted)}
.side-card .post-meta .ico{flex:none;width:16px;height:16px;color:var(--gold)}
.side-card .checks{gap:2px}
.side-card .checks li{align-items:center;font-size:.9rem}
.side-card .checks .ico{width:20px;height:20px;margin-top:0}
.side-card .checks a{padding:5px 0;color:var(--muted);transition:color .25s}
.side-card .checks a:hover{color:var(--text)}
.side-card .scard-link{margin-top:14px;font-size:.85rem}
.article-foot .post-meta{margin-bottom:14px}
.article-foot .post-meta a{color:inherit;text-decoration:underline;text-decoration-color:rgba(25,211,240,.4);text-underline-offset:3px}
.article-foot .post-meta a:hover{color:var(--text)}
.share>span{margin-right:6px;font:500 .9rem/1 var(--fd);color:var(--text)}
.share .copy-link.is-copied{color:var(--dark);background:var(--grad);border-color:transparent}
.related-posts .h-lg{margin-top:0}
.related-posts .post-grid{margin-top:clamp(28px,4vw,48px)}

/* 4. Prose: legacy / classic-editor content hardening ---------------------- */
.prose{overflow-wrap:anywhere}
.prose>h1:first-child,.prose>h2:first-child,.prose>h3:first-child{margin-top:0}
/* Old posts carry an <h1> in the body; render it like an h2 (single.php also demotes the tag). */
.prose h1{margin-top:2em;font-size:clamp(1.5rem,2.4vw,2rem)!important;line-height:1.2;color:var(--text)}
/* Inline font sizes from the classic editor (16px / 20px / 30px / 40px) */
.prose h2{font-size:clamp(1.5rem,2.4vw,2rem)!important}
.prose h3{font-size:1.3rem!important}
.prose h4,.prose h5,.prose h6{font-size:1.1rem!important;margin-top:2em;line-height:1.2;color:var(--text)}
.prose p,.prose li,.prose span,.prose strong,.prose em,.prose b,.prose i,.prose td,.prose th,.prose a:not(.wp-block-button__link){font-size:inherit!important}
.prose :is(h1,h2,h3,h4,h5,h6)+:is(h1,h2,h3,h4,h5,h6){margin-top:1em}
/* Inline colours / backgrounds / fonts from the old light theme */
.prose [style*="color"]{color:inherit!important}
.prose [style*="background"]{background:transparent!important}
.prose [style*="font-family"]{font-family:inherit!important}
.prose [style*="line-height"]{line-height:inherit!important}
.prose [style*="text-align: justify"],.prose [style*="text-align:justify"]{text-align:left!important}
.prose :is(h1,h2,h3,h4,h5,h6)[style*="color"],.prose :is(h1,h2,h3,h4,h5,h6) [style*="color"],.prose strong[style*="color"],.prose b[style*="color"]{color:var(--text)!important}
.prose a[style*="color"]{color:var(--cyan)!important}
.prose p[style*="padding"],.prose p[style*="margin"],.prose li[style*="margin"]{padding:0!important;margin-left:0!important;margin-right:0!important}
.prose p:empty{display:none}
.prose br+br{display:none}
/* Media */
.prose img{max-width:100%!important;height:auto!important}
.prose img[style*="float: left"],.prose img[style*="float:left"],.prose img.alignleft{float:left;max-width:50%!important;margin:0 24px 16px 0!important}
.prose img[style*="float: right"],.prose img[style*="float:right"],.prose img.alignright{float:right;max-width:50%!important;margin:0 0 16px 24px!important}
.prose p:has(>img:only-child){margin:2em 0}
.prose p:has(>img:only-child) img{display:block;margin-inline:auto}
.prose iframe,.prose embed,.prose object,.prose video{max-width:100%!important}
.prose iframe[src*="youtube"],.prose iframe[src*="youtu.be"],.prose iframe[src*="vimeo"],.prose iframe[src*="wistia"],.prose iframe[src*="loom"],.prose p>iframe,.prose>iframe,.prose .embed-wrap>iframe{display:block;width:100%!important;height:auto!important;aspect-ratio:16/9;border:0;border-radius:18px;background:var(--bg-2)}
.prose p:has(>iframe:only-child){margin:2em 0}
.prose .wp-block-embed,.prose .embed-wrap{margin:2em 0}
/* Tables: scroll sideways on small screens (blog.js wraps them in .table-wrap) */
.prose .table-wrap{margin:2em 0;overflow-x:auto;-webkit-overflow-scrolling:touch;border-radius:14px;border:1px solid var(--line);background:var(--surface)}
.prose .table-wrap table{margin:0;border:0;border-radius:0;min-width:540px}
.prose table{display:table;background:var(--surface)}
.prose th,.prose td{padding:12px 14px!important;vertical-align:top;color:var(--body)}
.prose th{color:var(--text);background:rgba(255,255,255,.06)}
.prose td+td,.prose th+th{border-left:1px solid var(--line)}
.prose tbody tr:nth-child(even) td{background:rgba(255,255,255,.02)}
.prose table p,.prose table ul,.prose table ol{margin:0}
.prose table li+li{margin-top:.25em}
html:not(.js) .prose table{display:block;overflow-x:auto}
/* Misc old-theme leftovers */
.prose div{max-width:100%}
.prose hr{height:1px;margin:2.5em 0;border:0;background:var(--line)}
.prose .wp-block-group,.prose .wp-block-columns{margin:0}
.prose ul ul,.prose ol ol,.prose ul ol,.prose ol ul{margin-top:.5em}
.prose blockquote p:last-child{margin-bottom:0}
@media (max-width:767px){
	.prose img[style*="float"],.prose img.alignleft,.prose img.alignright{float:none;max-width:100%!important;margin:1.25em 0!important}
	.prose .table-wrap table{min-width:480px}
	.article-head h1{font-size:clamp(1.75rem,8vw,2.4rem)}
	.share>span{flex-basis:100%;margin:0 0 2px}
}

/* 5. 404 ------------------------------------------------------------------- */
.err-in .eyebrow+.h-xl{margin-top:0}
.err-in .h-xl{font-size:clamp(2.6rem,9vw,5.2rem)}
.err-in .hero-ctas+.eyebrow{margin-top:clamp(40px,6vw,64px)}
.err-in .checks{display:flex;flex-wrap:wrap;justify-content:center;gap:10px 22px}
.err-in .checks li{align-items:center;font-size:.92rem}
.err-in .checks a{color:var(--muted);transition:color .25s}
.err-in .checks a:hover{color:var(--text)}
@media (max-width:639px){
	.err-in .checks{flex-direction:column;align-items:flex-start;gap:6px;max-width:260px;margin-inline:auto}
}

/* 6. Legal pages (Elementor-rendered privacy / medical disclaimer) --------- */
body.msd-legal .site-main{padding-top:calc(var(--head) + clamp(48px,9vh,96px));padding-bottom:var(--sec)}
body.msd-legal .elementor{max-width:calc(840px + var(--gutter) * 2)!important;margin-inline:auto;padding-inline:var(--gutter)}
body.msd-legal .elementor .e-con,body.msd-legal .elementor .e-con-inner,body.msd-legal .elementor-section,body.msd-legal .elementor-container,body.msd-legal .elementor-column,body.msd-legal .elementor-widget-wrap{max-width:100%!important;padding-inline:0!important;background:transparent!important}
body.msd-legal .elementor .e-con{--padding-left:0;--padding-right:0;--content-width:100%}
body.msd-legal .elementor-element,body.msd-legal .elementor{background:transparent!important}
body.msd-legal .elementor,body.msd-legal .elementor p,body.msd-legal .elementor li,body.msd-legal .elementor span,body.msd-legal .elementor td,body.msd-legal .elementor th,body.msd-legal .elementor em,body.msd-legal .elementor div{color:var(--body)!important;background:transparent!important;font-family:var(--fb)!important}
body.msd-legal .elementor p,body.msd-legal .elementor li{font-size:1.05rem!important;line-height:1.75!important;text-align:left!important}
body.msd-legal .elementor p{margin:0 0 1.1em!important}
body.msd-legal .elementor p:empty{display:none}
body.msd-legal .elementor strong,body.msd-legal .elementor b{color:var(--text)!important;font-weight:600}
body.msd-legal .elementor a{color:var(--cyan)!important;text-decoration:underline;text-decoration-color:rgba(25,211,240,.4);text-underline-offset:3px}
body.msd-legal .elementor :is(h1,h2,h3,h4,h5,h6),body.msd-legal .elementor :is(h1,h2,h3,h4,h5,h6) *{color:var(--text)!important;font-family:var(--fd)!important;letter-spacing:-.02em;line-height:1.2;text-align:left!important}
body.msd-legal .elementor h1,body.msd-legal .elementor .elementor-widget-heading .elementor-heading-title{font-size:clamp(2rem,4.6vw,3.4rem)!important;margin:0 0 .6em!important}
body.msd-legal .elementor h2{font-size:clamp(1.5rem,2.4vw,2rem)!important;margin:2em 0 .6em!important}
body.msd-legal .elementor h3{font-size:1.3rem!important;margin:1.8em 0 .5em!important}
body.msd-legal .elementor h4,body.msd-legal .elementor h5,body.msd-legal .elementor h6{font-size:1.1rem!important;margin:1.6em 0 .5em!important}
body.msd-legal .elementor :is(h1,h2,h3,h4)+p{margin-top:0!important}
body.msd-legal .elementor ul{list-style:disc;padding-left:1.4em;margin:0 0 1.25em}
body.msd-legal .elementor ol{list-style:decimal;padding-left:1.4em;margin:0 0 1.25em}
body.msd-legal .elementor li+li{margin-top:.4em}
body.msd-legal .elementor li::marker{color:var(--gold)}
body.msd-legal .elementor hr,body.msd-legal .elementor-divider-separator{height:1px!important;margin:2.5em 0!important;border:0!important;border-top:1px solid var(--line)!important;background:transparent!important;opacity:1!important;width:100%!important}
body.msd-legal .elementor-widget-divider{margin:0!important;padding:0!important}
body.msd-legal .elementor table{width:100%;border:1px solid var(--line);border-radius:14px;overflow:hidden;font-size:.95rem}
body.msd-legal .elementor th,body.msd-legal .elementor td{padding:12px 14px;text-align:left;border-bottom:1px solid var(--line)}
body.msd-legal .elementor img{max-width:100%;height:auto;border-radius:18px}
body.msd-legal .elementor [style*="font-size"]{font-size:inherit!important}
body.msd-legal .elementor [style*="text-align: center"]{text-align:left!important}
body.msd-legal .elementor-element{margin-bottom:0!important}
body.msd-legal .elementor-widget{margin-bottom:0!important}
