/* Places pages: places.html (explorer, provinces, districts) and places.html#<code> / place-<code>.html (one place,
   13 sections). Tokens only (assets/npd.css); 4/8 px spacing; light and dark come from the tokens. */

/* ================================================================ head */
.pl-head .pl-top{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:0 24px;align-items:start}
.pl-head .pl-titles{display:contents}
.pl-head .pl-titles>*{grid-column:1}
.pl-head .pl-titles .lede{grid-column:1/-1}
.pl-head .pl-top>.pl-loc{grid-column:2;grid-row:1/span 3;width:clamp(104px,28vw,300px);margin-top:4px}
.pl-head h1{overflow-wrap:anywhere}
.pl-head{position:relative}
/* the early script's skeleton of the head: over the empty head, so nothing moves when the head is drawn */
.pl-hsk{position:absolute;top:40px;left:var(--gut);right:calc(var(--gut) + clamp(104px,28vw,300px) + 24px);pointer-events:none}
.pl-alt{margin-top:6px;font-size:clamp(17px,2.4vw,21px);color:var(--muted);font-weight:500}
.crumbs{margin-bottom:12px;gap:4px 8px;align-items:center}
.crumbs a{display:inline-flex;align-items:center;min-height:32px}
.crumbs span{color:var(--line-2)}
.pl-find{max-width:520px}
.pl-credit{padding-top:0}
.pl-credit .srcnote{max-width:75ch}
/* without JavaScript (static place-<code>.html) a section says that its figures need it, instead of a skeleton */
html:not(.pl-js) .pl-skb,html:not(.pl-js) .pl-head .pl-loc{display:none}
.pl-js .pl-nojs{display:none}
.pl-nojs{margin:0 0 16px;color:var(--muted);max-width:65ch}
/* loading: the first skeleton fills the screen, so the credit and footer start below it */
.pl-sk{min-height:100vh}

/* ================================================================ section chips (sticky under the header) */
.pl-nav{position:relative;z-index:20;background:color-mix(in srgb,var(--bg) 88%,transparent);-webkit-backdrop-filter:saturate(1.4) blur(14px);
  backdrop-filter:saturate(1.4) blur(14px);border-block:1px solid var(--line)}
.pl-chips{display:flex;gap:8px;margin:0;margin-inline:calc(-1 * var(--gut));padding:10px var(--gut);list-style:none;overflow-x:auto;scrollbar-width:none;
  scroll-padding-inline:var(--gut);height:61px;box-sizing:border-box}
/* its edge fades where more chips are (.ovf-l, .ovf-r) and the active chip stays in view: npd.js, for every chip row */
.pl-chips::-webkit-scrollbar{display:none}
.pl-chips li{flex:none}
.pl-chips a{display:inline-flex;align-items:center;gap:7px;height:40px;padding:0 14px 0 10px;border-radius:999px;background:var(--surface-2);color:var(--ink-2);
  font-size:14.5px;font-weight:600;text-decoration:none;white-space:nowrap;transition:background var(--ease),color var(--ease)}
.pl-chips a:hover{background:var(--surface-3);color:var(--ink)}
.pl-chips a:active{transform:translateY(1px)}
.pl-chips a.on{background:var(--ink);color:var(--bg)}
.pl-chips a.on .pl-cn{background:var(--bg);color:var(--ink)}
.pl-cn{display:inline-grid;place-items:center;min-width:22px;height:22px;padding:0 5px;border-radius:999px;background:var(--surface);color:var(--muted);font-size:12px;font-weight:700}
/* sticky under the header at every width (on phones too: a reader far down a long page can still jump anywhere) */
.pl-nav{position:sticky;top:calc(var(--hdr-vis) + env(safe-area-inset-top,0px));transition:top var(--ease)}   /* --hdr-vis: 0 while the header is hidden */

