/* Nepal Public Data — home page (index.html). Tokens only (npd.css); one blue accent; 4/8 px spacing.
   One memorable element: the map of the 753 local levels in the hero. Everything else stays quiet. */

/* ---------- bands and section heads ---------- */
.hm-band{padding-block:clamp(48px,7vw,96px)}
.hm-alt{background:var(--bg-2);border-block:1px solid var(--line)}
.hm-band:focus{outline:none}
.hm-shead{margin-bottom:clamp(24px,3vw,40px)}
.hm-shead h2,.hm-panel h2{font-size:clamp(28px,3.6vw,40px);letter-spacing:-.022em}
.hm-sub{margin-top:10px;font-size:17px;line-height:1.5;color:var(--muted);max-width:62ch}
.hm-shead-row{display:flex;flex-wrap:wrap;align-items:flex-end;justify-content:space-between;gap:16px 24px}
.hm-links{margin-top:24px}
.hm .btn:focus-visible,.hm-q .btn:focus-visible{border-radius:999px}

/* ---------- hero ---------- */
.hm-hero{padding-block:clamp(40px,7vw,88px) clamp(40px,6vw,72px)}
.hm-herotext{text-align:center}
.hm-hero h1{font-size:clamp(38px,6.4vw,72px);font-weight:700;letter-spacing:-.03em;line-height:1.04;max-width:22ch;margin:0 auto}
html[data-lang="ne"] .hm-hero h1{line-height:1.28;letter-spacing:-.01em;max-width:16ch}
.hm-lede{margin:20px auto 0;max-width:58ch;font-size:clamp(17px,1.7vw,20px);line-height:1.5;color:var(--ink-2)}

/* search box (hero, places, library) */
.hm-q{position:relative;display:flex;align-items:center;gap:8px;max-width:640px;height:60px;margin:32px auto 0;padding:6px 6px 6px 48px;
  border:1px solid var(--line-strong);border-radius:16px;background:var(--surface);box-shadow:var(--shadow);
  transition:border-color var(--ease),box-shadow var(--ease);text-align:left}
.hm-q:hover{border-color:var(--muted)}
.hm-q:focus-within{border-color:var(--accent);box-shadow:0 0 0 1px var(--accent),0 0 0 4px color-mix(in srgb,var(--accent) 28%,transparent)}
.hm-q>svg{position:absolute;left:16px;top:50%;width:20px;height:20px;margin-top:-10px;color:var(--muted);pointer-events:none}
.hm-q input{flex:1;min-width:0;height:100%;border:0;background:transparent;font-size:18px;color:var(--ink);outline:none;text-overflow:ellipsis}
.hm-q input::placeholder{color:var(--muted);opacity:1}
.hm-q input::-webkit-search-cancel-button{cursor:pointer}
.hm-q .btn{height:46px;border-radius:12px;padding:0 20px;flex:none}
.hm-q-s{max-width:560px;height:52px;margin:0;box-shadow:none;padding-right:12px}
.hm-q-s input{font-size:17px}
@media (max-width:559px){
  .hm-q{height:56px;padding-left:44px}
  .hm-q>svg{left:14px}
  .hm-q input{font-size:16px}
  .hm-q .btn{height:44px;padding:0 14px}
}

/* suggestions under a search box (rows written by assets/page-search.js) */
.hm-dd{position:absolute;left:0;right:0;top:calc(100% + 8px);z-index:25;list-style:none;margin:0;padding:6px;
  background:var(--surface);border:1px solid var(--line);border-radius:14px;box-shadow:var(--shadow);
  max-height:min(62vh,460px);overflow:auto;overscroll-behavior:contain}
