/* =============================================================================
   VaultEdge — Dark UI v2
   Display: Plus Jakarta Sans · Body: Inter · Mono: JetBrains Mono
   ========================================================================== */

:root {
  /* Base — Verdict: near-black steel, crimson authority */
  --bg:         #0d0d0f;
  --bg-2:       #141417;
  --surface:    #1a1a1e;
  --surface-2:  #232329;
  --line:       #2e2e35;
  --line-2:     #43434d;

  --ink:        #ffffff;
  --ink-2:      #d2d2d8;
  --muted:      #9a9aa4;
  --dim:        #9195a0;

  /* Primary accent — crimson */
  --accent:     #d81f2a;
  --accent-2:   #ff6b73;
  --accent-dim: rgba(216, 31, 42, .16);
  --glow:       rgba(216, 31, 42, .45);

  /* Category colours — har area ka apna rang (sab WCAG AA pass) */
  --c1: #ff6b73;   /* crimson  — personal injury */
  --c2: #4dc4ff;   /* sky      — health          */
  --c3: #ffa94d;   /* amber    — criminal & DUI  */
  --c4: #63e6be;   /* mint     — family          */
  --c5: #c9a0ff;   /* violet   — business & tax  */
  --c6: #ffd43b;   /* gold     — immigration     */
  --c7: #ff9ec4;   /* pink     — workers         */

  --mint:       #63e6be;
  --amber:      #ffd43b;
  --rose:       #ff6b73;

  --f-display: "Plus Jakarta Sans", system-ui, -apple-system, sans-serif;
  --f-body:    "Inter", system-ui, -apple-system, sans-serif;
  --f-mono:    "JetBrains Mono", ui-monospace, Menlo, monospace;

  --container: 1200px;
  --measure:   72ch;
  --r:         7px;
  --r-lg:      9px;
  --header-h:  68px;
}

*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 28px);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background:
    radial-gradient(900px 500px at 10% -6%,  rgba(216,31,42,.20), transparent 60%),
    radial-gradient(760px 460px at 95% 2%,   rgba(255,107,115,.09), transparent 58%),
    var(--bg);
  background-attachment: fixed;
  background-repeat: no-repeat;
  color: var(--ink-2);
  font-family: var(--f-body);
  font-size: 17px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }

a { color: var(--accent-2); text-decoration: none; transition: color .18s ease; }
a:hover { color: #ff9ba1; }

h1, h2, h3, h4 {
  font-family: var(--f-display);
  color: var(--ink);
  line-height: 1.15;
  letter-spacing: -.025em;
  margin: 0 0 .5em;
  font-weight: 700;
}
h1 { font-size: clamp(2.1rem, 5vw, 3.5rem); font-weight: 800; letter-spacing: -.035em; }
h2 { font-size: clamp(1.5rem, 3vw, 2.1rem); }
h3 { font-size: 1.2rem; }

p { margin: 0 0 1.2em; }

:focus-visible { outline: 2px solid var(--accent-2); outline-offset: 3px; border-radius: 4px; }
::selection { background: rgba(216,31,42,.32); color: var(--ink); }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 24px; }

.skip-link {
  position: absolute; left: -9999px; z-index: 300;
  background: var(--accent); color: #fff; padding: 12px 20px; border-radius: 8px;
  font-family: var(--f-mono); font-size: .8rem;
}
.skip-link:focus { left: 16px; top: 16px; }

/* ---------- shared bits ------------------------------------------------ */
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--f-mono); font-size: .7rem; font-weight: 500;
  letter-spacing: .14em; text-transform: uppercase;
  color: var(--accent-2); margin: 0 0 14px;
}
.eyebrow::before {
  content: ""; width: 6px; height: 6px; border-radius: 50%;
  background: var(--accent); box-shadow: 0 0 12px var(--glow);
}

.lead { font-size: 1.18rem; line-height: 1.65; color: var(--ink-2); }

.chip {
  display: inline-flex; align-items: center;
  font-family: var(--f-mono); font-size: .68rem; font-weight: 500; letter-spacing: .04em;
  padding: 6px 12px; border-radius: 100px;
  background: var(--accent-dim); color: var(--accent-2);
  border: 1px solid rgba(216, 31, 42, .22);
}
.chip--soft { background: var(--surface-2); color: var(--muted); border-color: var(--line); }
.chip--mint { background: rgba(255,107,115,.08); color: var(--mint); border-color: rgba(255,107,115,.22); }
.badge {
  display: inline-flex; align-items: center; font-family: var(--f-mono); font-size: .68rem;
  padding: 6px 12px; border-radius: 100px; background: var(--accent-dim); color: var(--accent-2);
}

/* =============================================================================
   HEADER
   ========================================================================== */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(13, 13, 15, .82);
  backdrop-filter: saturate(180%) blur(18px);
  -webkit-backdrop-filter: saturate(180%) blur(18px);
  border-bottom: 1px solid var(--line);
}
.header-inner { height: var(--header-h); display: flex; align-items: center; gap: 24px; }

