/*
Theme Name: CyberScop Security Journal
Theme URI: https://cyberscop.com/
Description: A modern CyberScop WordPress blog theme using the site's shared header and footer with a distinct mint-green cybersecurity design.
Author: CyberScop
Version: 1.0.0
Requires at least: 6.0
Requires PHP: 7.4
Text Domain: cyberscop-blog
*/

/*
Theme Name: CyberScop Security Journal
Description: CyberScop WordPress blog theme with mint-green security branding and shared main-site header/footer integration.
Version: 1.0.0
Text Domain: cyberscop-blog
*/
:root{--cs-mint:#2DD4A0;--cs-mint-dark:#11966f;--cs-mint-soft:#eafff6;--cs-ink:#10243a;--cs-body:#334155;--cs-muted:#718096;--cs-line:#e3eaf0;--cs-bg:#f6f9fb;--cs-white:#fff;--cs-radius:18px;--cs-shadow:0 18px 45px rgba(16,36,58,.08);--cs-font:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif}
.cs-blog-shell{font-family:var(--cs-font);color:var(--cs-ink);background:#fff;line-height:1.6}
.cs-blog-shell *{box-sizing:border-box}
.cs-blog-shell a{color:inherit}
.cs-blog-shell img{max-width:100%;height:auto}
.cs-blog-shell h1,.cs-blog-shell h2,.cs-blog-shell h3,.cs-blog-shell p{margin-top:0}
.cs-journal-hero{position:relative;overflow:hidden;background:#f3fbf8;border-bottom:1px solid var(--cs-line)}
.cs-journal-grid{position:absolute;inset:0;opacity:.45;background-image:linear-gradient(rgba(45,212,160,.12) 1px,transparent 1px),linear-gradient(90deg,rgba(45,212,160,.12) 1px,transparent 1px);background-size:48px 48px;mask-image:linear-gradient(90deg,#000,transparent 88%)}
.cs-journal-hero-inner{position:relative;z-index:1;width:min(1200px,calc(100% - 48px));margin:auto;min-height:500px;padding:78px 0 70px;display:grid;grid-template-columns:1.1fr .9fr;align-items:center;gap:55px}
.cs-eyebrow,.cs-section-kicker,.cs-sidebar-kicker{font-size:.72rem;font-weight:800;letter-spacing:.13em;color:var(--cs-mint-dark)}
.cs-eyebrow{display:inline-flex;align-items:center;gap:10px;margin-bottom:20px}
.cs-live-dot{width:9px;height:9px;border-radius:50%;background:var(--cs-mint);box-shadow:0 0 0 5px rgba(45,212,160,.16)}
.cs-journal-copy h1{font-size:clamp(2.7rem,5vw,4.55rem);line-height:1.04;letter-spacing:-.055em;font-weight:800;color:var(--cs-ink);margin:0 0 22px}
.cs-journal-copy h1 em{font-style:normal;color:var(--cs-mint-dark)}
.cs-journal-copy>p{max-width:590px;color:#526579;font-size:1.08rem;line-height:1.8;margin-bottom:0}
.cs-hero-actions{display:flex;align-items:center;flex-wrap:wrap;gap:20px;margin-top:28px}
.cs-btn{display:inline-flex;align-items:center;justify-content:center;gap:10px;min-height:47px;padding:0 19px;border-radius:10px;text-decoration:none!important;font-weight:750;font-size:.9rem;transition:transform .18s ease,box-shadow .18s ease,background .18s ease}
.cs-btn:hover{transform:translateY(-2px)}
.cs-btn-primary{background:var(--cs-mint);color:#062c24!important;box-shadow:0 8px 18px rgba(45,212,160,.22)}
.cs-btn-primary:hover{background:#42e0b0;box-shadow:0 12px 24px rgba(45,212,160,.28)}
.cs-btn-dark{background:var(--cs-ink);color:#fff!important}
.cs-btn-dark:hover{background:#1b3854}
.cs-btn-block{width:100%}
.cs-text-link{font-weight:750;font-size:.9rem;text-decoration:none;color:var(--cs-ink)}
.cs-text-link span{color:var(--cs-mint-dark);margin-left:5px}
.cs-proof-points{display:flex;flex-wrap:wrap;gap:17px;margin-top:30px;color:#526579;font-size:.8rem;font-weight:650}
.cs-proof-points b{color:var(--cs-mint-dark);margin-right:5px}
.cs-hero-visual{min-height:345px;position:relative;display:grid;place-items:center}
.cs-orbit{position:absolute;border:1px solid rgba(45,212,160,.38);border-radius:50%;transform:rotate(-25deg)}
.cs-orbit-one{width:330px;height:250px}
.cs-orbit-two{width:410px;height:300px;transform:rotate(28deg);border-color:rgba(16,36,58,.1)}
.cs-shield-card{position:relative;width:min(310px,80%);padding:28px;border-radius:25px;background:#fff;border:1px solid #dcefe8;box-shadow:0 25px 65px rgba(16,36,58,.12);transform:rotate(-3deg)}
.cs-shield-symbol{width:72px;height:80px;display:grid;place-items:center;margin-bottom:24px;background:var(--cs-mint-soft);border:2px solid var(--cs-mint);clip-path:polygon(50% 0,91% 16%,87% 63%,50% 100%,13% 63%,9% 16%)}
.cs-shield-check{font-size:35px;font-weight:900;color:var(--cs-mint-dark)}
.cs-visual-label{font-size:.65rem;letter-spacing:.15em;color:var(--cs-mint-dark);font-weight:850;margin-bottom:10px}
.cs-shield-card>strong{display:block;font-size:1.55rem;line-height:1.18;letter-spacing:-.03em}
.cs-status-row{margin-top:22px;padding-top:16px;border-top:1px solid var(--cs-line);font-size:.73rem;color:var(--cs-muted);font-weight:650}
.cs-status-pill{display:inline-block;width:7px;height:7px;background:var(--cs-mint);border-radius:50%;margin-right:6px}
.cs-float-chip{position:absolute;z-index:2;background:#fff;border:1px solid var(--cs-line);box-shadow:0 10px 30px rgba(16,36,58,.1);border-radius:12px;padding:12px 15px;font-size:.78rem;font-weight:750;color:var(--cs-ink)}
.cs-float-chip span{color:var(--cs-mint-dark);font-size:.68rem;margin-right:8px}
.cs-chip-top{top:28px;right:0}.cs-chip-bottom{bottom:24px;left:0}
.cs-blog-main{width:min(1200px,calc(100% - 48px));margin:0 auto;padding:72px 0 84px}
.cs-blog-heading-row{display:flex;justify-content:space-between;align-items:end;gap:28px}
.cs-blog-heading-row h2{font-size:clamp(1.9rem,3vw,2.55rem);letter-spacing:-.045em;margin:10px 0}
.cs-blog-heading-row p{color:var(--cs-muted);margin:0;max-width:640px}
.cs-search-form{display:flex;flex:0 0 320px;max-width:100%;border:1px solid var(--cs-line);border-radius:12px;overflow:hidden;background:#fff;min-height:48px}
.cs-search-form input{min-width:0;flex:1;border:0!important;outline:none!important;padding:0 15px;font:inherit;font-size:.85rem;box-shadow:none!important;background:#fff!important}
.cs-search-form button{width:52px;border:0;background:var(--cs-ink);color:#fff;font-size:1.5rem;cursor:pointer}
.cs-category-nav{display:flex;flex-wrap:wrap;gap:9px;margin:30px 0 28px;padding-bottom:24px;border-bottom:1px solid var(--cs-line)}
.cs-category-nav a{padding:8px 14px;border:1px solid var(--cs-line);border-radius:9px;text-decoration:none;font-size:.8rem;font-weight:700;color:#526579;background:#fff}
.cs-category-nav a:hover,.cs-category-nav a.is-active{background:var(--cs-mint-soft);border-color:#a7f3d0;color:#087f5b}
.cs-post-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:24px}
.cs-post-card{min-width:0;border:1px solid var(--cs-line);border-radius:17px;overflow:hidden;background:#fff;transition:transform .2s ease,box-shadow .2s ease,border-color .2s ease}
.cs-post-card:hover{transform:translateY(-4px);box-shadow:var(--cs-shadow);border-color:#b5efdb}
.cs-card-image{display:block;aspect-ratio:1.64;background:#eafff6;overflow:hidden}
.cs-card-image img{display:block;width:100%;height:100%;object-fit:cover;transition:transform .35s ease}
.cs-post-card:hover .cs-card-image img{transform:scale(1.035)}
.cs-card-content{padding:22px 22px 24px}
.cs-card-meta{display:flex;align-items:center;gap:10px;flex-wrap:wrap;font-size:.72rem;color:var(--cs-muted)}
.cs-category{padding:5px 9px;border-radius:6px;background:var(--cs-mint-soft);color:#087f5b;font-weight:800}
.cs-card-content h2{font-size:1.22rem;line-height:1.35;letter-spacing:-.025em;margin:15px 0 10px}
.cs-card-content h2 a{text-decoration:none}
.cs-card-content h2 a:hover{color:#087f5b}
.cs-card-content>p{font-size:.9rem;color:var(--cs-muted);line-height:1.75;margin-bottom:18px}
.cs-read-link{font-size:.84rem;font-weight:800;color:#087f5b!important;text-decoration:none}
.cs-read-link span{margin-left:4px}
.cs-pagination{display:flex;justify-content:center;flex-wrap:wrap;gap:8px;margin-top:42px}
.cs-pagination .page-numbers{display:inline-flex;align-items:center;justify-content:center;min-width:40px;height:40px;padding:0 12px;border:1px solid var(--cs-line);border-radius:9px;text-decoration:none;font-size:.85rem;font-weight:700}
.cs-pagination .current{background:var(--cs-ink);border-color:var(--cs-ink);color:#fff}
.cs-pagination a:hover{border-color:var(--cs-mint);background:var(--cs-mint-soft)}
.cs-empty-state{max-width:650px;margin:50px auto 70px;padding:50px 25px;text-align:center;border:1px dashed #b9d7ce;border-radius:20px;background:#f8fffc}
.cs-empty-icon{display:grid;place-items:center;width:54px;height:54px;margin:0 auto 18px;border-radius:16px;background:var(--cs-mint-soft);color:#087f5b;font-size:1.8rem;font-weight:800}
.cs-empty-state h2,.cs-empty-state h1{margin-bottom:10px}.cs-empty-state p{color:var(--cs-muted);margin-bottom:22px}
.cs-journal-cta{width:min(1200px,calc(100% - 48px));margin:0 auto 72px;padding:34px 38px;display:grid;grid-template-columns:auto 1fr auto;align-items:center;gap:25px;background:var(--cs-mint-soft);border:1px solid #c8f7e5;border-radius:20px}
.cs-cta-mark{width:64px;height:64px;border-radius:18px;display:grid;place-items:center;background:var(--cs-ink);color:#fff;font-size:1.25rem;font-weight:900;letter-spacing:-.08em}
.cs-cta-mark span{color:var(--cs-mint)}
.cs-journal-cta h2{font-size:1.65rem;letter-spacing:-.035em;margin:7px 0}
.cs-journal-cta p{color:#526579;margin:0;font-size:.9rem}
.cs-article-shell{background:#fff}
.cs-article-topline{width:min(1200px,calc(100% - 48px));margin:0 auto;padding:25px 0;display:flex;justify-content:space-between;gap:15px;border-bottom:1px solid var(--cs-line);font-size:.78rem;font-weight:750}
.cs-article-topline a{text-decoration:none;color:#526579}.cs-article-topline a:hover{color:#087f5b}
.cs-article-topline>span{color:var(--cs-mint-dark);letter-spacing:.13em;font-size:.68rem}
.cs-article-layout{width:min(1200px,calc(100% - 48px));margin:0 auto;padding:45px 0 90px;display:grid;grid-template-columns:minmax(0,790px) minmax(240px,300px);gap:54px;align-items:start}
.cs-article{min-width:0}
.cs-article-header{margin-bottom:34px}
.cs-article-categories{display:flex;flex-wrap:wrap;gap:8px;margin-bottom:18px}
.cs-article-categories a{background:var(--cs-mint-soft);color:#087f5b;text-decoration:none;border-radius:7px;padding:6px 10px;font-size:.72rem;font-weight:800}
.cs-article-header h1{font-size:clamp(2.25rem,4vw,3.5rem);line-height:1.08;letter-spacing:-.05em;margin:0 0 18px;color:var(--cs-ink)}
.cs-article-excerpt{font-size:1.1rem;line-height:1.8;color:#607286;margin-bottom:22px}
.cs-article-meta{display:flex;align-items:center;flex-wrap:wrap;gap:9px;color:var(--cs-muted);font-size:.78rem}
.cs-author-avatar{display:grid;place-items:center;width:32px;height:32px;border-radius:50%;background:var(--cs-ink);color:var(--cs-mint);font-size:.65rem;font-weight:900}
.cs-meta-dot{color:var(--cs-mint-dark);font-weight:900}
.cs-article-featured{margin-top:28px;overflow:hidden;border-radius:18px;background:var(--cs-bg)}
.cs-article-featured img{display:block;width:100%;height:auto;max-height:520px;object-fit:cover}
.cs-article-content{font-size:1.03rem;line-height:1.9;color:#334155;overflow-wrap:anywhere}
.cs-article-content>p:first-child{font-size:1.1rem;color:#475569}
.cs-article-content h2{font-size:clamp(1.55rem,3vw,2rem);line-height:1.25;letter-spacing:-.035em;color:var(--cs-ink);margin:2.2em 0 .65em;scroll-margin-top:110px}
.cs-article-content h3{font-size:1.3rem;line-height:1.35;color:var(--cs-ink);margin:1.8em 0 .55em}
.cs-article-content h4{font-size:1.08rem;color:var(--cs-ink);margin:1.5em 0 .5em}
.cs-article-content a{color:#087f5b;text-decoration-thickness:1px;text-underline-offset:3px}
.cs-article-content ul,.cs-article-content ol{padding-left:1.5em}
.cs-article-content li{padding-left:.25em;margin-bottom:.45em}
.cs-article-content blockquote{margin:1.7em 0;padding:18px 24px;border-left:4px solid var(--cs-mint);background:#f2fcf8;color:#526579;border-radius:0 12px 12px 0}
.cs-article-content img{max-width:100%;height:auto;border-radius:12px}
.cs-article-content figure{max-width:100%;margin:1.7em 0}
.cs-article-content figcaption{font-size:.8rem;color:var(--cs-muted);text-align:center;margin-top:8px}
.cs-article-content code{font-size:.87em;background:#edf5f2;padding:.15em .35em;border-radius:5px}
.cs-article-content pre{max-width:100%;overflow:auto;padding:20px;border-radius:12px;background:#10243a;color:#e5fff6;font-size:.86rem;line-height:1.7}
.cs-table-wrap{width:100%;overflow-x:auto;margin:1.5em 0;border:1px solid var(--cs-line);border-radius:12px}
.cs-article-content table{width:100%;min-width:540px;border-collapse:collapse;font-size:.9rem}
.cs-article-content th,.cs-article-content td{padding:12px 15px;text-align:left;border-bottom:1px solid var(--cs-line)}
.cs-article-content th{background:#f0fbf6;color:var(--cs-ink)}
.cs-article-content tr:last-child td{border-bottom:0}
.cs-article-sidebar{position:sticky;top:25px;display:grid;gap:18px}
.cs-sidebar-card{padding:22px;border:1px solid var(--cs-line);border-radius:16px;background:#fff}
.cs-sidebar-card h2{font-size:1.15rem;line-height:1.35;letter-spacing:-.025em;margin:9px 0 13px}
.cs-toc-card ol{padding-left:18px;margin:0}
.cs-toc-card li{font-size:.82rem;line-height:1.55;margin:9px 0;color:#526579}
.cs-toc-card a{text-decoration:none}
.cs-toc-card a:hover{color:#087f5b}
.cs-sidebar-icon{display:grid;place-items:center;width:43px;height:43px;border-radius:12px;background:var(--cs-mint-soft);color:#087f5b;font-weight:900;font-size:1.35rem;margin-bottom:18px}
.cs-tools-card{background:#f5fcf9;border-color:#d4f5e7}
.cs-tools-card p{font-size:.85rem;line-height:1.75;color:#607286}
.cs-sidebar-recent{padding-bottom:10px}
.cs-mini-post{display:block;padding:13px 0;border-top:1px solid var(--cs-line);text-decoration:none}
.cs-mini-post span{display:block;color:var(--cs-muted);font-size:.7rem;margin-bottom:5px}
.cs-mini-post strong{display:block;font-size:.86rem;line-height:1.5}
.cs-mini-post:hover strong{color:#087f5b}
.cs-article-disclaimer{display:flex;gap:12px;margin:32px 0;padding:17px;border-radius:12px;background:#f5f8fa;border:1px solid var(--cs-line)}
.cs-disclaimer-icon{flex:0 0 24px;display:grid;place-items:center;width:24px;height:24px;border-radius:50%;background:#dcebe5;color:#087f5b;font-weight:900;font-size:.8rem}
.cs-article-disclaimer p{margin:0;color:#64748b;font-size:.83rem;line-height:1.7}
.cs-article-share{display:flex;align-items:center;justify-content:space-between;gap:18px;margin:34px 0;padding:22px;border:1px solid #c8f7e5;background:#f4fdf9;border-radius:14px}
.cs-article-share strong,.cs-article-share span{display:block}
.cs-article-share strong{font-size:.95rem;margin-bottom:4px}
.cs-article-share span{font-size:.8rem;color:var(--cs-muted)}
.cs-post-navigation{display:flex;justify-content:space-between;gap:20px;padding-top:24px;border-top:1px solid var(--cs-line);font-size:.84rem;font-weight:750}
.cs-post-navigation a{color:#087f5b;text-decoration:none}
.cs-toc-mobile{display:none}
@media(max-width:1000px){.cs-journal-hero-inner{gap:25px}.cs-post-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.cs-article-layout{grid-template-columns:minmax(0,1fr) 260px;gap:28px}.cs-journal-cta{grid-template-columns:auto 1fr}.cs-journal-cta>.cs-btn{grid-column:2;justify-self:start}}
@media(max-width:760px){.cs-journal-hero-inner{grid-template-columns:1fr;padding:60px 0 50px}.cs-journal-copy h1{font-size:clamp(2.6rem,10vw,4rem)}.cs-hero-visual{min-height:320px;margin-top:10px}.cs-blog-heading-row{align-items:stretch;flex-direction:column}.cs-search-form{flex:initial;width:100%}.cs-article-layout{grid-template-columns:1fr;padding-top:30px}.cs-article-sidebar{position:static;grid-row:1}.cs-article-sidebar .cs-toc-card{display:none}.cs-toc-mobile{display:block;margin:0 0 25px;border:1px solid var(--cs-line);border-radius:12px;padding:14px 17px}.cs-toc-mobile summary{cursor:pointer;font-weight:800}.cs-toc-mobile summary span{float:right;color:#087f5b}.cs-toc-mobile ol{padding-left:20px;margin-bottom:0}.cs-toc-mobile li{margin:8px 0;font-size:.88rem}.cs-article-sidebar .cs-sidebar-recent{display:none}.cs-article-topline{align-items:flex-start;flex-direction:column}.cs-journal-cta{grid-template-columns:1fr;padding:26px}.cs-journal-cta>.cs-btn{grid-column:auto;justify-self:stretch}.cs-article-share{align-items:flex-start;flex-direction:column}.cs-article-share .cs-btn{width:100%}}
@media(max-width:560px){.cs-journal-hero-inner,.cs-blog-main,.cs-journal-cta,.cs-article-layout,.cs-article-topline{width:calc(100% - 32px)}.cs-journal-hero-inner{padding:48px 0 42px}.cs-hero-visual{min-height:290px}.cs-shield-card{padding:23px;width:260px}.cs-chip-top{right:-2px;top:10px}.cs-chip-bottom{left:-2px;bottom:7px}.cs-blog-main{padding:48px 0 55px}.cs-post-grid{grid-template-columns:1fr;gap:18px}.cs-card-content{padding:19px}.cs-category-nav{flex-wrap:nowrap;overflow-x:auto;padding-bottom:15px}.cs-category-nav a{white-space:nowrap}.cs-journal-cta{margin-bottom:45px}.cs-article-header h1{font-size:2.3rem}.cs-article-meta{gap:7px}.cs-article-content{font-size:.98rem}.cs-article-content h2{font-size:1.65rem}.cs-post-navigation{flex-direction:column}.cs-float-chip{font-size:.7rem;padding:10px 11px}}
@media(prefers-reduced-motion:reduce){.cs-blog-shell *{transition:none!important;scroll-behavior:auto!important}}

/* =========================================================
   CYBERSCOP BLOG HOMEPAGE — LAYOUT COMPATIBILITY PATCH
   Appended overrides for index.php and common cs_post_card()
   markup. These rules are scoped to the blog shell.
========================================================= */

.cs-blog-shell {
    width: 100%;
    max-width: 100%;
    overflow: hidden;
    background: #fff;
    color: var(--cs-ink, #10243a);
    font-family: var(--cs-font, Inter, system-ui, sans-serif);
    line-height: 1.65;
    isolation: isolate;
}
.cs-blog-shell,
.cs-blog-shell *,
.cs-blog-shell *::before,
.cs-blog-shell *::after { box-sizing: border-box; }

.cs-blog-shell img { max-width: 100%; }
.cs-blog-shell a { text-decoration-thickness: auto; }
.cs-blog-shell h1,
.cs-blog-shell h2,
.cs-blog-shell h3,
.cs-blog-shell p { overflow-wrap: break-word; }

.cs-blog-shell .cs-journal-hero {
    position: relative;
    isolation: isolate;
    background:
        radial-gradient(ellipse at 82% 16%, rgba(45,212,160,.13), transparent 36%),
        linear-gradient(135deg, #f7fbff 0%, #fff 56%, #f0fbf6 100%);
}
.cs-blog-shell .cs-journal-grid {
    z-index: -1;
    pointer-events: none;
    background-size: 38px 38px;
    opacity: .55;
}
.cs-blog-shell .cs-journal-hero-inner {
    width: min(1200px, calc(100% - 64px));
    min-height: 480px;
    margin-inline: auto;
    padding: 72px 0;
    display: grid;
    grid-template-columns: minmax(0, 1.08fr) minmax(300px, .92fr);
    align-items: center;
    gap: clamp(28px, 5vw, 72px);
}
.cs-blog-shell .cs-journal-copy { min-width: 0; }
.cs-blog-shell .cs-journal-copy h1 {
    margin: 18px 0 20px;
    font-size: clamp(38px, 4.6vw, 62px);
    line-height: 1.08;
    letter-spacing: -.05em;
}
.cs-blog-shell .cs-journal-copy > p {
    max-width: 590px;
    margin-bottom: 0;
    font-size: clamp(15px, 1.45vw, 18px);
    line-height: 1.8;
}
.cs-blog-shell .cs-hero-actions { gap: 14px 20px; }
.cs-blog-shell .cs-btn {
    min-height: 48px;
    padding: 12px 18px;
    line-height: 1.35;
    white-space: normal;
    text-align: center;
}
.cs-blog-shell .cs-proof-points { gap: 10px 18px; }
.cs-blog-shell .cs-hero-visual { min-width: 0; }
.cs-blog-shell .cs-orbit-one { width: min(330px, 90%); }
.cs-blog-shell .cs-orbit-two { width: min(410px, 100%); }
.cs-blog-shell .cs-shield-card { max-width: 100%; }
.cs-blog-shell .cs-chip-top { right: 0; }
.cs-blog-shell .cs-chip-bottom { left: 0; }

/* Article section heading and search */
.cs-blog-shell .cs-blog-main {
    width: min(1200px, calc(100% - 64px));
    margin-inline: auto;
    padding: 68px 0 78px;
    scroll-margin-top: 30px;
}
.cs-blog-shell .cs-blog-heading-row {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 28px;
    margin-bottom: 26px;
}
.cs-blog-shell .cs-blog-heading-row > div { min-width: 0; }
.cs-blog-shell .cs-blog-heading-row h2 {
    margin: 9px 0 8px;
    color: var(--cs-ink);
    line-height: 1.2;
}
.cs-blog-shell .cs-blog-heading-row p {
    max-width: 650px;
    line-height: 1.75;
}
.cs-blog-shell .cs-search-form {
    flex: 0 0 320px;
    width: 320px;
    max-width: 100%;
    min-width: 0;
    min-height: 48px;
    height: 48px;
    display: flex;
    align-items: stretch;
    border-radius: 10px;
}
.cs-blog-shell .cs-search-form input {
    width: 100%;
    min-width: 0;
    height: 100%;
    padding: 0 14px;
    color: var(--cs-ink);
}
.cs-blog-shell .cs-search-form button {
    flex: 0 0 48px;
    width: 48px;
    min-width: 48px;
    height: 100%;
}

/* Category navigation: horizontal scrolling is safer than wrapping
   when WordPress has many categories. */
.cs-blog-shell .cs-category-nav {
    display: flex;
    align-items: center;
    flex-wrap: nowrap;
    gap: 9px;
    max-width: 100%;
    overflow-x: auto;
    padding: 2px 0 17px;
    margin: 24px 0 26px;
    scrollbar-width: thin;
}
.cs-blog-shell .cs-category-nav a {
    flex: 0 0 auto;
    white-space: nowrap;
}

/* Grid */
.cs-blog-shell .cs-post-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    align-items: stretch;
    gap: 24px;
}
.cs-blog-shell .cs-post-grid > * { min-width: 0; }
.cs-blog-shell .cs-post-card {
    min-width: 0;
    height: 100%;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    border: 1px solid var(--cs-line);
    border-radius: 17px;
    background: #fff;
    box-shadow: 0 4px 16px rgba(16,36,58,.035);
    transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.cs-blog-shell .cs-post-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 38px rgba(16,36,58,.09);
    border-color: #b5efdb;
}

/* Support the card/image/body class names commonly used by cs_post_card().
   The original stylesheet styles .cs-card-image and .cs-card-content;
   these aliases cover alternate markup names too. */
.cs-blog-shell .cs-card-image,
.cs-blog-shell .cs-post-image,
.cs-blog-shell .cs-post-card .post-thumbnail,
.cs-blog-shell .cs-post-card .wp-post-image {
    display: block;
    width: 100%;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background: #eafff6;
}
.cs-blog-shell .cs-card-image img,
.cs-blog-shell .cs-post-image img,
.cs-blog-shell .cs-post-card .post-thumbnail img,
.cs-blog-shell .cs-post-card img.wp-post-image {
    display: block;
    width: 100%;
    height: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    object-position: center;
}
.cs-blog-shell .cs-card-content,
.cs-blog-shell .cs-card-body,
.cs-blog-shell .cs-post-body,
.cs-blog-shell .cs-post-content {
    min-width: 0;
    display: flex;
    flex: 1;
    flex-direction: column;
    align-items: flex-start;
    padding: 22px;
}
.cs-blog-shell .cs-card-meta,
.cs-blog-shell .cs-post-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px 10px;
    color: var(--cs-muted);
    font-size: .75rem;
}
.cs-blog-shell .cs-category,
.cs-blog-shell .cs-post-category {
    display: inline-flex;
    align-items: center;
    padding: 5px 9px;
    border-radius: 6px;
    background: var(--cs-mint-soft);
    color: #087f5b;
    font-size: .7rem;
    font-weight: 800;
}
.cs-blog-shell .cs-card-content h2,
.cs-blog-shell .cs-card-content h3,
.cs-blog-shell .cs-post-card h2,
.cs-blog-shell .cs-post-card h3,
.cs-blog-shell .cs-post-title {
    width: 100%;
    margin: 13px 0 10px;
    color: var(--cs-ink);
    font-size: clamp(18px, 1.5vw, 21px);
    line-height: 1.38;
    letter-spacing: -.025em;
    overflow-wrap: anywhere;
}
.cs-blog-shell .cs-card-content h2 a,
.cs-blog-shell .cs-card-content h3 a,
.cs-blog-shell .cs-post-card h2 a,
.cs-blog-shell .cs-post-card h3 a,
.cs-blog-shell .cs-post-title a {
    color: inherit;
    text-decoration: none;
}
.cs-blog-shell .cs-card-content h2 a:hover,
.cs-blog-shell .cs-card-content h3 a:hover,
.cs-blog-shell .cs-post-card h2 a:hover,
.cs-blog-shell .cs-post-card h3 a:hover { color: #087f5b; }
.cs-blog-shell .cs-card-content > p,
.cs-blog-shell .cs-post-excerpt,
.cs-blog-shell .cs-post-card .entry-summary,
.cs-blog-shell .cs-post-card .excerpt {
    width: 100%;
    color: var(--cs-muted);
    font-size: .88rem;
    line-height: 1.75;
    margin: 0 0 18px;
}
.cs-blog-shell .cs-read-link,
.cs-blog-shell .cs-read-more,
.cs-blog-shell .cs-post-card .more-link {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    margin-top: auto;
    color: #087f5b !important;
    font-size: .84rem;
    font-weight: 800;
    text-decoration: none;
}

/* Pagination and no-results state */
.cs-blog-shell .cs-pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 42px;
}
.cs-blog-shell .cs-pagination .page-numbers {
    min-width: 40px;
    min-height: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 7px 12px;
    border: 1px solid var(--cs-line);
    border-radius: 9px;
    background: #fff;
    color: var(--cs-ink);
    text-decoration: none;
}
.cs-blog-shell .cs-pagination .current {
    background: var(--cs-ink);
    border-color: var(--cs-ink);
    color: #fff;
}
.cs-blog-shell .cs-empty-state { margin-inline: auto; }
.cs-blog-shell .cs-empty-state .cs-btn { margin-top: 5px; }

/* Bottom CTA */
.cs-blog-shell .cs-journal-cta {
    width: min(1200px, calc(100% - 64px));
    margin: 0 auto 72px;
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: 24px;
}
.cs-blog-shell .cs-journal-cta > div:nth-child(2) { min-width: 0; }
.cs-blog-shell .cs-journal-cta h2 { line-height: 1.25; }
.cs-blog-shell .cs-journal-cta .cs-btn { white-space: nowrap; }

/* Tablet */
@media (max-width: 1000px) {
    .cs-blog-shell .cs-journal-hero-inner {
        width: calc(100% - 44px);
        grid-template-columns: minmax(0, 1fr) minmax(250px, .8fr);
        gap: 24px;
        padding: 58px 0;
    }
    .cs-blog-shell .cs-journal-copy h1 { font-size: clamp(36px, 5vw, 50px); }
    .cs-blog-shell .cs-blog-main,
    .cs-blog-shell .cs-journal-cta { width: calc(100% - 44px); }
    .cs-blog-shell .cs-blog-heading-row { align-items: flex-start; }
    .cs-blog-shell .cs-post-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .cs-blog-shell .cs-journal-cta { grid-template-columns: auto minmax(0, 1fr); }
    .cs-blog-shell .cs-journal-cta > .cs-btn {
        grid-column: 2;
        justify-self: start;
    }
}

/* Mobile */
@media (max-width: 760px) {
    .cs-blog-shell .cs-journal-hero-inner {
        grid-template-columns: minmax(0, 1fr);
        gap: 8px;
        padding: 48px 0 35px;
    }
    .cs-blog-shell .cs-journal-copy h1 {
        font-size: clamp(35px, 9vw, 48px);
        letter-spacing: -.045em;
    }
    .cs-blog-shell .cs-journal-copy > p { font-size: 15px; }
    .cs-blog-shell .cs-hero-actions { align-items: stretch; flex-direction: column; gap: 12px; }
    .cs-blog-shell .cs-hero-actions .cs-btn { width: 100%; }
    .cs-blog-shell .cs-text-link { justify-content: center; min-height: 36px; }
    .cs-blog-shell .cs-hero-visual { min-height: 300px; margin-top: 10px; }
    .cs-blog-shell .cs-blog-heading-row { flex-direction: column; gap: 20px; }
    .cs-blog-shell .cs-search-form { flex: 0 1 auto; width: 100%; }
    .cs-blog-shell .cs-blog-main { padding: 48px 0 55px; }
    .cs-blog-shell .cs-post-grid { grid-template-columns: minmax(0, 1fr); gap: 18px; }
    .cs-blog-shell .cs-journal-cta { grid-template-columns: minmax(0, 1fr); padding: 25px; }
    .cs-blog-shell .cs-journal-cta > .cs-btn { grid-column: auto; justify-self: stretch; width: 100%; }
}

@media (max-width: 560px) {
    .cs-blog-shell .cs-journal-hero-inner,
    .cs-blog-shell .cs-blog-main,
    .cs-blog-shell .cs-journal-cta { width: calc(100% - 32px); }
    .cs-blog-shell .cs-journal-hero-inner { padding: 43px 0 30px; }
    .cs-blog-shell .cs-hero-visual { min-height: 280px; }
    .cs-blog-shell .cs-shield-card { width: 250px; padding: 22px; }
    .cs-blog-shell .cs-orbit-one { width: 260px; }
    .cs-blog-shell .cs-orbit-two { width: 300px; }
    .cs-blog-shell .cs-float-chip { padding: 9px 10px; font-size: .68rem; }
    .cs-blog-shell .cs-chip-top { top: 8px; right: 0; }
    .cs-blog-shell .cs-chip-bottom { left: 0; bottom: 7px; }
    .cs-blog-shell .cs-card-content,
    .cs-blog-shell .cs-card-body,
    .cs-blog-shell .cs-post-body,
    .cs-blog-shell .cs-post-content { padding: 19px; }
    .cs-blog-shell .cs-journal-cta { margin-bottom: 44px; }
}

@media (prefers-reduced-motion: reduce) {
    .cs-blog-shell *,
    .cs-blog-shell *::before,
    .cs-blog-shell *::after {
        scroll-behavior: auto !important;
        transition-duration: .01ms !important;
        animation-duration: .01ms !important;
    }
}
