/* ===== Mahishika tokens (named by the colour you see) ===== */
:root{
  --blue-25:#D3E9FB; --blue-500:#2490EA; --blue-800:#1270bf; --blue-900:#1065ac;
  --navy-300:#33408d; --navy-400:#2d397e; --navy-500:#28326F; --navy-700:#1d2451; --navy-800:#181e42; --navy-900:#121733;
  --slate-25:#F2F2F3; --slate-200:#989ca4; --slate-800:#61656d;
  --cyan-25:#D6F3F9; --cyan-500:#32C1E2; --cyan-950:#1787a1;
  --green-25:#B7EBD2; --green-500:#10A55F;
  --red-25:#F8D6D4; --red-500:#DB3226;
  --orange-25:#FDE9D0; --orange-500:#F69313;

  --p-design:var(--orange-500); --p-design-tint:var(--orange-25);
  --p-video:var(--red-500);     --p-video-tint:var(--red-25);
  --p-tech:var(--cyan-500);     --p-tech-tint:var(--cyan-25);
  --p-mkt:var(--green-500);     --p-mkt-tint:var(--green-25);

  /* THIS ARTICLE'S CATEGORY = Tech. Swap these two lines per post. */
  --pc:var(--cyan-950); --pt:var(--p-tech-tint);

  --ink:var(--navy-800); --muted:var(--slate-800); --line:#E1E2E6;
  --primary:var(--blue-800); --primary-hover:var(--blue-900);
  --nav-h:70px; --prog-h:3px;
}
html{scroll-behavior:smooth}
@media (prefers-reduced-motion:reduce){html{scroll-behavior:auto}}
body{font-family:"Poppins","Segoe UI",system-ui,sans-serif; color:var(--ink); line-height:1.7; -webkit-font-smoothing:antialiased; background:#fff}
h1,h2,h3,h4{font-family:inherit; font-weight:700; line-height:1.18; letter-spacing:-0.02em; color:var(--navy-500)}
a{color:var(--primary)} a:hover{color:var(--primary-hover)}
:focus-visible{outline:3px solid var(--blue-500); outline-offset:3px}
.mh-lede{color:var(--muted); font-size:1.05rem; max-width:56ch}

.btn{font-weight:600; border-radius:12px; padding:.8rem 1.3rem; transition:transform .15s ease, background-color .15s ease}
.btn:hover{transform:translateY(-2px)} .btn:focus{box-shadow:none}
.btn-mh{background:var(--primary); border:2px solid var(--primary); color:#fff}
.btn-mh:hover{background:var(--primary-hover); border-color:var(--primary-hover); color:#fff}
.btn-mh-outline{background:transparent; border:2px solid var(--navy-500); color:var(--navy-500)}
.btn-mh-outline:hover{background:var(--navy-500); color:#fff}

/* placeholders */
.ph{background:#FFF3D6; box-shadow:inset 0 -2px 0 var(--orange-500); border-radius:3px; padding:0 .15em}
body.no-ph .ph{background:none; box-shadow:none}
.mh-ribbon{background:var(--navy-900); color:#fff; font-size:.82rem; padding:.55rem 0}
.mh-ribbon .container{display:flex; align-items:center; justify-content:space-between; flex-wrap:wrap}
.mh-ribbon button{background:transparent; border:1.5px solid rgba(255,255,255,.5); color:#fff; border-radius:99px; font:500 .78rem "Poppins",sans-serif; padding:.15rem .9rem; cursor:pointer}
.mh-ribbon button[aria-pressed="true"]{background:#fff; color:var(--navy-900)}

/* navbar + reading progress */
.mh-nav{background:rgba(255,255,255,.95); backdrop-filter:blur(10px); border-bottom:1px solid var(--line); padding:.7rem 0; min-height:var(--nav-h); position:relative}
.mh-nav .navbar-brand img{height:40px; width:auto; display:block}
.mh-nav .nav-link{color:var(--slate-800); font-weight:500; font-size:.95rem; padding-left:.9rem; padding-right:.9rem}
.mh-nav .nav-link:hover,.mh-nav .nav-link.active{color:var(--navy-500)}
.mh-nav .dropdown-menu{border:1px solid var(--line); border-radius:14px; padding:.5rem; box-shadow:0 12px 30px rgba(40,50,111,.12)}
.mh-nav .dropdown-item{border-radius:8px; padding:.55rem .8rem; font-weight:500; font-size:.92rem; display:flex; align-items:center; color:var(--navy-800)}
.mh-nav .dropdown-item i{width:.7rem; height:.7rem; border-radius:50%; margin-right:.7rem; background:var(--dc)}
@media (max-width:991.98px){.mh-nav .btn{margin:.75rem 0 .5rem}}
.mh-prog-track{position:sticky; top:var(--nav-h); z-index:15; height:var(--prog-h); background:var(--line);top:0;}
.mh-prog-bar{height:100%; width:0; background:var(--pc); transition:width .1s linear}

.mh-crumb{background:transparent; padding:1.5rem 0 .5rem; margin:0; font-size:.85rem}
.mh-crumb .breadcrumb-item a{color:var(--slate-800); text-decoration:none}
.mh-crumb .breadcrumb-item a:hover{color:var(--navy-500); text-decoration:underline}
.mh-crumb .breadcrumb-item.active{color:var(--navy-700); font-weight:500}

/* ===== article hero ===== */
.mh-ahero{padding:1.5rem 0 clamp(2rem,4vw,3rem)}
.mh-cat{display:inline-flex; align-items:center; background:var(--pt); color:var(--navy-900); border-radius:99px; padding:.15rem .85rem; font-size:.8rem; font-weight:600}
.mh-cat i{width:.55rem; height:.55rem; border-radius:50%; background:var(--pc); margin-right:.45rem}
.mh-ahero h1{font-size:clamp(2rem,4.4vw,3.1rem); letter-spacing:-0.035em; line-height:1.1; margin:1rem 0 1.1rem; max-width:30pxch}
.mh-ahero .mh-lede{font-size:1.15rem; max-width:60ch}
.mh-ameta{display:flex; align-items:center; flex-wrap:wrap; margin-top:1.75rem}
.mh-ameta .av{width:48px; height:48px; border-radius:50%; background:var(--pt); color:var(--pc); display:flex; align-items:flex-end; justify-content:center; overflow:hidden; flex:none; margin-right:.9rem}
.mh-ameta .av svg{width:80%; height:auto}
.mh-ameta strong{display:block; color:var(--navy-700); font-size:.95rem; line-height:1.3}
.mh-ameta .t{font-size:.8rem; color:var(--slate-800)}
.mh-ameta .t + .t{border-left:1px solid var(--slate-200); margin-left:.5rem; padding-left:.5rem}
.mh-cover{margin-top:2rem; aspect-ratio:21/9; border-radius:18px 18px 18px 90px; display:flex; align-items:flex-end; padding:1rem; font-size:.85rem; color:var(--navy-800); background:repeating-linear-gradient(135deg,var(--pt) 0 16px,#fff 16px 32px); border:1.5px solid var(--pc)}
.mh-cover span{background:#fff; border-radius:99px; padding:.1rem .8rem}

/* ===== article body ===== */
.mh-article{font-size:1.08rem; line-height:1.85; color:var(--navy-800); max-width:72ch}
.mh-article h2{font-size:clamp(1.4rem,2.4vw,1.75rem); margin:2.75rem 0 1rem; scroll-margin-top:calc(var(--nav-h) + var(--prog-h) + 16px)}
.mh-article h2:first-child{margin-top:0}
.mh-article h3{font-size:1.2rem; color:var(--navy-700); margin:2rem 0 .8rem}
.mh-article p{margin:0 0 1.4rem}
.mh-article ul,.mh-article ol{margin:0 0 1.4rem; padding-left:1.4rem}
.mh-article li{margin-bottom:.5rem}
.mh-article a{text-decoration:underline; text-underline-offset:2px}
.mh-article strong{color:var(--navy-700); font-weight:600}
.mh-pull{margin:2.25rem 0; padding:1.4rem 1.6rem; border-left:5px solid var(--pc); background:var(--pt); border-radius:4px 16px 16px 4px; font-size:1.25rem; font-weight:600; line-height:1.5; color:var(--navy-700); letter-spacing:-0.01em}
.mh-figure{margin:2.25rem 0}
.mh-figure .img{aspect-ratio:16/9; border-radius:14px 14px 14px 56px; border:1.5px solid var(--line); display:flex; align-items:center; justify-content:center; font-size:.85rem; color:var(--navy-800); background:repeating-linear-gradient(135deg,var(--slate-25) 0 14px,#fff 14px 28px)}
.mh-figure figcaption{font-size:.85rem; color:var(--slate-800); margin-top:.6rem; text-align:center}
.mh-callout{margin:2.25rem 0; background:var(--slate-25); border-radius:14px 14px 14px 56px; padding:1.3rem 1.5rem; display:flex}
.mh-callout .ic{width:2.25rem; height:2.25rem; border-radius:50%; background:var(--pc); color:#fff; display:flex; align-items:center; justify-content:center; font-weight:700; flex:none; margin-right:1rem; font-size:.95rem}
.mh-callout h4{font-size:1rem; font-weight:700; color:var(--navy-700); margin:0 0 .3rem}
.mh-callout p{margin:0; font-size:.96rem; color:var(--navy-800)}
.mh-tbl{width:100%; border-collapse:separate; border-spacing:0; margin:2.25rem 0; font-size:.95rem; border:1px solid var(--line); border-radius:12px; overflow:hidden}
.mh-tbl th,.mh-tbl td{padding:.8rem 1rem; text-align:left; border-bottom:1px solid var(--line)}
.mh-tbl thead th{background:var(--slate-25); font-weight:700; color:var(--navy-700)}
.mh-tbl tbody tr:last-child td{border-bottom:0}
.mh-tags{display:flex; flex-wrap:wrap; margin-top:2.5rem; padding-top:1.5rem; border-top:1px solid var(--line)}
.mh-tags a{background:var(--slate-25); border-radius:99px; padding:.4rem .95rem; font-size:.85rem; font-weight:500; color:var(--navy-800); margin:0 .5rem .5rem 0; text-decoration:none}
.mh-tags a:hover{background:var(--pt); color:var(--navy-800)}

/* ===== sticky sidebar ===== */
.mh-aside{position:sticky; top:calc(var(--nav-h) + var(--prog-h) + 1.25rem)}
.mh-toc{background:#fff; border:1px solid var(--line); border-radius:16px 16px 16px 48px; padding:1.25rem 1.3rem; margin-bottom:1.25rem}
.mh-toc h3{font-size:.78rem; font-weight:700; letter-spacing:.04em; text-transform:uppercase; color:var(--slate-800); margin-bottom:.85rem}
.mh-toc ol{list-style:none; margin:0; padding:0; border-left:2px solid var(--line)}
.mh-toc li{margin-bottom:.1rem}
.mh-toc a{display:block; padding:.4rem 0 .4rem .9rem; margin-left:-2px; border-left:2px solid transparent; font-size:.88rem; color:var(--slate-800); text-decoration:none; line-height:1.4}
.mh-toc a:hover{color:var(--navy-700)}
.mh-toc a.is-active{border-left-color:var(--pc); color:var(--navy-700); font-weight:600}
.mh-share{background:#fff; border:1px solid var(--line); border-radius:16px; padding:1.1rem 1.3rem; margin-bottom:1.25rem}
.mh-share h3{font-size:.78rem; font-weight:700; letter-spacing:.04em; text-transform:uppercase; color:var(--slate-800); margin-bottom:.8rem}
.mh-share-row{display:flex}
.mh-share-row button,.mh-share-row a{width:40px; height:40px; border-radius:50%; background:var(--slate-25); color:var(--navy-700); display:flex; align-items:center; justify-content:center; margin-right:.55rem; border:0; text-decoration:none; font-size:.8rem; font-weight:700; cursor:pointer; transition:background-color .15s}
.mh-share-row button:hover,.mh-share-row a:hover{background:var(--pt); color:var(--navy-800)}
.mh-share-note{font-size:.8rem; color:var(--slate-800); min-height:1.3em; margin:.6rem 0 0}
.mh-sidecta{background:var(--navy-500); color:#fff; border-radius:16px 16px 16px 56px; padding:1.3rem 1.3rem 1.4rem; margin-bottom:1.25rem}
.mh-sidecta h3{color:#fff; font-size:1.05rem; margin-bottom:.5rem}
.mh-sidecta p{font-size:.86rem; color:var(--blue-25); margin:0 0 1rem; line-height:1.5}
.mh-sidecta .btn{width:100%; padding:.65rem 1rem; font-size:.88rem}
.mh-sidesub{background:var(--pt); border:1.5px solid var(--pc); border-radius:16px; padding:1.2rem 1.3rem}
.mh-sidesub h3{font-size:1rem; margin-bottom:.4rem; color:var(--navy-700)}
.mh-sidesub p{font-size:.85rem; color:var(--navy-800); margin:0 0 .9rem; line-height:1.5}
.mh-sidesub input{width:100%; border:1.5px solid var(--pc); border-radius:10px; padding:.6rem .85rem; font:400 .9rem "Poppins",sans-serif; margin-bottom:.6rem}
.mh-sidesub input:focus{outline:none; box-shadow:0 0 0 3px rgba(36,144,234,.25)}
.mh-sidesub .btn{width:100%; padding:.6rem 1rem; font-size:.86rem}
.mh-sidesub .note{font-size:.78rem; color:var(--navy-800); min-height:1.2em; margin:.5rem 0 0}
@media (max-width:991.98px){.mh-aside{position:static; margin-top:2.5rem}}

/* ===== author bio ===== */
.mh-bio{background:var(--slate-25); border-radius:20px 20px 20px 90px; padding:clamp(1.5rem,3vw,2.1rem); display:flex; align-items:flex-start}
.mh-bio .av{width:84px; height:84px; border-radius:50%; background:var(--pt); color:var(--pc); display:flex; align-items:flex-end; justify-content:center; overflow:hidden; flex:none; margin-right:1.4rem}
.mh-bio .av svg{width:80%; height:auto}
.mh-bio h3{margin-bottom:.1rem}
.mh-bio .role{font-weight:500; color:var(--navy-700); font-size:.9rem; margin:0 0 .7rem}
.mh-bio p{color:var(--muted); font-size:.95rem; margin:0; max-width:60ch; line-height:1.6}
@media (max-width:575.98px){.mh-bio{display:block}.mh-bio .av{margin-bottom:1rem}}

/* ===== related ===== */
.mh-sec{padding:clamp(3rem,6vw,5rem) 0}
.mh-soft{background:var(--slate-25)}
.mh-head{max-width:22ch}
.mh-card{height:100%; display:flex; flex-direction:column; background:#fff; border:1px solid var(--line); border-radius:16px; overflow:hidden; transition:transform .18s, box-shadow .18s}
.mh-card:hover{transform:translateY(-4px); box-shadow:0 16px 34px rgba(40,50,111,.10)}
.mh-card-img{display:flex; align-items:flex-end; aspect-ratio:16/10; padding:.8rem; font-size:.78rem; color:var(--navy-800); text-decoration:none; background:repeating-linear-gradient(135deg,var(--rpt) 0 14px,#fff 14px 28px); border-bottom:1px solid var(--line); border-radius:0 0 0 56px}
.mh-card-img span{background:#fff; border-radius:99px; padding:.05rem .7rem}
.mh-card-body{padding:1.1rem 1.2rem 1.25rem}
.mh-card h3{margin:.7rem 0 .4rem; font-size:1.02rem; line-height:1.3}
.mh-card h3 a{color:var(--navy-700); text-decoration:none}
.mh-card h3 a:hover{color:var(--primary)}
.mh-card p{color:var(--muted); font-size:.88rem; line-height:1.55; margin:0}

/* ===== newsletter ===== */
.mh-lead{background:var(--navy-500); color:#fff}
.mh-lead h2{color:#fff; max-width:17ch}
.mh-lead .mh-lede{color:var(--blue-25)}
.mh-sub{margin-top:1.75rem; display:flex; flex-wrap:wrap; max-width:460px}
.mh-sub input{flex:1 1 200px; border:2px solid #fff; border-radius:12px; padding:.8rem 1rem; font:400 1rem "Poppins",sans-serif; margin:0 .6rem .6rem 0; min-width:0}
.mh-sub input:focus{outline:none; box-shadow:0 0 0 4px rgba(211,233,251,.5)}
.mh-sub-note{font-size:.85rem; color:var(--blue-25); min-height:1.4em; margin:.25rem 0 0; width:100%}
.btn-mh-light{background:#fff; border:2px solid #fff; color:var(--navy-500)}
.btn-mh-light:hover{background:var(--blue-25); border-color:var(--blue-25); color:var(--navy-700)}

/* footer */
.mh-footer{padding:3.5rem 0 2rem; border-top:1px solid var(--line)}
.mh-footer img{height:40px; width:auto}
.mh-footer .tag{color:var(--muted); max-width:34ch; margin-top:1rem; font-size:.92rem}
.mh-footer h4{font-size:.95rem; font-weight:600; letter-spacing:0; margin-bottom:.8rem; color:var(--navy-800)}
.mh-footer ul{list-style:none; margin:0; padding:0}
.mh-footer li{margin-bottom:.4rem; font-size:.92rem}
.mh-footer li a{color:var(--muted); text-decoration:none}
.mh-footer li a:hover{color:var(--navy-500)}
.mh-legal{margin-top:2rem; padding-top:1.4rem; border-top:1px solid var(--line); color:var(--slate-800); font-size:.85rem}

/* ===== social profile links ===== */
.mh-psocial{display:flex; gap:.4rem; margin:.6rem 0 0}
.mh-psocial a{width:32px; height:32px; border-radius:50%; display:inline-flex; align-items:center; justify-content:center; background:var(--pt, var(--slate-25)); color:var(--pc, var(--navy-700)); transition:transform .15s}
.mh-psocial a:hover{transform:translateY(-2px)}
.mh-bio .mh-about p{margin:0 0 .6rem}
.mh-bio .mh-about :last-child{margin-bottom:0}
.mh-bio .mh-about a{color:var(--navy-700); text-decoration:underline}