.logo {
  display: inline-flex; align-items: center; gap: 11px;
  font-family: var(--f-display); font-weight: 800; font-size: 1.14rem;
  letter-spacing: -.03em; color: var(--ink); flex-shrink: 0;
}
.logo:hover { color: var(--ink); }
.logo-mark {
  width: 34px; height: 34px; display: grid; place-items: center; border-radius: 10px;
  background: linear-gradient(135deg, var(--accent) 0%, #a3121b 100%);
  color: #fff; font-family: var(--f-display); font-size: .78rem; font-weight: 800;
  box-shadow: 0 6px 18px rgba(216,31,42,.35);
}

.nav { display: flex; align-items: center; gap: 2px; margin-left: auto; }
.nav a {
  font-size: .875rem; font-weight: 500; color: var(--muted);
  padding: 9px 13px; border-radius: 9px; white-space: nowrap;
  transition: color .18s ease, background .18s ease;
}
.nav a:hover { color: var(--ink); background: var(--surface-2); }
.nav a.active { color: var(--ink); background: var(--surface-2); }

.header-cta {
  font-size: .82rem; font-weight: 600; color: #fff;
  padding: 10px 18px; border-radius: 100px;
  background: linear-gradient(135deg, var(--accent), #a3121b);
  box-shadow: 0 6px 20px rgba(216,31,42,.3);
  white-space: nowrap; transition: transform .18s ease, box-shadow .18s ease;
}
.header-cta:hover { color: #fff; transform: translateY(-1px); box-shadow: 0 10px 26px rgba(216,31,42,.42); }

.menu-toggle {
  display: none; background: var(--surface-2); border: 1px solid var(--line);
  border-radius: 10px; padding: 10px; cursor: pointer; margin-left: auto;
}
.menu-toggle span { display: block; width: 18px; height: 2px; background: var(--ink-2); border-radius: 2px; margin: 3.5px 0; transition: .22s ease; }
.menu-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(5.5px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.menu-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-5.5px) rotate(-45deg); }

.progress {
  position: fixed; top: 0; left: 0; height: 2px; width: 0; z-index: 200;
  background: linear-gradient(90deg, var(--accent), var(--mint));
  transition: width .1s linear;
}

/* =============================================================================
   ADS
   ========================================================================== */
.ad-zone { display: block; margin: 34px auto; text-align: center; }
.ad-zone__label {
  display: block; font-family: var(--f-mono); font-size: .58rem;
  letter-spacing: .2em; text-transform: uppercase; color: var(--dim); margin-bottom: 8px;
}
.ad-zone__inner { display: flex; justify-content: center; }
.ad-zone--strip { margin: 0; padding: 12px 0; background: var(--bg-2); border-bottom: 1px solid var(--line); }
.ad-zone--strip .ad-zone { margin: 0; }
.ad-zone--inline { margin: 44px 0; padding: 26px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.ad-zone--sidebar { margin: 0 0 22px; }

/* =============================================================================
   HERO
   ========================================================================== */
.hero { position: relative; padding: 92px 0 76px; overflow: hidden; }
.hero::before {
  content: ""; position: absolute; top: -280px; left: 50%; transform: translateX(-50%);
  width: 1100px; height: 700px; pointer-events: none;
  background:
    radial-gradient(closest-side, rgba(216,31,42,.28), transparent 72%),
    radial-gradient(closest-side at 30% 55%, rgba(55,213,232,.20), transparent 70%),
    radial-gradient(closest-side at 72% 48%, rgba(62,224,165,.16), transparent 70%);
}
.hero-inner { position: relative; text-align: center; }
.hero h1 { max-width: 15ch; margin: 0 auto .28em; }
.hero h1 .grad {
  background: linear-gradient(120deg, var(--accent-2) 0%, #ffa94d 55%, var(--mint) 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero .lead { max-width: 60ch; margin: 0 auto; font-size: 1.2rem; color: var(--muted); }
.hero-actions { display: flex; justify-content: center; flex-wrap: wrap; gap: 12px; margin-top: 34px; }

.rail { display: grid; gap: 12px; margin-top: 66px; grid-template-columns: repeat(auto-fit, minmax(158px, 1fr)); }
.rail-item {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--r); padding: 18px 16px;
  display: flex; flex-direction: column; gap: 7px; text-align: left;
  transition: transform .25s cubic-bezier(.2,.7,.3,1), border-color .25s ease, background .25s ease;
}
.rail-item:hover { transform: translateY(-4px); border-color: var(--line-2); background: var(--surface-2); color: inherit; }
.rail-num { font-family: var(--f-mono); font-size: .62rem; color: var(--accent-2); letter-spacing: .1em; }
.rail-name { font-family: var(--f-display); font-weight: 700; font-size: .93rem; color: var(--ink); line-height: 1.3; }
.rail-meta { font-size: .74rem; color: var(--dim); }

/* =============================================================================
   BUTTONS
   ========================================================================== */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--f-body); font-size: .9rem; font-weight: 600;
  padding: 13px 26px; border-radius: 100px; border: 1px solid transparent;
  cursor: pointer; transition: transform .18s ease, box-shadow .2s ease, background .2s ease, border-color .2s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary {
  background: linear-gradient(135deg, var(--accent), #a3121b); color: #fff;
  box-shadow: 0 8px 24px rgba(216,31,42,.32);
}
.btn-primary:hover { color: #fff; box-shadow: 0 14px 32px rgba(216,31,42,.44); }
.btn-ghost { border-color: var(--line-2); color: var(--ink-2); background: var(--surface); }
.btn-ghost:hover { color: var(--ink); border-color: var(--accent); background: var(--surface-2); }
.btn-outline { border-color: var(--line-2); color: var(--ink-2); }
.btn-outline:hover { color: var(--ink); border-color: var(--accent); }

/* =============================================================================
   SECTIONS
   ========================================================================== */
.section { padding: 84px 0; }
.section--tight { padding: 52px 0; }
.section--alt { background: var(--bg-2); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }

.section-head {
  display: flex; align-items: flex-end; justify-content: space-between;
  gap: 28px; margin-bottom: 40px; flex-wrap: wrap;
}
.section-head h2 { margin-bottom: .25em; }
.section-head p { color: var(--muted); margin: 0; max-width: 58ch; font-size: 1.02rem; }

.cat-grid { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(290px, 1fr)); }
.cat-tile {
  position: relative; overflow: hidden;
  background: linear-gradient(160deg, var(--surface-2) 0%, var(--surface) 60%);
  border: 1px solid var(--line); border-radius: var(--r-lg);
  padding: 28px 26px; display: flex; flex-direction: column; gap: 12px;
  transition: transform .28s cubic-bezier(.2,.7,.3,1), border-color .28s ease;
}
.cat-tile::after {
  content: ""; position: absolute; inset: 0; opacity: 0; pointer-events: none;
  background: radial-gradient(420px circle at 50% 0%, rgba(216,31,42,.13), transparent 70%);
  transition: opacity .3s ease;
}
.cat-tile:hover { transform: translateY(-5px); border-color: var(--line-2); color: inherit; }
.cat-tile:hover::after { opacity: 1; }
.cat-tile h3 { margin: 0; font-size: 1.24rem; position: relative; }
.cat-tile p { margin: 0; color: var(--muted); font-size: .94rem; line-height: 1.6; position: relative; }
.cat-tile .chip { margin-top: auto; align-self: flex-start; position: relative; }

.card-grid { display: grid; gap: 20px; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); }
.card {
  position: relative; overflow: hidden;
  background: linear-gradient(160deg, var(--surface-2) 0%, var(--surface) 65%);
  border: 1px solid var(--line); border-radius: var(--r-lg);
  padding: 26px 24px; display: flex; flex-direction: column; gap: 13px;
  transition: transform .28s cubic-bezier(.2,.7,.3,1), border-color .28s ease;
}
.card:hover { transform: translateY(-5px); border-color: var(--line-2); }
.card h3 { margin: 0; font-size: 1.13rem; line-height: 1.35; }
.card h3 a { color: var(--ink); }
.card h3 a:hover { color: var(--accent-2); }
.card p { margin: 0; color: var(--muted); font-size: .93rem; line-height: 1.62; }

.card-meta { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; font-size: .74rem; color: var(--dim); }
.card-meta .cat-name { color: var(--accent-2); font-weight: 600; }
.card-meta .dot { width: 3px; height: 3px; border-radius: 50%; background: var(--line-2); }

.card-go {
  margin-top: auto; padding-top: 14px; border-top: 1px solid var(--line);
  font-size: .82rem; font-weight: 600; color: var(--accent-2);
  display: inline-flex; align-items: center; gap: 6px;
  transition: gap .22s ease;
}
.card:hover .card-go { gap: 11px; }

.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--r); background: var(--surface); }
.ledger { width: 100%; border-collapse: collapse; font-size: .93rem; }
.ledger caption {
  text-align: left; padding: 16px 18px 0; color: var(--dim);
  font-family: var(--f-mono); font-size: .64rem; letter-spacing: .14em; text-transform: uppercase;
}
.ledger th, .ledger td { text-align: left; padding: 14px 18px; border-bottom: 1px solid var(--line); vertical-align: top; }
.ledger thead th {
  font-family: var(--f-mono); font-size: .64rem; letter-spacing: .1em;
  text-transform: uppercase; color: var(--muted); font-weight: 500; background: var(--surface-2);
}
.ledger tbody tr:last-child td { border-bottom: 0; }
.ledger tbody tr:hover { background: rgba(255,255,255,.02); }
.ledger td:first-child { color: var(--ink); font-weight: 600; }

/* =============================================================================
   ARTICLE
   ========================================================================== */
.layout { display: grid; grid-template-columns: minmax(0,1fr) 320px; gap: 60px; align-items: start; }

.breadcrumbs { font-size: .78rem; color: var(--dim); margin-bottom: 20px; }
.breadcrumbs a { color: var(--dim); }
.breadcrumbs a:hover { color: var(--accent-2); }
.breadcrumbs span { color: var(--muted); }

.article-header { margin-bottom: 34px; }
.article-header h1 { max-width: 19ch; font-size: clamp(1.9rem, 4vw, 2.9rem); }

.byline {
  display: flex; flex-wrap: wrap; gap: 10px 16px; align-items: center;
  font-size: .84rem; color: var(--dim); margin-top: 22px;
  padding-top: 20px; border-top: 1px solid var(--line);
}
.byline .author { color: var(--ink); font-weight: 600; }
.byline .role { color: var(--muted); }
.byline .dot { width: 3px; height: 3px; border-radius: 50%; background: var(--line-2); }

.article-body { max-width: var(--measure); font-size: 1.08rem; line-height: 1.82; color: var(--ink-2); }
.article-body > p { margin: 0 0 1.4em; }

.article-body .lead {
  font-family: var(--f-display); font-size: 1.42rem; line-height: 1.5; font-weight: 500;
  color: var(--ink); letter-spacing: -.02em; margin-bottom: 1.5em;
}

.article-body h2 { margin: 2.4em 0 .7em; font-size: clamp(1.4rem, 2.6vw, 1.85rem); }
.article-body h3 { margin: 2em 0 .6em; font-size: 1.16rem; color: var(--ink); }
.article-body ul, .article-body ol { padding-left: 1.35em; margin: 0 0 1.5em; }
.article-body li { margin-bottom: .7em; }
.article-body li::marker { color: var(--accent-2); }
.article-body strong { color: var(--ink); font-weight: 600; }
.article-body em { color: var(--ink); }
.article-body a { text-decoration: underline; text-underline-offset: 3px; text-decoration-color: rgba(255,107,115,.4); }

.article-body blockquote {
  margin: 2.2rem 0; padding: 20px 26px;
  background: var(--surface); border-left: 3px solid var(--accent); border-radius: 0 var(--r) var(--r) 0;
  font-size: 1.14rem; color: var(--ink);
}
.article-body blockquote p:last-child { margin-bottom: 0; }

.note, .warn, .keytake {
  margin: 2.2rem 0; padding: 22px 26px; border-radius: var(--r);
  background: var(--surface); border: 1px solid var(--line); font-size: 1rem; line-height: 1.7;
}
.note   { border-left: 3px solid var(--mint); }
.warn   { border-left: 3px solid var(--rose); }
.keytake{ border-left: 3px solid var(--amber); }
.note h4, .warn h4, .keytake h4 {
  font-family: var(--f-mono); font-size: .68rem; letter-spacing: .14em;
  text-transform: uppercase; font-weight: 500; margin: 0 0 10px;
}
.note h4    { color: var(--mint); }
.warn h4    { color: var(--rose); }
.keytake h4 { color: var(--amber); }
.note p:last-child, .warn p:last-child, .keytake p:last-child, .keytake ul:last-child { margin-bottom: 0; }

.steps { list-style: none; padding: 0; margin: 2.2rem 0; counter-reset: step; }
.steps li { position: relative; padding-left: 54px; margin-bottom: 24px; counter-increment: step; }
.steps li::before {
  content: counter(step, decimal-leading-zero);
  position: absolute; left: 0; top: 0;
  width: 34px; height: 34px; display: grid; place-items: center; border-radius: 10px;
  background: var(--accent-dim); border: 1px solid rgba(216,31,42,.24);
  font-family: var(--f-mono); font-size: .72rem; color: var(--accent-2);
}
.steps li strong { display: block; font-family: var(--f-display); font-size: 1.03rem; margin-bottom: 4px; color: var(--ink); }

.checklist { margin: 2.2rem 0; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; }
.checklist-item { display: flex; gap: 16px; padding: 16px 22px; border-bottom: 1px solid var(--line); font-size: .98rem; }
.checklist-item:last-child { border-bottom: 0; }
.checklist-item .num {
  flex-shrink: 0; width: 26px; height: 26px; display: grid; place-items: center; border-radius: 8px;
  background: var(--accent-dim); color: var(--accent-2); font-family: var(--f-mono); font-size: .7rem;
}

.article-body table { width: 100%; border-collapse: collapse; margin: 2.2rem 0; font-size: .93rem; }
.article-body th, .article-body td { text-align: left; padding: 13px 16px; border-bottom: 1px solid var(--line); vertical-align: top; }
.article-body thead th {
  background: var(--surface-2); color: var(--ink);
  font-family: var(--f-mono); font-size: .66rem; letter-spacing: .08em;
  text-transform: uppercase; font-weight: 500;
}
.article-body tbody tr:hover { background: rgba(255,255,255,.02); }
.article-body .table-wrap table { margin: 0; }

.faq { margin: 2.4rem 0 0; }
.faq details {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--r); margin-bottom: 12px; overflow: hidden;
  transition: border-color .2s ease;
}
.faq details[open] { border-color: var(--line-2); }
.faq summary {
  cursor: pointer; list-style: none; padding: 18px 52px 18px 22px; position: relative;
  font-family: var(--f-display); font-weight: 600; font-size: 1.02rem; color: var(--ink);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; position: absolute; right: 22px; top: 24px;
  width: 9px; height: 9px; border-right: 2px solid var(--accent-2); border-bottom: 2px solid var(--accent-2);
  transform: rotate(45deg); transition: transform .22s ease;
}
.faq details[open] summary::after { transform: rotate(-135deg); top: 27px; }
.faq details p { padding: 0 22px 20px; margin: 0; color: var(--muted); font-size: .97rem; }

