/* India SME 100 Awards: blog (listings, articles, comments). Uses the tokens in main.css. */

/* ------------------------------------------------------------ listings */
.blog-list{padding:56px 0 96px}
.btools{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:16px 24px;margin-bottom:40px}
.bcats{display:flex;flex-wrap:wrap;gap:8px}
.bcats a{text-decoration:none;font-weight:700;font-size:14.5px;padding:9px 16px;border-radius:999px;border:1.5px solid var(--line);color:var(--ink)}
.bcats a:hover{border-color:var(--ink)}
.bcats a[aria-current]{background:var(--ink);border-color:var(--ink);color:#fff}
.bsearch{max-width:300px}
.bcount{color:var(--muted);margin:-16px 0 28px}

.bcard-lead{display:grid;grid-template-columns:1.25fr 1fr;gap:40px;align-items:center;padding-bottom:48px;margin-bottom:48px;border-bottom:1px solid var(--line)}
.bcard-lead .bcard-img{margin:0;aspect-ratio:16/10}
.bcard-lead .bcard-title{font-size:clamp(28px,3.4vw,42px);line-height:1.1}
.bcard-lead .bcard-text{font-size:17px;-webkit-line-clamp:4}
@media (max-width:900px){.bcard-lead{grid-template-columns:1fr;gap:20px}}

.bempty{background:var(--paper);border-radius:18px;padding:56px 24px;text-align:center}
.bempty h2{font-size:32px;margin-bottom:10px}
.bempty p{color:var(--muted)}

.bpager{display:flex;flex-wrap:wrap;justify-content:center;gap:6px;margin-top:56px}
.bpager a,.bpager span{min-width:42px;padding:10px 14px;border-radius:10px;border:1.5px solid var(--line);text-decoration:none;font-weight:700;font-size:15px;text-align:center}
.bpager a:hover{border-color:var(--ink)}
.bpager span[aria-current]{background:var(--ink);border-color:var(--ink);color:#fff}
.bpager span:not([aria-current]){border-color:transparent}

.bside-title{font:700 12.5px/1 var(--body);letter-spacing:.12em;text-transform:uppercase;color:var(--muted);margin:0 0 12px}
.btags-block{margin-top:64px;padding-top:32px;border-top:1px solid var(--line)}
.btags{list-style:none;margin:0;padding:0;display:flex;flex-wrap:wrap;gap:8px}
.btags a{display:inline-block;text-decoration:none;font-size:14px;padding:7px 13px;border-radius:8px;background:var(--paper);color:var(--ink)}
.btags a:hover,.btags a[aria-current]{background:var(--gold-soft)}

/* ------------------------------------------------------------ article */
.read-progress{position:fixed;left:0;right:0;top:0;height:3px;z-index:40;pointer-events:none}
.read-progress span{display:block;height:100%;width:100%;background:var(--gold);transform:scaleX(0);transform-origin:0 50%}
.preview-bar{background:var(--gold-soft);color:var(--ink);text-align:center;padding:10px 16px;font-size:14.5px;margin:0}
.preview-bar a{font-weight:700}

.post-hero{background:var(--ink);color:#fff;padding:48px 0 120px;position:relative;overflow:hidden}
.post-hero::after{content:"";position:absolute;right:-140px;top:-140px;width:440px;height:440px;border-radius:50%;border:1.5px solid rgba(212,166,58,.3);pointer-events:none}
.post-hero .wrap{position:relative;z-index:1;max-width:900px}
.post-hero .crumbs ol{margin-bottom:28px}
.post-hero .eyebrow a{text-decoration:none}
.post-hero .eyebrow a:hover{color:var(--gold-soft)}
.post-hero h1{font-size:clamp(36px,5vw,60px);line-height:1.06}
.post-hero .lede{margin-top:20px;color:rgba(255,255,255,.78);font-size:20px;max-width:62ch}
.post-meta{display:flex;align-items:center;gap:14px;margin-top:32px;font-size:15px}
.post-meta .by{display:block;font-weight:700}
.post-meta .by a{text-decoration:none;color:var(--gold-soft)}
.post-meta .by a:hover{text-decoration:underline}
.post-meta .when{display:block;color:rgba(255,255,255,.66);font-size:14px}
.post-meta .when a{color:inherit}
.avatar{flex:none;display:grid;place-items:center;width:44px;height:44px;border-radius:50%;background:var(--gold);color:var(--ink);font:700 15px/1 var(--body)}
.avatar-lg{width:64px;height:64px;font-size:21px}

.post-cover{margin:-88px auto 0;max-width:1148px;position:relative;z-index:2}
.post-cover img{display:block;width:100%;height:auto;border-radius:18px;box-shadow:0 20px 50px rgba(21,23,58,.18)}

.post-layout{display:grid;grid-template-columns:240px minmax(0,1fr);gap:64px;padding-top:56px;padding-bottom:80px;max-width:1100px}
.post-layout.no-toc{grid-template-columns:minmax(0,1fr);max-width:820px}
.post-aside{position:sticky;top:96px;align-self:start;font-size:14.5px}
.toc summary{font:700 12.5px/1 var(--body);letter-spacing:.12em;text-transform:uppercase;color:var(--muted);cursor:pointer;list-style:none;margin-bottom:12px}
.toc summary::-webkit-details-marker{display:none}
.toc ol{list-style:none;margin:0;padding:0;border-left:2px solid var(--line)}
.toc li a{display:block;padding:6px 0 6px 14px;margin-left:-2px;border-left:2px solid transparent;text-decoration:none;color:var(--muted);line-height:1.35}
.toc li.toc-l3 a{padding-left:28px;font-size:13.5px}
.toc li a:hover{color:var(--ink)}
.toc li a.is-active{color:var(--ink);border-left-color:var(--gold);font-weight:700}
.aside-share{margin-top:32px}
@media (max-width:960px){
  .post-layout{grid-template-columns:minmax(0,1fr);gap:32px;padding-top:40px}
  .post-aside{position:static}
  .toc{background:var(--paper);border-radius:14px;padding:16px 18px}
  .toc summary{margin:0}
  .toc[open] summary{margin-bottom:12px}
  .aside-share{display:none}
}

/* article typography */
.post-main{max-width:720px;min-width:0}
.post-body{font-size:18.5px;line-height:1.75;color:#24263f}
.post-body>*+*{margin-top:1.15em}
.post-body>:first-child{margin-top:0}
.post-body h2{font-size:clamp(28px,3.2vw,36px);line-height:1.15;margin-top:1.9em;scroll-margin-top:96px}
.post-body h3{font-size:25px;line-height:1.2;margin-top:1.7em;scroll-margin-top:96px}
.post-body h4{font:700 19px/1.3 var(--body);margin-top:1.6em;scroll-margin-top:96px}
.post-body h2+*,.post-body h3+*,.post-body h4+*{margin-top:.6em}
.post-body a{color:var(--ink);text-decoration:underline;text-decoration-color:var(--gold);text-decoration-thickness:2px;text-underline-offset:3px}
.post-body a:hover{text-decoration-color:var(--ink)}
.post-body ul,.post-body ol{padding-left:1.4em}
.post-body li+li{margin-top:.4em}
.post-body li::marker{color:var(--gold-deep)}
.post-body blockquote{margin-left:0;margin-right:0;padding:4px 0 4px 24px;border-left:3px solid var(--gold);font:italic 400 23px/1.5 var(--display);color:var(--ink)}
.post-body blockquote p+p{margin-top:.6em}
.post-body code{font:400 .88em/1.4 ui-monospace,SFMono-Regular,Consolas,monospace;background:var(--paper);padding:2px 6px;border-radius:5px}
.post-body pre{background:var(--ink);color:#e9eaf6;padding:20px 22px;border-radius:12px;overflow-x:auto;font-size:15px;line-height:1.6}
.post-body pre code{background:none;padding:0;color:inherit}
.post-body hr{border:0;height:1px;background:var(--line);margin:2.4em 0}
.post-body img{display:block;border-radius:12px;height:auto}
.post-body figure{margin-left:0;margin-right:0}
.post-body figcaption{font-size:14.5px;color:var(--muted);margin-top:10px;text-align:center}
.post-body .embed{position:relative;aspect-ratio:16/9;border-radius:12px;overflow:hidden;background:#000}
.post-body .embed iframe{position:absolute;inset:0;width:100%;height:100%;border:0}
.post-body table{width:100%;border-collapse:collapse;font-size:16px;display:block;overflow-x:auto}
.post-body th,.post-body td{text-align:left;padding:10px 14px;border-bottom:1px solid var(--line);vertical-align:top}
.post-body th{background:var(--paper);font-weight:700}
.post-body .callout{background:var(--paper);border-left:3px solid var(--gold);border-radius:0 12px 12px 0;padding:18px 22px}
@media (max-width:600px){.post-body{font-size:17.5px}.post-body blockquote{font-size:20px}}

.post-tags{margin-top:40px}
.post-share{margin-top:32px;padding-top:28px;border-top:1px solid var(--line)}
.share{list-style:none;margin:0;padding:0;display:flex;flex-wrap:wrap;gap:8px}
.share a,.share button{display:inline-block;font:700 14px/1 var(--body);padding:10px 14px;border-radius:999px;border:1.5px solid var(--line);background:#fff;color:var(--ink);text-decoration:none;cursor:pointer}
.share a:hover,.share button:hover{border-color:var(--ink)}
.share-col{flex-direction:column;align-items:flex-start}
.share-col a,.share-col button{border:0;padding:5px 0;background:none;color:var(--muted)}
.share-col a:hover,.share-col button:hover{color:var(--ink)}

.author-box{display:flex;gap:20px;margin-top:40px;padding:28px;background:var(--paper);border-radius:18px}
.author-box p{margin:0}
.author-box .bside-title{margin-bottom:6px}
.author-name{font:700 24px/1.2 var(--display)}
.author-name small{display:block;font:400 14.5px/1.4 var(--body);color:var(--muted);margin-top:2px}
.author-box .author-name+p{margin-top:10px;color:var(--muted);font-size:16px}
.author-box .link{display:inline-block;margin-top:12px;font-size:15px}

.post-nav{display:grid;grid-template-columns:1fr 1fr;gap:16px;margin-top:40px}
.post-nav a{display:block;padding:18px 20px;border:1.5px solid var(--line);border-radius:14px;text-decoration:none;font:700 18px/1.3 var(--display)}
.post-nav a:hover{border-color:var(--ink)}
.post-nav small{display:block;font:700 12.5px/1 var(--body);letter-spacing:.06em;text-transform:uppercase;color:var(--muted);margin-bottom:8px}
.post-nav .pn-next{text-align:right;grid-column:2}
@media (max-width:600px){.post-nav{grid-template-columns:1fr}.post-nav .pn-next{grid-column:1}}

/* comments */
.comments{margin-top:64px;padding-top:40px;border-top:1px solid var(--line)}
.comments h2{font-size:34px;margin-bottom:20px}
.comments .muted{color:var(--muted)}
.clist,.clist-replies{list-style:none;margin:0;padding:0}
.clist>li{padding:20px 0;border-bottom:1px solid var(--line)}
.clist-replies{margin:16px 0 0 58px;border-left:2px solid var(--line);padding-left:20px}
.clist-replies>li+li{margin-top:16px}
.c{display:flex;gap:14px}
.c .avatar{width:40px;height:40px;font-size:14px;background:var(--paper);color:var(--ink)}
.c-staff .avatar{background:var(--ink);color:var(--gold)}
.c-main{min-width:0;flex:1}
.c-head{margin:0;font-size:15px}
.c-badge{display:inline-block;font-size:11.5px;font-weight:700;background:var(--gold-soft);color:var(--ink);border-radius:999px;padding:3px 8px;margin-left:4px;vertical-align:1px}
.c-time{color:var(--muted);text-decoration:none;font-size:13.5px;margin-left:8px}
.c-body{margin-top:6px;font-size:16px;overflow-wrap:anywhere}
.c-body a{color:var(--ink)}
.c-reply{display:inline-block;margin:8px 0 0 54px;font-size:14px;font-weight:700;color:var(--gold-deep)}
.respond{margin-top:40px}
.respond h3{font-size:28px;margin-bottom:16px}
.respond .alert{margin-bottom:16px}
.cform{background:var(--paper);padding:28px}
.cform label{position:relative}
.cform .fine{font-weight:400}
.cform [aria-invalid="true"]{border-color:#B3261E}
.ferr{color:#8A2416;font-size:13.5px;font-weight:700}
.replying{margin:0;font-size:15px}
@media (max-width:600px){.clist-replies{margin-left:20px;padding-left:14px}.c-reply{margin-left:0}.cform{padding:20px}}

.related{padding:80px 0}
.related h2{font-size:clamp(30px,3.6vw,44px);margin-bottom:36px}
