/* ---- Compare states and UTs: /pm-surya-ghar/compare-states.html -------------
   Loaded after /css/styles.css and /css/state-pages.css, whose --b-* tokens and
   .db-* classes it reuses. The CSP forbids inline styles, so every bar is an SVG
   whose geometry is in its attributes and whose colour comes from a class here;
   /js/compare.js only writes markup, toggles [hidden] and classes, and (fitTag)
   sets a font size after layout.
   Colour rules: each chosen place keeps one identity colour by the order chosen
   (slot 1 blue, slot 2 orange, slot 3 teal) in the picker, the card, the side by
   side, the legends and the ranking. India is never a colour: a dark dashed tick
   or line and a neutral chip. No good/bad colouring anywhere. */

:root{
  /* bar fill (bright), text and chip (AA on white), row tint */
  --s1:#1E4FA0;--s1-t:#1E4FA0;--s1-bg:#EAF0FA;
  --s2:#E0670F;--s2-t:#A94700;--s2-bg:#FDF1E7;
  --s3:#2FA6CB;--s3-t:#08708E;--s3-bg:#E6F5FA;
  --cmp-track:#E9EFEA;
  /* the sticky site header once scrolled (65px, 71px at 919px and below); the colour key sits just under it */
  --cmp-stick:65px;
}

/* state-pages.css has no such rule, and display:grid/flex would beat [hidden] */
[hidden]{display:none !important}