.next-read {
  margin: 2.6rem 0 0; padding: 28px; border-radius: var(--r-lg);
  background: linear-gradient(135deg, rgba(216,31,42,.13), rgba(255,107,115,.06));
  border: 1px solid rgba(216,31,42,.22);
}
.next-read h4 {
  font-family: var(--f-mono); font-size: .66rem; letter-spacing: .16em;
  text-transform: uppercase; color: var(--accent-2); margin: 0 0 12px; font-weight: 500;
}
.next-read p { margin: 0; color: var(--ink-2); }
.next-read a { color: var(--ink); font-weight: 600; }

.tag-row { display: flex; flex-wrap: wrap; gap: 8px; margin: 2.4rem 0 0; }

/* =============================================================================
   SIDEBAR
   ========================================================================== */
.sidebar { position: sticky; top: calc(var(--header-h) + 24px); }
.widget {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--r-lg); padding: 22px; margin-bottom: 20px;
}
.widget h4 {
  font-family: var(--f-mono); font-size: .64rem; letter-spacing: .16em;
  text-transform: uppercase; color: var(--dim); font-weight: 500; margin: 0 0 16px;
}
.widget ul { list-style: none; padding: 0; margin: 0; }
.widget li { padding: 10px 0; border-bottom: 1px solid var(--line); line-height: 1.45; }
.widget li:last-child { border-bottom: 0; padding-bottom: 0; }
.widget li:first-child { padding-top: 0; }
.widget a { color: var(--ink-2); font-size: .89rem; }
.widget a:hover { color: var(--accent-2); }