/* ================================================================ sections */
/* no scroll-margin-top of their own: the jump offset in npd.css counts the header and this sticky bar (--hdr, --subnav) */
.pl-sec>h2{display:flex;align-items:center;gap:12px;margin-bottom:16px}
.pl-sec>h2:focus{outline:none}
.pl-sn{flex:none;display:inline-grid;place-items:center;width:34px;height:34px;border-radius:10px;background:var(--accent-soft);color:var(--accent-ink);font-size:16px;font-weight:700;letter-spacing:0}
.pl-sb>.sub{margin-top:-4px}
.pl-skb{border-radius:20px}
.pl-none{margin:0;max-width:65ch;text-align:left}
.pl-blocks{display:grid;gap:16px;grid-template-columns:minmax(0,1fr)}
@media (min-width:900px){.pl-blocks{grid-template-columns:repeat(2,minmax(0,1fr));gap:20px}.pl-blocks>.wide{grid-column:1/-1}}
.pl-bh{font-size:13px;font-weight:650;color:var(--muted);text-transform:uppercase;letter-spacing:.06em;margin:0 0 10px}
/* folded sections (all after "People"): a <details> whose summary is the heading and the section's headline figure */
.pl-fold{padding-block:0}
.pl-sum{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;column-gap:16px;padding-block:16px;cursor:pointer;list-style:none;border-radius:12px}
.pl-sum::-webkit-details-marker{display:none}
.pl-sum>h2{grid-column:1;display:flex;align-items:center;gap:12px;margin:0}
.pl-shf{grid-column:1;margin:4px 0 0 46px;font-size:14.5px;line-height:1.45;color:var(--ink-2)}
.pl-chev{grid-column:2;grid-row:1/span 2;display:grid;place-items:center;width:40px;height:40px;border-radius:999px;background:var(--surface-2);transition:background var(--ease)}
.pl-chev::before{content:"";width:8px;height:8px;border-right:2px solid var(--ink-2);border-bottom:2px solid var(--ink-2);transform:translateY(-2px) rotate(45deg)}
.pl-det[open]>.pl-sum .pl-chev::before{transform:translateY(2px) rotate(-135deg)}
.pl-sum:hover .pl-chev{background:var(--surface-3)}
.pl-sum:focus-visible{outline-offset:4px}
.pl-det[open]{padding-bottom:40px}
.pl-det[open]>.pl-sum{margin-bottom:8px}
@media (prefers-reduced-motion:no-preference){.pl-chev::before{transition:transform var(--ease)}}
@media (max-width:519px){.pl-shf{margin-left:0}}

/* figure cards */
.pl-fig{position:relative;display:flex;flex-direction:column;min-width:0;padding:20px 20px 16px;border:1px solid var(--line);border-radius:20px;background:var(--surface)}
.pl-fig h3{font-size:18px;font-weight:650;letter-spacing:-.012em;line-height:1.3}
.pl-fsub{margin-top:4px;font-size:14px;color:var(--muted);line-height:1.45}
.pl-meta{margin-top:6px;font-size:12.5px;line-height:1.45;color:var(--muted)}
.pl-meta a,.pl-tm a{color:inherit}
.pl-meta a:hover,.pl-tm a:hover{color:var(--accent-ink)}
.pl-fig>.srcnote{margin-top:12px;font-size:12.5px}
.pl-fig>.srcnote a{color:inherit}
.pl-fig>.srcnote a:hover{color:var(--accent-ink)}
.pl-fig .ftab:empty{display:none}
.pl-cv{margin-top:14px;min-width:0}
.pl-near{margin-top:8px;padding:6px 10px;border-radius:8px;background:var(--surface-2);font-size:13px;line-height:1.4;color:var(--ink-2)}
.pl-st{font-style:italic}
.pl-st.pv{color:var(--warn);font-style:normal;font-weight:600}
@media (max-width:519px){.pl-fig{padding:16px 14px 12px;border-radius:16px}.pl-fig h3{font-size:17px}}

/* ================================================================ at a glance: eight tiles that grow with their text */
.pl-gsub{margin:0 0 16px;min-height:1.5em}
/* 4, 3 or 2 columns by width band, but no tile narrower than about 13, 12 or 9.5 em, so larger text (a phone's font
   size, text-only zoom) gets fewer, wider tiles; a tile's five rows line up with its neighbours' (subgrid) */
