/* INDIAGRAM Blogs components (blogs.indiagram.in, kd 2026-10-17). Uses ONLY the variables in tokens.css.
   Agents: reuse these classes; do not add inline colours or new fonts. Mobile first, no sideways scroll. */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 6rem; }
html, body { overflow-x: clip; max-width: 100%; }
body { margin: 0; font-family: var(--font-sans); font-size: 16px; line-height: 1.6; color: var(--ink); background: var(--cream); }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--brand-700); }
a:hover { color: var(--brand-800); }
:focus-visible { outline: 2px solid var(--brand-500); outline-offset: 2px; border-radius: 6px; }
.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Header */
.bx-header { position: sticky; top: 0; z-index: 40; padding: .75rem var(--gutter) 0; }
.bx-nav { max-width: var(--wrap); margin: 0 auto; display: flex; align-items: center; gap: .75rem; height: var(--header-h); padding: 0 .65rem 0 1.1rem; background: var(--paper); border-radius: 1.4rem; box-shadow: var(--shadow), 0 0 0 1px var(--line); }
.bx-logo { display: flex; align-items: center; gap: .55rem; text-decoration: none; color: var(--ink); flex: none; }
.bx-logo img { height: 2rem; width: auto; }
.bx-logo span { font-family: var(--font-display); font-weight: 700; font-size: .78rem; letter-spacing: .14em; text-transform: uppercase; color: var(--brand-700); background: var(--brand-50); border-radius: var(--radius-pill); padding: .2rem .55rem; }
.bx-links { display: none; flex: 1; justify-content: center; gap: .25rem; }
.bx-links a { font-family: var(--font-display); font-weight: 600; font-size: 15px; color: var(--ink-80); text-decoration: none; padding: .5rem .9rem; border-radius: var(--radius-pill); }
.bx-links a:hover, .bx-links a[aria-current="page"] { background: rgba(20, 18, 16, .06); color: var(--ink); }
.bx-cta { margin-left: auto; }
@media (min-width: 900px) { .bx-links { display: flex; } }

