/*
Theme Name: Actiknow Developer Labs
Theme URI: https://developerlabs.actiknow.com/
Author: Actiknow
Description: Editorial WordPress theme for Actiknow Developer Labs.
Version: 4.4.0
Text Domain: actiknow-labs
*/
:root{--red:#c63a2b;--red-dark:#a92f25;--ink:#121212;--muted:#626775;--line:#e2e5eb;--soft:#f3f5f9;--white:#fff;--max:1180px}*{box-sizing:border-box}html{scroll-behavior:smooth}body{margin:0;color:var(--ink);background:#fff;font-family:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",Arial,sans-serif;font-size:16px;line-height:1.55}a{color:inherit;text-decoration:none}img{max-width:100%;height:auto}.wrap{width:min(var(--max),calc(100% - 48px));margin:auto}.skip{position:absolute;left:-9999px}.skip:focus{left:12px;top:12px;z-index:999;background:#fff;padding:10px}.masthead{height:72px;border-bottom:1px solid var(--line);background:#fff;display:flex;align-items:center;position:relative;z-index:20}.masthead .wrap{display:flex;align-items:center;gap:36px}.brand{display:flex;align-items:center;gap:7px;font-size:20px;font-weight:850;letter-spacing:.02em;white-space:nowrap}.brand img{max-height:38px;width:auto}.brandmark,.kicker,.meta a,.insights{color:var(--red)}.logo-icon{color:var(--red);font-size:25px}.nav{margin-left:auto;display:flex;align-items:center;gap:25px;font-size:13px;font-weight:650}.nav .cta,.button{background:var(--red);color:#fff!important;padding:13px 21px;border-radius:2px;font-weight:750;display:inline-block}.nav .cta{margin-left:14px}.nav a:hover{color:var(--red)}.menu-toggle{display:none}.feature-hero{padding:64px 0 58px}.feature-grid{display:grid;grid-template-columns:1.02fr .98fr;gap:72px;align-items:center}.feature-copy{max-width:590px}.kicker{font-size:13px;font-weight:800;margin-bottom:16px}.feature-copy h1{font-size:48px;line-height:1.07;letter-spacing:-.035em;margin:0 0 20px;font-weight:850}.feature-copy h1 a:hover{color:var(--red)}.feature-copy>p{font-size:17px;color:#555b68;max-width:590px;margin:0 0 20px}.byline{font-size:12px;color:#5e6470;margin:0 0 26px}.feature-image{height:330px;background:var(--soft);border-radius:7px;overflow:hidden;display:flex;align-items:center;justify-content:center;box-shadow:0 6px 22px rgba(20,25,40,.06)}.feature-image img{width:100%;height:100%;object-fit:cover}.fallback-chart{width:72%;height:58%;border-bottom:2px solid #1a1a1a;display:flex;align-items:flex-end;gap:22px;padding:0 18px}.fallback-chart i{display:block;background:var(--red);width:44px;height:65%}.fallback-chart i:nth-child(2){height:48%}.fallback-chart i:nth-child(3){height:85%}.fallback-chart i:nth-child(4){height:42%;opacity:.75}.fallback-chart i:nth-child(5){height:20%;opacity:.35}.browse{background:var(--soft);border-top:1px solid var(--line);border-bottom:1px solid var(--line);padding:17px 0}.browse-inner{display:flex;gap:10px;align-items:center;overflow:auto;white-space:nowrap;font-size:12px}.browse-inner strong{margin-right:5px}.pill{background:#fff;border:1px solid #dfe3e9;border-radius:999px;padding:8px 16px;color:#5c6270}.pill:hover,.pill.active{background:var(--red);border-color:var(--red);color:#fff}.section{padding:62px 0 70px}.sectionhead{display:flex;align-items:center;margin-bottom:28px;gap:24px}.sectionhead h2{font-size:26px;letter-spacing:-.025em;margin:0;font-weight:820;display:flex;align-items:center;gap:22px}.sectionhead h2:after{content:"";display:block;width:115px;height:2px;background:var(--red)}.sectionhead>a{margin-left:auto;color:var(--red);font-size:12px}.grid{display:grid;grid-template-columns:repeat(3,1fr);gap:24px}.postcard{border:1px solid #dfe3e9;border-radius:5px;overflow:hidden;background:#fff;box-shadow:0 4px 14px rgba(24,30,44,.045)}.postcard .visual{height:158px;background:var(--soft);display:block;overflow:hidden;position:relative}.postcard .visual:empty:before{content:"◯   ◯   ◯";position:absolute;inset:0;display:grid;place-items:center;color:var(--red);font-size:32px;letter-spacing:15px}.postcard .visual img{width:100%;height:100%;object-fit:cover}.postcard .body{padding:20px 21px 18px}.meta{font-size:12px;font-weight:800;color:var(--red);margin-bottom:5px}.postcard h3{font-size:18px;line-height:1.12;letter-spacing:-.018em;margin:0 0 8px}.postcard h3 a:hover{color:var(--red)}.postcard p{font-size:13px;color:#646a77;margin:0 0 13px;line-height:1.55}.card-time{font-size:11px;color:#707581}.popular{background:var(--soft);padding:62px 0 72px;border-top:1px solid var(--line)}.popular-grid{display:grid;grid-template-columns:1.2fr .75fr;gap:70px}.popular-list{list-style:none;padding:0;margin:0;counter-reset:none}.popular-list li{display:flex;gap:22px;padding:16px 0;border-bottom:1px solid #dfe3e9}.popular-list li>span{font-size:12px;color:var(--red);font-weight:800;padding-top:2px}.popular-list li div{display:flex;flex-direction:column}.popular-list li a{font-size:14px;font-weight:700}.popular-list li a:hover{color:var(--red)}.popular-list small{color:#737986;font-size:11px;margin-top:3px}.audit-card{background:#fff;border:1px solid #dfe3e9;border-radius:5px;padding:28px;box-shadow:0 5px 18px rgba(24,30,44,.06);align-self:start}.audit-card h3{font-size:21px;line-height:1.2;margin:0 0 12px}.audit-card p{font-size:13px;color:#666c79}.wide{display:block;text-align:center;margin-top:22px}.brand-strip{background:var(--red);color:#fff;padding:48px 0}.brand-strip .wrap{display:flex;align-items:center;justify-content:space-between;gap:50px}.brand-strip span{font-size:11px;font-weight:800;letter-spacing:.08em}.brand-strip h2{font-size:28px;line-height:1.15;max-width:560px;margin:7px 0 8px}.brand-strip p{margin:0;color:#fff;opacity:.9;font-size:13px}.button.light{background:#fff;color:var(--red)!important;white-space:nowrap}.footer{background:#f3f5fa;padding:56px 0 22px;color:#5d6370}.footergrid{display:grid;grid-template-columns:.8fr .9fr 1fr 1.2fr;gap:62px}.footer h3{color:#111;font-size:11px;letter-spacing:.04em;margin:0 0 18px;padding-bottom:7px;position:relative}.footer h3:after{content:"";position:absolute;left:0;bottom:0;width:42px;height:2px;background:var(--red)}.footer a{display:block;font-size:12px;margin:0 0 10px}.footer a:hover{color:var(--red)}.footer p{font-size:12px;line-height:1.65;margin:0 0 14px}.footer strong{color:#222}.footbottom{border-top:1px solid #dfe3e9;margin-top:48px;padding-top:20px;display:flex;justify-content:space-between;font-size:11px}.footbottom span:last-child{display:flex;gap:24px}.footbottom a{display:inline;margin:0}.article-shell{max-width:820px;margin:0 auto}.single .entry-content{font-size:18px;line-height:1.75}.single .entry-content h2{font-size:31px;line-height:1.2;margin-top:48px}.single .entry-content h3{font-size:23px}.single .entry-content a{color:var(--red);text-decoration:underline}.single .entry-content img{border-radius:5px}.archive-title{padding:54px 0 18px}.archive-title h1{font-size:42px}.pagination{margin-top:40px}.page-numbers{padding:8px 12px;border:1px solid var(--line);margin-right:4px}
@media(max-width:900px){.nav{display:none;position:absolute;top:72px;left:0;right:0;background:#fff;border-bottom:1px solid var(--line);padding:22px 24px;flex-direction:column;align-items:flex-start}.nav.open{display:flex}.nav .cta{margin-left:0}.menu-toggle{display:block;margin-left:auto;background:#fff;border:1px solid var(--line);padding:8px 12px}.feature-grid{grid-template-columns:1fr;gap:35px}.feature-copy h1{font-size:40px}.feature-image{height:300px}.grid{grid-template-columns:repeat(2,1fr)}.popular-grid{grid-template-columns:1fr}.footergrid{grid-template-columns:repeat(2,1fr)}}@media(max-width:620px){.wrap{width:min(100% - 30px,var(--max))}.masthead{height:64px}.feature-hero{padding:42px 0}.feature-copy h1{font-size:34px}.feature-image{height:220px}.grid{grid-template-columns:1fr}.postcard .visual{height:190px}.sectionhead h2:after{display:none}.brand-strip .wrap{align-items:flex-start;flex-direction:column}.footergrid{grid-template-columns:1fr;gap:30px}.footbottom{flex-direction:column;gap:14px}.footbottom span:last-child{flex-wrap:wrap}.browse-inner{padding-bottom:2px}}

.archivehead{padding:55px 0 10px}.archivehead h1{font-size:44px;line-height:1.1;margin:8px 0}.archivehead p{color:var(--muted);margin:0}.eyebrow{font-size:12px;letter-spacing:.09em;font-weight:750}.popular-empty{color:var(--muted);font-size:14px}.popular-admin{font-size:12px;padding:12px;background:#fff;border:1px solid var(--line);border-radius:4px}.postcard .body p{display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:3;overflow:hidden;min-height:60px}.feature-copy>p{display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:4;overflow:hidden}.pagination .page-numbers.current{background:var(--red);color:#fff;border-color:var(--red)}

/* v4.1: keep topic pills scrollable without a visible scrollbar. */
.browse-inner{scrollbar-width:none;-ms-overflow-style:none}
.browse-inner::-webkit-scrollbar{display:none;width:0;height:0}
.browse-inner .pill{flex-shrink:0}

/* v4.2: dedicated editorial article layout; scoped to single posts. */
body.single-post{overflow-x:hidden}
.single-post .article-progress{position:fixed;top:0;left:0;right:0;height:3px;z-index:99999;pointer-events:none}
.single-post .article-progress span{display:block;width:0;height:100%;background:var(--red)}
.single-post .articlehead{max-width:900px;padding-top:66px;padding-bottom:35px;text-align:center}
.single-post .article-kicker{color:var(--red);font-size:12px;font-weight:800;text-transform:uppercase;letter-spacing:.07em;margin-bottom:16px}
.single-post .articlehead h1{font-size:clamp(34px,4.6vw,62px);line-height:1.11;letter-spacing:-.04em;max-width:900px;margin:0 auto 20px;font-weight:850;text-wrap:balance}
.single-post .article-summary{max-width:740px;margin:0 auto 22px;font-size:clamp(16px,1.65vw,20px);line-height:1.6;color:#5b6270}
.single-post .articlemeta{display:flex;justify-content:center;align-items:center;gap:10px;flex-wrap:wrap;font-size:12px;color:#656b77}
.single-post .article-cover{max-width:1100px;height:clamp(260px,39vw,490px);border-radius:7px;overflow:hidden;background:var(--soft);margin-bottom:55px}
.single-post .article-cover img{display:block;width:100%;height:100%;object-fit:cover;object-position:center}
.single-post .articlelayout{max-width:1100px;display:grid;grid-template-columns:minmax(0,730px) minmax(220px,280px);gap:clamp(35px,5vw,80px);align-items:start;padding-bottom:80px}
.single-post .entry{min-width:0;max-width:100%;font-size:17px;line-height:1.85;color:#333b47;overflow-wrap:break-word}
.single-post .entry> :first-child{margin-top:0}
.single-post .entry p,.single-post .entry ul,.single-post .entry ol{margin:0 0 1.35em}
.single-post .entry h2,.single-post .entry h3,.single-post .entry h4{color:#161a22;letter-spacing:-.025em;line-height:1.22;scroll-margin-top:95px}
.single-post .entry h2{font-size:clamp(25px,2.5vw,34px);margin:2.1em 0 .65em}
.single-post .entry h3{font-size:clamp(21px,2vw,26px);margin:1.7em 0 .55em}
.single-post .entry h4{font-size:19px;margin:1.5em 0 .5em}
.single-post .entry a:not(.button){color:var(--red);text-decoration:underline;text-underline-offset:3px}
.single-post .entry ul,.single-post .entry ol{padding-left:1.45em}
.single-post .entry li{padding-left:.15em;margin-bottom:.45em}
.single-post .entry blockquote{margin:30px 0;padding:10px 0 10px 24px;border-left:4px solid var(--red);font-size:1.13em;color:#242a33}
/* Normalize images even when an imported article sets fixed width/height attributes or inline styles. */
.single-post .entry img,.single-post .entry figure img,.single-post .entry .wp-block-image img,.single-post .entry .wp-caption img{display:block;max-width:100%!important;height:auto!important;object-fit:contain}
.single-post .entry figure,.single-post .entry .wp-block-image,.single-post .entry .wp-caption,.single-post .entry .wp-block-gallery,.single-post .entry .wp-block-cover{max-width:100%!important;box-sizing:border-box}
.single-post .entry figure:not(.wp-block-gallery),.single-post .entry .wp-block-image,.single-post .entry .wp-caption{width:100%!important;margin:32px auto!important}
.single-post .entry figure:not(.wp-block-gallery)>img,.single-post .entry .wp-block-image>img,.single-post .entry .wp-caption>img,.single-post .entry .wp-block-image figure img{width:100%!important;height:clamp(220px,32vw,385px)!important;object-fit:contain;background:#f5f6fa;border-radius:6px}
.single-post .entry figure:not(.wp-block-gallery) img{margin-left:auto;margin-right:auto}
.single-post .entry p>img:only-child,.single-post .entry p>a:only-child>img{width:100%!important;height:clamp(220px,32vw,385px)!important;object-fit:contain;background:#f5f6fa;border-radius:6px;margin:30px auto}
.single-post .entry figcaption,.single-post .entry .wp-caption-text{font-size:12px;line-height:1.5;color:#717785;text-align:center;margin:9px 0 0}
.single-post .entry .alignleft,.single-post .entry .alignright,.single-post .entry .aligncenter,.single-post .entry .alignwide,.single-post .entry .alignfull{float:none!important;clear:both;margin-left:auto!important;margin-right:auto!important;max-width:100%!important}
.single-post .entry iframe,.single-post .entry video,.single-post .entry embed{max-width:100%}
.single-post .entry .wp-block-embed__wrapper{position:relative;max-width:100%;overflow:hidden}
.single-post .entry table{display:block;max-width:100%;overflow-x:auto;border-collapse:collapse;margin:28px 0;font-size:14px}
.single-post .entry th,.single-post .entry td{border:1px solid var(--line);padding:11px 14px;text-align:left}
.single-post .entry th{background:var(--soft)}
.single-post .entry pre{max-width:100%;overflow-x:auto;padding:20px;background:#171a20;color:#fff;border-radius:6px;font-size:13px}
.single-post .sidebar{min-width:0}
.single-post .sticky{position:sticky;top:35px;display:grid;gap:22px}
.single-post .sidebarbox{padding:25px;border:1px solid var(--line);border-radius:6px;background:#fff;box-shadow:0 5px 20px rgba(20,25,40,.035)}
.single-post .sidebarbox h2{font-size:17px;line-height:1.25;letter-spacing:-.015em;margin:0 0 15px;color:#171a21}
.single-post .toc{display:grid;gap:0;max-height:55vh;overflow-y:auto}
.single-post .toc a{display:block;padding:8px 0;border-bottom:1px solid #eef0f4;color:#5c6370;font-size:12px;line-height:1.45}
.single-post .toc a:hover{color:var(--red)}
.single-post .article-cta{background:#f5f6fa}
.single-post .article-cta-label{font-size:10px;letter-spacing:.08em;color:var(--red);font-weight:800;display:block;margin-bottom:11px}
.single-post .article-cta p{font-size:13px;line-height:1.65;color:#5c6370;margin:0 0 19px}
.single-post .article-cta .button{font-size:12px;text-align:center;display:block;padding:12px}
.single-post .related{background:var(--soft);padding:60px 0 75px;border-top:1px solid var(--line)}
@media(max-width:850px){.single-post .articlelayout{grid-template-columns:minmax(0,1fr);max-width:760px}.single-post .sidebar{display:none}.single-post .article-cover{margin-bottom:35px}.single-post .articlehead{padding-top:42px}.single-post .entry{font-size:16px}}
@media(max-width:600px){.single-post .articlehead h1{font-size:clamp(31px,9vw,43px)}.single-post .article-cover{height:245px;border-radius:0;width:100%}.single-post .articlelayout{padding-bottom:48px}.single-post .entry figure:not(.wp-block-gallery)>img,.single-post .entry .wp-block-image>img,.single-post .entry .wp-caption>img,.single-post .entry .wp-block-image figure img,.single-post .entry p>img:only-child,.single-post .entry p>a:only-child>img{height:245px!important}.single-post .related{padding:40px 0}}

/* v4.3: category landing pages only. Homepage and single posts are untouched. */
.category-intro{padding:64px 0 35px}
.category-intro .eyebrow{color:var(--red);font-size:11px;letter-spacing:.095em}
.category-intro h1{font-size:clamp(34px,4.6vw,56px);letter-spacing:-.045em;line-height:1.12;margin:14px 0 18px;max-width:900px;text-wrap:balance}
.category-description{max-width:760px;color:#555e6b;font-size:17px;line-height:1.7}
.category-description p{margin:0 0 12px}
.category-description a{color:var(--red);text-decoration:underline}
.category-count{color:#7b818c;font-size:12px;margin-top:15px}
.category-feature{padding:15px 0 58px}
.category-feature-grid{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1.08fr);gap:clamp(30px,5vw,78px);align-items:center}
.category-feature-copy{padding:15px 0}
.category-feature-copy .kicker{font-size:11px;font-weight:800;letter-spacing:.045em;color:var(--red);text-transform:uppercase}
.category-feature-copy h2{font-size:clamp(30px,3.45vw,47px);line-height:1.13;letter-spacing:-.035em;margin:15px 0 18px;text-wrap:balance}
.category-feature-copy h2 a:hover{color:var(--red)}
.category-feature-copy>p{font-size:16px;line-height:1.7;color:#555e6b;margin:0 0 18px;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:4;overflow:hidden}
.category-feature-copy .byline{font-size:12px;color:#747b87;margin-bottom:23px}
.category-feature-image{display:block;height:350px;overflow:hidden;border-radius:6px;background:var(--soft)}
.category-feature-image img{width:100%;height:100%;display:block;object-fit:cover}
.category-feature-image .fallback-chart{height:100%}
.category-articles{padding-top:65px;padding-bottom:80px}
.category-articles .sectionhead{margin-bottom:27px}
.category-articles .postcard{height:100%}
.category-articles .pagination{margin-top:38px}
.category-contact{background:var(--red);color:#fff;padding:43px 0}
.category-contact-inner{display:flex;justify-content:space-between;align-items:center;gap:35px}
.category-contact span{font-size:11px;letter-spacing:.09em;font-weight:800}
.category-contact h2{font-size:clamp(24px,3vw,34px);line-height:1.15;margin:8px 0}
.category-contact p{margin:0;font-size:14px;opacity:.9}
@media(max-width:850px){.category-feature-grid{grid-template-columns:1fr;gap:22px}.category-feature-image{height:310px;grid-row:1}.category-feature{padding-bottom:42px}.category-intro{padding-top:44px}}
@media(max-width:620px){.category-intro{padding:35px 0 22px}.category-description{font-size:15px}.category-feature-image{height:225px}.category-feature-copy h2{font-size:30px}.category-articles{padding:45px 0 55px}.category-contact-inner{align-items:flex-start;flex-direction:column;gap:22px}}

/* v4.4: text-first article cards, first three highlighted per grid. */
.grid > .editorial-card{--card-bg:#fff;--card-fg:#1d1d1d;--card-sub:#59616e;--card-accent:var(--red);--card-border:#e2e5eb;background:var(--card-bg);color:var(--card-fg);border:1px solid var(--card-border);border-radius:6px;min-width:0;overflow:hidden;box-shadow:0 5px 18px rgba(15,20,30,.035);transition:transform .2s ease,box-shadow .2s ease}
.grid > .editorial-card:nth-child(1){--card-bg:var(--red);--card-fg:#fff;--card-sub:#fff0ee;--card-accent:#fff;--card-border:var(--red)}
.grid > .editorial-card:nth-child(2){--card-bg:#202020;--card-fg:#fff;--card-sub:#d4d4d4;--card-accent:#fff;--card-border:#202020}
.grid > .editorial-card:nth-child(3){--card-bg:#eeeeee;--card-fg:#202020;--card-sub:#4e4e4e;--card-accent:var(--red);--card-border:#eeeeee}
.grid > .editorial-card:hover{transform:translateY(-3px);box-shadow:0 12px 28px rgba(15,20,30,.10)}
.grid > .editorial-card .visual{display:none!important}
.grid > .editorial-card .body{display:flex;flex-direction:column;align-items:stretch;min-height:325px;height:100%;padding:29px 29px 24px;background:transparent;color:var(--card-fg)}
.grid > .editorial-card .editorial-card-top{display:flex;align-items:center;justify-content:space-between;margin-bottom:29px;color:var(--card-accent);font-size:11px;font-weight:800;letter-spacing:.08em}
.grid > .editorial-card .editorial-card-arrow{font-size:24px;line-height:1;font-weight:400}
.grid > .editorial-card .meta,.grid > .editorial-card .meta a{color:var(--card-accent)!important;font-size:11px;font-weight:800;line-height:1.4}
.grid > .editorial-card h3{margin:13px 0 13px;font-size:clamp(19px,1.65vw,24px);line-height:1.23;letter-spacing:-.025em}
.grid > .editorial-card h3 a{color:var(--card-fg)!important;text-decoration:none}
.grid > .editorial-card h3 a:hover{text-decoration:underline;text-underline-offset:3px}
.grid > .editorial-card p{color:var(--card-sub)!important;line-height:1.65;font-size:14px;margin:0 0 26px;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:3;overflow:hidden}
.grid > .editorial-card .card-time{display:block;margin-top:auto;padding-top:16px;border-top:1px solid currentColor;color:var(--card-sub)!important;font-size:12px;opacity:.9}
@media(max-width:700px){.grid > .editorial-card .body{min-height:280px;padding:24px}.grid > .editorial-card .editorial-card-top{margin-bottom:20px}}
@media(prefers-reduced-motion:reduce){.grid > .editorial-card{transition:none}.grid > .editorial-card:hover{transform:none}}