.pl-glance{display:grid;gap:12px;grid-template-columns:repeat(auto-fill,minmax(min(100%,max(13em,(100% - 36px) / 4)),1fr))}
@media (max-width:1023px){.pl-glance{grid-template-columns:repeat(auto-fill,minmax(min(100%,max(12em,(100% - 24px) / 3)),1fr))}}
@media (max-width:719px){.pl-glance{gap:10px;grid-template-columns:repeat(auto-fill,minmax(min(100%,max(9.5em,(100% - 10px) / 2)),1fr))}}
.pl-gt{display:grid;grid-template-rows:auto auto auto auto 1fr;row-gap:6px;box-sizing:border-box;padding:16px 16px 14px;border:1px solid var(--line);
  border-radius:16px;background:var(--surface);min-width:0}
@supports (grid-template-rows:subgrid){.pl-gt{grid-row:span 5;grid-template-rows:subgrid}}
@media (max-width:719px){.pl-gt{padding:14px 12px 12px}}
.pl-gt>*{min-width:0;margin:0}
.pl-gl{font-size:14.5px;font-weight:650;line-height:1.35;color:var(--ink-2);letter-spacing:0}
.pl-gl a{color:inherit;text-decoration:none}
.pl-gl a:hover{color:var(--accent-ink);text-decoration:underline}
.pl-gv{font-size:30px;font-weight:700;letter-spacing:-.02em;line-height:1.2;overflow-wrap:anywhere}
@media (max-width:719px){.pl-gv{font-size:25px}.pl-gl{font-size:14px}}
.pl-gt.pv .pl-gv{color:var(--ink-2)}
.pl-gs{font-size:13px;line-height:1.45;color:var(--ink-2)}
.pl-gr{border-top:1px solid var(--line);padding-top:8px}
.pl-grh{display:block;font-size:12.5px;line-height:1.35;font-weight:650;color:var(--muted)}
.pl-grh .s{display:none}
@media (min-width:360px) and (max-width:719px){.pl-grh .l{display:none}.pl-grh .s{display:inline}}
/* a rank row: "In Kathmandu District:" over "1st of 11 · highest" */
.pl-gr dl{display:grid;gap:6px;margin:6px 0 0}
.pl-gr dt{font-size:12.5px;line-height:1.35;color:var(--muted)}
.pl-gr dd{margin:0;font-size:13.5px;line-height:1.35;font-weight:650;color:var(--ink)}
.pl-rk{display:inline-block}
.pl-gm{font-size:12px;line-height:1.5;color:var(--muted);align-self:end}
.pl-gsk>.skel{display:block;min-height:0;border-radius:6px}
.pl-gsk>.skel:nth-child(1){width:70%;height:19px}
.pl-gsk>.skel:nth-child(2){width:55%;height:32px}
.pl-gsk>.skel:nth-child(3){width:80%;height:19px}
.pl-gsk>.skel:nth-child(4){width:100%;height:124px}
.pl-gsk>.skel:nth-child(5){width:65%;height:36px;align-self:end}
/* the sources of the eight figures, folded under one line */
.pl-gsrc{margin-top:16px}
.pl-gsrc>summary{display:inline-flex;align-items:center;gap:10px;min-height:44px;cursor:pointer;list-style:none;font-size:14px;font-weight:600;line-height:1.35;color:var(--accent-ink)}
.pl-gsrc>summary::-webkit-details-marker{display:none}
.pl-gsrc>summary::before{content:"";flex:none;width:7px;height:7px;border-right:2px solid currentColor;border-bottom:2px solid currentColor;transform:rotate(-45deg)}
.pl-gsrc[open]>summary::before{transform:rotate(45deg)}
.pl-gsrc>summary:hover{color:var(--accent)}
.pl-gsl{list-style:none;margin:4px 0 0;padding:0;display:grid;gap:8px;max-width:75ch;font-size:13px;line-height:1.45;color:var(--muted)}