.toc ol { list-style: none; counter-reset: toc; padding: 0; margin: 0; }
.toc li { counter-increment: toc; padding: 0; border: 0; }
.toc a {
  display: flex; gap: 11px; align-items: baseline; padding: 8px 10px; margin: 0 -10px;
  border-radius: 8px; color: var(--muted); font-size: .87rem; line-height: 1.4;
}
.toc a::before {
  content: counter(toc, decimal-leading-zero);
  font-family: var(--f-mono); font-size: .64rem; color: var(--dim); flex-shrink: 0;
}
.toc a:hover { color: var(--ink); background: var(--surface-2); }
.toc a.active { color: var(--accent-2); background: var(--accent-dim); }
.toc a.active::before { color: var(--accent-2); }

.author-box { background: linear-gradient(150deg, var(--surface-2), var(--surface)); border-color: var(--line-2); }
.author-box .name { font-family: var(--f-display); font-weight: 700; color: var(--ink); font-size: 1.05rem; }
.author-box p { font-size: .88rem; color: var(--muted); margin: 8px 0 0; line-height: 1.6; }

/* =============================================================================
   HUB / LIST PAGES
   ========================================================================== */
.page-head { position: relative; padding: 68px 0 52px; overflow: hidden; border-bottom: 1px solid var(--line); }
.page-head::before {
  content: ""; position: absolute; top: -220px; left: 12%; width: 700px; height: 500px; pointer-events: none;
  background: radial-gradient(circle, rgba(216,31,42,.16), transparent 66%);
}
.page-head > .container { position: relative; }
.page-head h1 { margin-bottom: .3em; }
.page-head p { color: var(--muted); max-width: 62ch; margin: 0; font-size: 1.1rem; }
.kw-row { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 24px; }

.list-row {
  display: grid; grid-template-columns: 56px minmax(0,1fr); gap: 22px;
  padding: 28px 0; border-bottom: 1px solid var(--line);
}
.list-row:first-of-type { border-top: 1px solid var(--line); }
.list-index { font-family: var(--f-mono); font-size: .78rem; color: var(--dim); padding-top: 4px; }
.list-row h3 { font-size: 1.32rem; margin: 0 0 10px; }
.list-row h3 a { color: var(--ink); }
.list-row h3 a:hover { color: var(--accent-2); }
.list-row p { color: var(--muted); margin: 0 0 14px; font-size: .97rem; }

/* =============================================================================
   FOOTER
   ========================================================================== */
