/* =============================================================================
   BLOG ARTICLES — every page in posts/ (loaded after sh-home.css)
   Layout: includes/partials/article-top.php and article-bottom.php.
   One family (Archivo, with its width axis): condensed for headings, normal width
   for reading. The one bold element is the subsidy staircase (.ar-stairs).
   ============================================================================= */
.ar-hero, .ar-layout, .ar-more{
  --a-navy:var(--navy,#18457b); --a-deep:var(--navy-deep,#0f2f57); --a-gold:var(--gold,#f8bc2d); --a-gold-ink:#8a5a00;
  --a-ink:#10243f; --a-slate:#4b5d73; --a-mist:#f3f7fb; --a-line:#dfe7f1; --a-green:#1f7a4a;
}

/* ---------- banner ---------- */
.ar-hero{ position:relative; isolation:isolate; overflow:hidden; color:#c9d6e6;
  background:linear-gradient(160deg, #0f2f57 0%, #0b2546 60%, #0a1f3a 100%); }
.ar-hero__in{ display:grid; grid-template-columns:minmax(0, 1.15fr) minmax(0, .85fr); gap:56px; align-items:center;
  padding-top:72px; padding-bottom:80px; }
/* breadcrumb: same look as the other page banners */
.ar-hero .crumb{ margin-bottom:22px; font-size:14px; color:rgba(255,255,255,.72); }
.ar-hero .crumb a{ color:inherit; text-decoration:none; }
.ar-hero .crumb a:hover{ color:#fff; text-decoration:underline; }
.ar-hero .crumb span[aria-hidden]{ margin:0 6px; }
.ar-hero .crumb [aria-current]{ color:#fff; }
.ar-tag{ display:inline-block; margin:0 0 14px; padding:5px 12px; border-radius:999px; background:rgba(248,188,45,.14);
  border:1px solid rgba(248,188,45,.35); color:var(--a-gold); font-size:14px; font-weight:700; }
.ar-hero h1{ margin:0; color:#fff; font-size:clamp(2.4rem, 5.2vw, 4.6rem); font-weight:800; font-stretch:78%;
  line-height:.98; letter-spacing:-.01em; max-width:14ch; text-wrap:balance; }
.ar-dek{ margin:20px 0 0; max-width:46ch; font-size:clamp(1.05rem, 1.4vw, 1.25rem); line-height:1.55; color:#d3deeb; }
.ar-meta{ display:flex; flex-wrap:wrap; gap:6px 0; margin:26px 0 0; padding:0; list-style:none; font-size:14.5px; color:#9fb3cb; }
.ar-meta li + li{ margin-left:14px; padding-left:14px; border-left:1px solid rgba(255,255,255,.2); }
.ar-hero__fig{ margin:0; }
.ar-hero__fig img{ display:block; width:100%; height:auto; aspect-ratio:4 / 3; object-fit:cover; border-radius:18px;
  box-shadow:0 30px 60px rgba(0,0,0,.35); outline:1px solid rgba(255,255,255,.12); outline-offset:-1px; }

/* ---------- two columns: article + sticky sidebar ---------- */
.ar-layout{ display:grid; grid-template-columns:minmax(0, 1fr) 300px; gap:72px; align-items:start;
  padding-top:64px; padding-bottom:88px; }
.ar-body{ min-width:0; max-width:70ch; color:var(--a-ink); font-size:1.125rem; line-height:1.72; }
.ar-body p{ margin:0 0 1.1em; }
.ar-body a:not(.btn){ color:var(--a-navy); font-weight:600; text-decoration:underline; text-decoration-color:rgba(24,69,123,.35); text-underline-offset:3px; }
.ar-body a:not(.btn):hover{ text-decoration-color:var(--a-gold); }
.ar-body h2{ margin:0 0 .5em; color:var(--a-deep); font-size:clamp(1.75rem, 2.6vw, 2.25rem); font-weight:800; font-stretch:80%;
  line-height:1.08; letter-spacing:-.005em; scroll-margin-top:120px; }
.ar-body h3{ margin:0 0 .25em; color:var(--a-deep); font-size:1.15rem; line-height:1.3; }
.ar-sec{ margin-top:64px; }
.ar-lead{ font-size:1.3rem; line-height:1.6; color:var(--a-deep); }

/* contents, phones only (the sidebar takes over on wide screens) */
.ar-toc-m{ display:none; margin:0 0 32px; border:1px solid var(--a-line); border-radius:12px; background:#fff; }
.ar-toc-m summary{ padding:14px 18px; font-weight:700; color:var(--a-deep); cursor:pointer; }
.ar-toc-m ol{ margin:0; padding:0 18px 16px 36px; font-size:1rem; line-height:1.9; }
.ar-toc-m a{ text-decoration:none; }

/* key facts */
.ar-facts{ display:grid; grid-template-columns:repeat(2, minmax(0, 1fr)); margin:36px 0 0; padding:0; border-top:2px solid var(--a-deep); }
.ar-facts > div{ padding:16px 20px 18px 0; border-bottom:1px solid var(--a-line); }
.ar-facts > div:nth-child(odd){ padding-right:24px; border-right:1px solid var(--a-line); }
.ar-facts > div:nth-child(even){ padding-left:24px; }
.ar-facts dt{ font-size:14.5px; color:var(--a-slate); }
.ar-facts dd{ margin:4px 0 0; color:var(--a-deep); font-size:1.5rem; font-weight:800; font-stretch:80%; line-height:1.15; }
.ar-facts dd a{ font-weight:800; }

/* ---------- the subsidy staircase ---------- */
.ar-stairs{ margin:36px 0 32px; padding:28px 28px 22px; border-radius:20px; background:var(--a-mist); }
.ar-stairs ol{ display:grid; grid-template-columns:repeat(4, minmax(0, 1fr)); gap:14px; align-items:end; height:300px;
  margin:0; padding:0; list-style:none; border-bottom:2px solid var(--a-deep); }
.ar-stairs li{ display:flex; flex-direction:column; justify-content:flex-end; height:100%; min-width:0; }
.ar-stairs b{ display:block; margin-bottom:8px; color:var(--a-deep); font-size:clamp(1rem, 2vw, 1.35rem); font-weight:800;
  font-stretch:80%; line-height:1.1; }
/* --k on each step is its share of the tallest one (₹1.56 lakh = 1) */
.ar-stairs__bar{ position:relative; display:block; height:calc((100% - 44px) * var(--k, 1)); min-height:24px; border-radius:10px 10px 0 0;
  background:var(--a-gold); transform-origin:bottom; }
.ar-stairs .is-delhi .ar-stairs__bar{ background:var(--a-navy); }
.ar-stairs .is-delhi .ar-stairs__bar i{ position:absolute; left:0; right:0; bottom:0; height:50%; background:var(--a-gold); }
.ar-stairs li{ position:relative; }
.ar-stairs__kw{ position:absolute; left:0; top:100%; margin-top:10px; font-size:14.5px; font-weight:700; color:var(--a-slate); white-space:nowrap; }
.ar-stairs figcaption{ display:flex; flex-wrap:wrap; align-items:center; gap:8px 10px; margin-top:44px; font-size:14.5px; color:var(--a-slate); }
.ar-key{ display:inline-block; width:14px; height:14px; border-radius:4px; }
.ar-key--c{ background:var(--a-gold); }
.ar-key--d{ margin-left:14px; background:var(--a-navy); }
/* the steps rise once as the chart comes into view (site-article.js adds .ar-anim, then .is-seen) */
@media (prefers-reduced-motion:no-preference){
  .ar-stairs.ar-anim .ar-stairs__bar{ transition:transform .7s cubic-bezier(.2,.7,.2,1); }
  .ar-stairs.ar-anim:not(.is-seen) .ar-stairs__bar{ transform:scaleY(0); }
  .ar-stairs.ar-anim li:nth-child(2) .ar-stairs__bar{ transition-delay:.08s; }
  .ar-stairs.ar-anim li:nth-child(3) .ar-stairs__bar{ transition-delay:.16s; }
  .ar-stairs.ar-anim li:nth-child(4) .ar-stairs__bar{ transition-delay:.24s; }
}

/* ---------- Delhi note ---------- */
.ar-note{ margin:0 0 1.1em; padding:20px 24px; border-left:4px solid var(--a-navy); border-radius:0 14px 14px 0; background:var(--a-mist); }
.ar-note p:last-child{ margin-bottom:0; }
.ar-note__t{ margin:0 0 6px !important; color:var(--a-deep); font-weight:800; font-stretch:85%; font-size:1.2rem; }

/* ---------- checks before applying (sub-sections with their own heading) ---------- */
.ar-pre{ margin-top:32px; }
.ar-pre h3{ font-size:1.3rem; font-stretch:85%; }

/* the name-match picture: the same name on three documents, and one that differs */
.ar-match{ margin:20px 0 8px; padding:22px; border-radius:20px; background:var(--a-mist); }
.ar-match__row{ display:grid; grid-template-columns:128px repeat(3, minmax(0, 1fr)); gap:12px; align-items:stretch; }
.ar-match__row + .ar-match__row{ margin-top:12px; }
.ar-match__v{ display:flex; align-items:center; gap:7px; margin:0 !important; font-size:15px; font-weight:700; line-height:1.2; }
.ar-match__v svg{ flex:none; width:20px; height:20px; }
.ar-match__v--ok{ color:var(--a-green); }
.ar-match__v--off{ color:#b3261e; }
.ar-doc{ margin:0 !important; padding:12px 14px 13px; border:1px solid var(--a-line); border-radius:12px; background:#fff; line-height:1.25; }
.ar-doc__k{ display:block; font-size:13px; color:var(--a-slate); }
.ar-doc__n{ display:block; margin-top:3px; color:var(--a-deep); font-size:1.15rem; font-weight:800; font-stretch:82%; white-space:nowrap; }
.ar-doc--bad{ border-color:#e7b9b3; background:#fff8f7; }
.ar-doc__x{ text-decoration:underline wavy #b3261e; text-decoration-thickness:1.5px; text-underline-offset:5px; }
.ar-match figcaption{ margin-top:16px; font-size:15px; line-height:1.55; color:var(--a-slate); }

/* problem / fix pairs */
.ar-fix{ margin:22px 0 1.1em; border-top:2px solid var(--a-deep); }
.ar-fix > div{ display:grid; grid-template-columns:minmax(0, .9fr) minmax(0, 1.1fr); gap:24px; padding:14px 0; border-bottom:1px solid var(--a-line); }
.ar-fix dt{ color:var(--a-deep); font-weight:700; line-height:1.45; }
.ar-fix dd{ margin:0; color:var(--a-slate); font-size:1.05rem; line-height:1.55; }

/* ---------- lists ---------- */
.ar-check{ margin:0 0 1.1em; padding:0; list-style:none; }
.ar-check li{ display:flex; gap:12px; align-items:flex-start; padding:10px 0; border-bottom:1px solid var(--a-line); }
.ar-check li:first-child{ border-top:1px solid var(--a-line); }
.ar-check svg{ flex:none; width:22px; height:22px; margin-top:3px; color:var(--a-green); }
.ar-check b{ color:var(--a-deep); }
.ar-list{ margin:0 0 1.1em; padding-left:1.2em; }
.ar-list li{ margin:.35em 0; padding-left:.3em; }
.ar-list li::marker{ color:var(--a-gold-ink); }

/* ---------- application steps (a real sequence, so numbered) ---------- */
.ar-steps{ counter-reset:ar; margin:28px 0 0; padding:0; list-style:none; }
.ar-steps li{ counter-increment:ar; position:relative; padding:0 0 26px 64px; }
.ar-steps li::before{ content:counter(ar); position:absolute; left:0; top:0; display:grid; place-items:center; width:42px; height:42px;
  border-radius:50%; background:var(--a-deep); color:var(--a-gold); font-weight:800; font-size:1.05rem; }
.ar-steps li::after{ content:""; position:absolute; left:20px; top:46px; bottom:4px; width:2px; background:var(--a-line); }
.ar-steps li:last-child{ padding-bottom:0; }
.ar-steps li:last-child::after{ display:none; }
.ar-steps h3{ margin-top:2px; }
.ar-steps p{ margin:0; color:var(--a-slate); font-size:1.05rem; }
.ar-who{ display:inline-block; margin-bottom:6px; padding:2px 10px; border-radius:999px; font-size:13.5px; font-weight:700; line-height:1.6; }
.ar-who--you{ background:#fff1c9; color:var(--a-gold-ink); }
.ar-who--dis{ background:#e4ecf6; color:var(--a-navy); }
.ar-who--ins{ background:#e2f3e9; color:var(--a-green); }
.ar-who--gov{ background:var(--a-deep); color:#fff; }

/* ---------- call to action inside the article ---------- */
.ar-cta{ margin-top:32px; padding:28px 30px; border-radius:20px; background:var(--a-deep); color:#c9d6e6; }
.ar-cta__t{ margin:0 0 6px !important; color:#fff; font-size:1.5rem; font-weight:800; font-stretch:80%; line-height:1.15; }
.ar-cta .btns{ margin-top:18px; }

/* ---------- FAQs ---------- */
.ar-faq details{ border-bottom:1px solid var(--a-line); }
.ar-faq details:first-child{ border-top:1px solid var(--a-line); }
.ar-faq summary{ position:relative; padding:18px 44px 18px 0; list-style:none; cursor:pointer; color:var(--a-deep); font-weight:700; line-height:1.4; }
.ar-faq summary::-webkit-details-marker{ display:none; }
.ar-faq summary::after{ content:""; position:absolute; right:4px; top:50%; width:22px; height:22px; margin-top:-11px;
  background:linear-gradient(var(--a-navy), var(--a-navy)) center / 12px 2px no-repeat,
             linear-gradient(var(--a-navy), var(--a-navy)) center / 2px 12px no-repeat; transition:transform .2s; }
.ar-faq details[open] summary::after{ transform:rotate(45deg); }
.ar-faq details p{ margin:0; padding:0 0 20px; color:var(--a-slate); font-size:1.05rem; }

/* ---------- end of article: share + last checked ---------- */
.ar-end{ margin-top:56px; padding-top:28px; border-top:2px solid var(--a-deep); }
.ar-share p{ margin:0 0 12px; font-weight:700; color:var(--a-deep); }
.ar-share ul{ display:flex; flex-wrap:wrap; gap:10px; margin:0; padding:0; list-style:none; }
.ar-share a, .ar-share button{ display:inline-flex; align-items:center; gap:8px; padding:9px 14px; border:1px solid var(--a-line);
  border-radius:999px; background:#fff; color:var(--a-deep); font:inherit; font-size:15px; font-weight:600; text-decoration:none; cursor:pointer; }
.ar-body .ar-share a{ color:var(--a-deep); font-weight:600; text-decoration:none; }
.ar-share a:hover, .ar-share button:hover{ border-color:var(--a-navy); }
.ar-share svg{ width:18px; height:18px; color:var(--a-navy); }
.ar-copy.is-done{ border-color:var(--a-green); color:var(--a-green); }
.ar-checked{ margin:22px 0 0 !important; font-size:14.5px; line-height:1.6; color:var(--a-slate); }

/* ---------- sidebar ---------- */
.ar-side{ position:sticky; top:120px; display:grid; gap:24px; }
.ar-side__t{ margin:0 0 10px; font-weight:800; color:var(--a-deep); }
.ar-toc ol{ margin:0; padding:0; list-style:none; border-left:2px solid var(--a-line); }
.ar-toc a{ display:block; margin-left:-2px; padding:7px 0 7px 16px; border-left:2px solid transparent; color:var(--a-slate);
  font-size:15px; line-height:1.35; text-decoration:none; }
.ar-toc a:hover{ color:var(--a-deep); }
.ar-toc a.is-on{ border-left-color:var(--a-gold); color:var(--a-deep); font-weight:700; }
.ar-survey{ padding:22px; border-radius:18px; background:var(--a-mist); color:var(--a-slate); font-size:15px; line-height:1.55; }
.ar-survey__t{ margin:0 0 6px; color:var(--a-deep); font-size:1.25rem; font-weight:800; font-stretch:80%; }
.ar-survey p{ margin:0 0 16px; }
.ar-survey .btn{ width:100%; justify-content:center; }
.ar-survey__tel{ display:flex; align-items:center; justify-content:center; gap:8px; margin-top:12px; color:var(--a-deep); font-weight:700; text-decoration:none; }
.ar-survey__tel svg{ width:17px; height:17px; color:var(--a-navy); }

/* ---------- keep reading ---------- */
.ar-more{ padding:72px 0 88px; background:var(--a-mist); border-top:1px solid var(--a-line); }
.ar-more__head{ display:flex; flex-wrap:wrap; align-items:baseline; justify-content:space-between; gap:8px 24px; margin-bottom:28px; }
.ar-more__head h2{ margin:0; color:var(--a-deep); font-size:clamp(1.75rem, 2.6vw, 2.25rem); font-weight:800; font-stretch:80%; }
.ar-more__head a{ font-weight:700; color:var(--a-navy); }
.ar-more__none{ max-width:60ch; margin:0; font-size:1.1rem; line-height:1.65; color:var(--a-slate); }
.ar-more__none a{ font-weight:700; color:var(--a-navy); }
/* article cards, scoped here so this page doesn't depend on the blog page's styles */
.ar-more .bgrid{ display:grid; grid-template-columns:repeat(3, minmax(0, 1fr)); gap:24px; }
.ar-more .bcard{ margin:0; }
.ar-more .bcard > a{ display:flex; flex-direction:column; height:100%; overflow:hidden; border:1px solid var(--a-line); border-radius:16px;
  background:#fff; color:inherit; text-decoration:none; }
.ar-more .bcard > a:hover{ border-color:var(--a-navy); }
.ar-more .bcard > a:hover h3{ text-decoration:underline; text-decoration-color:var(--a-gold); text-underline-offset:4px; }
.ar-more .bcard > a:focus-visible{ outline:3px solid var(--a-gold); outline-offset:2px; }
.ar-more .bcard__pic{ position:relative; display:block; aspect-ratio:16 / 10; background:var(--a-line); }
.ar-more .bcard__pic img{ display:block; width:100%; height:100%; object-fit:cover; }
.ar-more .bcard__tag{ position:absolute; left:14px; top:14px; padding:4px 11px; border-radius:999px; background:var(--a-deep);
  color:#fff; font-size:13px; font-weight:700; }
.ar-more .bcard__body{ display:block; padding:18px 20px 22px; }
.ar-more .bcard h3{ margin:0 0 8px; color:var(--a-deep); font-size:1.3rem; font-weight:800; font-stretch:82%; line-height:1.15; }
.ar-more .bcard__x{ display:block; color:var(--a-slate); font-size:15.5px; line-height:1.55; }

/* focus */
.ar-body a:focus-visible, .ar-toc a:focus-visible, .ar-share a:focus-visible, .ar-share button:focus-visible,
.ar-faq summary:focus-visible, .ar-toc-m summary:focus-visible{ outline:3px solid var(--a-gold); outline-offset:2px; border-radius:6px; }

/* ---------- smaller screens ---------- */
@media (max-width:1100px){
  .ar-layout{ grid-template-columns:minmax(0, 1fr) 260px; gap:48px; }
}
@media (max-width:960px){
  .ar-hero__in{ grid-template-columns:1fr; gap:36px; padding-top:48px; padding-bottom:56px; }
  .ar-hero__fig{ max-width:560px; }
  .ar-layout{ grid-template-columns:1fr; padding-top:40px; }
  .ar-body{ max-width:none; }
  .ar-side{ position:static; }
  .ar-toc{ display:none; }
  .ar-toc-m{ display:block; }
  .ar-more .bgrid{ grid-template-columns:repeat(2, minmax(0, 1fr)); }
}
@media (max-width:600px){
  .ar-body{ font-size:1.0625rem; }
  .ar-lead{ font-size:1.15rem; }
  .ar-sec{ margin-top:48px; }
  .ar-facts{ grid-template-columns:1fr; }
  .ar-facts > div:nth-child(n){ padding:14px 0; border-right:0; }
  .ar-stairs{ padding:22px 16px 18px; }
  .ar-stairs ol{ gap:8px; height:240px; }
  .ar-stairs__kw{ font-size:12.5px; white-space:normal; }
  .ar-steps li{ padding-left:56px; }
  .ar-cta{ padding:24px 20px; }
  .ar-meta li + li{ margin-left:0; padding-left:0; border-left:0; }
  .ar-meta{ flex-direction:column; }
  .ar-more .bgrid{ grid-template-columns:1fr; }
  .ar-match{ padding:16px; }
  .ar-match__row{ grid-template-columns:1fr; gap:6px; }
  .ar-match__row + .ar-match__row{ margin-top:18px; }
  .ar-match__v{ margin-bottom:2px !important; }
  .ar-doc{ display:flex; align-items:baseline; justify-content:space-between; gap:12px; padding:10px 14px; }
  .ar-doc__n{ margin-top:0; font-size:1.05rem; }
  .ar-fix > div{ grid-template-columns:1fr; gap:4px; }
}