/* ================================================================ value tiles (figs) */
.pl-figs{min-width:0}
.pl-tiles{display:grid;gap:12px;grid-template-columns:repeat(auto-fill,minmax(min(100%,232px),1fr))}
.pl-tile,.pl-acard{display:flex;flex-direction:column;gap:4px;min-width:0;padding:14px 16px;border:1px solid var(--line);border-radius:14px;background:var(--surface)}
.pl-tile h3,.pl-tile h4,.pl-acard h4{margin:0;font-size:14px;font-weight:600;line-height:1.35;color:var(--ink-2)}
.pl-tile h3 a,.pl-tile h4 a,.pl-acard h4 a{color:inherit;text-decoration:none}
.pl-tile h3 a:hover,.pl-tile h4 a:hover,.pl-acard h4 a:hover{color:var(--accent-ink);text-decoration:underline}
.pl-tv{margin:0;font-size:clamp(24px,3.2vw,28px);font-weight:700;letter-spacing:-.02em;line-height:1.15;overflow-wrap:anywhere}
.pl-tv.pv{color:var(--ink-2)}
.pl-tv small{display:block;margin-top:2px;font-size:13.5px;font-weight:600;letter-spacing:0;line-height:1.3;color:var(--muted)}
.pl-ta{margin:0;font-size:13px;line-height:1.4;color:var(--ink-2)}
.pl-tn{margin:0;font-size:12.5px;line-height:1.4;color:var(--muted)}
.pl-tm{margin:auto 0 0;padding-top:8px;font-size:12px;line-height:1.45;color:var(--muted)}
.pl-tile.ctx .pl-tv,.pl-acard.ctx .pl-tv{color:var(--muted);font-weight:600}
.pl-tile .pl-near,.pl-acard .pl-near{margin-top:2px;padding:4px 8px;font-size:12.5px}
/* no figure for the place: that, in place of the value, and the nearest level's figure in a smaller line */
.pl-tile.ctx .pl-tv.pl-tnp,.pl-acard.ctx .pl-tv.pl-tnp{font-size:15px;line-height:1.35;font-weight:600;letter-spacing:0;color:var(--muted)}
.pl-tbr b{font-weight:650;color:var(--ink-2)}
/* context rows: the levels above, lighter */
.pl-cx{list-style:none;margin:4px 0 0;padding:6px 0 0;border-top:1px dashed var(--line-2);display:grid;grid-template-columns:minmax(0,1fr);gap:2px}
/* name and value on one line; with large text the value goes under the name, still on the right (nothing cut off) */
.pl-cx li{display:flex;flex-wrap:wrap;justify-content:space-between;column-gap:10px;font-size:12.5px;line-height:1.45;color:var(--muted)}
.pl-cx li span{min-width:0;overflow-wrap:anywhere}
.pl-cx li b{margin-left:auto;font-weight:550;color:var(--ink-2)}
.pl-cxh{margin:12px 0 0;font-size:12.5px;font-weight:600;color:var(--muted)}
.pl-fig>.pl-cx{border-top:0;padding-top:2px;max-width:520px}