.site-footer { background: var(--bg-2); border-top: 1px solid var(--line); padding-top: 64px; font-size: .93rem; color: var(--muted); }
.footer-grid { display: grid; gap: 44px; grid-template-columns: 1.7fr 1fr 1fr 1fr; padding-bottom: 48px; }
.footer-brand { font-family: var(--f-display); font-weight: 800; font-size: 1.3rem; color: var(--ink); margin-bottom: 14px; letter-spacing: -.03em; }
.site-footer h4 {
  font-family: var(--f-mono); font-size: .64rem; letter-spacing: .16em;
  text-transform: uppercase; color: var(--dim); margin: 0 0 16px; font-weight: 500;
}
.footer-links { list-style: none; padding: 0; margin: 0; }
.footer-links li { margin-bottom: 10px; }
.footer-links a { color: var(--muted); font-size: .9rem; }
.footer-links a:hover { color: var(--ink); }

.social { display: flex; gap: 8px; margin-top: 20px; }
.social a {
  width: 36px; height: 36px; display: grid; place-items: center; border-radius: 10px;
  border: 1px solid var(--line); background: var(--surface); color: var(--muted);
  font-family: var(--f-mono); font-size: .64rem;
}
.social a:hover { border-color: var(--accent); color: var(--accent-2); }

.disclaimer { border-top: 1px solid var(--line); padding: 24px 0; font-size: .82rem; color: var(--dim); line-height: 1.65; }
.footer-bottom {
  border-top: 1px solid var(--line); padding: 20px 0 30px;
  display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  font-size: .8rem; color: var(--dim);
}
.footer-bottom a { color: var(--muted); }
.footer-bottom a:hover { color: var(--ink); }

/* =============================================================================
   MOTION
   ========================================================================== */
.reveal { opacity: 0; transform: translateY(16px); transition: opacity .65s ease, transform .65s cubic-bezier(.2,.7,.3,1); }
.reveal.in { opacity: 1; transform: none; }
.reveal[data-d="1"] { transition-delay: .08s; }
.reveal[data-d="2"] { transition-delay: .16s; }
.reveal[data-d="3"] { transition-delay: .24s; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
}

/* =============================================================================
   RESPONSIVE
   ========================================================================== */