.sx-opt{display:flex;align-items:center;gap:12px;min-height:44px;padding:8px 12px;border-radius:10px;text-decoration:none;color:var(--ink);transition:background var(--ease)}
.sx-opt:hover,.sx-opt.hl{background:var(--surface-2);color:var(--ink)}
.sx-opt:focus-visible{border-radius:10px}
.sx-main{flex:1;min-width:0;display:flex;flex-direction:column}
.sx-name{font-weight:600;line-height:1.3;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.sx-sub{font-size:13.5px;line-height:1.35;color:var(--muted);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.sx-val{flex:none;font-size:14px;font-weight:650;color:var(--ink-2);font-variant-numeric:tabular-nums;max-width:40%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.sx-kind{flex:none;font-size:12px;font-weight:600;color:var(--muted);background:var(--surface-2);border-radius:999px;padding:2px 8px}
.sx-opt.hl .sx-kind,.sx-opt:hover .sx-kind{background:var(--surface)}
.sx-all{justify-content:center;color:var(--accent-ink);font-weight:600;border-top:1px solid var(--line);border-radius:0 0 10px 10px;margin-top:4px}
.sx-msg{padding:12px;color:var(--muted);font-size:14.5px}
.hm-dd mark,.sx-name mark{background:var(--accent-soft);color:inherit;border-radius:3px}
@media (max-width:559px){.sx-val{display:none}}

/* the opening's two actions under the search: your place (a button) and this month (a jump down the page) */
.hm-acts{display:flex;flex-wrap:wrap;align-items:center;gap:8px 24px;margin-top:16px}
.hm .hm-placebtn{min-height:48px;height:auto;padding:8px 16px;font-size:16px;line-height:1.3;
  background:var(--accent-soft);border-color:color-mix(in srgb,var(--accent) 45%,transparent);color:var(--ink)}
.hm .hm-placebtn:hover{background:color-mix(in srgb,var(--accent) 26%,transparent);border-color:var(--accent);color:var(--ink)}
.hm-placebtn svg,.hm-newlink svg{flex:none;width:20px;height:20px;color:var(--accent-ink)}
.hm-newlink{display:inline-flex;align-items:center;gap:8px;min-height:44px;font-size:15px;font-weight:600;color:var(--accent-ink);text-decoration:none}
.hm-newlink:hover{text-decoration:underline;text-underline-offset:3px}
.hm-newlink svg{width:16px;height:16px}
.hm-try{margin-top:16px;font-size:14.5px;color:var(--muted)}
.hm-try a{display:inline-flex;align-items:center;height:34px;padding:0 14px;margin:4px 2px;border:1px solid var(--line);border-radius:999px;
  background:var(--surface);color:var(--ink-2);text-decoration:none;font-weight:550;transition:border-color var(--ease),color var(--ease),background var(--ease)}
.hm-try a:hover{border-color:var(--line-2);color:var(--ink)}
.hm-try a:active{background:var(--surface-2)}
.hm-try a:focus-visible{border-radius:999px}

/* hero map */
.hm-mapfig{position:relative;margin-top:clamp(32px,5vw,56px)}
.hm-skip{position:absolute;top:0;left:50%;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}
.hm-skip:focus{width:auto;height:auto;clip:auto;overflow:visible;transform:translateX(-50%);z-index:5;background:var(--ink);color:var(--bg);padding:8px 16px;border-radius:999px;text-decoration:none}
.hm-map{position:relative}
.hm-mapph{position:relative;display:grid;place-items:center;aspect-ratio:1000/579;border-radius:24px;overflow:hidden}
.hm-mapph .skel{position:absolute;inset:0;border-radius:24px;opacity:.7}
.hm-mapmsg{position:relative;font-size:14px;color:var(--muted)}
.hm-maperr{border:1px dashed var(--line-2);padding:24px;text-align:center;color:var(--muted)}
.hm-mapcap{display:grid;gap:4px;justify-items:center;text-align:center;max-width:72ch;margin:16px auto 0}
.hm-mapt{font-weight:650;font-size:16px;color:var(--ink-2)}
.hm-maps{font-size:14px;color:var(--muted)}
.hm-mapcap .srcnote{margin-top:4px}

/* ---------- this month: headline cards ---------- */
.hm-cards{display:grid;gap:16px;grid-template-columns:repeat(6,minmax(0,1fr))}
.hm-cards>.hm-fig{grid-column:span 2}
.hm-cards>.hm-wide{grid-column:span 3}
.hm-cards>.error{grid-column:1/-1}
@media (max-width:1023px){.hm-cards{grid-template-columns:repeat(2,minmax(0,1fr))}.hm-cards>.hm-fig,.hm-cards>.hm-wide{grid-column:span 1}}
@media (max-width:639px){.hm-cards{grid-template-columns:minmax(0,1fr)}}
/* on a phone, the first four cards and a button for the rest (page-today.js shortList; the count comes from the cards) */
.hm-cardsmore{display:none}
@media (max-width:639px){
  .hm-cards.is-short>.hm-fig:nth-child(n+5){display:none}
  .hm-cardsmore:not([hidden]){display:block;margin-top:16px}
  .hm-cardsmore .btn{width:100%;justify-content:center;min-height:48px;height:auto;padding:12px 16px;font-size:16px;text-align:center}
  .hm .hm-fig,.hm .hm-door{padding:16px}  /* card padding: 16px on phones (design review, cards) */
}
.hm-fig{padding:24px;border-radius:20px;gap:10px}
.hm-fig:focus-visible{border-radius:20px}
.hm-ftop{display:flex;align-items:center;justify-content:space-between;gap:8px;min-height:22px}
.hm-ftop .lab{font-size:15px;font-weight:600;color:var(--ink-2)}
.hm-fval{font-size:clamp(32px,3.2vw,42px);font-weight:700;letter-spacing:-.025em;line-height:1.05;font-variant-numeric:tabular-nums;overflow-wrap:anywhere}
.hm-fig .per{font-size:14px;line-height:1.45;color:var(--muted)}
.hm-fig .chip{white-space:normal;line-height:1.35;padding:4px 10px;font-weight:550;border-radius:10px}
.hm-of{font-size:15px;color:var(--ink-2)}
.hm-meter{position:relative;display:block;height:10px;border-radius:999px;background:var(--surface-2);margin-block:6px 2px}
.hm-meter i{position:absolute;left:0;top:0;bottom:0;border-radius:999px;background:var(--accent)}
.hm-meter b{position:absolute;top:-4px;bottom:-4px;width:2px;margin-left:-1px;border-radius:1px;background:var(--ink-2)}
.hm-fig .src{line-height:1.45}

/* sparklines (cards and topics) */
.hm-sp{display:block;margin-top:4px}
.hm-spark{display:block;width:100%;height:44px;overflow:visible}
.hm-spark .sa{fill:var(--c1);opacity:.08}
.hm-spark .sl{fill:none;stroke:var(--c1);stroke-width:2;stroke-linejoin:round;stroke-linecap:round;vector-effect:non-scaling-stroke}
.hm-spark .sd{stroke-dasharray:3 4;opacity:.65}
.hm-spark .se{stroke:var(--c1);stroke-width:7;stroke-linecap:round;vector-effect:non-scaling-stroke}
.hm-ends{display:flex;justify-content:space-between;gap:8px;margin-top:4px;font-size:12px;color:var(--muted);font-variant-numeric:tabular-nums}
.hm-spn{display:block;margin-top:2px;font-size:12px;line-height:1.4;color:var(--muted)}

/* ---------- start here ---------- */
.hm-auds{display:grid;gap:12px;grid-template-columns:repeat(3,minmax(0,1fr))}
@media (max-width:1023px){.hm-auds{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media (max-width:599px){.hm-auds{grid-template-columns:minmax(0,1fr)}}
/* each audience is a <details> (closed on phones, opened by page-today.js from 600px); the summary is its name */
.hm-aud{min-width:0;border:1px solid var(--line);border-radius:18px;background:var(--surface)}
.hm-aud>summary{display:flex;align-items:center;gap:12px;min-height:56px;padding:12px 16px;cursor:pointer;list-style:none;border-radius:17px}
.hm-aud>summary::-webkit-details-marker{display:none}
.hm-aud>summary::after{content:"";flex:none;width:8px;height:8px;margin:0 4px 4px auto;border-right:2px solid var(--muted);border-bottom:2px solid var(--muted);
  transform:rotate(45deg);transition:transform var(--ease)}
.hm-aud[open]>summary::after{transform:rotate(-135deg);margin-bottom:-4px}
.hm-aud>summary:hover{background:var(--surface-2)}
.hm-aud[open]>summary:hover{background:transparent}
.hm-aud>summary:hover::after{border-color:var(--ink-2)}
.hm-aud h3{font-size:17px;font-weight:650;letter-spacing:-.01em;line-height:1.25;margin:0}
.hm-aud ul{list-style:none;margin:0;padding:0 16px 16px;display:grid;gap:4px}
@media (prefers-reduced-motion:reduce){.hm-aud>summary::after{transition:none}}
.hm-aud a{display:block;padding:6px 0;color:var(--accent-ink);font-weight:550;line-height:1.35;text-decoration:none;overflow-wrap:anywhere}
.hm-aud a:hover{text-decoration:underline}

/* ---------- topics ---------- */
.hm-topics{display:grid;gap:12px;grid-template-columns:repeat(4,minmax(0,1fr))}
@media (max-width:1023px){.hm-topics{grid-template-columns:repeat(2,minmax(0,1fr))}}
.hm-topic{display:flex;flex-direction:column;gap:4px;min-width:0;padding:20px;border:1px solid var(--line);border-radius:18px;background:var(--surface);
  color:var(--ink);text-decoration:none;transition:border-color var(--ease),box-shadow var(--ease),transform var(--ease)}
.hm-topic:hover{border-color:var(--line-2);box-shadow:var(--shadow);color:var(--ink)}
.hm-topic:active{transform:translateY(1px)}
.hm-topic:focus-visible{border-radius:18px}
.hm-thead{display:flex;align-items:center;gap:10px;margin-bottom:10px}
.hm-ticon{display:grid;place-items:center;flex:none;width:36px;height:36px;border-radius:10px;background:var(--accent-soft);color:var(--accent-ink)}
.hm-ticon svg{width:20px;height:20px}
.hm-tname{font-size:17px;font-weight:650;letter-spacing:-.01em;line-height:1.25}
.hm-tval{font-size:24px;font-weight:700;letter-spacing:-.02em;line-height:1.15;font-variant-numeric:tabular-nums;overflow-wrap:anywhere}
.hm-tlab{font-size:14.5px;line-height:1.35;color:var(--ink-2)}
.hm-tper{font-size:13px;line-height:1.4;color:var(--muted)}
.hm-tper .badge{margin-left:4px}
.hm-topic .hm-sp{margin-top:10px}
.hm-tsrc{margin-top:auto;padding-top:10px;font-size:12px;line-height:1.4;color:var(--muted)}
/* phones: one compact row per topic, icon · name · figure, with what the figure counts under it. The sparkline,
   period and source stay on the topic page; a Provisional, Estimate or Calculated badge stays with the figure. */
@media (max-width:559px){
  .hm-topics{grid-template-columns:minmax(0,1fr);gap:0;border:1px solid var(--line);border-radius:16px;background:var(--surface);overflow:hidden}
  .hm-topic{display:grid;grid-template-columns:32px minmax(0,1fr) fit-content(50%);align-items:center;gap:0 12px;
    min-height:56px;padding:8px 16px;border:0;border-top:1px solid var(--line);border-radius:0;background:transparent}
  .hm-topic:first-child{border-top:0}
  .hm-topic:hover{box-shadow:none;background:var(--surface-2)}
  .hm-topic:active{transform:none;background:var(--surface-2)}
  .hm-topic:focus-visible{border-radius:0;outline-offset:-2px}
  .hm-thead{display:contents}
  .hm-ticon{grid-column:1;grid-row:1/span 2;width:32px;height:32px;border-radius:8px}
  .hm-ticon svg{width:18px;height:18px}
  .hm-tname{grid-column:2;grid-row:1;font-size:16px;font-weight:600}
  .hm-tval{grid-column:3;grid-row:1;justify-self:end;text-align:right;font-size:17px;letter-spacing:-.01em;overflow-wrap:normal}
  .hm-tlab{grid-column:2/4;grid-row:2;font-size:14px}
  .hm-tper{grid-column:2/4;grid-row:3}
  .hm-tper .badge{margin:4px 0 0}
  .hm-tpt,.hm-topic .hm-sp,.hm-tsrc{display:none}
}

/* ---------- find your place ---------- */
.hm-h3{margin-top:40px;font-size:19px}
.hm-provs{display:grid;gap:12px;grid-template-columns:repeat(4,minmax(0,1fr));margin-top:16px}
@media (max-width:559px){
  .hm-provs{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
  .hm-provs .hm-prov{padding:12px 16px}
  .hm-provs .hm-pval{margin-top:4px;font-size:18px}
}
/* "Sudurpashchim" kept whole: it needs 132px at 17px, which the two-column tiles give only from 368px */
@media (max-width:379px){.hm-provs .hm-pname{font-size:15px}}
@media (max-width:359px){.hm-provs .hm-prov{padding:12px 8px}}
.hm-prov{display:flex;flex-direction:column;gap:2px;min-width:0;padding:16px;border:1px solid var(--line);border-radius:14px;background:var(--surface);
  color:var(--ink);text-decoration:none;transition:border-color var(--ease),box-shadow var(--ease)}
.hm-prov:hover{border-color:var(--line-2);box-shadow:var(--shadow);color:var(--ink)}
.hm-prov:focus-visible{border-radius:14px}
.hm-pname{font-weight:650;line-height:1.3;overflow-wrap:anywhere}
.hm-prov-all{justify-content:center;background:transparent;border-style:dashed}
.hm-prov-all .hm-pname{color:var(--accent-ink)}
.hm-prov-all .hm-plab{margin-top:4px}
.hm-pval{margin-top:10px;font-size:20px;font-weight:700;letter-spacing:-.01em;font-variant-numeric:tabular-nums}
.hm-plab{font-size:13px;color:var(--muted)}
.hm-place .srcnote{margin-top:12px;max-width:90ch}

/* ---------- rankings and library ---------- */
.hm-duo{display:grid;gap:24px;grid-template-columns:repeat(2,minmax(0,1fr))}
@media (max-width:899px){.hm-duo{grid-template-columns:minmax(0,1fr)}}
.hm-panel{display:flex;flex-direction:column;min-width:0;padding:clamp(24px,3vw,36px);border:1px solid var(--line);border-radius:24px;background:var(--surface)}
.hm-panel h2{font-size:clamp(26px,3vw,34px)}
.hm-panel .hm-links{margin-top:auto;padding-top:24px}
.hm-panel .hm-q-s{margin-top:24px;max-width:none}
.hm-rankfig{margin-top:24px}
.hm-figt{font-size:14.5px;font-weight:600;line-height:1.4;color:var(--ink-2);margin-bottom:12px}
.hm-rank{list-style:none;margin:0;padding:0;display:grid;gap:10px}
.hm-rank li{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:4px 12px;align-items:baseline}
.hm-rank li .meter{grid-column:1/-1;height:8px}
.hm-rank a{color:var(--ink);text-decoration:none}
.hm-rank a:hover{text-decoration:underline;color:var(--accent-ink)}
.hm-rank b{font-weight:650}
.hm-rank .hm-gap{display:block;height:1px;background:var(--line);margin-block:4px}
.hm-rankfig .srcnote{margin-top:12px}

/* ---------- newest figures (a timeline: newest first) ---------- */
.hm-newest{list-style:none;margin:0;padding:0}
.hm-ngroup{display:grid;grid-template-columns:minmax(160px,240px) minmax(0,1fr);gap:8px 32px;padding-block:24px;border-top:1px solid var(--line)}
.hm-ngroup:first-child{border-top:0;padding-top:0}
.hm-ndate{font-weight:650;font-size:17px;line-height:1.35}
.hm-nsrc{font-size:14px;line-height:1.45;color:var(--muted);margin-bottom:6px}
.hm-nlist{list-style:none;margin:0;padding:0}
.hm-nlist li{display:flex;justify-content:space-between;align-items:baseline;gap:4px 24px;padding:9px 0;border-bottom:1px solid var(--line)}
.hm-nlist li>a{flex:1 1 12em;min-width:0;overflow-wrap:anywhere}
.hm-nlist li:last-child{border-bottom:0}
.hm-nlist a{color:var(--ink);text-decoration:none}
.hm-nlist a:hover{color:var(--accent-ink);text-decoration:underline}
.hm-nv{flex:0 1 auto;min-width:0;max-width:55%;text-align:right;font-size:15px;overflow-wrap:anywhere}
.hm-nv .badge{margin-left:6px}
.hm-more summary{display:inline-flex;align-items:center;min-height:40px;cursor:pointer;color:var(--accent-ink);font-weight:600;font-size:14.5px}
.hm-more summary:hover{color:var(--accent)}
.hm-more[open] summary{margin-bottom:0}
@media (max-width:719px){
  .hm-ngroup{grid-template-columns:minmax(0,1fr)}
  .hm-nlist li{flex-wrap:wrap}
  .hm-nv{flex:1 1 100%;max-width:none;text-align:left}
}

/* ---------- trust strip ---------- */
.hm-trust{padding-bottom:clamp(32px,4vw,56px)}
.hm-tgrid{list-style:none;margin:0;padding:0;display:grid;gap:32px;grid-template-columns:repeat(4,minmax(0,1fr))}
@media (max-width:1023px){.hm-tgrid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media (max-width:559px){.hm-tgrid{grid-template-columns:minmax(0,1fr);gap:28px}}
.hm-tgrid h3{font-size:19px;letter-spacing:-.01em}
.hm-tgrid p{margin-top:8px;font-size:15.5px;line-height:1.5;color:var(--ink-2)}
.hm-tgrid a{display:inline-block;margin-top:10px;font-size:15px;font-weight:600}
.hm-indep{margin-top:40px;padding-top:24px;border-top:1px solid var(--line);max-width:80ch;font-size:15.5px;color:var(--ink-2)}
.hm-indep a{font-weight:600;margin-left:4px}
.hm-place .hm-links{display:flex;flex-wrap:wrap;gap:8px;margin:4px 0 8px}

/* three doors after "Find your place": Finance, Customs, Constitution (a white band between two grey ones) */
.hm-doors-band{padding-block:clamp(32px,5vw,56px)}
.hm-doors{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,280px),1fr));gap:16px}
.hm-door{display:flex;flex-direction:column;gap:6px;padding:20px 22px;border:1px solid var(--line);border-radius:18px;background:var(--surface);color:var(--ink);text-decoration:none;transition:border-color var(--ease),transform var(--ease)}
.hm-door:hover{border-color:var(--accent);transform:translateY(-2px);color:var(--ink)}
.hm-dk{font-size:13px;font-weight:700;letter-spacing:.06em;text-transform:uppercase;color:var(--accent-ink)}
.hm-dt{font-size:20px;font-weight:700;line-height:1.3;letter-spacing:-.01em}
.hm-db{font-size:15px;line-height:1.5;color:var(--ink-2)}
.hm-dfact{margin-top:auto;padding-top:8px;font-size:14.5px;color:var(--ink-2)}
.hm-dfact b{font-size:18px;color:var(--ink);font-variant-numeric:tabular-nums}
@media (prefers-reduced-motion:reduce){.hm-door{transition:none}.hm-door:hover{transform:none}}

/* four doors (Finance, Customs, Constitution, Atlas): two by two, then one row of four on wide screens, never one alone */
@media (min-width:560px){.hm-doors{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media (min-width:1024px){.hm-doors{grid-template-columns:repeat(4,minmax(0,1fr))}}
