/* =========================================================
   Hindi Kahani Mela — clean white theme
   ========================================================= */
:root {
  --bg: #ffffff;
  --bg-2: #f6f7f9;
  --surface: #ffffff;
  --ink: #111827;
  --ink-2: #374151;
  --muted: #6b7280;
  --line: #e5e7eb;
  --brand: #1d4ed8;
  --brand-2: #1e40af;
  --brand-soft: #eff4ff;
  --gold: #1d4ed8;
  --dark: #111827;
  --shadow-sm: 0 1px 2px rgba(17, 24, 39, .05);
  --shadow: 0 4px 16px rgba(17, 24, 39, .08);
  --r: 14px;
  --r-sm: 10px;
  --f-ui: 'Hind', 'Segoe UI', system-ui, sans-serif;
  --f-serif: 'Hind', 'Segoe UI', system-ui, sans-serif;
  --story-size: 19px;
  --wrap: 1540px; /* 1500px content + 2×20px gutter */
  color-scheme: light;
}
:root[data-theme="dark"] {
  --bg: #0f1115; --bg-2: #171a21; --surface: #171a21; --ink: #f3f4f6; --ink-2: #d1d5db; --muted: #9ca3af;
  --line: #2a2f3a; --brand: #6b9bff; --brand-2: #8db1ff; --brand-soft: #1b2440; --dark: #0b0d11;
  --shadow-sm: 0 1px 2px rgba(0,0,0,.4); --shadow: 0 10px 30px rgba(0,0,0,.45);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 17px/1.65 var(--f-ui); -webkit-font-smoothing: antialiased; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; }
