/* marketingguy.in blog template: same tokens as the custom pages */
:root{
  --orange:#FF5B35; --ink:#192732; --blue:#0B66C3; --text:#0B0F14; --muted:#4A5866;
  --bg:#F4F6F8; --surface:#FFFFFF; --line:#D6DDE4; --tint:#FFF1EC; --chip:#E8F1FB;
  --band:#192732; --band-fg:#FFFFFF; --band-muted:#AFC0CF; --code:#EEF2F6;
  --serif:'Source Serif 4',Georgia,'Times New Roman',serif;
  --sans:'IBM Plex Sans',system-ui,-apple-system,'Segoe UI',sans-serif;
  --mono:'IBM Plex Mono',ui-monospace,Menlo,Consolas,monospace;
}
@media (prefers-color-scheme:dark){:root:not([data-theme="light"]){
  --ink:#E8EDF2; --blue:#6AA9F0; --text:#E8EDF2; --muted:#A3B2C0;
  --bg:#0E161D; --surface:#16222C; --line:#2B3B48; --tint:#2A1C17; --chip:#1C3147; --code:#1A2833;
  --band:#060B0F; --band-fg:#FFFFFF; --band-muted:#A3B2C0; color-scheme:dark}}
:root[data-theme="dark"]{
  --ink:#E8EDF2; --blue:#6AA9F0; --text:#E8EDF2; --muted:#A3B2C0;
  --bg:#0E161D; --surface:#16222C; --line:#2B3B48; --tint:#2A1C17; --chip:#1C3147; --code:#1A2833;
  --band:#060B0F; --band-fg:#FFFFFF; --band-muted:#A3B2C0; color-scheme:dark}

html{background:var(--bg)}
body.mg-blog-view{background:var(--bg);margin:0;padding:0}
.mg{background:var(--bg);color:var(--text);font-family:var(--sans);font-size:16px;line-height:1.6;-webkit-font-smoothing:antialiased;min-height:100vh;display:flex;flex-direction:column}
.mg main{flex:1}
.mg *,.mg *::before,.mg *::after{box-sizing:border-box}
.mg a{color:var(--blue);text-decoration:none}
.mg :focus-visible{outline:2px solid var(--blue);outline-offset:3px;border-radius:4px}
.mg .wrap{max-width:1160px;margin:0 auto;padding-inline:clamp(16px,4vw,40px)}
.mg .wrap.narrow{max-width:calc(720px + 2 * clamp(16px,4vw,40px))}
.mg :is(h1,h2,h3,h4){font-family:var(--serif);color:var(--ink);margin:0;text-wrap:balance;letter-spacing:-.01em;font-weight:700}
.mg p{margin:0}
.mg img{max-width:100%;height:auto}
.mg .eyebrow{font-size:12.5px;letter-spacing:.14em;text-transform:uppercase;font-weight:600;color:var(--orange)}
.mg .eyebrow a{color:inherit}
.mg .btn{display:inline-flex;align-items:center;justify-content:center;gap:8px;min-height:42px;padding:0 18px;border-radius:8px;font-weight:600;font-size:14px;border:1.5px solid transparent;font-family:var(--sans)}
.mg .btn-primary{background:var(--orange);color:#FFFFFF}
.mg .btn-light{border-color:rgba(255,255,255,.4);color:#FFFFFF}
.mg .btn-light:hover{background:#FFFFFF;color:#192732}

/* nav */
.mg .nav{position:sticky;top:0;z-index:5;background:color-mix(in srgb,var(--bg) 88%,transparent);backdrop-filter:blur(10px);-webkit-backdrop-filter:blur(10px);border-bottom:1px solid var(--line)}
.admin-bar .mg .nav{top:32px}
@media (max-width:782px){.admin-bar .mg .nav{top:0}}
.mg .nav .wrap{display:flex;align-items:center;justify-content:space-between;gap:16px;min-height:64px}
.mg .logo{display:flex;align-items:center}
.mg .logo img{display:block;height:38px;width:auto}
.mg .logo .lw{display:none}
@media (prefers-color-scheme:dark){:root:not([data-theme="light"]) .mg .logo .lb{display:none}:root:not([data-theme="light"]) .mg .logo .lw{display:block}}
:root[data-theme="dark"] .mg .logo .lb{display:none}:root[data-theme="dark"] .mg .logo .lw{display:block}
@media (max-width:420px){.mg .logo img{height:32px}}
.mg .links{display:flex;align-items:center;gap:26px;font-size:14.5px;font-weight:500}
.mg .links a:not(.btn){color:var(--ink)}
.mg .links .btn{min-height:40px;padding:0 16px}
@media (max-width:760px){.mg .links a:not(.btn){display:none}}

/* hero */
.mg .hero{padding-block:clamp(36px,5vw,64px) clamp(28px,4vw,40px)}
.mg .crumbs ol{list-style:none;margin:0;padding:0;display:flex;flex-wrap:wrap;align-items:center;gap:6px;font-size:13.5px;color:var(--muted)}
.mg .crumbs li{display:inline-flex;align-items:center;gap:6px;margin:0}
.mg .crumbs li+li::before{content:"/";color:var(--line)}
.mg .crumbs a{color:var(--muted)}
.mg .crumbs a:hover{color:var(--ink)}
.mg .crumbs [aria-current]{color:var(--ink);font-weight:500}
.mg .hero .eyebrow{margin-top:18px}
.mg .hero h1{font-size:clamp(32px,4.4vw,50px);line-height:1.08;margin-top:10px}
.mg .lede{margin-top:16px;font-size:clamp(17px,1.6vw,19px);color:var(--muted);max-width:62ch}
.mg .meta{margin-top:18px;display:flex;flex-wrap:wrap;gap:8px;font:500 13px var(--mono);color:var(--muted)}
.mg .post-hero{padding-bottom:clamp(20px,3vw,28px);border-bottom:1px solid var(--line);margin-bottom:clamp(24px,3vw,36px)}
.mg .cover{margin:0 0 clamp(24px,3vw,36px)}
.mg .cover img{display:block;width:100%;border-radius:16px;border:1px solid var(--line)}

/* article body */
.mg .prose{font-size:17.5px;line-height:1.75;color:var(--text)}
.mg .prose > * + *{margin-top:1.1em}
.mg .prose h2{font-size:clamp(24px,2.6vw,30px);line-height:1.2;margin-top:2em}
.mg .prose h3{font-size:clamp(19px,2vw,22px);line-height:1.3;margin-top:1.7em}
.mg .prose h4{font-size:18px;margin-top:1.5em}
.mg .prose h2 + *,.mg .prose h3 + *,.mg .prose h4 + *{margin-top:.6em}
.mg .prose a{color:var(--blue);text-decoration:underline;text-underline-offset:3px;text-decoration-thickness:1px}
.mg .prose a:hover{text-decoration-thickness:2px}
.mg .prose strong{color:var(--ink);font-weight:600}
.mg .prose :is(ul,ol){padding-left:1.4em;margin-bottom:0}
.mg .prose li{margin:0}
.mg .prose li + li{margin-top:.45em}
.mg .prose li::marker{color:var(--orange)}
.mg .prose code{font-family:var(--mono);font-size:.84em;background:var(--code);border:1px solid var(--line);border-radius:6px;padding:.1em .4em;color:var(--ink);word-break:break-word}
.mg .prose pre{background:var(--band);color:#E8EDF2;border-radius:12px;padding:18px 20px;overflow-x:auto;font-size:14.5px;line-height:1.7}
.mg .prose pre code{background:none;border:0;padding:0;color:inherit;font-size:inherit;word-break:normal}
.mg .prose blockquote{margin-left:0;margin-right:0;padding:4px 0 4px 20px;border-left:3px solid var(--orange);color:var(--ink);font-family:var(--serif);font-size:1.12em}
.mg .prose blockquote p{margin:0}
.mg .prose hr{border:0;border-top:1px solid var(--line);margin-block:2em}
.mg .prose figure{margin-left:0;margin-right:0}
.mg .prose figcaption{font-size:14px;color:var(--muted);margin-top:8px}
.mg .prose img{border-radius:12px}
.mg .prose .wp-block-table{overflow-x:auto;border:1px solid var(--line);border-radius:12px;background:var(--surface)}
.mg .prose table{width:100%;border-collapse:collapse;font-size:15px;line-height:1.55;margin:0;border:0;min-width:520px}
.mg .prose th,.mg .prose td{text-align:left;vertical-align:top;padding:11px 14px;border:0;border-bottom:1px solid var(--line)}
.mg .prose tr:last-child td{border-bottom:0}
.mg .prose thead th{font:600 12px var(--sans);letter-spacing:.08em;text-transform:uppercase;color:var(--ink);background:var(--chip);border-bottom:1px solid var(--line)}
.mg .prose table code{white-space:nowrap}

/* author box */
.mg .author{display:flex;gap:16px;align-items:flex-start;margin-top:clamp(40px,6vw,56px);padding:22px 24px;background:var(--surface);border:1px solid var(--line);border-top:4px solid var(--orange);border-radius:16px}
.mg .author-mark{flex:none;width:48px;height:48px;border-radius:12px;display:grid;place-items:center;background:var(--tint);color:var(--orange);font:700 22px var(--serif)}
.mg .author-name{font-weight:600;color:var(--ink)}
.mg .author-bio{margin-top:4px;color:var(--muted);font-size:15px}
.mg .author-links{margin-top:10px;display:flex;flex-wrap:wrap;gap:18px;font-weight:600;font-size:14.5px}
.mg .author-links a{color:var(--orange)}

/* lists of posts */
.mg .related{padding-block:clamp(48px,7vw,80px) 0}
.mg .list,.mg .related{padding-bottom:clamp(56px,8vw,96px)}
.mg .list-h{display:flex;justify-content:space-between;align-items:baseline;gap:12px;padding-bottom:14px;margin-bottom:20px;border-bottom:1px solid var(--line)}
.mg .list-h h2{font:600 12px var(--sans);letter-spacing:.14em;text-transform:uppercase;color:var(--ink)}
.mg .list-h span{font-size:13px;color:var(--muted)}
.mg .grid{list-style:none;margin:0;padding:0;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:20px}
@media (max-width:980px){.mg .grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media (max-width:600px){.mg .grid{grid-template-columns:minmax(0,1fr)}}
.mg .card{height:100%;margin:0}
.mg .card a{display:flex;flex-direction:column;height:100%;background:var(--surface);border:1px solid var(--line);border-top:4px solid var(--orange);border-radius:16px;padding:24px;color:inherit;box-shadow:0 1px 2px rgba(25,39,50,.06),0 12px 28px rgba(25,39,50,.06);transition:transform .15s,box-shadow .15s}
.mg .card a:hover{transform:translateY(-2px);box-shadow:0 1px 2px rgba(25,39,50,.06),0 18px 40px rgba(25,39,50,.12)}
.mg .tags{display:flex;flex-wrap:wrap;gap:6px}
.mg .tags span{font:500 11.5px var(--mono);color:var(--ink);background:var(--chip);border-radius:999px;padding:3px 10px}
.mg .card h3{font-size:21px;line-height:1.25;margin-top:14px}
.mg .card p{font-size:14.5px;color:var(--muted);margin-top:8px}
.mg .go{margin-top:auto;padding-top:20px;font-weight:600;font-size:14.5px;color:var(--orange)}
.mg .soon{display:flex;flex-direction:column;justify-content:center;gap:6px;min-height:160px;border:1.5px dashed var(--line);border-radius:16px;padding:24px}
.mg .soon h3{font-size:19px}
.mg .soon p{font-size:14px;color:var(--muted)}
.mg .pager{margin-top:28px}
.mg .pager ul{list-style:none;margin:0;padding:0;display:flex;flex-wrap:wrap;gap:8px}
.mg .pager li{margin:0}
.mg .pager :is(a,span){display:inline-flex;align-items:center;min-height:40px;padding:0 14px;border:1px solid var(--line);border-radius:8px;background:var(--surface);color:var(--ink);font-weight:500;font-size:14px}
.mg .pager .current{background:var(--ink);color:var(--bg);border-color:var(--ink)}
@media (prefers-reduced-motion:reduce){.mg .card a{transition:none}.mg .card a:hover{transform:none}}

/* diagnosis strip + footer */
.mg .nudge{background:var(--band)}
.mg .nudge .wrap{display:flex;flex-wrap:wrap;justify-content:space-between;align-items:center;gap:16px 32px;padding-block:clamp(28px,4vw,40px)}
.mg .nudge h2{font-size:clamp(18px,1.9vw,21px);line-height:1.3;color:var(--band-fg)}
.mg .nudge h2 em{font-style:normal;color:var(--orange)}
.mg .nudge p{color:var(--band-muted);margin-top:4px;font-size:14.5px;max-width:62ch}
.mg .foot{background:var(--band);border-top:1px solid rgba(255,255,255,.1);color:var(--band-muted);font-size:13px}
.mg .foot .wrap{display:flex;flex-wrap:wrap;justify-content:space-between;gap:8px;padding-block:20px}
.mg .foot a{color:var(--band-fg)}

/* guard: keeps any leftover theme or plugin CSS from restyling these views */
body .mg :is(p,li,span,a,div,td,th,time){font-family:var(--sans)!important}
body .mg :is(h1,h2,h3,h4,.author-mark,.prose blockquote){font-family:var(--serif)!important}
body .mg :is(.meta,.meta *,.tags span,.prose code,.prose pre){font-family:var(--mono)!important}
body .mg :is(.list-h h2){font-family:var(--sans)!important}
body .mg :is(h1,h2,h3,h4){color:var(--ink)!important}
body .mg .nudge h2{color:var(--band-fg)!important}
body .mg .nudge h2 em{color:var(--orange)!important}
body .mg a.btn-primary{color:#FFFFFF!important;background:var(--orange)!important}
body .mg a.btn-light{color:#FFFFFF!important}
body .mg a.btn-light:hover{color:#192732!important;background:#FFFFFF!important}

/* Resources dropdown (same as the home page) */
.mg .dd{position:relative}
.mg .dd-t{display:inline-flex;align-items:center;gap:6px;background:none;border:0;padding:8px 0;font:500 14.5px var(--sans);color:var(--ink);cursor:pointer}
.mg .dd-t svg{transition:transform .2s}
.mg .dd.open .dd-t svg{transform:rotate(180deg)}
.mg .dd-m{position:absolute;top:100%;left:50%;transform:translateX(-50%);min-width:220px;margin-top:8px;padding:6px;background:var(--surface);border:1px solid var(--line);border-radius:12px;box-shadow:0 14px 34px rgba(25,39,50,.14);display:none;flex-direction:column;z-index:20}
.mg .dd-m::before{content:"";position:absolute;left:0;right:0;top:-12px;height:12px}
.mg .dd.open .dd-m,.mg .dd:hover .dd-m,.mg .dd:focus-within .dd-m{display:flex}
.mg .dd-m a{display:flex;flex-direction:column;gap:1px;padding:10px 12px;border-radius:8px}
.mg .dd-m a:hover,.mg .dd-m a:focus-visible,.mg .dd-m a[aria-current]{background:var(--chip)}
.mg .dd-m b{font-size:14.5px;font-weight:600;color:var(--ink)}
.mg .dd-m span{font-size:12.5px;color:var(--muted)}
@media (max-width:760px){.mg .dd{display:none}}
@media (prefers-reduced-motion:reduce){.mg .dd-t svg{transition:none}}
body .mg .dd-t{color:var(--ink)!important;font-family:var(--sans)!important;background:none!important;box-shadow:none!important}
body .mg .dd-t.is-current,body .mg .dd-t:hover,body .mg .dd.open .dd-t{color:var(--orange)!important}
body .mg .dd-m a:hover b{color:var(--orange)!important}

/* topic filters on the Knowledge hub */
.mg .topics{display:flex;flex-wrap:wrap;gap:8px;margin-top:22px}
.mg .topics a{display:inline-flex;align-items:center;min-height:34px;padding:0 14px;border-radius:999px;border:1px solid var(--line);background:var(--surface);color:var(--ink);font-size:14px;font-weight:500}
.mg .topics a:hover{border-color:var(--ink)}
.mg .topics a[aria-current]{background:var(--ink);border-color:var(--ink);color:var(--bg)}

/* footer links */
.mg .foot-links{display:flex;flex-wrap:wrap;gap:18px}


/* author band on the Knowledge hub and topic pages (v1.4) */
.mg .author-band{padding-bottom:clamp(56px,8vw,96px)}
.mg .author-band .author{margin-top:0;max-width:820px}