/* ================================================================ parts: 100% bars beside the levels above */
.pl-parts{position:relative;margin-top:14px;display:grid;gap:8px}
.pl-pr{display:grid;grid-template-columns:minmax(0,148px) minmax(0,1fr);gap:10px;align-items:center;border-radius:6px}
.pl-pr:focus-visible{outline:2px solid var(--accent);outline-offset:3px}
.pl-pn{font-size:13.5px;font-weight:650;color:var(--ink);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.pl-pb{display:flex;height:22px;border-radius:6px;overflow:hidden;background:var(--surface-2);gap:1px}
.pl-pb i{display:block;height:100%;min-width:1px;transition:opacity var(--ease)}
.pl-pr.ctx .pl-pn{font-weight:500;color:var(--muted)}
.pl-pr.ctx .pl-pb{height:14px;opacity:.62}
@media (max-width:559px){.pl-pr{grid-template-columns:minmax(0,1fr);gap:3px}}
.pl-lg{list-style:none;margin:14px 0 0;padding:0;display:grid;gap:4px 18px;grid-template-columns:repeat(auto-fill,minmax(min(100%,210px),1fr))}
.pl-lg li{display:grid;grid-template-columns:12px minmax(0,1fr) auto;gap:8px;align-items:baseline;font-size:13px;line-height:1.4;color:var(--ink-2)}
.pl-lg i{width:12px;height:12px;border-radius:3px;align-self:center}
.pl-lg b{font-weight:650;color:var(--ink)}
.pl-tip{position:absolute;z-index:6;left:0;top:0;pointer-events:none;background:var(--ink);color:var(--bg);border-radius:10px;padding:7px 10px;font-size:12.5px;line-height:1.35;
  max-width:min(260px,calc(100% - 8px));box-shadow:var(--shadow);display:grid;gap:1px}
.pl-tip b{font-size:13.5px}
.pl-tip .v{font-weight:650;font-variant-numeric:tabular-nums}

/* ================================================================ sharebars: the place's share, marks for the levels above */
.pl-key{list-style:none;margin:12px 0 0;padding:0;display:flex;flex-wrap:wrap;gap:4px 16px;font-size:12.5px;color:var(--ink-2)}
.pl-key li{display:inline-flex;align-items:center;gap:6px}
.pl-key i{position:relative;display:inline-block;flex:none}
.pl-kf{width:14px;height:10px;border-radius:3px;background:var(--c1)}
.pl-sbars{list-style:none;margin:12px 0 0;padding:0;display:grid;gap:10px}
.pl-sbars li{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:3px 10px;align-items:baseline}
.pl-sn2{font-size:13.5px;line-height:1.35;color:var(--ink-2);min-width:0;overflow-wrap:anywhere}
.pl-sbars b{font-size:13.5px;font-weight:650;white-space:nowrap}
.pl-sbars b small{font-weight:500;color:var(--muted);font-size:12px}
.pl-st2{grid-column:1/-1;position:relative;display:block;height:12px;border-radius:999px;background:var(--surface-2)}
.pl-sf{position:absolute;left:0;top:0;bottom:0;border-radius:999px;background:var(--c1)}
.pl-mk1,.pl-mk2,.pl-mko{position:absolute;top:-3px;width:0;height:18px}
.pl-mk1::before,.pl-mk2::before{content:"";position:absolute;left:-1.5px;top:0;width:3px;height:18px;border-radius:2px;background:var(--ink-2)}
.pl-mk2::before{background:transparent;border-left:3px dotted var(--ink-2);width:0}
.pl-mko::before{content:"";position:absolute;left:-5px;top:4px;width:10px;height:10px;border-radius:50%;border:2px solid var(--ink-2);background:var(--surface);box-sizing:border-box}
.pl-key .pl-mk1,.pl-key .pl-mk2,.pl-key .pl-mko{position:relative;top:0;width:10px;height:14px}
.pl-key .pl-mk1::before,.pl-key .pl-mk2::before{left:4px;height:14px}
.pl-key .pl-mko::before{left:0;top:2px}
.pl-sax{display:flex;justify-content:space-between;margin-top:6px;font-size:11.5px;color:var(--muted);font-variant-numeric:tabular-nums}

/* ================================================================ linked dots: women and men, two periods */
.pl-dots{list-style:none;margin:12px 0 0;padding:0;display:grid;gap:12px}
.pl-dots li{display:grid;grid-template-columns:minmax(0,148px) minmax(0,1fr) auto;gap:10px;align-items:center}
.pl-dn{font-size:13.5px;font-weight:650;color:var(--ink);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.pl-dots li.ctx .pl-dn{font-weight:500;color:var(--muted)}
.pl-dt{position:relative;height:20px;border-radius:999px;background:linear-gradient(var(--surface-2),var(--surface-2)) center/100% 2px no-repeat}
.pl-dl{position:absolute;top:9px;height:2px;background:var(--line-2)}
.pl-dw,.pl-dm,.pl-da,.pl-db{position:absolute;top:3px;width:14px;height:14px;margin-left:-7px;border-radius:50%;box-sizing:border-box}
.pl-dw{background:var(--k3)}
.pl-dm{background:var(--k1)}
.pl-da{background:var(--surface);border:2.5px solid var(--c2)}
.pl-db{background:var(--c1)}
.pl-dots li.ctx .pl-dw,.pl-dots li.ctx .pl-dm,.pl-dots li.ctx .pl-db{opacity:.55}
.pl-dv{font-size:12.5px;white-space:nowrap;color:var(--ink-2);text-align:right;min-width:96px}
.pl-dv .w{color:var(--k3);font-weight:650}.pl-dv .m{color:var(--k1);font-weight:650}.pl-dv .a{color:var(--muted)}.pl-dv .b{font-weight:650;color:var(--ink)}
.pl-key .pl-dw,.pl-key .pl-dm,.pl-key .pl-da,.pl-key .pl-db{position:relative;top:0;margin:0}
@media (max-width:559px){.pl-dots li{grid-template-columns:minmax(0,1fr) auto}.pl-dt{grid-column:1/-1;grid-row:2}}

/* ================================================================ tables, maps, more figures */
.pl-mt{margin-top:14px}
.pl-mt tr.tot th,.pl-mt tr.tot td{font-weight:650}
.pl-mt tr.pp th,.pl-mt tr.pp td{color:var(--ink-2);background:var(--bg-2)}
/* phones: the grant table fits the screen (amounts may take two lines) instead of scrolling sideways */
@media (max-width:479px){.pl-mt th,.pl-mt td{padding:9px 7px}.pl-mt table{font-size:14px}.pl-mt td.r{white-space:normal}}
.pl-mapf .pl-mh{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:10px 16px}
.pl-pick{flex:0 1 340px}
.pl-mapgrid{display:grid;gap:16px;grid-template-columns:minmax(0,1fr);margin-top:12px}
@media (min-width:960px){.pl-mapgrid{grid-template-columns:minmax(0,1.65fr) minmax(260px,1fr)}}
.pl-mcv{min-height:240px}
.pl-klist{list-style:none;margin:0;padding:0 4px 0 0}
@media (min-width:960px){.pl-klist{max-height:560px;overflow:auto}}
.pl-klist li{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:4px 10px;align-items:baseline;padding:8px 0;border-bottom:1px solid var(--line);font-size:14.5px}
.pl-klist .nm{min-width:0}
.pl-klist a{color:var(--ink);text-decoration:none;font-weight:600}
.pl-klist a:hover{color:var(--accent-ink);text-decoration:underline}
.pl-klist small{margin-left:6px;color:var(--muted);font-size:12.5px}
.pl-klist b{font-weight:600;white-space:nowrap}
.pl-klist li.me a{color:var(--accent-ink)}
.pl-klist li.me{background:linear-gradient(90deg,var(--accent-soft),transparent)}
.pl-bar{grid-column:1/-1;display:block;height:6px;border-radius:999px;background:var(--surface-2);overflow:hidden}
.pl-bar i{display:block;height:100%;background:var(--c1);border-radius:999px}
.pl-auto{min-width:0}
.pl-acards{display:grid;gap:12px;grid-template-columns:repeat(auto-fill,minmax(min(100%,232px),1fr))}
.pl-asp{margin-top:4px}
.pl-asp .npc-spark{display:block;width:100%;height:36px}
.pl-sx{display:flex;justify-content:space-between;font-size:11.5px;color:var(--muted)}
.pl-aparts{list-style:none;margin:6px 0 0;padding:0;display:grid;gap:6px}
.pl-aparts li{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:3px 8px;align-items:baseline;font-size:13px}
.pl-aparts li>span:first-child{color:var(--ink-2);overflow-wrap:anywhere}
.pl-aparts b{font-weight:600;white-space:nowrap}
.pl-aparts .pl-bar{height:4px}
.pl-aparts .pl-amore{display:block;color:var(--muted);font-size:12.5px}
.pl-more{margin-top:12px}

/* ================================================================ compare */
.pl-strips{display:grid;gap:14px;margin-top:14px}
.pl-strip{min-width:0}
.pl-sh{display:flex;flex-wrap:wrap;align-items:baseline;gap:2px 10px}
.pl-sl{font-size:13.5px;font-weight:600;color:var(--ink-2)}
.pl-sh b{font-size:14.5px;font-weight:700}
.pl-sr{margin-left:auto;font-size:12.5px;color:var(--muted)}
.pl-sv{position:relative;margin-top:2px;border-radius:6px;outline-offset:2px;cursor:crosshair;touch-action:pan-y}
.pl-sv svg{display:block;overflow:visible}
.pl-s0{stroke:var(--line);stroke-width:1}
.pl-s1{stroke:var(--c2);stroke-width:1;opacity:.55;fill:none}
.pl-s2{stroke:var(--ink-2);stroke-width:1.5;fill:none}
.pl-s3{stroke:var(--accent);stroke-width:3;fill:none}
.pl-s4{fill:var(--accent);stroke:var(--surface);stroke-width:2}
.pl-s5{stroke:var(--ink);stroke-width:1.5;fill:none}
.pl-sv .pl-tip{top:0}
.pl-sv .pl-sax{margin-top:2px}
.pl-ptab{margin-top:14px}
.pl-ptab table{min-width:560px;table-layout:fixed}
.pl-ptab th,.pl-ptab td{vertical-align:middle}
.pl-ptab thead th{vertical-align:bottom}
.pl-ptab thead th a{display:block;color:var(--ink);font-size:14px;font-weight:650;text-decoration:none;line-height:1.3}
.pl-ptab thead th a:hover{color:var(--accent-ink);text-decoration:underline}
.pl-ptab thead th small{display:block;font-weight:500;color:var(--muted);font-size:12px;text-transform:none;letter-spacing:0;line-height:1.3}
.pl-ptab thead th:first-child{width:28%}
.pl-ptab tbody th{font-size:13.5px;font-weight:600;color:var(--ink-2);background:transparent;position:static}
.pl-ptab td b{display:block;font-weight:650;font-size:14.5px}
.pl-ptab td .pl-bar{margin-top:4px;height:5px}
.pl-ptab .me{background:var(--accent-soft)}
.pl-ptab thead th.me a{color:var(--accent-ink)}
.pl-pick2{display:flex;flex-wrap:wrap;align-items:flex-start;gap:10px 12px;margin-top:14px;position:relative}
.pl-pchips{display:flex;flex-wrap:wrap;gap:8px}
.pl-pchip{display:inline-flex;align-items:center;gap:4px;height:40px;padding:0 4px 0 14px;border-radius:999px;background:var(--surface-2);font-size:14px;font-weight:600;color:var(--ink-2)}
.pl-pchip button{display:inline-grid;place-items:center;width:32px;height:32px;border:0;border-radius:999px;background:transparent;color:var(--muted);font-size:18px;line-height:1;cursor:pointer;
  transition:background var(--ease),color var(--ease)}
.pl-pchip button:hover{background:var(--surface-3);color:var(--ink)}
.pl-padd{flex:1 1 260px;max-width:360px}
.pl-padd input{height:40px;font-size:15px}
.pl-padd svg{top:10px}
.pl-pick2 .results{position:absolute;z-index:8;left:0;right:0;top:48px;max-width:420px}

/* ================================================================ landing: provinces and districts */
.pl-provs{display:grid;gap:14px;grid-template-columns:repeat(auto-fill,minmax(min(100%,250px),1fr))}
.pl-pcard{gap:4px}
.pl-pmap{width:100%;max-width:230px;margin-bottom:6px}
@media (max-width:559px){.pl-pmap{max-width:190px}}
.pl-mini{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;margin-top:8px;padding-top:10px;border-top:1px solid var(--line)}
.pl-mini dt{font-size:11.5px;color:var(--muted);font-weight:600;line-height:1.3}
.pl-mini dd{margin:2px 0 0;font-size:16px;font-weight:650}
.pl-dir{display:grid;gap:20px 28px;grid-template-columns:repeat(auto-fill,minmax(min(100%,220px),1fr))}
.pl-dir h3{font-size:16px;margin-bottom:4px}
.pl-dir h3 a{color:var(--ink);text-decoration:none}
.pl-dir h3 a:hover{color:var(--accent-ink);text-decoration:underline}
.pl-dlist{list-style:none;margin:0;padding:0}
.pl-dlist li{display:flex;justify-content:space-between;align-items:center;gap:8px;border-bottom:1px solid var(--line)}
.pl-dlist a{flex:1;display:block;padding:10px 0;color:var(--ink);text-decoration:none}
.pl-dlist a:hover{color:var(--accent-ink);text-decoration:underline}
.pl-dlist span{color:var(--muted);font-size:13px}
@media (max-width:559px){.pl-head~div details.data th,.pl-head~div details.data td{padding:8px 7px;font-size:14px}}
.pl-tv.pl-tparty{font-size:clamp(19px,2.4vw,22px);line-height:1.25}
/* elected representatives by name (BLOCKS.reps) */
.pl-rps{margin-top:6px}
.pl-rpc h4{text-transform:none}
.pl-rpn{margin:2px 0 0;font-size:clamp(19px,2.4vw,22px);font-weight:700;line-height:1.3;color:var(--ink);overflow-wrap:anywhere}
.pl-rph{margin:18px 0 0;font-size:14px;font-weight:650;color:var(--ink-2)}
.pl-rph small{font-weight:500}
.pl-rpt table{font-size:14.5px}
.pl-rpt tbody th{font-size:14px;font-weight:600;color:var(--ink);background:transparent;position:static;white-space:nowrap}
.pl-rpt tbody th a{color:inherit}
.pl-rpt tbody th a:hover{color:var(--accent-ink)}
.pl-rpt td{min-width:7em}
.pl-rpt td.r{min-width:0}
.pl-rpk{display:block;font-size:12px;font-weight:400;color:var(--muted);white-space:normal}
/* phones: each row a small card (the cells keep their table roles; labels come from data-label) */
@media (max-width:559px){
  .pl-rpt{border:0;border-radius:0;overflow:visible}
  .pl-rpt thead{display:none}
  .pl-rpt table,.pl-rpt tbody{display:block}
  .pl-rpt tr{display:grid;gap:2px 12px;padding:11px 0;border-bottom:1px solid var(--line)}
  .pl-rpt tbody tr:hover{background:none}
  .pl-rpt tbody th,.pl-rpt td{display:block;min-width:0;padding:0;border:0;white-space:normal;text-align:left}
  .pl-rpt td.r::before,.pl-rpd td:nth-child(2)::before,.pl-rpd td:nth-child(4)::before{content:attr(data-label);display:block;font-size:11.5px;font-weight:500;line-height:1.3;color:var(--muted)}
  .pl-rpm tr{grid-template-columns:repeat(3,auto) 1fr}
  .pl-rpm tbody th,.pl-rpm td:nth-child(2),.pl-rpm td:nth-child(3){grid-column:1/-1}
  .pl-rpm tbody th{font-size:13px;font-weight:600;color:var(--muted)}
  .pl-rpm td:nth-child(2){font-size:16.5px;font-weight:650;color:var(--ink)}
  .pl-rpm td:nth-child(3){font-size:13.5px;color:var(--ink-2)}
  .pl-rpm td.r{margin-top:6px;font-size:14px;font-weight:600}
  .pl-rpw tr{grid-template-columns:2em minmax(0,1fr) auto}
  .pl-rpw tbody th{grid-row:1/3;font-size:14px}
  .pl-rpw td:nth-child(2){font-weight:600}
  .pl-rpw td:nth-child(3){grid-column:2/4;grid-row:2;font-size:13.5px;color:var(--ink-2)}
  .pl-rpw td.r{grid-column:3;grid-row:1;font-size:14px}
  .pl-rpw td.r::before{display:none}
  .pl-rpd tr{grid-template-columns:minmax(0,1fr) minmax(0,1fr)}
  .pl-rpd tbody th{grid-column:1/-1;font-size:15px}
  .pl-rpd tbody th .pl-rpk{display:inline;margin-left:6px}
  .pl-rpd td:nth-child(2),.pl-rpd td:nth-child(4){grid-column:1;font-weight:600}
  .pl-rpd td:nth-child(3),.pl-rpd td:nth-child(5){grid-column:2;align-self:end;font-size:13.5px;color:var(--ink-2)}
}
/* context rows: a long value with its "calculated" label wraps the label under the value instead of clipping */
.pl-cx li b{text-align:right}
.pl-cx li b small{display:block;font-size:11px;font-weight:400;color:var(--muted);line-height:1.2}
/* "Travel and nature here" (pipeline/page_defs/explore_common.py near_html) */
.ex-near{margin:32px 0 8px;padding-top:20px;border-top:1px solid var(--line)}
.ex-near h3{font-size:1rem;margin:16px 0 8px}
.ex-near .tv-chips{list-style:none;margin:0;padding:0;display:flex;flex-wrap:wrap;gap:8px}
.ex-near .tv-chips a{display:inline-block;padding:6px 12px;border:1px solid var(--line);border-radius:999px;color:var(--ink);text-decoration:none;font-size:.92rem}
.ex-near .tv-chips a:hover{border-color:var(--accent);color:var(--accent-ink)}