/* Buttons and chips */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .5rem; min-height: 2.75rem; padding: 0 1.15rem; border-radius: var(--radius-pill); font-family: var(--font-display); font-weight: 700; font-size: 15px; text-decoration: none; border: 0; cursor: pointer; transition: transform .3s var(--ease), background .3s var(--ease); }
.btn:active { transform: scale(.98); }
.btn-brand { background: var(--brand-700); color: #fff; }
.btn-brand:hover { background: var(--brand-800); color: #fff; }
.btn-free { background: var(--leaf-600); color: #fff; }
.btn-free:hover { background: var(--leaf-700); color: #fff; }
.btn-ghost { background: var(--paper); color: var(--ink); box-shadow: 0 0 0 1px var(--line); }
.chip { display: inline-flex; align-items: center; gap: .35rem; padding: .45rem .9rem; border-radius: var(--radius-pill); background: var(--paper); box-shadow: 0 0 0 1px var(--line); color: var(--ink); font-size: 14px; font-weight: 600; text-decoration: none; white-space: nowrap; }
.chip[aria-current="page"], .chip.is-on { background: var(--ink); color: #fff; box-shadow: none; }
.chips { display: flex; gap: .5rem; overflow-x: auto; padding-bottom: .25rem; scrollbar-width: none; }
.chips::-webkit-scrollbar { display: none; }
.eyebrow { display: inline-block; font-size: 11px; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; color: var(--brand-700); }
.tag-free { display: inline-block; background: var(--leaf-600); color: #fff; border-radius: var(--radius-pill); padding: .15rem .55rem; font-size: 11px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }

/* Hero (landing and category) */
.bx-hero { padding: 2.25rem 0 1.5rem; }
.bx-hero h1 { font-family: var(--font-display); font-size: clamp(2rem, 6vw, 3.6rem); line-height: 1.04; letter-spacing: -.03em; margin: .6rem 0 .75rem; }
.bx-hero h1 em { font-style: normal; color: var(--brand-700); }
.bx-hero p { color: var(--muted); max-width: 40rem; margin: 0 0 1.25rem; font-size: 17px; }
.bx-search { position: relative; max-width: 38rem; }
.bx-search input { width: 100%; min-height: 3.25rem; padding: 0 1.25rem 0 3rem; border-radius: var(--radius-pill); border: 0; background: var(--paper); box-shadow: 0 0 0 1px var(--line), var(--shadow); font: inherit; }
.bx-search svg { position: absolute; left: 1.1rem; top: 50%; transform: translateY(-50%); width: 1.15rem; height: 1.15rem; color: var(--muted); }
.bx-results { margin-top: .5rem; display: none; background: var(--paper); border-radius: var(--radius); box-shadow: 0 0 0 1px var(--line), var(--shadow); overflow: hidden; }
.bx-results.is-open { display: block; }
.bx-results a { display: block; padding: .75rem 1rem; text-decoration: none; color: var(--ink); border-top: 1px solid var(--line); }
.bx-results a:first-child { border-top: 0; }
.bx-results small { display: block; color: var(--muted); }

/* Page layout: content + right sidebar */
.bx-layout { display: grid; grid-template-columns: minmax(0, 1fr); gap: 2rem; padding: 1rem 0 3rem; }
@media (min-width: 1024px) { .bx-layout { grid-template-columns: minmax(0, 1fr) var(--sidebar-w); gap: 2.5rem; } }
.bx-sidebar > * + * { margin-top: 1.25rem; }
@media (min-width: 1024px) { .bx-sidebar-sticky { position: sticky; top: calc(var(--header-h) + 1.5rem); } }

/* Cards and grid */
.card { background: var(--paper); border-radius: var(--radius); box-shadow: 0 0 0 1px var(--line); padding: 1.25rem; }
.post-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 1rem; }
@media (min-width: 700px) { .post-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.post-card { display: flex; flex-direction: column; background: var(--paper); border-radius: var(--radius); box-shadow: 0 0 0 1px var(--line); overflow: hidden; text-decoration: none; color: var(--ink); transition: transform .4s var(--ease), box-shadow .4s var(--ease); }
.post-card:hover { transform: translateY(-2px); box-shadow: 0 0 0 1px rgba(20, 18, 16, .16), var(--shadow); color: var(--ink); }
.post-card img { aspect-ratio: 16 / 9; object-fit: cover; width: 100%; background: var(--sand); }
.post-card .pc-body { padding: 1rem 1.15rem 1.2rem; }
.post-card h3 { font-family: var(--font-display); font-size: 1.28rem; line-height: 1.25; margin: .4rem 0 .4rem; letter-spacing: -.01em; }
.post-card p { margin: 0; color: var(--muted); font-size: 14.5px; }
.post-meta { font-size: 13px; color: var(--muted); }
.post-card.is-featured { background: var(--ink); color: #fff; }
.post-card.is-featured h3 { font-size: clamp(1.4rem, 3.4vw, 2rem); }
.post-card.is-featured p, .post-card.is-featured .post-meta { color: rgba(255, 255, 255, .72); }
.post-card.is-featured .eyebrow { color: var(--brand-on-dark); }
.mt-1 { margin-top: 1rem; }
.mt-15 { margin-top: 1.5rem; }
@media (min-width: 700px) { .post-card.is-featured { grid-column: 1 / -1; } }
.soon { border: 2px dashed rgba(20, 18, 16, .14); background: transparent; box-shadow: none; }

/* Free CTA (always green) */
.cta-free { position: relative; overflow: hidden; border-radius: var(--radius-lg); padding: 1.35rem; background: linear-gradient(135deg, var(--leaf-600), var(--leaf-700)); color: #fff; }
.cta-free h3, .cta-free .cta-title { font-family: var(--font-display); font-size: 1.3rem; line-height: 1.2; margin: .5rem 0 .35rem; }
.cta-free p { margin: 0 0 1rem; color: rgba(255, 255, 255, .85); font-size: 14.5px; }
.cta-free .btn { background: #fff; color: var(--leaf-700); }
.cta-free-list { display: grid; gap: .5rem; margin: 0 0 1rem; padding: 0; list-style: none; }
.cta-free-list a { display: flex; justify-content: space-between; align-items: center; gap: .5rem; padding: .7rem .9rem; border-radius: var(--radius-sm); background: rgba(255, 255, 255, .14); color: #fff; text-decoration: none; font-weight: 700; font-size: 14.5px; }
.cta-free-list a:hover { background: rgba(255, 255, 255, .22); color: #fff; }
/* Soft paid link (secondary, never louder than the free CTA) */
.cta-paid-soft { border-radius: var(--radius); padding: 1rem 1.15rem; background: var(--paper); box-shadow: 0 0 0 1px var(--line); font-size: 14.5px; }
.cta-paid-soft a { font-weight: 700; }

/* Ads */
.ad { margin: 1.5rem 0; min-width: 0; }
.ad-label { display: block; margin-bottom: .35rem; font-size: 11px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }

/* Article */
.crumbs { display: flex; flex-wrap: wrap; gap: .35rem; font-size: 13.5px; color: var(--muted); margin: 1.25rem 0 .5rem; }
.crumbs a { color: var(--muted); text-decoration: none; }
.crumbs a:hover { color: var(--ink); }
.article h1 { font-family: var(--font-display); font-size: clamp(1.9rem, 5.2vw, 3rem); line-height: 1.08; letter-spacing: -.03em; margin: .5rem 0 .75rem; }
.article .lede { font-size: 18px; color: var(--muted); margin: 0 0 1rem; }
.byline { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem .9rem; font-size: 14px; color: var(--muted); padding-bottom: 1rem; border-bottom: 1px solid var(--line); }
.byline img { width: 2rem; height: 2rem; border-radius: 50%; }
.toc { margin: 1.25rem 0; padding: 1rem 1.15rem; border-radius: var(--radius); background: var(--paper); box-shadow: 0 0 0 1px var(--line); }
.toc summary { cursor: pointer; font-weight: 700; }
.toc ol { margin: .6rem 0 0; padding-left: 1.2rem; }
.toc li { margin: .25rem 0; }
.toc a { color: var(--ink); text-decoration: none; }
.prose { max-width: var(--measure); font-size: 17px; line-height: 1.75; }
.prose h2 { font-family: var(--font-display); font-size: 1.55rem; line-height: 1.2; letter-spacing: -.015em; margin: 2.2rem 0 .7rem; }
.prose h3 { font-family: var(--font-display); font-size: 1.35rem; line-height: 1.25; margin: 1.6rem 0 .5rem; }
.prose p, .prose ul, .prose ol { margin: 0 0 1.1rem; }
.prose li { margin: .3rem 0; }
.prose blockquote { margin: 1.5rem 0; padding: 1rem 1.2rem; border-radius: var(--radius); background: var(--paper); box-shadow: 0 0 0 1px var(--line); color: var(--ink-80); font-size: 1.05em; }
.prose figure { margin: 1.5rem 0; }
.prose figcaption { font-size: 13.5px; color: var(--muted); margin-top: .4rem; }
.prose img { border-radius: var(--radius); }
.prose table { width: 100%; border-collapse: collapse; font-size: 15px; display: block; overflow-x: auto; }
.prose th, .prose td { padding: .6rem .7rem; border-bottom: 1px solid var(--line); text-align: left; }
.prose code { background: var(--sand); padding: .1rem .35rem; border-radius: 6px; font-size: .92em; }
.author-box { display: flex; gap: 1rem; align-items: flex-start; margin: 2rem 0; padding: 1.15rem; border-radius: var(--radius); background: var(--paper); box-shadow: 0 0 0 1px var(--line); }
.author-box img { width: 3.5rem; height: 3.5rem; border-radius: 50%; flex: none; }
.author-box h4 { margin: 0 0 .2rem; font-family: var(--font-display); }
.author-box p { margin: 0; color: var(--muted); font-size: 14.5px; }
.share-bar { display: flex; flex-wrap: wrap; gap: .5rem; margin: 1.5rem 0; }
.related { margin-top: 2rem; }
.related h2, .side-title { font-family: var(--font-display); font-size: 1.15rem; margin: 0 0 .75rem; }
.side-list { list-style: none; margin: 0; padding: 0; }
.side-list a { display: flex; justify-content: space-between; gap: .5rem; padding: .55rem 0; border-bottom: 1px solid var(--line); color: var(--ink); text-decoration: none; font-size: 15px; }
.side-list span { color: var(--muted); font-size: 13px; }
.ugc-note { margin: 1rem 0; padding: .75rem 1rem; border-radius: var(--radius-sm); background: var(--brand-50); color: var(--brand-800); font-size: 14px; }

/* Footer */
.bx-footer { background: var(--ink); color: rgba(255, 255, 255, .72); padding: 2.5rem 0 2rem; margin-top: 2rem; font-size: 14.5px; }
.bx-footer a { color: #fff; text-decoration: none; }
.bx-footer a:hover { text-decoration: underline; }
.bx-footer .cols { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.5rem; }
@media (min-width: 800px) { .bx-footer .cols { grid-template-columns: 1.4fr repeat(3, minmax(0, 1fr)); } }
.bx-footer h4 { color: #fff; font-family: var(--font-display); margin: 0 0 .6rem; font-size: 14px; letter-spacing: .08em; text-transform: uppercase; }
.bx-footer ul { list-style: none; margin: 0; padding: 0; }
.bx-footer li { margin: .35rem 0; }
.bx-footer .footer-logo { height: 2rem; width: auto; }
.bx-footer .small { margin-top: 2rem; font-size: 13px; }

@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }
@media print { .bx-header, .bx-sidebar, .ad, .share-bar, .bx-footer { display: none !important; } }