h1, h2, h3, h4 { font-family: var(--f-serif); line-height: 1.3; margin: 0; letter-spacing: -.005em; }
svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex-shrink: 0; }
.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }
.wrap-narrow { width: 100%; max-width: 760px; margin: 0 auto; padding: 0 20px; }
.wrap-wide { width: 100%; max-width: 1040px; margin: 0 auto; padding: 0 20px; }
.muted { color: var(--muted); }
.skip { position: absolute; left: -999px; top: 8px; background: var(--brand); color: #fff; padding: 8px 14px; border-radius: 8px; z-index: 999; }
.skip:focus { left: 8px; }
:focus-visible { outline: 3px solid color-mix(in srgb, var(--brand) 55%, transparent); outline-offset: 2px; border-radius: 6px; }

/* ---------- Buttons / small parts ---------- */
.btn { display: inline-flex; align-items: center; gap: 8px; background: var(--brand); color: #fff; font-weight: 600; padding: 11px 22px; border-radius: 999px; border: 0; transition: background .2s, transform .2s; white-space: nowrap; }
.btn:hover { background: var(--brand-2); transform: translateY(-1px); }
.btn svg { width: 18px; height: 18px; }
.btn-ghost { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--line); }
.btn-ghost:hover { background: var(--bg-2); }
.btn-white { background: #fff; color: var(--brand-2); }
.btn-white:hover { background: #fff5ee; }
.btn-ghost-light { background: rgba(255,255,255,.08); color: #fff; box-shadow: inset 0 0 0 1px rgba(255,255,255,.2); }
.btn-ghost-light:hover { background: rgba(255,255,255,.16); }
.btn-row { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.icon-btn { width: 42px; height: 42px; display: grid; place-items: center; border-radius: 12px; border: 0; background: transparent; color: var(--ink-2); transition: background .2s, color .2s; }
.icon-btn:hover { background: var(--bg-2); color: var(--ink); }
.eyebrow { display: inline-block; font: 700 13px/1 var(--f-ui); letter-spacing: .06em; text-transform: uppercase; color: var(--brand); margin-bottom: 8px; }
.pill { display: inline-flex; align-items: center; gap: 6px; background: color-mix(in srgb, var(--c, var(--brand)) 13%, var(--surface)); color: var(--c, var(--brand)); font-weight: 700; font-size: 14px; padding: 5px 13px; border-radius: 999px; }
.cat-label { display: inline-flex; gap: 5px; color: var(--c); font-weight: 700; font-size: 13.5px; }
.cat-label:hover { text-decoration: underline; }
.meta { display: inline-flex; align-items: center; flex-wrap: wrap; gap: 8px; color: var(--muted); font-size: 14px; }
.meta .dot { width: 3px; height: 3px; border-radius: 50%; background: currentColor; opacity: .6; }
.meta-light { color: rgba(255,255,255,.85); }
.chip-row { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.chip { display: inline-flex; align-items: center; gap: 6px; background: var(--surface); border: 1px solid var(--line); padding: 6px 14px; border-radius: 999px; font-weight: 600; font-size: 15px; transition: border-color .2s, color .2s; }
.chip:hover { border-color: var(--brand); color: var(--brand); }
.chip em { font-style: normal; color: var(--muted); font-weight: 500; font-size: 13px; }

/* ---------- Header ---------- */
.hdr { position: sticky; top: 0; z-index: 60; background: color-mix(in srgb, var(--bg) 88%, transparent); backdrop-filter: saturate(1.6) blur(14px); -webkit-backdrop-filter: saturate(1.6) blur(14px); border-bottom: 1px solid var(--line); }
.hdr-in { display: flex; align-items: center; gap: 28px; height: 72px; }
.logo { display: flex; align-items: center; gap: 12px; flex-shrink: 0; }
.logo img { height: 46px; width: auto; }
.logo-mark { color: var(--brand); display: block; }
.logo-mark svg { width: 42px; height: 42px; stroke: none; }
.logo-text { display: flex; flex-direction: column; line-height: 1.15; }
.logo-text b { font: 800 22px/1.15 var(--f-serif); color: var(--ink); }
.logo-text small { font-size: 12.5px; color: var(--muted); max-width: 210px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.nav { display: flex; align-items: center; gap: 2px; margin-left: auto; }
.nav > a, .dd-btn { padding: 8px 13px; border-radius: 10px; font-weight: 600; font-size: 16px; color: var(--ink-2); background: none; border: 0; display: inline-flex; align-items: center; gap: 4px; transition: color .2s, background .2s; white-space: nowrap; }
.nav > a:hover, .dd-btn:hover { color: var(--ink); background: var(--bg-2); }
.nav > a.on { color: var(--brand); }
.dd { position: relative; }
.dd-btn svg { width: 12px; height: 12px; }
.dd-menu { position: absolute; right: 0; top: calc(100% + 8px); background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow); border-radius: 14px; padding: 8px; min-width: 240px; opacity: 0; visibility: hidden; transform: translateY(-6px); transition: .18s; }
.dd:hover .dd-menu, .dd.open .dd-menu { opacity: 1; visibility: visible; transform: none; }
.dd-menu a { display: flex; align-items: center; gap: 10px; padding: 9px 12px; border-radius: 10px; font-weight: 600; }
.dd-menu a:hover { background: var(--bg-2); }
.dd-menu em, .drawer-link em { margin-left: auto; font-style: normal; font-size: 13px; color: var(--muted); font-weight: 500; }
.hdr-act { display: flex; align-items: center; gap: 4px; }
.menu-btn { display: none; }
.i-sun { display: none; }
:root[data-theme="dark"] .i-sun { display: block; } :root[data-theme="dark"] .i-moon { display: none; }
.read-bar { position: absolute; left: 0; bottom: -1px; height: 3px; width: 0; background: linear-gradient(90deg, var(--gold), var(--brand)); transition: width .1s linear; }

/* Drawer */
.drawer { position: fixed; inset: 0; z-index: 90; background: rgba(20, 12, 6, .45); opacity: 0; visibility: hidden; transition: .25s; }
.drawer.open { opacity: 1; visibility: visible; }
.drawer-panel { position: absolute; right: 0; top: 0; bottom: 0; width: min(340px, 88vw); background: var(--surface); padding: 14px 16px 30px; overflow-y: auto; transform: translateX(100%); transition: transform .28s ease; }
.drawer.open .drawer-panel { transform: none; }
.drawer-head { display: flex; justify-content: space-between; align-items: center; padding: 4px 4px 12px; font-size: 18px; }
.drawer-link { display: flex; align-items: center; gap: 10px; padding: 12px; border-radius: 12px; font-weight: 600; font-size: 17px; }
.drawer-link:hover { background: var(--bg-2); }
.drawer-title { font-size: 13px; font-weight: 700; letter-spacing: .06em; color: var(--muted); padding: 18px 12px 6px; text-transform: uppercase; }

/* Search overlay */
.search-ov { position: fixed; inset: 0; z-index: 95; background: rgba(20, 12, 6, .55); backdrop-filter: blur(6px); display: flex; justify-content: center; align-items: flex-start; padding: 12vh 16px 0; opacity: 0; visibility: hidden; transition: .2s; }
.search-ov.open { opacity: 1; visibility: visible; }
.search-box { width: 100%; max-width: 680px; background: var(--surface); border-radius: 20px; box-shadow: 0 30px 80px rgba(0,0,0,.3); padding: 10px; transform: translateY(-10px); transition: .2s; }
.search-ov.open .search-box { transform: none; }
.search-box form { display: flex; align-items: center; gap: 10px; padding: 6px 6px 6px 16px; }
.search-box form > svg { color: var(--muted); width: 22px; height: 22px; }
.search-box input { flex: 1; min-width: 0; border: 0; outline: 0; background: transparent; font: 500 20px var(--f-ui); color: var(--ink); padding: 10px 0; }
.search-tags { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; border-top: 1px solid var(--line); padding: 14px 16px 8px; font-size: 14px; color: var(--muted); }
.search-tags a { background: var(--bg-2); color: var(--ink-2); padding: 4px 12px; border-radius: 999px; font-weight: 600; }
.search-tags a:hover { color: var(--brand); }

/* ---------- Blocks ---------- */
.block { padding-top: 64px; }
.block-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 26px; }
.block-head h2 { font-size: clamp(26px, 3vw, 34px); font-weight: 800; }
.link-more { font-weight: 700; color: var(--brand); white-space: nowrap; padding-bottom: 4px; }
.link-more:hover { color: var(--brand-2); }
.grid { display: grid; gap: 28px 24px; }
.g-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.g-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.g-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }

/* ---------- Cards ---------- */
.card { display: flex; flex-direction: column; min-width: 0; }
.card-media { display: block; border-radius: var(--r); overflow: hidden; background: var(--bg-2); aspect-ratio: 16 / 10; box-shadow: var(--shadow-sm); }
.card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s cubic-bezier(.2,.7,.2,1); }
.card:hover .card-media img { transform: scale(1.05); }
.card-body { padding: 14px 2px 0; display: flex; flex-direction: column; gap: 6px; align-items: flex-start; }
.card-title { font-size: 20px; font-weight: 700; line-height: 1.4; }
.card-title a { background: linear-gradient(currentColor, currentColor) 0 100% / 0 1.5px no-repeat; transition: background-size .3s, color .2s; }
.card:hover .card-title a { color: var(--brand); }
.card-sub { margin: -2px 0 0; color: var(--muted); font-size: 14.5px; line-height: 1.4; }
.card-ex { margin: 0; color: var(--ink-2); font-size: 15.5px; line-height: 1.6; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.card .meta { font-size: 13.5px; margin-top: 2px; }

.card-row { flex-direction: row; gap: 14px; align-items: center; padding: 14px 0; border-bottom: 1px solid var(--line); }
.card-row:last-child { border-bottom: 0; }
.card-row .card-media { width: 112px; flex-shrink: 0; aspect-ratio: 1; border-radius: 14px; }
.card-row .card-body { padding: 0; gap: 4px; }
.card-row .card-title { font-size: 17px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

/* ---------- Hero ---------- */
.hero { display: grid; grid-template-columns: minmax(0, 1.75fr) minmax(0, 1fr); gap: 36px; padding-top: 32px; }
.hero-main { position: relative; border-radius: 26px; overflow: hidden; min-height: 520px; display: flex; align-items: flex-end; background: var(--dark); box-shadow: var(--shadow); isolation: isolate; }
.hero-img { position: absolute; inset: 0; z-index: -1; }
.hero-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s cubic-bezier(.2,.7,.2,1); }
.hero-main:hover .hero-img img { transform: scale(1.04); }
.hero-img::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(15,8,3,0) 20%, rgba(15,8,3,.55) 55%, rgba(15,8,3,.92) 100%); }
.hero-text { padding: 40px; color: #fff; max-width: 760px; }
.hero-text .pill { background: rgba(255,255,255,.95); }
.hero-text h1 { font-size: clamp(30px, 4vw, 48px); font-weight: 800; margin: 16px 0 6px; line-height: 1.22; text-wrap: balance; }
.hero-text h1 a:hover { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 6px; }
.hero-sub { margin: 0 0 10px; font-size: 17px; color: rgba(255,255,255,.75); }
.hero-ex { margin: 0 0 24px; font-size: 17.5px; color: rgba(255,255,255,.88); max-width: 620px; }
.hero-foot { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; }
.hero-side { background: var(--surface); border-radius: 22px; padding: 22px 22px 8px; box-shadow: var(--shadow-sm); border: 1px solid var(--line); align-self: stretch; }
.side-head { padding-bottom: 4px; border-bottom: 2px solid var(--ink); margin-bottom: 4px; }

/* ---------- Category cards ---------- */
.cat-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 16px; }
.cat-card { position: relative; border-radius: var(--r); overflow: hidden; min-height: 150px; padding: 18px; display: flex; flex-direction: column; justify-content: flex-end; color: #fff; background: var(--c); isolation: isolate; box-shadow: var(--shadow-sm); transition: transform .25s, box-shadow .25s; }
.cat-card img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; transition: transform .5s; }
.cat-card::before { content: ''; position: absolute; inset: 0; z-index: -1; background: linear-gradient(160deg, color-mix(in srgb, var(--c) 55%, transparent) 0%, color-mix(in srgb, var(--c) 92%, #000) 100%); }
.cat-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.cat-card:hover img { transform: scale(1.08); }
.cat-ico { position: absolute; top: 14px; left: 14px; font-size: 22px; width: 44px; height: 44px; display: grid; place-items: center; background: rgba(255,255,255,.22); border-radius: 12px; backdrop-filter: blur(4px); }
.cat-name { font: 800 19px/1.25 var(--f-serif); }
.cat-n { font-size: 14px; opacity: .88; }

/* ---------- Split latest/popular ---------- */
.split { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 48px; align-items: start; }
.rank-box { background: var(--dark); color: #f6eee6; border-radius: 24px; padding: 28px; position: sticky; top: 96px; }
.rank-box .eyebrow { color: var(--gold); }
.rank-box h2 { font-size: 30px; font-weight: 800; margin-bottom: 10px; color: #fff; }
.rank { list-style: none; margin: 0; padding: 0; }
.rank li { display: flex; gap: 16px; padding: 16px 0; border-bottom: 1px solid rgba(255,255,255,.1); }
.rank li:last-child { border-bottom: 0; padding-bottom: 0; }
.rank-n { font: 800 30px/1 var(--f-serif); color: transparent; -webkit-text-stroke: 1.5px var(--gold); min-width: 42px; }
.rank a { display: block; font: 700 17px/1.45 var(--f-serif); color: #fff; margin-bottom: 4px; }
.rank a:hover { color: var(--gold); }
.rank .meta { color: rgba(255,255,255,.55); font-size: 13px; }

/* ---------- CTA ---------- */
.cta { margin-top: 72px; border-radius: 28px; padding: 44px 48px; display: flex; align-items: center; justify-content: space-between; gap: 24px; color: #fff; background: radial-gradient(circle at 85% 20%, rgba(255,255,255,.18) 0, transparent 40%), linear-gradient(120deg, #d9480f 0%, #e8590c 45%, #f59f00 100%); box-shadow: 0 20px 50px rgba(217, 72, 15, .28); overflow: hidden; }
.cta h2 { font-size: clamp(26px, 3vw, 36px); font-weight: 800; margin-bottom: 6px; }
.cta p { margin: 0; opacity: .92; font-size: 17.5px; }

/* ---------- Page hero (listings) ---------- */
.page-hero { position: relative; overflow: hidden; background: color-mix(in srgb, var(--c) 10%, var(--bg)); border-bottom: 1px solid var(--line); isolation: isolate; }
.page-hero-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; opacity: .16; filter: blur(2px) saturate(1.2); }
.page-hero::after { content: ''; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, transparent 0%, var(--bg) 100%); }
.page-hero-in { padding-top: 34px; padding-bottom: 46px; }
.page-hero .eyebrow { color: var(--c); }
.page-hero h1 { font-size: clamp(32px, 4.5vw, 52px); font-weight: 800; }
.page-hero p { color: var(--ink-2); font-size: 18px; max-width: 720px; margin: 10px 0 0; }
.page-ico { font-size: 34px; width: 66px; height: 66px; display: grid; place-items: center; border-radius: 20px; background: var(--surface); box-shadow: var(--shadow-sm); margin: 18px 0 16px; }
.crumbs { display: flex; flex-wrap: wrap; gap: 8px; font-size: 14.5px; color: var(--muted); }
.crumbs a:hover { color: var(--brand); }
.crumb-cur { color: var(--ink-2); max-width: 46ch; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.toolbar { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; margin: -30px 0 30px; }
.seg { display: inline-flex; background: var(--surface); border: 1px solid var(--line); border-radius: 999px; padding: 4px; }
.seg a { padding: 6px 16px; border-radius: 999px; font-weight: 600; font-size: 15px; color: var(--ink-2); }
.seg a.on { background: var(--ink); color: var(--bg); }
.big-search { display: flex; align-items: center; gap: 10px; background: var(--surface); border: 1px solid var(--line); border-radius: 999px; padding: 6px 6px 6px 20px; max-width: 640px; margin-top: 22px; box-shadow: var(--shadow-sm); }
.big-search > svg { color: var(--muted); }
.big-search input { flex: 1; min-width: 0; border: 0; outline: 0; background: transparent; font: 500 18px var(--f-ui); color: var(--ink); padding: 8px 0; }

/* ---------- Pagination ---------- */
.pagination ul { list-style: none; display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin: 56px 0 0; padding: 0; }
.pagination a, .pagination span { display: grid; place-items: center; min-width: 44px; height: 44px; padding: 0 14px; border-radius: 12px; background: var(--surface); border: 1px solid var(--line); font-weight: 600; }
.pagination a:hover { border-color: var(--brand); color: var(--brand); }
.pagination .active span { background: var(--brand); border-color: var(--brand); color: #fff; }
.pagination .dots { display: grid; place-items: center; color: var(--muted); }

/* ---------- Story page ---------- */
.story-head { padding-top: 34px; text-align: center; }
.story-head .crumbs { justify-content: center; margin-bottom: 22px; }
.story-title { font-size: clamp(32px, 5vw, 50px); font-weight: 800; line-height: 1.25; margin: 18px 0 10px; text-wrap: balance; }
.story-sub { margin: 0 0 6px; color: var(--muted); font-size: 19px; font-style: italic; }
.byline { display: inline-flex; align-items: center; gap: 12px; margin-top: 22px; text-align: left; }
.byline b { display: block; font-size: 16px; }
.avatar { width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; background: linear-gradient(135deg, var(--gold), var(--brand)); color: #fff; font: 800 20px var(--f-serif); flex-shrink: 0; }
.story-cover { margin: 36px auto 0; }
.story-cover img { width: 100%; border-radius: 24px; box-shadow: var(--shadow); max-height: 600px; object-fit: cover; }
.story-layout { position: relative; padding-top: 44px; }
.story-tools { position: absolute; left: -64px; top: 44px; height: calc(100% - 44px); display: flex; flex-direction: column; gap: 8px; }
.story-tools .tool { position: sticky; top: 100px; }
.story-tools .tool:nth-child(2) { top: 152px; } .story-tools .tool:nth-child(3) { top: 204px; } .story-tools .tool:nth-child(4) { top: 256px; }
.tool { width: 44px; height: 44px; display: grid; place-items: center; border-radius: 50%; background: var(--surface); border: 1px solid var(--line); font-weight: 700; font-size: 15px; color: var(--ink-2); transition: .2s; }
.tool:hover { border-color: var(--brand); color: var(--brand); }
.tool-wa { color: #25d366; } .tool-wa svg { stroke: none; width: 22px; height: 22px; }

.story-body { font: 400 var(--story-size)/2 var(--f-serif); color: var(--ink); overflow-wrap: break-word; }
.story-body > * { margin: 0 0 1.25em; }
.story-body > p:first-of-type::first-letter { float: left; font: 800 3.4em/0.95 var(--f-serif); color: var(--brand); margin: .08em .12em 0 0; }
.story-body h2, .story-body h3, .story-body h4 { font-weight: 800; color: var(--ink); margin: 1.6em 0 .6em; line-height: 1.35; }
.story-body h2 { font-size: 1.45em; } .story-body h3 { font-size: 1.25em; } .story-body h4 { font-size: 1.1em; }
.story-body a { color: var(--brand); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 4px; }
.story-body img { border-radius: 16px; margin: 1.6em auto; box-shadow: var(--shadow-sm); }
.story-body figure { margin: 1.6em 0; } .story-body figure img { margin: 0 auto; }
.story-body figcaption { text-align: center; font: 400 15px var(--f-ui); color: var(--muted); margin-top: 10px; }
.story-body blockquote { margin: 1.6em 0; padding: 18px 26px; border-left: 4px solid var(--brand); background: var(--brand-soft); border-radius: 0 16px 16px 0; font-style: italic; }
.story-body ul, .story-body ol { padding-left: 1.4em; } .story-body li { margin-bottom: .4em; }
.story-body hr { border: 0; text-align: center; margin: 2em 0; } .story-body hr::after { content: '✦  ✦  ✦'; color: var(--muted); letter-spacing: .4em; }
.story-body table { width: 100%; border-collapse: collapse; display: block; overflow-x: auto; font: 400 16px var(--f-ui); }
.story-body td, .story-body th { border: 1px solid var(--line); padding: 8px 12px; }
.story-body iframe { max-width: 100%; border-radius: 14px; }
.story-foot { padding-top: 10px; }
.the-end { text-align: center; color: var(--muted); letter-spacing: .3em; font-weight: 600; margin: 34px 0; }
.tags { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; }
.tags a { background: var(--bg-2); color: var(--ink-2); padding: 6px 14px; border-radius: 999px; font-size: 14.5px; font-weight: 600; }
.tags a:hover { background: var(--brand-soft); color: var(--brand); }
.share-box { display: flex; justify-content: space-between; align-items: center; gap: 18px; flex-wrap: wrap; margin: 36px 0; padding: 22px 24px; border-radius: 20px; background: var(--surface); border: 1px solid var(--line); }
.share-box b { display: block; font: 800 19px var(--f-serif); }
.share-box span { color: var(--muted); font-size: 15px; }
.share-btns { display: flex; flex-wrap: wrap; gap: 8px; }
.sb { padding: 9px 16px; border-radius: 999px; font-weight: 700; font-size: 14.5px; border: 1px solid var(--line); background: var(--bg); transition: .2s; }
.sb:hover { transform: translateY(-1px); }
.sb-wa { background: #25d366; border-color: #25d366; color: #fff; }
.sb-fb { background: #1877f2; border-color: #1877f2; color: #fff; }
.sb-x { background: #111; border-color: #111; color: #fff; }
.pn { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.pn a { display: flex; gap: 14px; align-items: center; padding: 12px; border-radius: 18px; background: var(--surface); border: 1px solid var(--line); transition: border-color .2s, box-shadow .2s; min-width: 0; }
.pn a:hover { border-color: var(--brand); box-shadow: var(--shadow-sm); }
.pn img { width: 76px; height: 76px; border-radius: 12px; object-fit: cover; flex-shrink: 0; }
.pn span { font: 700 16px/1.4 var(--f-serif); min-width: 0; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.pn small { display: block; font: 600 13px var(--f-ui); color: var(--brand); margin-bottom: 2px; }
.pn-next { flex-direction: row-reverse; text-align: right; }
.related { background: var(--bg-2); margin-top: 72px; padding: 8px 0 72px; border-top: 1px solid var(--line); }
.related .block-head { padding-top: 56px; }

/* ---------- Empty / 404 ---------- */
.empty-state { text-align: center; padding: 80px 20px 20px; }
.empty-state.small { padding: 40px 20px; background: var(--surface); border-radius: var(--r); border: 1px dashed var(--line); }
.empty-state h1 { font-size: clamp(26px, 4vw, 38px); margin: 10px 0; }
.empty-state p { color: var(--muted); font-size: 18px; margin: 0 0 24px; }
.empty-ico { font-size: 52px; }
.big-404 { font: 800 clamp(90px, 18vw, 170px)/1 var(--f-serif); background: linear-gradient(120deg, var(--brand), var(--gold)); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* ---------- Footer ---------- */
.ftr { background: var(--dark); color: #cbbfb2; margin-top: 96px; padding: 64px 0 26px; }
.related + .ftr { margin-top: 0; }
.ftr-grid { display: grid; grid-template-columns: 1.6fr 1fr 1.3fr 0.8fr; gap: 40px; }
.ftr .logo-text b { color: #fff; }
.ftr .logo-mark { color: var(--brand); }
.ftr-about p { margin: 16px 0 22px; max-width: 360px; line-height: 1.7; }
.ftr h4 { font: 700 15px var(--f-ui); letter-spacing: .06em; text-transform: uppercase; color: #fff; margin-bottom: 16px; }
.ftr ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.ftr ul a:hover { color: #fff; }
.ftr-bottom { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; border-top: 1px solid rgba(255,255,255,.1); margin-top: 48px; padding-top: 22px; font-size: 14.5px; color: #8f8173; }

.to-top { position: fixed; right: 20px; bottom: 20px; z-index: 50; width: 48px; height: 48px; border-radius: 50%; border: 0; background: var(--ink); color: var(--bg); display: grid; place-items: center; box-shadow: var(--shadow); opacity: 0; visibility: hidden; transform: translateY(10px); transition: .25s; }
.to-top.show { opacity: 1; visibility: visible; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 1200px) {
  .cat-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .story-tools { display: none; }
}
@media (max-width: 1080px) {
  .nav { display: none; }
  .hdr-act { margin-left: auto; }
  .menu-btn { display: grid; }
  .hero { grid-template-columns: 1fr; }
  .hero-side { padding: 18px 20px 4px; }
  .split { grid-template-columns: 1fr; }
  .rank-box { position: static; }
  .g-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ftr-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 760px) {
  body { font-size: 16px; }
  :root { --story-size: 18.5px; }
  .wrap, .wrap-narrow, .wrap-wide { padding: 0 16px; }
  .hdr-in { height: 64px; gap: 12px; }
  .logo-text b { font-size: 19px; }
  .logo-text small { display: none; }
  .logo-mark svg { width: 38px; height: 38px; }
  .hero { padding-top: 16px; gap: 20px; }
  .hero-main { min-height: 440px; border-radius: 20px; }
  .hero-text { padding: 24px 20px; }
  .hero-ex { display: none; }
  .block { padding-top: 48px; }
  .block-head { margin-bottom: 20px; }
  .cat-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .cat-card { min-height: 128px; padding: 14px; }
  .g-2, .g-3 { grid-template-columns: 1fr; }
  .g-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px 14px; }
  .g-4 .card-title { font-size: 16.5px; }
  .g-4 .card-sub, .g-4 .card-ex { display: none; }
  .card-row .card-media { width: 92px; }
  .cta { flex-direction: column; align-items: flex-start; padding: 32px 26px; border-radius: 22px; }
  .toolbar { margin-top: -20px; }
  .story-cover { margin-top: 26px; padding: 0; }
  .story-cover img { border-radius: 0; }
  .story-layout { padding-top: 30px; }
  .pn { grid-template-columns: 1fr; }
  .pn-next { flex-direction: row; text-align: left; }
  .share-box { flex-direction: column; align-items: flex-start; }
  .ftr-grid { grid-template-columns: 1fr; gap: 30px; }
  .ftr { padding-top: 48px; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; } }

/* =========================================================
   v3 — Hindi Kahani Mela: 1500px layout, story sidebar, SEO blocks
   ========================================================= */
/* Top bar */
.topbar { background: var(--dark); color: #d8ccc0; font-size: 14px; }
.topbar-in { display: flex; justify-content: space-between; align-items: center; gap: 16px; height: 36px; }
.topbar b { color: #fff; }
.topbar-links { display: flex; gap: 20px; }
.topbar-links a:hover { color: #fff; }

/* Header search */
.hdr-in { height: 76px; }
.hdr-search { display: flex; align-items: center; gap: 8px; background: var(--bg-2); border: 1px solid var(--line); border-radius: 999px; padding: 0 14px; height: 42px; width: 230px; margin-right: 6px; transition: border-color .2s, width .25s; }
.hdr-search:focus-within { border-color: var(--brand); width: 270px; background: var(--surface); }
.hdr-search svg { width: 18px; height: 18px; color: var(--muted); }
.hdr-search input { border: 0; outline: 0; background: transparent; font: 500 15px var(--f-ui); color: var(--ink); width: 100%; min-width: 0; }
.search-btn { display: none; }
.logo-text small { color: var(--brand); font-weight: 600; letter-spacing: .02em; }

/* Intro / H1 */
.intro { display: flex; align-items: center; justify-content: space-between; gap: 32px; padding-top: 30px; }
.intro h1 { font-size: clamp(24px, 2.4vw, 32px); font-weight: 800; line-height: 1.3; }
.intro h1 span { color: var(--brand); }
.intro p { margin: 6px 0 0; color: var(--ink-2); font-size: 17px; max-width: 900px; }
.intro-stats { display: flex; gap: 10px; flex-shrink: 0; }
.intro-stats div { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 10px 20px; text-align: center; min-width: 104px; }
.intro-stats b { display: block; font: 800 24px/1.2 var(--f-serif); color: var(--brand); }
.intro-stats span { font-size: 13.5px; color: var(--muted); font-weight: 600; }
.hero { padding-top: 24px; grid-template-columns: minmax(0, 1.9fr) minmax(0, 1fr); }
.hero-main { min-height: 560px; }
.hero-text h2 { font-size: clamp(30px, 3.4vw, 48px); font-weight: 800; margin: 16px 0 6px; line-height: 1.22; text-wrap: balance; color: #fff; }
.hero-text h2 a:hover { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 6px; }

/* Grids at 1500px */
.grid.g-4 { gap: 34px 26px; }
.g-compact .card-ex { display: none; }
.split { grid-template-columns: minmax(0, 1fr) 380px; }

/* Category sections */
.cat-section { --c: var(--brand); }
.cat-section + .cat-section { margin-top: 8px; border-top: 1px solid var(--line); padding-top: 56px; }
.sec-title { display: flex; align-items: center; gap: 16px; }
.sec-ico { width: 58px; height: 58px; display: grid; place-items: center; font-size: 28px; border-radius: 18px; background: color-mix(in srgb, var(--c) 14%, var(--surface)); }
.cat-section .eyebrow { color: var(--c); margin-bottom: 4px; }
.cat-section h2 a:hover { color: var(--c); }
.cat-section .link-more { color: var(--c); }
.view-all { display: flex; justify-content: center; margin-top: 34px; }
.btn-cat { background: var(--c); box-shadow: 0 8px 22px color-mix(in srgb, var(--c) 30%, transparent); }
.btn-cat:hover { background: color-mix(in srgb, var(--c) 85%, #000); }

/* About (SEO text) */
.about-box { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 48px; align-items: center; background: var(--surface); border: 1px solid var(--line); border-radius: 26px; padding: 44px 48px; }
.about-box h2 { font-size: clamp(24px, 2.4vw, 32px); font-weight: 800; margin-bottom: 14px; }
.about-box p { color: var(--ink-2); font-size: 17.5px; line-height: 1.85; margin: 0 0 12px; }
.about-box a { color: var(--brand); font-weight: 600; }
.about-list { list-style: none; margin: 0; padding: 26px; background: var(--brand-soft); border-radius: 20px; display: grid; gap: 12px; font-weight: 600; font-size: 17px; }

/* ---------- Single story (article + sidebar) ---------- */
.story-wrap { padding-top: 22px; }
.story-wrap > .crumbs { margin-bottom: 18px; }
.story-grid { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: 40px; align-items: start; }
.story-card-main { background: var(--surface); border: 1px solid var(--line); border-radius: 28px; padding: 48px 56px 40px; box-shadow: var(--shadow-sm); min-width: 0; }
.story-card-main .story-head { padding: 0; text-align: left; }
.story-card-main .story-title { font-size: clamp(30px, 3.2vw, 46px); margin: 16px 0 8px; }
.story-meta-row { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; margin-top: 20px; padding: 16px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.story-meta-row .byline { margin: 0; }
.read-tools { display: flex; gap: 8px; }
.story-card-main .story-cover { margin: 28px 0 0; padding: 0; max-width: none; }
.story-card-main .story-cover img { border-radius: 20px; max-height: 620px; width: 100%; }
.story-card-main .story-body { padding-top: 34px; }
.story-card-main .the-end { margin: 30px 0; }
.story-card-main .tags { justify-content: flex-start; align-items: center; }
.story-card-main .tags > span { font-weight: 700; color: var(--muted); margin-right: 4px; }
.sb-tg { background: #229ed9; border-color: #229ed9; color: #fff; }
.toc { margin: 30px 0 0; background: var(--bg); border: 1px solid var(--line); border-radius: 18px; padding: 16px 22px; }
.toc summary { font: 700 18px var(--f-serif); cursor: pointer; }
.toc ol { margin: 12px 0 4px; padding-left: 22px; display: grid; gap: 6px; }
.toc a:hover { color: var(--brand); }
.toc .toc-h3 { margin-left: 18px; font-size: 15.5px; }
.story-body [id^="section-"] { scroll-margin-top: 110px; }
.author-box { display: flex; gap: 20px; align-items: flex-start; background: var(--bg); border: 1px solid var(--line); border-radius: 22px; padding: 24px; margin: 0 0 30px; }
.author-box b { display: block; font: 800 20px var(--f-serif); margin-bottom: 4px; }
.author-box p { margin: 0; color: var(--ink-2); font-size: 15.5px; }
.author-box .eyebrow { margin-bottom: 4px; }
.avatar-lg { width: 66px; height: 66px; font-size: 28px; }

/* Sidebar */
.sidebar { display: flex; flex-direction: column; gap: 24px; min-width: 0; }
.widget { background: var(--surface); border: 1px solid var(--line); border-radius: 22px; padding: 22px; box-shadow: var(--shadow-sm); }
.widget-sticky { position: sticky; top: 100px; }
.w-title { font: 800 19px/1.3 var(--f-serif); margin: 0 0 14px; padding-bottom: 12px; border-bottom: 2px solid var(--line); position: relative; }
.w-title::after { content: ""; position: absolute; left: 0; bottom: -2px; width: 56px; height: 2px; background: var(--brand); }
.w-search { display: flex; background: var(--bg); border: 1px solid var(--line); border-radius: 999px; padding: 4px 4px 4px 16px; }
.w-search input { flex: 1; min-width: 0; border: 0; outline: 0; background: transparent; font: 500 16px var(--f-ui); color: var(--ink); }
.w-search button { width: 40px; height: 40px; border-radius: 50%; border: 0; background: var(--brand); color: #fff; display: grid; place-items: center; }
.w-search button svg { width: 18px; height: 18px; }
.w-rank { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.w-rank a { display: grid; grid-template-columns: 76px minmax(0, 1fr); gap: 12px; align-items: center; position: relative; }
.w-rank img { width: 76px; height: 64px; object-fit: cover; border-radius: 12px; }
.w-n { position: absolute; left: -6px; top: -6px; width: 26px; height: 26px; border-radius: 50%; background: var(--brand); color: #fff; font: 700 13px/26px var(--f-ui); text-align: center; box-shadow: 0 0 0 3px var(--surface); }
.w-t { font: 700 15.5px/1.45 var(--f-serif); display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.w-t small { display: block; font: 600 12.5px var(--f-ui); color: var(--muted); margin-top: 2px; }
.w-rank a:hover .w-t { color: var(--brand); }
.w-cats { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.w-cats a { display: flex; justify-content: space-between; align-items: center; padding: 9px 12px; border-radius: 12px; font-weight: 600; }
.w-cats a:hover, .w-cats a.on { background: var(--brand-soft); color: var(--brand); }
.w-cats em { font-style: normal; font-size: 13px; background: var(--bg-2); padding: 1px 10px; border-radius: 999px; color: var(--muted); }
.widget .card-row { padding: 12px 0; }
.widget .card-row .card-media { width: 84px; }
.widget .card-row .card-title { font-size: 15.5px; }

/* Footer v3 */
.ftr-grid { grid-template-columns: 1.4fr 1fr 1.3fr 1.3fr; }
.ftr .logo-text small { color: var(--gold); }
.ftr-bottom a:hover { color: #fff; }
.ftr-links { display: flex; gap: 18px; }

/* Responsive v3 */
@media (max-width: 1360px) {
  .hdr-search { display: none; }
  .search-btn { display: grid; }
}
@media (max-width: 1200px) {
  .story-grid { grid-template-columns: minmax(0, 1fr) 320px; gap: 28px; }
  .story-card-main { padding: 36px 36px 30px; }
  .g-4 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .about-box { grid-template-columns: 1fr; }
}
@media (max-width: 1080px) {
  .story-grid { grid-template-columns: 1fr; }
  .widget-sticky { position: static; }
  .sidebar { display: grid; grid-template-columns: 1fr 1fr; }
  .g-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .intro { flex-direction: column; align-items: flex-start; }
  .topbar-links { display: none; }
}
@media (max-width: 760px) {
  .topbar { display: none; }
  .hdr-in { height: 64px; }
  .intro { padding-top: 20px; gap: 16px; }
  .intro p { font-size: 15.5px; }
  .intro-stats div { min-width: 0; padding: 8px 14px; }
  .intro-stats b { font-size: 20px; }
  .hero-main { min-height: 440px; }
  .split { grid-template-columns: 1fr; }
  .story-card-main { padding: 22px 18px; border-radius: 20px; }
  .story-card-main .story-cover img { border-radius: 14px; }
  .sidebar { grid-template-columns: 1fr; }
  .sec-ico { width: 46px; height: 46px; font-size: 22px; border-radius: 14px; }
  .about-box { padding: 26px 20px; }
  .author-box { flex-direction: column; }
  .cat-section + .cat-section { padding-top: 40px; }
}

/* =========================================================
   v4 — clean & simple: white everywhere, one blue accent, Hind font
   ========================================================= */
body { font-size: 17px; line-height: 1.7; }
h1, h2, h3, h4, .logo-text b, .cat-name, .rank a, .w-title, .w-t, .pn span, .toc summary, .author-box b, .share-box b, .intro-stats b, .rank-n { font-family: var(--f-ui); font-weight: 700; letter-spacing: 0; }
.eyebrow { font-size: 13px; letter-spacing: .04em; }

/* Header & top bar: white */
.topbar { background: var(--bg-2); color: var(--ink-2); border-bottom: 1px solid var(--line); }
.topbar b { color: var(--ink); }
.topbar-links a:hover { color: var(--brand); }
.hdr { background: rgba(255, 255, 255, .96); }
:root[data-theme="dark"] .hdr { background: rgba(15, 17, 21, .94); }
.logo-mark { color: var(--brand); }
.logo-text b { font-size: 22px; }
.nav > a, .dd-btn { font-weight: 500; }
.nav > a.on { color: var(--brand); background: var(--brand-soft); }
.read-bar { background: var(--brand); }

/* Buttons */
.btn { border-radius: 10px; font-weight: 600; padding: 10px 20px; }
.btn-white { background: var(--brand); color: #fff; }
.btn-white:hover { background: var(--brand-2); }
.btn-cat { background: var(--brand); box-shadow: none; }
.btn-cat:hover { background: var(--brand-2); }
.pill { background: var(--brand-soft); color: var(--brand); border-radius: 8px; font-weight: 600; }
.hero-text .pill { background: #fff; color: var(--brand); }
.cat-label { color: var(--brand); font-weight: 600; }

/* Intro */
.intro h1 { font-size: clamp(24px, 2.2vw, 30px); }
.intro-stats div { border-radius: 12px; background: var(--bg-2); border-color: var(--bg-2); }

/* Hero */
.hero-main { border-radius: 16px; box-shadow: none; }
.hero-text h2 { font-weight: 700; }
.hero-side { border-radius: 16px; box-shadow: none; }
.side-head { border-bottom-color: var(--brand); }

/* Cards */
.card-media { border-radius: 12px; box-shadow: none; border: 1px solid var(--line); }
.card-title { font-size: 19px; font-weight: 600; line-height: 1.45; }
.card-row .card-title { font-size: 16.5px; }
.card-ex { font-size: 15.5px; color: var(--muted); }

/* Category tiles: neutral dark overlay instead of colourful gradients */
.cat-card { background: #1f2937; border-radius: 14px; box-shadow: none; min-height: 140px; }
.cat-card::before { background: linear-gradient(180deg, rgba(17, 24, 39, .05) 0%, rgba(17, 24, 39, .82) 100%); }
.cat-ico { background: rgba(255, 255, 255, .9); border-radius: 10px; }
.cat-name { font-size: 19px; }

/* Section headers */
.block-head h2 { font-weight: 700; font-size: clamp(24px, 2.4vw, 30px); }
.sec-ico { background: var(--brand-soft); border-radius: 12px; }
.cat-section .eyebrow, .cat-section .link-more, .cat-section h2 a:hover { color: var(--brand); }
.cat-section + .cat-section { border-top-color: var(--line); }

/* Popular box: white */
.rank-box { background: var(--surface); color: var(--ink); border: 1px solid var(--line); border-radius: 16px; }
.rank-box h2 { color: var(--ink); font-size: 24px; }
.rank-box .eyebrow { color: var(--brand); }
.rank li { border-bottom-color: var(--line); }
.rank-n { color: var(--brand); -webkit-text-stroke: 0; font-size: 22px; min-width: 34px; }
.rank a { color: var(--ink); font-size: 16.5px; font-weight: 600; }
.rank a:hover { color: var(--brand); }
.rank .meta { color: var(--muted); }

/* CTA: light */
.cta { background: var(--brand-soft); color: var(--ink); box-shadow: none; border: 1px solid #dbe5ff; border-radius: 16px; }
.cta p { color: var(--ink-2); opacity: 1; }
:root[data-theme="dark"] .cta { border-color: var(--line); }

/* Listing header: white */
.page-hero { background: var(--surface); }
.page-hero-bg, .page-hero::after { display: none; }
.page-hero .eyebrow { color: var(--brand); }
.page-ico { background: var(--brand-soft); box-shadow: none; border-radius: 14px; }
.seg a.on { background: var(--brand); color: #fff; }
.chip { border-radius: 8px; font-weight: 500; }
.pagination a, .pagination span { border-radius: 8px; }

/* About */
.about-box { border-radius: 16px; }
.about-list { background: var(--bg-2); border-radius: 12px; }

/* Story page */
.story-card-main { border-radius: 16px; box-shadow: none; }
.story-card-main .story-title { font-weight: 700; line-height: 1.3; }
.story-sub { font-style: normal; font-size: 17px; }
.story-body { font-family: var(--f-ui); font-size: var(--story-size); line-height: 1.95; color: #1f2937; }
:root[data-theme="dark"] .story-body { color: var(--ink); }
.story-body > p:first-of-type::first-letter { float: none; font: inherit; color: inherit; margin: 0; }
.story-body h2, .story-body h3, .story-body h4 { font-family: var(--f-ui); font-weight: 700; }
.story-body blockquote { font-style: normal; border-radius: 0 10px 10px 0; }
.story-body img { border-radius: 10px; box-shadow: none; }
.story-card-main .story-cover img { border-radius: 12px; box-shadow: none; }
.avatar { background: var(--brand); font-family: var(--f-ui); }
.tool { border-radius: 10px; }
.toc, .author-box, .share-box { border-radius: 12px; }
.share-box { background: var(--bg-2); border-color: var(--bg-2); }
.sb { border-radius: 8px; }
.pn a { border-radius: 12px; }
.the-end { letter-spacing: .2em; }
.related { background: var(--bg-2); }

/* Sidebar */
.widget { border-radius: 14px; box-shadow: none; }
.w-title { font-size: 18px; }
.w-n { background: var(--brand); }
.w-t { font-weight: 600; }

/* Footer: light */
.ftr { background: var(--bg-2); color: var(--ink-2); border-top: 1px solid var(--line); }
.ftr h4 { color: var(--ink); letter-spacing: .03em; }
.ftr .logo-text b { color: var(--ink); }
.ftr .logo-text small { color: var(--brand); }
.ftr ul a:hover, .ftr-bottom a:hover { color: var(--brand); }
.ftr-bottom { border-top-color: var(--line); color: var(--muted); }
.btn-ghost-light { background: var(--surface); color: var(--ink); box-shadow: inset 0 0 0 1px var(--line); }
.btn-ghost-light:hover { background: var(--brand-soft); color: var(--brand); }

/* 404 */
.big-404 { background: none; color: var(--brand); -webkit-background-clip: initial; background-clip: initial; }
.story-facts { font-size: 15px; gap: 10px; }

/* v5 — AEO summary box, static pages, HTML sitemap, social */
.story-summary { margin: 28px 0 0; background: var(--brand-soft); border: 1px solid #dbe5ff; border-radius: 14px; padding: 20px 24px; }
:root[data-theme="dark"] .story-summary { border-color: var(--line); }
.story-summary .sum-title { font-size: 18px; margin: 0 0 8px; }
.story-summary p { margin: 0 0 14px; color: var(--ink-2); font-size: 16.5px; line-height: 1.75; }
.sum-facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin: 0; }
.sum-facts div { background: var(--surface); border: 1px solid var(--line); border-radius: 10px; padding: 8px 12px; }
.sum-facts dt { font-size: 12.5px; color: var(--muted); font-weight: 600; }
.sum-facts dd { margin: 0; font-weight: 600; }
.sum-facts dd a { color: var(--brand); }
.sum-facts .sum-moral { grid-column: 1 / -1; }
.sum-facts .sum-moral dd { font-weight: 500; line-height: 1.6; }
.page-body { padding-top: 10px; }
.html-sitemap { columns: 3 320px; column-gap: 40px; }
.hs-group { break-inside: avoid; margin-bottom: 30px; }
.hs-group h2 { font-size: 20px; margin-bottom: 8px; padding-bottom: 6px; border-bottom: 2px solid var(--line); }
.hs-group h2 a:hover { color: var(--brand); }
.hs-group h2 small { color: var(--muted); font-weight: 500; font-size: 14px; }
.hs-group ul { margin: 0; padding-left: 18px; display: grid; gap: 4px; }
.hs-group a:hover { color: var(--brand); }
.social { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.social a { padding: 6px 12px; border-radius: 8px; border: 1px solid var(--line); background: var(--surface); font-size: 14px; font-weight: 600; }
.social a:hover { color: var(--brand); border-color: var(--brand); }
.ftr-pages { display: flex; flex-wrap: wrap; gap: 6px 18px; }
@media (max-width: 760px) { .sum-facts { grid-template-columns: 1fr 1fr; } }

/* =========================================================
   v6 — Mega menu: Home · Categories · Best Stories
   ========================================================= */
.nav { align-self: stretch; align-items: stretch; gap: 6px; }
.nav > .nav-link, .has-mega { display: flex; align-items: center; }
.nav-link { position: relative; display: inline-flex; align-items: center; gap: 6px; padding: 10px 16px; border-radius: 10px; font: 600 16.5px/1 var(--f-ui); color: var(--ink-2); background: none; border: 0; white-space: nowrap; align-self: center; }
.nav-link:hover, .has-mega.open > .nav-link { color: var(--brand); background: var(--brand-soft); }
.nav-link.on { color: var(--brand); }
.nav-link.on::after { content: ""; position: absolute; left: 16px; right: 16px; bottom: -3px; height: 2px; border-radius: 2px; background: var(--brand); }
.chev { width: 14px; height: 14px; stroke-width: 2.5; transition: transform .2s; }
.has-mega.open .chev { transform: rotate(180deg); }

.mega { display: none; position: absolute; left: 0; right: 0; top: 100%; background: var(--surface); border-top: 1px solid var(--line); box-shadow: 0 30px 50px -16px rgba(17, 24, 39, .25); max-height: calc(100vh - 130px); overflow-y: auto; }
.has-mega.open > .mega { display: block; animation: megaIn .18s ease-out; }
@keyframes megaIn { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }
.mega-in { padding-top: 26px; padding-bottom: 30px; }

.mega-cats { display: grid; grid-template-columns: 290px minmax(0, 1fr); gap: 32px; }
.mega-list { list-style: none; margin: 0; padding: 0 22px 0 0; border-right: 1px solid var(--line); display: grid; gap: 2px; align-content: start; }
.mega-cat { display: flex; align-items: center; gap: 10px; padding: 8px 12px; border-radius: 10px; font-weight: 600; color: var(--ink-2); }
.mega-cat:hover, .mega-cat.active { background: var(--brand-soft); color: var(--brand); }
.mc-ico { width: 30px; height: 30px; display: grid; place-items: center; border-radius: 8px; background: var(--bg-2); font-size: 16px; flex-shrink: 0; }
.mega-cat.active .mc-ico, .mega-cat:hover .mc-ico { background: var(--surface); }
.mc-name { flex: 1; min-width: 0; }
.mega-cat em { font-style: normal; font-size: 12.5px; color: var(--muted); background: var(--bg-2); padding: 1px 9px; border-radius: 999px; }
.mega-list-foot { margin-top: 8px; padding-top: 8px; border-top: 1px solid var(--line); }
.mega-panel { display: none; }
.mega-panel.active { display: block; animation: megaIn .15s ease-out; }
.mega-head { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; margin-bottom: 16px; }
.mega-head b { font-size: 20px; }
.mega-head b span { font-weight: 500; color: var(--muted); font-size: 16px; }
.mega-head a { color: var(--brand); font-weight: 600; white-space: nowrap; }
.mega-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; }
.mega-grid-5 { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.mega-card { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.mega-img { position: relative; display: block; aspect-ratio: 16 / 10; border-radius: 10px; overflow: hidden; background: var(--bg-2); border: 1px solid var(--line); }
.mega-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.mega-card:hover .mega-img img { transform: scale(1.05); }
.mega-t { font-weight: 600; font-size: 15.5px; line-height: 1.45; color: var(--ink); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.mega-card:hover .mega-t { color: var(--brand); }
.mega-d { font-size: 13px; color: var(--muted); }
.mega-cat-label { font-size: 12.5px; font-weight: 600; color: var(--brand); }
.mega-star { position: absolute; top: 8px; left: 8px; font-style: normal; font-size: 12px; background: rgba(255, 255, 255, .92); border-radius: 999px; padding: 2px 7px; }
.mega-best { display: grid; grid-template-columns: 280px minmax(0, 1fr); gap: 32px; align-items: start; }
.mega-intro { background: var(--brand-soft); border-radius: 14px; padding: 24px; }
.mega-intro .eyebrow { margin-bottom: 6px; }
.mega-intro b { display: block; font-size: 22px; margin-bottom: 8px; }
.mega-intro p { margin: 0 0 18px; color: var(--ink-2); font-size: 15.5px; line-height: 1.65; }

/* Categories index page */
.cat-index { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 22px; }
.cat-index-item { display: flex; flex-direction: column; gap: 12px; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 12px 12px 16px; }
.cat-index-list { list-style: none; margin: 0; padding: 0 4px; display: grid; gap: 7px; font-size: 15px; line-height: 1.45; flex: 1; }
.cat-index-list li { position: relative; padding-left: 14px; }
.cat-index-list li::before { content: ""; position: absolute; left: 0; top: .6em; width: 6px; height: 6px; border-radius: 50%; background: var(--brand); opacity: .5; }
.cat-index-list a:hover { color: var(--brand); }
.cat-index-item .link-more { padding: 0 4px; font-size: 15px; }

/* Mobile drawer groups */
.drawer-group summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; }
.drawer-group summary::-webkit-details-marker { display: none; }
.drawer-group summary::after { content: "−"; font-size: 18px; }
.drawer-group:not([open]) summary::after { content: "+"; }
.drawer-story { display: flex; gap: 10px; align-items: center; padding: 8px 12px; border-radius: 12px; font-weight: 600; font-size: 15.5px; line-height: 1.4; }
.drawer-story img { width: 58px; height: 42px; object-fit: cover; border-radius: 8px; flex-shrink: 0; }
.drawer-story:hover { background: var(--bg-2); }

@media (max-width: 1360px) {
  .mega-grid-5 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .mega-grid-5 .mega-card:nth-child(5) { display: none; }
}
@media (max-width: 1200px) {
  .cat-index { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .mega-cats { grid-template-columns: 240px minmax(0, 1fr); gap: 24px; }
  .mega-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .mega-cats .mega-card:nth-child(n+7), .mega-grid-5 .mega-card:nth-child(n+4) { display: none; }
}
@media (max-width: 760px) {
  .cat-index { grid-template-columns: 1fr; }
}

/* Header: logo left · menu centred · search right (desktop) */
@media (min-width: 1081px) {
  .hdr-in { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); align-items: center; column-gap: 24px; }
  .hdr-in > .logo { justify-self: start; }
  .hdr-in > .nav { justify-self: center; margin: 0; align-self: stretch; }
  .hdr-in > .hdr-act { justify-self: end; margin: 0; }
}

/* =========================================================
   Final responsive rules (must stay LAST – override all desktop layouts above)
   ========================================================= */
html, body { overflow-x: hidden; }
@media (max-width: 1080px) {
  .hero, .split, .story-grid, .about-box, .mega-best, .mega-cats { grid-template-columns: 1fr; }
  .rank-box, .widget-sticky { position: static; }
  .ftr-grid { grid-template-columns: 1fr 1fr; }
  .hero-main { min-height: 460px; }
}
@media (max-width: 760px) {
  .wrap, .wrap-narrow, .wrap-wide { padding-left: 16px; padding-right: 16px; }
  .hero { gap: 18px; }
  .hero-main { min-height: 400px; border-radius: 16px; }
  .hero-text { padding: 22px 18px; }
  .hero-text h2 { font-size: 27px; }
  .hero-sub { font-size: 15px; }
  .hero-side { padding: 16px; }
  .card-row .card-media { width: 88px; }
  .card-row .card-title { font-size: 15.5px; }
  .intro h1 { font-size: 22px; }
  .intro-stats { width: 100%; }
  .intro-stats div { flex: 1; }
  .block-head { flex-wrap: wrap; align-items: flex-start; }
  .block-head h2 { font-size: 23px; }
  .sec-title { gap: 10px; }
  .g-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px 12px; }
  .g-2, .g-3 { grid-template-columns: 1fr; }
  .card-title { font-size: 16px; }
  .cat-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .cat-name { font-size: 16px; }
  .cta { padding: 26px 20px; }
  .ftr-grid { grid-template-columns: 1fr; gap: 26px; }
  .ftr-bottom { flex-direction: column; }
  .story-card-main { padding: 20px 16px; border-radius: 14px; }
  .story-card-main .story-title { font-size: 27px; }
  .story-meta-row { flex-direction: column; align-items: flex-start; }
  .sum-facts { grid-template-columns: 1fr 1fr; }
  .page-hero h1 { font-size: 28px; }
  .toolbar { flex-direction: column; align-items: flex-start; }
  .seg { flex-wrap: wrap; }
  .pagination a, .pagination span { min-width: 38px; height: 38px; padding: 0 10px; }
  .cat-index { grid-template-columns: 1fr; }
  .logo-text b { font-size: 18px; }
}
@media (max-width: 380px) {
  .g-4 { grid-template-columns: 1fr; }
  .intro-stats b { font-size: 18px; }
}
