/* Article card copy is independent of article content typography and spacing. */
html body .wzd-art-grid{align-items:stretch}
html body a.wzd-art{display:flex!important;flex-direction:column;min-height:0!important;height:auto!important;padding:0!important;border:1px solid #e4dcd8!important;border-radius:12px!important;box-shadow:none!important;background:#fff!important;overflow:hidden}
html body .wzd-art .wzd-art-img{position:relative;display:block!important;width:100%!important;height:auto!important;min-height:0!important;aspect-ratio:auto!important;padding:0!important;margin:0!important;background:#f7f5f3!important;border-radius:0!important}
html body .wzd-art .wzd-art-img img{position:static!important;display:block!important;width:100%!important;height:auto!important;max-height:none!important;margin:0!important;padding:0!important;object-fit:contain!important;object-position:center!important;border-radius:0!important;transform:none!important}
html body .wzd-art .wzd-art-tag{display:none!important}
html body .wzd-art .wzd-art-copy{display:flex!important;flex-direction:column;flex:1;gap:10px;box-sizing:border-box;margin:0!important;padding:12px!important;min-height:0!important;max-width:100%;background:#fff!important;border:0!important;border-radius:0!important}
html body .wzd-art-copy .wzd-art-title{display:-webkit-box!important;-webkit-box-orient:vertical;-webkit-line-clamp:2;overflow:hidden!important;margin:0!important;padding:0!important;border:0!important;color:#2f3034!important;font-size:15px!important;font-weight:600!important;line-height:1.6!important;min-height:0!important}
html body .wzd-art-copy .wzd-art-title::before,html body .wzd-art-copy .wzd-art-title::after{display:none!important}
html body .wzd-art-copy .wzd-art-meta{display:flex;align-items:center;gap:6px;margin:0!important;padding:0!important;border:0!important;color:#62646c!important;font-size:12px!important;line-height:1.5!important}
html body .wzd-art-copy .wzd-art-meta i{position:static!important;font-size:14px!important}
html body .wzd-art-copy>p{margin:0!important;color:#62646c!important;font-size:13px!important;line-height:1.6!important}
@media(max-width:768px){html body .wzd-art .wzd-art-copy{padding:12px!important;gap:8px}html body .wzd-art-copy .wzd-art-title{font-size:14px!important}html body .wzd-art-copy .wzd-art-meta{font-size:11px!important}}
html body.single-post .wzd-art-grid{display:grid!important;grid-template-columns:repeat(4,minmax(0,1fr))!important;gap:16px!important;min-width:0;max-width:100%}
@media(min-width:769px){html body.single-post [data-wzd-related-articles]>.wzd-art:nth-child(n+5){display:none!important}}
html body.single-post [data-wzd-related-articles]>.wzd-art[hidden]{display:none!important}
@media(max-width:768px){html body.single.single-post [data-wzd-related-articles]>a.wzd-art:not([hidden]){display:flex!important}}
html body.single-post .wzd-related-more[hidden]{display:none!important}
html body.single-post .wzd-related-more{display:block;margin:16px auto 0;min-height:46px;padding:10px 24px;border:1px solid #8e2521;border-radius:12px;background:#8e2521;color:#fff;font:inherit;font-weight:600;cursor:pointer}
html body.single-post .wzd-related-more:focus-visible{outline:3px solid #8e2521;outline-offset:3px}
@media(max-width:768px){html body.single-post [data-wzd-related-articles]{grid-template-columns:minmax(0,1fr)!important;grid-auto-flow:row;grid-auto-columns:auto;gap:16px!important;overflow:visible;scroll-snap-type:none;padding-bottom:0}html body.single-post [data-wzd-related-articles]>.wzd-art{scroll-snap-align:none}}
@media(min-width:769px){html body.single-post .wzd-related-more{display:none!important}}
html body.single-post #wdc-article a.wzd-article-action-button{display:inline-flex!important;align-items:center;justify-content:center;gap:8px;box-sizing:border-box;max-width:100%;min-height:46px;margin:8px 4px 8px 0!important;padding:12px 18px!important;border:1px solid #8e2521!important;border-radius:12px!important;background:#8e2521!important;color:#fff!important;font-size:15px!important;font-weight:600;line-height:1.6!important;text-decoration:none!important;white-space:normal;text-align:center;box-shadow:none!important}
html body.single-post #wdc-article a.wzd-article-action-button *{background:transparent!important;color:inherit!important;text-decoration:none!important}
html body.single-post #wdc-article a.wzd-article-action-button:focus-visible{outline:3px solid #8e2521;outline-offset:3px}
@media(max-width:1100px){html body.single-post .wdc-sticky-cta{background:#fff!important;border-top:1px solid #e5e2dd!important;backdrop-filter:none!important;-webkit-backdrop-filter:none!important;box-shadow:0 -2px 10px rgba(0,0,0,.06);gap:8px;padding:8px 12px calc(8px + env(safe-area-inset-bottom,0px));}html body.single-post .wdc-sticky-cta>a{min-width:0;min-height:46px;box-sizing:border-box;padding:10px 8px!important;border-radius:10px;white-space:nowrap;font-size:14px!important;color:#fff!important}html body.single-post .wdc-sticky-cta .wdc-sticky-line{background:#087a36!important}html body.single-post .wdc-sticky-cta .wdc-sticky-phone{background:#8e2521!important}}
@media(max-width:700px){html body.single.single-post .wdc-sticky-cta{bottom:calc(65px + env(safe-area-inset-bottom,0px))!important;padding-bottom:8px}html body.single-post .wdc-back-top{bottom:calc(138px + env(safe-area-inset-bottom,0px))!important}html body.single.single-post .wzd-foot{padding-bottom:calc(145px + env(safe-area-inset-bottom,0px))!important}}
@media(max-width:350px){html body.single-post .wdc-sticky-cta>a,html body.single-post .wdc-sticky-cta>a span{font-size:12px!important}}

/* Archive cards show only the cover, title and per-article reading estimate. */
html body.wzd-articles-page .wzd-art-copy .wzd-art-meta{flex-wrap:wrap;column-gap:12px;row-gap:6px;margin-top:auto!important;padding-top:10px!important;border-top:1px solid #eee7e2!important}
html body.wzd-articles-page .wzd-art-meta-item{display:inline-flex;align-items:center;gap:5px;white-space:nowrap}
html body.wzd-articles-page .wzd-art-copy .wzd-art-title{border-left:0!important;padding-left:0!important}

/* Article contents: white surfaces, company red accents and theme text.
   Covers the native collapsible block, legacy auto contents and mobile drawer. */
html body.single.single-post :is(.wzd-toc-block, nav.wzd-toc, .wdc-toc-drawer) {
 background: #fff !important; background-image: none !important;
 border-color: #e4dcd8 !important; color: #303030 !important;
}
html body.single.single-post nav.wzd-toc-block { border-left-color: #8e2521 !important; }
html body.single.single-post :is(.wzd-toc-block, nav.wzd-toc, .wdc-toc-drawer) :is(.wzd-toc-toggle-btn, .wzd-toc-title, .wdc-toc-drawer-head, ol, li) {
 background: #fff !important; background-image: none !important;
 color: #303030 !important; border-color: #e4dcd8 !important; font-family: inherit !important;
}
html body.single.single-post :is(.wzd-toc-block, nav.wzd-toc, .wdc-toc-drawer) a {
 background: #fff !important; background-image: none !important;
 color: #303030 !important; text-decoration: none !important; border-bottom: 0 !important;
 font-family: inherit !important;
}
html body.single.single-post :is(.wzd-toc-block, nav.wzd-toc, .wdc-toc-drawer) :is(a:hover, a.is-active, a[aria-current], a:focus-visible) {
 background: #fff !important; color: #8e2521 !important;
}
html body.single.single-post :is(.wzd-toc-block, nav.wzd-toc, .wdc-toc-drawer) a.is-active {
 box-shadow: inset 3px 0 0 #8e2521 !important;
}
html body.single.single-post :is(.wzd-toc-block, nav.wzd-toc, .wdc-toc-drawer) :is(a, button):focus-visible {
 outline: 2px solid #8e2521 !important; outline-offset: -2px;
}
html body.single.single-post :is(.wzd-toc-block, nav.wzd-toc, .wdc-toc-drawer) .wzd-toc-num,
html body.single.single-post nav.wzd-toc ol li a::before {
 background: #8e2521 !important; color: #fff !important;
}
html body.single.single-post :is(.wzd-toc-block, nav.wzd-toc, .wdc-toc-drawer) :is(.wzd-toc-dot, .wdc-toc-drawer-handle) {
 background: #8e2521 !important;
}
html body.single.single-post :is(.wzd-toc-block, nav.wzd-toc, .wdc-toc-drawer) :is(.ti, .wzd-toc-icon) { color: #8e2521 !important; }
html body.single.single-post .wzd-toc-label em { color: #595959 !important; }
html body.single.single-post :is(.wdc-toc-pill, .wdc-toc-drawer-close, .wzd-toc-toggle-btn):is(:hover, :active),
html body.single.single-post :is(.wdc-toc-pill, .wdc-toc-drawer-close) {
 background: #fff !important; background-image: none !important; color: #8e2521 !important;
 border: 1px solid #e4dcd8 !important;
}
html body.single.single-post .wdc-toc-drawer { backdrop-filter: none; -webkit-backdrop-filter: none; }
/* Match the existing ID-scoped mobile rules without changing the shared PHP. */
html body.single.single-post #wdc-toc-drawer .wdc-toc-drawer-close {
 background: #fff !important; color: #8e2521 !important;
}
html body.single.single-post #wdc-toc-drawer .wdc-toc-drawer-handle {
 background: #8e2521 !important;
}
html body.single.single-post #wdc-toc-drawer .wdc-toc-drawer-list a:is(:hover, :focus, :focus-visible, :active, .is-active, [aria-current]) {
 background: #fff !important; color: #8e2521 !important;
}

/* Desktop article sidebar: five full-cover cards, with concise titles below. */
@media(min-width:1101px){
 html body.single.single-post #wdc-art-aside .wzd-art-aside-sticky{position:static!important;max-height:none!important;overflow:visible!important}
 html body.single.single-post #wdc-art-aside .wzd-side-related{padding:16px!important;box-shadow:none!important}
 html body.single.single-post #wdc-art-aside .wzd-side-related-list{gap:14px!important}
 html body.single.single-post #wdc-art-aside .wzd-side-related-item{padding:0!important;border:1px solid #e4dcd8!important;border-radius:12px;overflow:hidden;background:#fff}
 html body.single.single-post #wdc-art-aside .wzd-side-related-link{display:flex!important;flex-direction:column!important;align-items:stretch!important;gap:0!important;width:100%;min-width:0}
 html body.single.single-post #wdc-art-aside .wzd-side-related-img{display:block!important;width:100%!important;height:auto!important;min-height:0;aspect-ratio:auto!important;border-radius:0!important;background:#f7f5f3!important}
 html body.single.single-post #wdc-art-aside .wzd-side-related-img img{display:block!important;width:100%!important;height:auto!important;max-height:none!important;object-fit:contain!important;object-position:center;transform:none!important}
 html body.single.single-post #wdc-art-aside .wzd-side-related-body{width:100%;box-sizing:border-box;padding:10px 12px!important}
 html body.single.single-post #wdc-art-aside .wzd-side-related-title{margin:0!important;font-size:14px!important;line-height:1.6!important;-webkit-line-clamp:2}
 html body.single.single-post #wdc-art-aside .wzd-side-related-img>i{display:block;min-height:160px;text-align:center;padding-top:60px;box-sizing:border-box;color:#aaa}
}