/* ================= identity chips ================= */
.cmp-chip{
  display:inline-flex;align-items:center;justify-content:center;flex:none;width:30px;height:22px;border-radius:6px;
  font:700 11px/1 var(--b-num);letter-spacing:.04em;color:#fff;background:var(--b-ink);
}
.cmp-chip.s1{background:var(--s1-t)}
.cmp-chip.s2{background:var(--s2-t)}
.cmp-chip.s3{background:var(--s3-t)}
.cmp-chip.in{background:#fff;box-shadow:inset 0 0 0 1.5px var(--b-line)}
.cmp-dash{display:block;width:0;height:14px;border-left:2px dashed var(--b-ink)}
.cmp-nm.s1{color:var(--s1-t)}
.cmp-nm.s2{color:var(--s2-t)}
.cmp-nm.s3{color:var(--s3-t)}
.cmp-nm.in{color:var(--b-ink)}
.cmp-nm.nw{white-space:nowrap}

/* ================= hero ================= */
.cmp-hero{padding-bottom:64px}
.cmp-hero h1{font-weight:800;font-size:clamp(34px,4.4vw,56px);line-height:1.04;letter-spacing:-.025em;max-width:13ch}
.cmp-hero .cmp-eyebrow{color:var(--b-gold)}
.cmp-hero .db-lead{max-width:52ch;margin-top:20px}
.cmp-hero a:focus-visible,.cmp-hero button:focus-visible,.cmp-hero select:focus-visible,
.cmp-hero input:focus-visible,.cmp-hero [tabindex]:focus-visible{outline:3px solid var(--b-gold);outline-offset:2px}
.cmp-hero-grid{
  display:grid;grid-template-columns:minmax(0,1fr) 440px;column-gap:72px;row-gap:32px;
  grid-template-areas:"copy side" "pick side";grid-template-rows:auto 1fr;align-items:start;
}
.cmp-copy{grid-area:copy;min-width:0}
.cmp-side{grid-area:side;min-width:0}
.cmp-pick{grid-area:pick;min-width:0;margin:0;align-self:start;max-width:540px}
/* clear the sticky site header (85px on a phone) when the jump link or #cmp-all lands here */
#cmp-fs,#cmp-all,#cmp-fig{scroll-margin-top:96px}

.cmp-nojs,.cmp-err{
  margin:22px 0 0;padding:14px 16px;border-radius:14px;font-size:15px;line-height:1.55;
  background:rgba(255,255,255,.08);border:1px solid rgba(255,255,255,.16);color:#fff;max-width:52ch;
}
.cmp-nojs a,.cmp-err a{color:#fff;font-weight:600}
.cmp-err{border-color:rgba(245,194,12,.6)}
.cmp-jump{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}
.cmp-jump:focus-visible{position:static;width:auto;height:auto;overflow:visible;clip:auto;display:inline-flex;align-items:center;gap:6px;
  min-height:44px;margin-top:8px;font-weight:600;font-size:15px;color:#BFE8C5}
.cmp-msg{margin:14px 0 0;font-size:14px;line-height:1.5;color:#FFE38A;max-width:52ch}
.cmp-msg:empty{display:none}

/* picker: three slots that read as a fixture, then India locked in */
.cmp-pick fieldset{margin:0;padding:0;border:0;min-width:0}
.cmp-pick fieldset:focus{outline:none}
.cmp-pick fieldset:focus-visible{outline:3px solid var(--b-gold);outline-offset:6px;border-radius:6px}
.cmp-pick legend{padding:0;margin-bottom:12px;font:600 14px/1.3 var(--b-num);color:rgba(255,255,255,.92)}
.cmp-slots{display:grid;grid-template-columns:minmax(0,1fr)}
.cmp-vs{justify-self:start;margin:7px 0 7px 23px;font:800 11px/1 var(--b-num);letter-spacing:.08em;text-transform:uppercase;color:var(--b-gold)}
.cmp-slot{
  position:relative;display:grid;grid-template-columns:auto minmax(0,1fr);grid-template-rows:auto auto;column-gap:12px;row-gap:2px;
  align-items:center;padding:10px 16px 10px 14px;border-radius:14px;background:#fff;color:var(--b-ink);
  box-shadow:0 14px 30px -18px rgba(0,0,0,.6);border-left:5px solid var(--b-ink);
}
.cmp-slot.s1{border-left-color:var(--s1)}
.cmp-slot.s2{border-left-color:var(--s2)}
.cmp-slot.s3{border-left-color:var(--s3)}
.cmp-slot > .cmp-chip{grid-row:1 / span 2}
/* an empty slot shows its number in a dashed outline, so it never reads as a checkbox */
.cmp-chip.is-empty{background:transparent;color:var(--b-mute);box-shadow:none;outline:1.5px dashed #AEBDB2;outline-offset:-1.5px;font-weight:600}
.cmp-slot label,.cmp-inl{font:600 10.5px/1.2 'Inter',system-ui,sans-serif;letter-spacing:.08em;text-transform:uppercase;color:var(--b-mute)}
.cmp-sel{position:relative;min-width:0}
.cmp-sel select{
  display:block;width:100%;margin:0;padding:2px 22px 2px 0;border:0;background:transparent;
  -webkit-appearance:none;appearance:none;font:700 16px/1.3 var(--b-num);color:var(--b-ink);cursor:pointer;text-overflow:ellipsis;
}
.cmp-sel select:focus{outline:none}
.cmp-sel i{position:absolute;right:0;top:50%;transform:translateY(-50%);pointer-events:none;color:var(--b-mute);font-size:14px}
.cmp-slot:focus-within{box-shadow:0 0 0 3px var(--b-gold),0 14px 30px -18px rgba(0,0,0,.6)}
.cmp-slot-in{
  margin-top:14px;background:rgba(255,255,255,.05);color:#fff;box-shadow:none;
  border:1.5px dashed rgba(255,255,255,.42);border-left:5px solid rgba(255,255,255,.42);
}
.cmp-slot-in .cmp-chip.in{background:transparent;box-shadow:inset 0 0 0 1.5px rgba(255,255,255,.35)}
.cmp-slot-in .cmp-dash{border-left-color:#fff}
.cmp-slot-in .cmp-inl{color:rgba(255,255,255,.7)}
.cmp-inv{display:flex;align-items:center;gap:8px;font:700 16px/1.3 var(--b-num);color:#fff}
.cmp-lock{width:14px;height:14px;fill:rgba(255,255,255,.65)}

.cmp-suggest{display:flex;flex-wrap:wrap;align-items:center;gap:8px;margin-top:16px}
.cmp-suggest-k{font-size:13px;font-weight:600;color:rgba(255,255,255,.78);margin-right:4px}
.cmp-suggest button{
  min-height:40px;padding:0 14px;border-radius:999px;font-family:inherit;font-size:14px;font-weight:600;
  color:#fff;background:rgba(255,255,255,.08);border:1px solid rgba(255,255,255,.2);cursor:pointer;
  display:inline-flex;align-items:center;gap:6px;
}
.cmp-suggest button:hover{background:rgba(255,255,255,.16)}

/* ================= the share card: the screenshot unit ================= */
.cmp-card{
  background:#fff;color:var(--b-ink);border-radius:20px;overflow:hidden;
  box-shadow:0 30px 60px -28px rgba(0,0,0,.65),0 0 0 1px rgba(255,255,255,.06);
}
.cmp-ctop{
  display:flex;align-items:center;justify-content:space-between;gap:12px;padding:13px 20px;
  background:linear-gradient(135deg,#0B4320,#0E5022 60%,#146a2d);
}
.cmp-ctop img{display:block;height:24px;width:auto}
.cmp-ctop span{font:600 10.5px/1.2 var(--b-num);letter-spacing:.12em;text-transform:uppercase;color:rgba(255,255,255,.78);text-align:right}
.cmp-strip{display:flex;height:5px}
.cmp-strip span{flex:1}
.cmp-strip .s1{background:var(--s1-t)}
.cmp-strip .s2{background:var(--s2-t)}
.cmp-strip .s3{background:var(--s3-t)}
.cmp-chead{padding:16px 20px 0}
.cmp-card h2{margin:0;font:800 23px/1.18 var(--b-num);letter-spacing:-.015em;color:var(--b-ink);overflow-wrap:anywhere}
.cmp-tvs{font-weight:600;font-size:.6em;letter-spacing:.06em;text-transform:uppercase;color:var(--b-mute);vertical-align:.18em;margin:0 1px}
.cmp-tvs.cmp-tand{text-transform:none;letter-spacing:0;font-size:.7em}
.cmp-csub{margin:6px 0 0;font-size:13.5px;color:var(--b-soft)}
.cmp-ratio{margin:14px 20px 0;padding:10px 14px;border-radius:12px;background:var(--b-tint);font-size:14px;line-height:1.45;color:var(--b-soft)}
.cmp-ratio b{font-weight:700}
/* graft from B: the multiple is underlined softly in gold */
.cmp-x{font-family:var(--b-num);font-weight:800;color:var(--b-ink);white-space:nowrap;
  background-image:linear-gradient(transparent 62%,rgba(245,194,12,.5) 62%,rgba(245,194,12,.5) 92%,transparent 92%)}
.cmp-plot{padding:8px 20px 0}
.cmp-chart{display:block;width:100%;height:auto;overflow:visible}
.cmp-chart .g{stroke:#EDF2EE;stroke-width:1}
/* inside the card each place has one colour: the columns use the same AA colour as the tiles */
.cmp-chart .b.s1{fill:var(--s1-t)}
.cmp-chart .b.s2{fill:var(--s2-t)}
.cmp-chart .b.s3{fill:var(--s3-t)}
.cmp-chart .v{font:800 30px var(--b-num);letter-spacing:-.02em;paint-order:stroke;stroke:#fff;stroke-width:5px;stroke-linejoin:round}
.cmp-chart .v.s1{fill:var(--s1-t)}
.cmp-chart .v.s2{fill:var(--s2-t)}
.cmp-chart .v.s3{fill:var(--s3-t)}
.cmp-chart .st{font-size:19px}
.cmp-chart .ih{stroke:#fff;stroke-width:4;stroke-opacity:.7}
.cmp-chart .il{stroke:var(--b-ink);stroke-width:1.6;stroke-dasharray:5 4}
.cmp-chart .it{font:700 11.5px 'Inter',system-ui,sans-serif;fill:var(--b-ink);paint-order:stroke;stroke:#fff;stroke-width:4px;stroke-linejoin:round}
.cmp-chart .base{stroke:var(--b-ink);stroke-width:1.5}
/* equal-height tiles, so a wrapping name never staggers them */
.cmp-tiles{list-style:none;margin:8px 20px 0;padding:0;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}
.cmp-t2{grid-template-columns:repeat(2,minmax(0,1fr))}
.cmp-t1{grid-template-columns:minmax(0,1fr)}
.cmp-tile{display:flex;flex-direction:column;gap:2px;padding:9px 11px 10px;border-radius:12px;color:#fff;background:var(--b-ink)}
.cmp-tile.s1{background:var(--s1-t)}
.cmp-tile.s2{background:var(--s2-t)}
.cmp-tile.s3{background:var(--s3-t)}
.cmp-t1 .cmp-tile{align-items:center;text-align:center}
/* a name never splits inside a word; js/compare.js fitTag() steps the size down when a word is too wide */
.cmp-tn{font:700 14.5px/1.18 var(--b-num);color:#fff;text-decoration:none;margin-bottom:3px;overflow-wrap:normal;-webkit-hyphens:manual;hyphens:manual}
.cmp-tn:hover{text-decoration:underline}
.cmp-tile a:focus-visible{outline:2px solid #fff;outline-offset:2px}
.cmp-tr{font-size:12.5px;font-weight:700}
.cmp-tp{font-size:12px;line-height:1.3;color:rgba(255,255,255,.92)}
/* on a wide card "people (projected)" stays on one line (see the min-width:1181px query) */
.cmp-iref{display:flex;align-items:center;gap:10px;margin:12px 20px 0;font-size:13px;line-height:1.4;color:var(--b-soft)}
.cmp-iref b{color:var(--b-ink)}
.cmp-idash{flex:none;width:24px;border-top:2px dashed var(--b-ink)}
.cmp-cnotes{margin:8px 20px 0}
.cmp-cnotes p{font-size:11.5px;line-height:1.45;color:var(--b-mute);margin:4px 0 0}
.cmp-cfoot{margin-top:14px;padding:11px 20px 14px;background:#F4F7F4;border-top:1px solid var(--b-line)}
.cmp-cfoot p{margin:0;font-size:11px;line-height:1.5;color:var(--b-soft)}
.cmp-cfoot .cmp-curl{margin-top:5px;font:600 11px/1.4 var(--b-num);color:var(--b-deep);overflow-wrap:anywhere}

/* share row, under the card and outside it */
.cmp-share{display:flex;flex-wrap:wrap;gap:10px;margin-top:16px}
.cmp-btn{
  flex:1 1 auto;display:inline-flex;align-items:center;justify-content:center;gap:8px;min-height:46px;padding:0 18px;border-radius:12px;
  font:600 14.5px/1 var(--b-num);text-decoration:none;cursor:pointer;transition:transform .2s ease,background .2s ease;
}
.cmp-btn:hover{transform:translateY(-1px)}
.cmp-ico{width:17px;height:17px;flex:none}
.cmp-btn i{font-size:18px}
.cmp-btn-ghost{flex:0 0 auto;background:rgba(255,255,255,.08);color:#fff;border:1px solid rgba(255,255,255,.3)}
.cmp-btn-ghost:hover{background:rgba(255,255,255,.14)}
/* a darker green than the brand's, so white text keeps AA (about 5:1) */
.cmp-wa{background:#1E7E34;color:#fff;border:0;white-space:nowrap;box-shadow:0 12px 24px -14px rgba(0,0,0,.6)}
.cmp-wa:hover{background:#186A2B;color:#fff}
.cmp-copied{flex-basis:100%;margin:0;font-size:13.5px;color:#BFE8C5}
.cmp-copied:empty{display:none}
.cmp-linkbox{flex-basis:100%}
.cmp-linkbox label{display:block;font-size:13px;color:rgba(255,255,255,.78);margin-bottom:6px}
.cmp-linkbox input{width:100%;height:44px;padding:0 12px;font-size:16px;border-radius:10px;border:1px solid rgba(255,255,255,.4);color:var(--b-ink);background:#fff}

/* ================= sections ================= */
.cmp-body{padding:56px 0 72px}
.cmp-body .db-sec{padding:0}
.cmp-body .db-sec + .db-sec{padding-top:48px}
.cmp-body .db-card{padding:34px 40px 30px;border-radius:22px}
.cmp-body .db-h2{font-weight:800;font-size:clamp(24px,2.6vw,32px);line-height:1.18}
.cmp-fcap{margin:10px 0 0;font-size:14.5px;line-height:1.55;color:var(--b-soft);max-width:96ch}
.cmp-body .db-note{max-width:110ch}

/* ================= figure by figure ================= */
/* the colour key stays under the site header while the section scrolls */
.cmp-key{
  position:sticky;top:var(--cmp-stick);z-index:5;display:flex;align-items:center;justify-content:space-between;gap:10px 16px;
  margin:24px -40px 0;padding:12px 40px;background:#fff;
  border-top:1px solid var(--b-line);border-bottom:1px solid var(--b-line);box-shadow:0 10px 18px -16px rgba(14,80,34,.5);
}
.cmp-keyl{display:flex;flex-wrap:wrap;align-items:center;gap:8px 14px;list-style:none;margin:0;padding:0}
.cmp-team{display:flex;align-items:center;gap:9px;font:700 16px/1.2 var(--b-num)}
.cmp-team.s1{color:var(--s1-t)}
.cmp-team.s2{color:var(--s2-t)}
.cmp-team.s3{color:var(--s3-t)}
.cmp-kvs{font:800 10.5px/1 var(--b-num);letter-spacing:.08em;text-transform:uppercase;color:var(--b-mute);margin-right:5px}
.cmp-keyin{display:flex;align-items:center;gap:9px;margin:0;font-size:13.5px;font-weight:600;color:var(--b-soft);white-space:nowrap}

.cmp-group{margin-top:26px}
.cmp-gh{display:flex;flex-wrap:wrap;align-items:baseline;justify-content:space-between;gap:4px 24px;
  padding:10px 16px;border-radius:10px;background:var(--b-deep);color:#fff}
.cmp-gh h3{margin:0;font:700 12.5px/1.3 var(--b-num);letter-spacing:.12em;text-transform:uppercase;color:#fff}
.cmp-gh p{margin:0;font-size:12.5px;color:rgba(255,255,255,.78)}

.cmp-row{display:grid;grid-template-columns:240px minmax(0,1fr) 190px;column-gap:28px;align-items:center;
  padding:16px;border-bottom:1px solid var(--b-line)}
.cmp-group .cmp-row:last-child{border-bottom:0}
.cmp-metric{margin:0;font:700 15.5px/1.3 var(--b-num);color:var(--b-ink)}
.cmp-metric span{display:block;margin-top:3px;font:500 12.5px/1.35 'Inter',system-ui,sans-serif;color:var(--b-mute)}
.cmp-vals{list-style:none;margin:0;padding:0;display:grid;row-gap:3px}
.cmp-v{display:grid;grid-template-columns:minmax(0,1fr) 200px;column-gap:16px;align-items:center}
.cmp-hb{display:block;overflow:visible}
.cmp-hb .t{fill:var(--cmp-track)}
.cmp-hb.s1 .f{fill:var(--s1)}
.cmp-hb.s2 .f{fill:var(--s2)}
.cmp-hb.s3 .f{fill:var(--s3)}
.cmp-hb .tk{stroke:var(--b-ink);stroke-width:2;stroke-dasharray:3 2}
/* a figure not shown keeps the row's rhythm with an empty spacer, never an empty track */
.cmp-hbx{display:block;height:16px}
.cmp-num{display:flex;align-items:baseline;gap:10px;font-variant-numeric:tabular-nums;min-width:0}
.cmp-num b{flex:none;min-width:96px;text-align:right;font:500 16px/1.2 var(--b-num);letter-spacing:-.01em;white-space:nowrap}
.cmp-nb{white-space:nowrap}
.cmp-v.s1 .cmp-num b{color:var(--s1-t)}
.cmp-v.s2 .cmp-num b{color:var(--s2-t)}
.cmp-v.s3 .cmp-num b{color:var(--s3-t)}
.cmp-v.is-top .cmp-num b{font-weight:800;font-size:17px}
.cmp-num b.na{font:italic 500 13px/1.2 'Inter',system-ui,sans-serif;color:var(--b-mute) !important}
.cmp-rank{font-size:12px;color:var(--b-mute);white-space:nowrap}
.cmp-ref{display:flex;flex-direction:column;gap:4px;margin:0;padding:11px 16px 12px;border-radius:0 12px 12px 0;
  background:#F3F5F3;border-left:2px dashed var(--b-ink)}
.cmp-ref > .cmp-chip{display:none}
.cmp-ref-l{font:700 11px/1.2 'Inter',system-ui,sans-serif;letter-spacing:.06em;text-transform:uppercase;color:var(--b-ink);white-space:nowrap}
.cmp-ref-l small{margin-left:6px;font-size:11px;font-weight:500;letter-spacing:.02em;text-transform:none;color:var(--b-soft)}
.cmp-ref-m{display:none}
.cmp-ref b{font:700 17px/1.15 var(--b-num);color:var(--b-ink);font-variant-numeric:tabular-nums}

/* ================= every state and UT ================= */
.cmp-allhead{display:flex;flex-wrap:wrap;justify-content:space-between;align-items:flex-end;gap:16px 32px;margin-bottom:22px}
.cmp-allhead > div{flex:1 1 520px;min-width:0}
.cmp-legend{display:flex;flex-wrap:wrap;align-items:center;gap:8px 16px;margin:0;font-size:13px;font-weight:600;color:var(--b-soft)}
.cmp-lgp{display:contents}
.cmp-lgi{display:inline-flex;align-items:center;gap:7px;white-space:nowrap}
.cmp-lgi.s1{color:var(--s1-t)}
.cmp-lgi.s2{color:var(--s2-t)}
.cmp-lgi.s3{color:var(--s3-t)}
.cmp-allwrap{overflow-x:auto}
.cmp-all{width:100%;border-collapse:separate;border-spacing:0;font-size:14px;font-variant-numeric:tabular-nums;color:var(--b-ink)}
.cmp-all caption{caption-side:top;text-align:left;padding:0 0 12px;font-size:13px;line-height:1.5;color:var(--b-mute)}
.cmp-all thead th{padding:0 12px 10px;font:600 11.5px/1.3 'Inter',system-ui,sans-serif;letter-spacing:.06em;text-transform:uppercase;
  color:var(--b-mute);text-align:left;border-bottom:2px solid var(--b-ink);white-space:nowrap}
.cmp-all td,.cmp-all tbody th{padding:0 12px;height:38px;border-bottom:1px solid #EDF2EE;text-align:left;font-weight:500}
.cmp-all tbody th{font-weight:600}
.cmp-all tbody th a{color:var(--b-ink);text-decoration:none}
.cmp-all tbody th a:hover{color:var(--b-deep);text-decoration:underline}
.cmp-all .cmp-rk{width:44px;text-align:right;color:var(--b-mute);font:600 13px/1 var(--b-num)}
.cmp-all .cmp-pl{width:38%}
.cmp-all tbody th a{white-space:nowrap}
.cmp-all tr[data-slug="dadra-nagar-haveli-daman-diu"] th a{white-space:normal}
.cmp-plw{display:grid;grid-template-columns:64px minmax(0,1fr);column-gap:14px;align-items:center}
.cmp-plv{text-align:right;font:600 14.5px/1 var(--b-num);white-space:nowrap}
.cmp-plv.na,.cmp-all td.na{white-space:nowrap;font:italic 500 13px/1 'Inter',system-ui,sans-serif;color:var(--b-mute)}
.cmp-cbar{display:block}
.cmp-cbar .t{fill:#EEF3EF}
.cmp-cbar .f{fill:#B9CDBD}
.cmp-cbar.in .f{fill:var(--b-ink)}
.cmp-all .cmp-ci,.cmp-all .cmp-cp{text-align:right;width:15%;color:var(--b-soft)}
.cmp-u{display:none}
.cmp-tag{display:inline-flex;align-items:center;margin-left:8px;vertical-align:1px}
.cmp-tag .cmp-chip{width:26px;height:18px;font-size:10px;border-radius:5px}
.cmp-all tr.is-picked > *{font-weight:700;color:var(--b-ink)}
.cmp-all tr.s1 > *{background:var(--s1-bg)}
.cmp-all tr.s2 > *{background:var(--s2-bg)}
.cmp-all tr.s3 > *{background:var(--s3-bg)}
.cmp-all tr.s1 .cmp-plv,.cmp-all tr.s1 > :first-child{color:var(--s1-t)}
.cmp-all tr.s2 .cmp-plv,.cmp-all tr.s2 > :first-child{color:var(--s2-t)}
.cmp-all tr.s3 .cmp-plv,.cmp-all tr.s3 > :first-child{color:var(--s3-t)}
.cmp-all tr.is-picked > :first-child{box-shadow:inset 4px 0 0 currentColor}
.cmp-all tr.s1 .cmp-cbar .f{fill:var(--s1)}
.cmp-all tr.s2 .cmp-cbar .f{fill:var(--s2)}
.cmp-all tr.s3 .cmp-cbar .f{fill:var(--s3)}
.cmp-all tr.cmp-in > *{background:#EFF2EF;border-top:1px solid #cfd8d1;border-bottom:1px solid #cfd8d1;font-weight:700;color:var(--b-ink)}
.cmp-all tr.cmp-in .cmp-rk .cmp-chip{margin-left:auto}
.cmp-all tr.cmp-wh > *{color:var(--b-mute)}
.cmp-notes{margin-top:18px;display:grid;gap:6px}
.cmp-notes p{margin:0;font-size:13px;line-height:1.6;color:var(--b-mute);max-width:110ch}
.cmp-about{max-width:880px;margin:0 auto;padding:0 4px}
.cmp-about p{font-size:14.5px;line-height:1.7;color:var(--b-soft)}

/* ================= responsive ================= */
@media (min-width:1181px){
  .cmp-nw{white-space:nowrap}
}
/* the floating WhatsApp button steps aside while the card, the picker or the side by
   side is on screen (js/compare.js); below 1340px it would sit over them */
@media (max-width:1340px){
  .wa-fab{transition:background .2s ease,opacity .2s ease,visibility 0s linear 0s}
  .cmp-fab-off .wa-fab{opacity:0;visibility:hidden;pointer-events:none;transition:background .2s ease,opacity .2s ease,visibility 0s linear .2s}
}
@media (max-width:1180px){
  /* the status pill wraps here: its second item takes a line of its own, without the separator dot */
  .cmp-hero .db-dot{display:none}
  .cmp-hero .db-status > span:last-child{flex-basis:100%;padding-left:19px}
  /* two columns down to 920px; the card works at 400px */
  .cmp-hero-grid{grid-template-columns:minmax(0,1fr) 400px;column-gap:40px}
  .cmp-row{grid-template-columns:190px minmax(0,1fr) 180px;column-gap:22px}
  .cmp-v{grid-template-columns:minmax(0,1fr) 186px}
  .cmp-all .cmp-pl{width:32%}
  /* the column heads may wrap, so the table fits its card without scrolling sideways */
  .cmp-all thead th{white-space:normal;vertical-align:bottom}
}

/* Below the desktop header (919px and down): the hero stacks in the phone order
   (title, card, share row, picker); the side by side uses the phone rows (graft
   from C: name and India on one line, then the values in one row with slim bars);
   the ranking folds each row onto two lines, so nothing scrolls sideways. */
@media (max-width:919px){
  :root{--cmp-stick:71px}
  .cmp-hero-grid{grid-template-columns:minmax(0,1fr);grid-template-areas:"copy" "side" "pick";grid-template-rows:none;row-gap:28px}
  /* card, share row and picker share one width, so their edges line up */
  .cmp-side,.cmp-pick{max-width:460px;width:100%}
  .cmp-jump,.cmp-jump:focus-visible{position:static;width:auto;height:auto;overflow:visible;clip:auto;white-space:normal;display:inline-flex;align-items:center;gap:6px;
    min-height:44px;margin-top:8px;font-weight:600;font-size:15px;color:#BFE8C5}

  /* the key sits over the value columns, one place per column: code over name, no "vs" */
  .cmp-key{padding-top:9px;padding-bottom:9px;gap:6px 12px;flex-wrap:wrap}
  .cmp-keyl{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));column-gap:12px;row-gap:0;width:100%}
  .cmp-keyl.cmp-n2{grid-template-columns:repeat(2,minmax(0,1fr))}
  .cmp-keyl.cmp-n1{grid-template-columns:minmax(0,1fr)}
  /* code and name flow as one line where they fit; a long name moves under its code, three lines at most */
  .cmp-team{display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:3;overflow:hidden;min-width:0;
    font-size:12px;line-height:21px;overflow-wrap:normal}
  .cmp-team .cmp-chip{display:inline-flex;width:26px;height:19px;font-size:10px;vertical-align:top;margin:1px 5px 0 0}
  .cmp-kvs{display:none}
  .cmp-keyin{display:none}
  .cmp-group{margin-top:18px}
  .cmp-gh{padding:9px 12px}
  .cmp-gh h3{font-size:11.5px}
  .cmp-gh p{font-size:12px}
  .cmp-row{grid-template-columns:minmax(0,1fr) auto;column-gap:10px;row-gap:7px;align-items:start;padding:13px 0 14px}
  .cmp-metric{grid-column:1;grid-row:1;font-size:14px;line-height:1.3;align-self:center}
  .cmp-ref{grid-column:2;grid-row:1}
  .cmp-vals{grid-column:1 / -1;grid-row:2}
  .cmp-metric span{display:none}
  .cmp-metric.has-d span{display:block;margin-top:2px;font-size:11.5px}
  .cmp-ref{flex-direction:row;align-items:baseline;gap:6px;align-self:center;padding:4px 9px 4px 8px;border-radius:999px;background:#fff;
    border:0;box-shadow:inset 0 0 0 1px #D3DCD5;white-space:nowrap}
  .cmp-ref-l{font:500 11.5px/1.2 'Inter',system-ui,sans-serif;letter-spacing:0;text-transform:none;color:var(--b-soft)}
  .cmp-ref-d{display:none}
  .cmp-ref-m{display:inline}
  .cmp-ref b{font-size:12.5px}
  .cmp-vals{grid-template-columns:repeat(3,minmax(0,1fr));column-gap:12px;row-gap:0}
  .cmp-vals.cmp-n2{grid-template-columns:repeat(2,minmax(0,1fr))}
  .cmp-vals.cmp-n1{grid-template-columns:minmax(0,1fr)}
  .cmp-v{display:flex;flex-direction:column;align-items:stretch;gap:5px;min-width:0}
  .cmp-num{order:-1;flex-direction:column;align-items:flex-start;gap:1px}
  .cmp-num b{min-width:0;text-align:left;font-size:16px;font-weight:600}
  .cmp-v.is-top .cmp-num b{font-size:16.5px}
  .cmp-num b.na{font-size:12.5px}
  .cmp-rank{font-size:11px}
  .cmp-hb{height:12px}
  .cmp-hbx{height:12px}

  .cmp-allhead{margin-bottom:14px}
  .cmp-allhead > div{flex-basis:100%}
  .cmp-legend{font-size:12px;gap:6px 12px}
  .cmp-all thead{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0)}
  .cmp-all,.cmp-all tbody{display:block}
  .cmp-all caption{display:block}
  .cmp-all tr{display:grid;grid-template-columns:26px minmax(0,1fr) 124px;grid-template-rows:auto auto;column-gap:10px;row-gap:3px;
    align-items:center;padding:8px 6px;border-bottom:1px solid #EDF2EE}
  .cmp-all td,.cmp-all tbody th{height:auto;padding:0;border:0;background:none !important;box-shadow:none !important}
  .cmp-all .cmp-rk{width:auto;grid-row:1 / span 2;align-self:start;padding-top:2px;font-size:12px;text-align:right}
  .cmp-all tbody th{grid-column:2;grid-row:1;font-size:14px;line-height:1.3}
  .cmp-all tbody th a{white-space:normal}
  .cmp-all td.cmp-pl{grid-column:3;grid-row:1;width:auto}
  .cmp-plw{grid-template-columns:46px minmax(0,1fr);column-gap:8px}
  .cmp-plv{font-size:13.5px}
  .cmp-all .cmp-ci,.cmp-all .cmp-cp{grid-row:2;width:auto;font-size:12px;color:var(--b-mute);font-weight:500}
  .cmp-all .cmp-ci{grid-column:2;text-align:left}
  .cmp-all .cmp-cp{grid-column:3;text-align:right}
  .cmp-all td.na{font-size:12px}
  .cmp-u{display:inline}
  .cmp-all tr.is-picked{border-radius:10px;border-bottom-color:transparent}
  .cmp-all tr.s1{background:var(--s1-bg);box-shadow:inset 4px 0 0 var(--s1-t)}
  .cmp-all tr.s2{background:var(--s2-bg);box-shadow:inset 4px 0 0 var(--s2-t)}
  .cmp-all tr.s3{background:var(--s3-bg);box-shadow:inset 4px 0 0 var(--s3-t)}
  /* India's row: one ruled outline on the row, not a rule above and below every cell */
  .cmp-all tr.cmp-in{background:#EFF2EF;border-radius:10px;border-bottom-color:transparent;box-shadow:inset 0 0 0 1px #cfd8d1}
  .cmp-all tr.cmp-in > *{border:0}
  .cmp-all tr.cmp-in .cmp-rk .cmp-chip{width:22px;height:20px}
}

/* phone sizes */
@media (max-width:720px){
  .cmp-hero{padding-bottom:40px}
  .cmp-hero h1{font-size:32px;max-width:none}
  .cmp-hero .db-lead{font-size:15.5px;margin-top:14px}
  .cmp-slot{padding:9px 14px 9px 12px}
  .cmp-suggest button{min-height:44px}

  .cmp-card{border-radius:18px}
  .cmp-ctop{padding:10px 16px}
  .cmp-ctop img{height:21px}
  .cmp-ctop span{font-size:9.5px}
  .cmp-chead{padding:12px 16px 0}
  .cmp-card h2{font-size:21px}
  .cmp-csub{font-size:12.5px;margin-top:4px}
  .cmp-ratio{margin:10px 16px 0;padding:8px 12px;font-size:13.5px}
  .cmp-plot{padding:4px 16px 0}
  .cmp-tiles{margin:6px 16px 0;gap:6px}
  .cmp-tile{padding:8px 9px 9px;border-radius:10px}
  .cmp-tn{font-size:13px;letter-spacing:-.01em}
  /* three tiles: a little less padding and type, so one-word names fit whole */
  .cmp-t3 .cmp-tile{padding-left:6px;padding-right:6px}
  .cmp-t3 .cmp-tn{font-size:12px;letter-spacing:-.02em}
  .cmp-tr{font-size:12px}
  .cmp-tp{font-size:11.5px}
  .cmp-iref{margin:9px 16px 0;font-size:12px;gap:8px}
  .cmp-idash{width:18px}
  .cmp-cnotes{margin:6px 16px 0}
  .cmp-cnotes p{font-size:10.5px;line-height:1.35;margin-top:2px}
  .cmp-cfoot{margin-top:10px;padding:8px 16px 10px}
  .cmp-cfoot p{font-size:10.5px;line-height:1.4}
  .cmp-cfoot .cmp-curl{margin-top:3px;font-size:10.5px}
  .cmp-share{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));margin-top:12px}
  .cmp-btn{min-height:48px;padding:0 10px;font-size:14px}
  .cmp-share .cmp-wa,.cmp-copied,.cmp-linkbox{grid-column:1 / -1}
  .cmp-share:not(.has-share) #cmp-copy{grid-column:1 / -1}

  .cmp-body{padding:32px 0 48px}
  .cmp-body .db-sec + .db-sec{padding-top:28px}
  .cmp-body .db-card{padding:22px 16px 20px;border-radius:18px}
  .cmp-body .db-h2{font-size:23px}
  .cmp-fcap{font-size:13.5px}
  .cmp-key{margin:16px -16px 0;padding:9px 16px}
  .cmp-about p{font-size:14px}
}

/* narrow phones: a unit may drop under its number ("24.29" over "crore") */
@media (max-width:380px){
  .cmp-num b{white-space:normal}
}
@media (max-width:360px){
  .cmp-hero .db-status{display:block}
  .cmp-hero .db-live{display:inline-block;margin-right:8px;vertical-align:1px}
  .cmp-hero .db-status > span:last-child{display:block;padding-left:17px;margin-top:3px}
  .cmp-ctop span{font-size:8.5px;letter-spacing:.08em}
  .cmp-tr{white-space:nowrap;font-size:11px}
  .cmp-tp{font-size:11px}
  .cmp-num b{font-size:14.5px;letter-spacing:-.02em}
  .cmp-v.is-top .cmp-num b{font-size:15px}
  .cmp-vals,.cmp-keyl{column-gap:8px}
  .cmp-team{font-size:11px;letter-spacing:-.01em}
  .cmp-all tr{grid-template-columns:22px minmax(0,1fr) 104px;column-gap:8px}
  .cmp-plw{grid-template-columns:40px minmax(0,1fr);column-gap:6px}
  .cmp-all tbody th{font-size:13px}
  .cmp-plv{font-size:13px}
}