@media (max-width: 1080px) {
  .layout { grid-template-columns: minmax(0,1fr); gap: 44px; }
  .sidebar { position: static; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 860px) {
  body { font-size: 16px; }
  .menu-toggle { display: block; }
  .header-cta { display: none; }
  .nav {
    position: absolute; top: var(--header-h); left: 12px; right: 12px;
    background: var(--surface); border: 1px solid var(--line); border-radius: var(--r);
    flex-direction: column; align-items: stretch; gap: 2px; padding: 10px;
    display: none; box-shadow: 0 24px 60px rgba(0,0,0,.6);
  }
  .nav.open { display: flex; }
  .nav a { padding: 13px 14px; font-size: .92rem; }
  .hero { padding: 60px 0 48px; }
  .section { padding: 58px 0; }
  .rail { grid-template-columns: repeat(2, 1fr); margin-top: 44px; }
  .list-row { grid-template-columns: 1fr; gap: 8px; }
  .list-index { padding-top: 0; }
  .article-body { font-size: 1.04rem; }
}

@media (max-width: 520px) {
  .container { padding: 0 18px; }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .rail { grid-template-columns: 1fr; }
  .article-body { max-width: 100%; }
  .btn { width: 100%; justify-content: center; }
  .hero-actions { flex-direction: column; }
}

/* =============================================================================
   PRINT
   ========================================================================== */
@media print {
  .site-header, .site-footer, .sidebar, .ad-zone, .ad-zone--strip, .hero-actions, .progress { display: none !important; }
  body { background: #fff; color: #000; font-size: 12pt; }
  .layout { display: block; }
  h1, h2, h3, .article-body strong { color: #000; }
}

/* =============================================================================
   PERFORMANCE — CLS aur rendering optimisations
   ========================================================================== */

/* Ad slots ke liye pehle se jagah reserve — warna ad load hote hi page kudta hai
   (Cumulative Layout Shift). Height apne ad sizes ke hisaab se adjust kar sakte ho. */
.ad-zone__inner { min-height: 100px; align-items: center; }
.ad-zone[data-slot="top_banner"]     .ad-zone__inner,
.ad-zone[data-slot="header_banner"]  .ad-zone__inner,
.ad-zone[data-slot="footer_banner"]  .ad-zone__inner,
.ad-zone[data-slot="category_top"]   .ad-zone__inner,
.ad-zone[data-slot="category_bottom"].ad-zone__inner { min-height: 100px; }

.ad-zone[data-slot="article_top"]    .ad-zone__inner,
.ad-zone[data-slot="article_inline"] .ad-zone__inner,
.ad-zone[data-slot="article_mid"]    .ad-zone__inner,
.ad-zone[data-slot="article_bottom"] .ad-zone__inner,
.ad-zone[data-slot="home_band_1"]    .ad-zone__inner,
.ad-zone[data-slot="home_band_2"]    .ad-zone__inner { min-height: 280px; }

.ad-zone[data-slot="sidebar_1"] .ad-zone__inner { min-height: 250px; }
.ad-zone[data-slot="sidebar_2"] .ad-zone__inner { min-height: 600px; }

@media (max-width: 860px) {
  .ad-zone__inner { min-height: 260px; }
  .ad-zone[data-slot="top_banner"] .ad-zone__inner,
  .ad-zone[data-slot="header_banner"] .ad-zone__inner { min-height: 100px; }
  .ad-zone[data-slot="sidebar_2"] .ad-zone__inner { min-height: 280px; }
}

/* Below-fold sections ka rendering tab tak skip — scroll par paint hote hain.
   contain-intrinsic-size layout shift rokta hai. */
.section--alt,
.site-footer { content-visibility: auto; contain-intrinsic-size: auto 600px; }

/* Backdrop blur mobile par mehnga padta hai — wahan solid background */
@media (max-width: 860px) {
  .site-header {
    backdrop-filter: none; -webkit-backdrop-filter: none;
    background: #0d0d0f;
  }
}

/* Hero ka bada radial glow paint cost badhata hai — GPU layer me bhej do */
.hero::before, .page-head::before { will-change: transform; }

/* =============================================================================
   COLOUR ACCENTS — har category/card ka apna rang
   Rang badalne hain? :root me --c1 se --c7 edit kar do.
   ========================================================================== */

/* Category tiles: top edge stripe + matching hover glow */
.cat-grid .cat-tile,
.card-grid .card { --tint: var(--c1); }
.cat-grid .cat-tile:nth-child(7n+1), .card-grid .card:nth-child(7n+1) { --tint: var(--c1); }
.cat-grid .cat-tile:nth-child(7n+2), .card-grid .card:nth-child(7n+2) { --tint: var(--c2); }
.cat-grid .cat-tile:nth-child(7n+3), .card-grid .card:nth-child(7n+3) { --tint: var(--c3); }
.cat-grid .cat-tile:nth-child(7n+4), .card-grid .card:nth-child(7n+4) { --tint: var(--c4); }
.cat-grid .cat-tile:nth-child(7n+5), .card-grid .card:nth-child(7n+5) { --tint: var(--c5); }
.cat-grid .cat-tile:nth-child(7n+6), .card-grid .card:nth-child(7n+6) { --tint: var(--c6); }
.cat-grid .cat-tile:nth-child(7n+7), .card-grid .card:nth-child(7n+7) { --tint: var(--c7); }

.cat-tile::before, .card::before {
  content: ""; position: absolute; top: 0; left: 0; right: 0; height: 3px;
  background: linear-gradient(90deg, var(--tint), transparent 85%);
  opacity: .85;
}
.cat-tile::after {
  background: radial-gradient(460px circle at 50% 0%,
    color-mix(in srgb, var(--tint) 22%, transparent), transparent 72%);
}
.cat-tile:hover, .card:hover {
  border-color: color-mix(in srgb, var(--tint) 45%, var(--line));
  box-shadow: 0 18px 44px -18px color-mix(in srgb, var(--tint) 55%, transparent);
}
.cat-tile:hover h3, .card:hover h3 a { color: var(--tint); }

/* Category chip picks up the tile's colour */
.cat-tile .chip {
  background: color-mix(in srgb, var(--tint) 14%, transparent);
  color: var(--tint);
  border-color: color-mix(in srgb, var(--tint) 30%, transparent);
}
.card .card-go { color: var(--tint); }
.card .card-go::after { content: " →"; }

/* Hero topic rail — same rotation */
.rail .rail-item:nth-child(7n+1) { --tint: var(--c1); }
.rail .rail-item:nth-child(7n+2) { --tint: var(--c2); }
.rail .rail-item:nth-child(7n+3) { --tint: var(--c3); }
.rail .rail-item:nth-child(7n+4) { --tint: var(--c4); }
.rail .rail-item:nth-child(7n+5) { --tint: var(--c5); }
.rail .rail-item:nth-child(7n+6) { --tint: var(--c6); }
.rail .rail-item:nth-child(7n+7) { --tint: var(--c7); }
.rail-item { border-top: 2px solid color-mix(in srgb, var(--tint) 60%, transparent); }
.rail-item .rail-num { color: var(--tint); }
.rail-item:hover {
  border-color: color-mix(in srgb, var(--tint) 50%, var(--line));
  border-top-color: var(--tint);
  box-shadow: 0 14px 34px -16px color-mix(in srgb, var(--tint) 60%, transparent);
}
.rail-item:hover .rail-name { color: var(--tint); }

/* Sidebar + widgets get the same lift */
.widget { background: linear-gradient(160deg, var(--surface-2), var(--surface)); }
.faq details { background: linear-gradient(160deg, var(--surface-2), var(--surface)); }
.note, .warn, .keytake, .checklist, .table-wrap, .article-body blockquote {
  background: linear-gradient(160deg, var(--surface-2), var(--surface));
}

/* Fallback for browsers without color-mix (older Safari/Firefox) */
@supports not (color: color-mix(in srgb, red 50%, blue)) {
  .cat-tile:hover, .card:hover, .rail-item:hover { border-color: var(--line-2); }
  .cat-tile .chip { background: var(--accent-dim); color: var(--accent-2); }
  .cat-tile::after {
    background: radial-gradient(460px circle at 50% 0%, rgba(216,31,42,.18), transparent 72%);
  }
}

/* List rows on hub pages also get colour */
.list-row:nth-child(7n+1) { --tint: var(--c1); }
.list-row:nth-child(7n+2) { --tint: var(--c2); }
.list-row:nth-child(7n+3) { --tint: var(--c3); }
.list-row:nth-child(7n+4) { --tint: var(--c4); }
.list-row:nth-child(7n+5) { --tint: var(--c5); }
.list-row:nth-child(7n+6) { --tint: var(--c6); }
.list-row:nth-child(7n+7) { --tint: var(--c7); }
.list-row .list-index { color: var(--tint, var(--accent-2)); }
.list-row h3 a:hover { color: var(--tint, var(--accent-2)); }

/* Hero hata diya gaya hai — pehla section ko thodi extra breathing room */
.section--first { padding-top: 62px; }
.section--first h1 { font-size: clamp(2rem, 4.2vw, 3rem); max-width: 18ch; margin-bottom: .3em; }
.section--first .section-head p { max-width: 64ch; font-size: 1.05rem; }
@media (max-width: 860px) { .section--first { padding-top: 40px; } }


/* =============================================================================
   MOBILE PERFORMANCE
   ========================================================================== */
@media (max-width: 860px) {
  /* fixed background mobile par har scroll frame repaint karta hai — bahut mehnga */
  body { background-attachment: scroll; }
  /* content-visibility ka intrinsic size chhota — jaldi settle hota hai */
  .section--alt, .site-footer { contain-intrinsic-size: auto 400px; }
}

/* Mono font ab system stack use karta hai — ek poori font family ka download bacha */
:root {
  --f-mono: ui-monospace, "SF Mono", SFMono-Regular, "DejaVu Sans Mono",
            Menlo, Consolas, "Liberation Mono", monospace;
}

/* =============================================================================
   NAV "MORE" DROPDOWN
   ========================================================================== */
.nav-more { position: relative; }
.nav-more__btn {
  display: inline-flex; align-items: center; gap: 6px;
  font-family: var(--f-body); font-size: .875rem; font-weight: 500;
  color: var(--muted); background: none; border: 0; cursor: pointer;
  padding: 9px 13px; border-radius: 9px;
  transition: color .18s ease, background .18s ease;
}
.nav-more__btn:hover, .nav-more__btn[aria-expanded="true"] { color: var(--ink); background: var(--surface-2); }
.nav-more__btn.active { color: var(--ink); background: var(--surface-2); }
.nav-more__chev {
  width: 7px; height: 7px; margin-top: -3px;
  border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor;
  transform: rotate(45deg); transition: transform .2s ease;
}
.nav-more__btn[aria-expanded="true"] .nav-more__chev { transform: rotate(-135deg); margin-top: 2px; }

.nav-more__menu {
  position: absolute; top: calc(100% + 10px); right: 0; z-index: 120;
  min-width: 230px; padding: 8px;
  background: var(--surface); border: 1px solid var(--line-2);
  border-radius: var(--r); box-shadow: 0 24px 50px rgba(0,0,0,.5);
  display: none; flex-direction: column; gap: 2px;
}
.nav-more.open .nav-more__menu { display: flex; }
.nav-more__menu a {
  display: block; padding: 10px 12px; border-radius: 8px;
  font-size: .875rem; color: var(--ink-2); white-space: nowrap;
}
.nav-more__menu a:hover { background: var(--surface-2); color: var(--ink); }
.nav-more__menu a.active { color: var(--accent-2); background: var(--accent-dim); }

/* =============================================================================
   EMPTY AD SLOTS — jab tak ad load nahi hota, khaali box aur label chhupe rahein
   ========================================================================== */
@supports selector(:has(*)) {
  .ad-zone:has(.ad-zone__inner > div:empty) { display: none; }
  .ad-zone--strip:has(.ad-zone:not([style])) { padding: 0; border: 0; }
}
/* Purane browsers ke liye: reserve kam, taaki dead space chhota rahe */
@supports not selector(:has(*)) {
  .ad-zone__inner { min-height: 0; }
  .ad-zone { margin: 18px auto; }
}

/* Reserved heights thodi kam — CLS bachta hai par page khaali nahi lagta */
.ad-zone__inner { min-height: 90px; }
.ad-zone[data-slot="article_top"]    .ad-zone__inner,
.ad-zone[data-slot="article_inline"] .ad-zone__inner,
.ad-zone[data-slot="article_mid"]    .ad-zone__inner,
.ad-zone[data-slot="article_bottom"] .ad-zone__inner,
.ad-zone[data-slot="home_band_1"]    .ad-zone__inner,
.ad-zone[data-slot="home_band_2"]    .ad-zone__inner { min-height: 250px; }

/* Header ke neeche wala banner section se chipke nahi */
.site-header + .container > .ad-zone { margin-top: 20px; margin-bottom: 4px; }

@media (max-width: 1150px) {
  .menu-toggle { display: block; }
  .header-cta { display: none; }
  .nav {
    position: absolute; top: var(--header-h); left: 12px; right: 12px;
    background: var(--surface); border: 1px solid var(--line); border-radius: var(--r);
    flex-direction: column; align-items: stretch; gap: 2px; padding: 10px;
    display: none; box-shadow: 0 24px 60px rgba(0,0,0,.6); max-height: 76vh; overflow-y: auto;
  }
  .nav.open { display: flex; }
  .nav a { padding: 13px 14px; font-size: .92rem; }
  /* Mobile menu me dropdown flat ho jata hai */
  .nav-more { position: static; }
  .nav-more__btn { display: none; }
  .nav-more__menu {
    position: static; display: flex; min-width: 0; padding: 0;
    background: none; border: 0; box-shadow: none;
    border-top: 1px solid var(--line); margin-top: 6px; padding-top: 6px;
  }
}

/* =============================================================================
   MOBILE POLISH — tap targets, table scrolling, safety nets
   ========================================================================== */

/* Wide tables scroll horizontally instead of squashing into unreadable columns */
.table-wrap { -webkit-overflow-scrolling: touch; }
.table-wrap table { min-width: 520px; }
/* Safety net: koi table galti se .table-wrap ke bahar reh jaye to bhi scroll ho */
.article-body > table { display: block; overflow-x: auto; max-width: 100%; }

/* Tap targets — WCAG 44px */
.social a { width: 42px; height: 42px; }
.nav-more__menu a { padding: 12px; }
.footer-links a { display: inline-block; padding: 3px 0; }
.breadcrumbs a { padding: 2px 0; display: inline-block; }

/* Hero glow decoration kabhi horizontal scroll na banaye */
.hero::before, .page-head::before { max-width: 100vw; }

/* Long URLs / code words layout na todein */
.article-body p, .article-body li, .card p, .cat-tile p { overflow-wrap: break-word; }

@media (max-width: 520px) {
  .table-wrap table { min-width: 460px; }
  .article-body h2 { font-size: 1.35rem; }
  .article-body .lead { font-size: 1.2rem; }
  .section-head { margin-bottom: 28px; }
  .widget, .card, .cat-tile { padding: 20px 18px; }
  .next-read { padding: 22px 18px; }
  .note, .warn, .keytake { padding: 18px 18px; }
  .steps li { padding-left: 46px; }
}

/* =============================================================================
   TOP AD STRIP — header ke upar wali patti
   Ad na ho to poori strip gayab (koi khaali jagah nahi bachti).
   ========================================================================== */
.ad-strip-top {
  background: var(--bg-2);
  border-bottom: 1px solid var(--line);
  padding: 10px 0;
}
.ad-strip-top .ad-zone { margin: 0; }
.ad-strip-top .ad-zone__inner { min-height: 90px; }

@supports selector(:has(*)) {
  /* slot khaali hai -> poori strip hide */
  .ad-strip-top:has(.ad-zone__inner > div:empty) { display: none; }
  /* ad hi disabled hai -> strip me koi ad-zone nahi -> hide */
  .ad-strip-top:not(:has(.ad-zone)) { display: none; }
}
@supports not selector(:has(*)) {
  .ad-strip-top .ad-zone__inner { min-height: 0; }
}

@media (max-width: 860px) {
  .ad-strip-top { padding: 8px 0; }
  .ad-strip-top .ad-zone__inner { min-height: 60px; }
}


/* =============================================================================
   TOP STRIP — header ke upar red trust bar
   ========================================================================== */
.trust-strip {
  background: var(--accent);
  color: #fff;
  font-size: .82rem;
  font-weight: 600;
  letter-spacing: .005em;
  text-align: center;
  padding: 9px 16px;
  line-height: 1.4;
}
.trust-strip a { color: #fff; text-decoration: underline; text-underline-offset: 2px; }

/* Verdict theme — thoda aur sharp, authority wala feel */
.card, .cat-tile, .widget, .note, .warn, .keytake, .checklist,
.table-wrap, .faq details, .next-read { border-radius: 7px; }

.section--first h1 { max-width: 20ch; }

/* Emergency / call-to-action box article ke andar */
.cta-box {
  margin: 2.4rem 0; padding: 26px 28px; border-radius: 8px;
  background: linear-gradient(135deg, var(--accent), #a3121b);
  color: #fff;
}
.cta-box h4 {
  font-family: var(--f-display); font-size: 1.15rem; color: #fff;
  margin: 0 0 8px; letter-spacing: -.02em;
}
.cta-box p { margin: 0; font-size: .98rem; color: rgba(255,255,255,.92); }
.cta-box p:last-child { margin-bottom: 0; }
.cta-box a { color: #fff; text-decoration: underline; }

/* Legal disclaimer box */
.legal-note {
  margin: 2.4rem 0 0; padding: 18px 22px; border-radius: 7px;
  background: var(--surface); border: 1px solid var(--line);
  font-size: .88rem; color: var(--muted); line-height: 1.65;
}
.legal-note strong { color: var(--ink-2); }

/* Compact page title — hero aur section-head dono hata diye gaye hain */
.page-title {
  font-size: clamp(1.5rem, 3vw, 2rem);
  margin: 0 0 28px;
  color: var(--ink);
}
.section--first { padding-top: 42px; }

/* =============================================================================
   MOBILE VIDEO BANNER (video-banner.php + assets/js/vcontrol.js)
   ========================================================================== */
.mobile-video-banner { position: relative; background: #000; border-bottom: 1px solid var(--line); }
.mobile-video-wrap { position: relative; width: 100%; aspect-ratio: 16/9; background: #000; overflow: hidden; }
.mobile-top-video { width: 100%; height: 100%; object-fit: cover; display: block; background: #000; }
.mobile-video-dim { position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(180deg, transparent 55%, rgba(0,0,0,.55) 100%); }
.mobile-video-spinner { position: absolute; inset: 0; display: grid; place-items: center; background: #000; z-index: 2; }
.mobile-video-wrap:not(.is-loading) .mobile-video-spinner { display: none; }
.mobile-video-spinner-ring { width: 38px; height: 38px; border-radius: 50%;
  border: 3px solid rgba(255,255,255,.22); border-top-color: var(--accent); animation: mv-spin .8s linear infinite; }
@keyframes mv-spin { to { transform: rotate(360deg); } }
.mobile-video-btn { position: absolute; left: 50%; bottom: 16px; transform: translateX(-50%); z-index: 3;
  display: inline-flex; align-items: center; justify-content: center; padding: 13px 28px; border-radius: 100px;
  background: linear-gradient(135deg, var(--accent), #a3121b); color: #fff; font-weight: 600; font-size: .92rem;
  text-decoration: none; box-shadow: 0 10px 26px rgba(216,31,42,.45); animation: mv-pulse 2s ease-in-out infinite; }
.mobile-video-btn[hidden] { display: none; }
.mobile-video-btn:hover { color: #fff; }
@keyframes mv-pulse { 0%,100% { transform: translateX(-50%) scale(1); } 50% { transform: translateX(-50%) scale(1.045); } }
.mobile-video-next-bar { display: flex; justify-content: flex-end; padding: 10px 16px; background: var(--bg-2); }
.mobile-video-next {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 26px; border-radius: 100px; border: 0;
  background: linear-gradient(135deg, var(--accent), #a3121b);
  color: #fff; font-size: .88rem; font-weight: 600; text-decoration: none;
  box-shadow: 0 8px 22px rgba(216,31,42,.40);
  transition: transform .18s ease, box-shadow .2s ease;
}
.mobile-video-next::after { content: "→"; }
.mobile-video-next:hover, .mobile-video-next:active {
  color: #fff; transform: translateY(-1px);
  box-shadow: 0 12px 28px rgba(216,31,42,.52);
}
@media (min-width: 861px) { .mobile-video-banner { display: none !important; } }
@media (prefers-reduced-motion: reduce) { .mobile-video-spinner-ring, .mobile-video-btn { animation: none; } }

/* =============================================================================
   SIDEBAR — ads on/off dono me sahi dikhe
   Pehle: ad slot chhupne par sidebar ke upar/neeche khaali gap reh jata tha,
   aur sidebar ads ke saath mix hua lagta tha.
   ========================================================================== */

/* Sidebar ke ad slots ka margin sirf tab jab wo actually dikh rahe hon */
.sidebar > .ad-zone { margin: 0 0 20px; }
.sidebar > .ad-zone:last-child { margin-bottom: 0; }

/* Chhupe hue ad slots se koi gap na bache */
@supports selector(:has(*)) {
  .sidebar > .ad-zone:has(.ad-zone__inner > div:empty) { display: none !important; }
  /* Sidebar me sirf ads the aur sab chhup gaye -> sidebar hi hata do */
  .sidebar:not(:has(.widget)) { display: none; }
  /* Sidebar gayab -> article poori width le le */
  .layout:not(:has(.sidebar .widget)) { grid-template-columns: minmax(0, 1fr); }
  .layout:not(:has(.sidebar .widget)) .article-body { max-width: var(--measure); margin: 0 auto; }
}

/* Sidebar widgets hamesha ad se alag dikhein */
.sidebar .widget:first-of-type { margin-top: 0; }
.sidebar .ad-zone + .widget { margin-top: 0; }
.sidebar .ad-zone__label { color: var(--dim); }

/* Mobile par sidebar content ke neeche, saaf separation ke saath */
@media (max-width: 1080px) {
  .sidebar { border-top: 1px solid var(--line); padding-top: 32px; margin-top: 8px; }
  .sidebar .toc { display: none; }   /* TOC upar article me already hai */
}
