/* Site-wide typography: jf open 粉圓 for every page and language; justified body copy; shared tool tags. */
@font-face{font-family:'jf-openhuninn';src:url('fonts/jf-openhuninn-2.1.woff2') format('woff2'),url('fonts/jf-openhuninn-2.1.ttf') format('truetype');font-weight:400;font-style:normal;font-display:swap}

/* Font family: every text element; code and numeric monospace stay as they are. */
html body{font-family:'jf-openhuninn',system-ui,sans-serif!important}
html body :is(h1,h2,h3,h4,h5,h6,p,a,li,dt,dd,th,td,summary,label,button,select,option,textarea,input,figcaption,blockquote,strong,em,b,small,time,nav,header,footer,.uniform-title,.label,.tag,.chips span,.language-switch,.legend,.leaflet-popup-content,.leaflet-tooltip):not(:is(code,pre,kbd,samp,.clock,.trace-prompt,.mono)){font-family:'jf-openhuninn',system-ui,sans-serif!important}
/* Folium text labels and map UI carry inline families; icon fonts (FontAwesome / glyphicons) are left alone. */
html body :is(.leaflet-container,.leaflet-control,.leaflet-control-attribution,.leaflet-control-scale-line,.leaflet-marker-icon div,.leaflet-popup-content div,.map-click-shield,.map-click-shield .msg,#legend-toggle,#dynamic-legend,#summary-toggle,#summary-panel,#demand-open,#demand-panel,.m-legend-top,.m-legend-bot,.gui,.gui :is(div,span,button,input,select,label,strong,p,li)){font-family:'jf-openhuninn',system-ui,sans-serif!important}

/* Justified running text (Chinese and English); headings, buttons, tags, charts and map legends stay unjustified. */
html body :is(p,li,dd,figcaption):not(:is(nav,footer,.uniform-nav,.uniform-footer,.tags,.tool-tags,.chips,.legend,.leaflet-container,.gui,table,button,select,.language-switch,[role=tablist],svg,canvas) *){text-align:justify!important;text-justify:inter-character}
html body :is(.tags,.tool-tags,.chips,.legend,.leaflet-container,.gui,table,nav,footer,button,.language-switch,[role=tablist]) :is(p,li,dd,figcaption){text-align:start!important}
html body :is(footer,.uniform-footer) p,html body :is(.meta-line,.project-hero .tag){text-align:center!important}
html[lang^="en"] body :is(p,li,dd,figcaption){-webkit-hyphens:auto;hyphens:auto}
html[lang^="en"] body :is(.tags,.tool-tags,.chips,.legend,.leaflet-container,.gui,table,nav,footer,button) :is(p,li,dd,figcaption){-webkit-hyphens:manual;hyphens:manual}

/* Tool tags: <ul class="tool-tags"><li>QGIS</li>…</ul>; same look as the pill tags on the home-page cards. */
html body ul.tool-tags{display:flex;flex-wrap:wrap;gap:7px;list-style:none;margin:14px 0 24px;padding:0}
html body ul.tool-tags li{list-style:none;margin:0;padding:4px 9px;font-size:12px;line-height:1.5;font-weight:400;letter-spacing:normal;word-spacing:normal;background:#ffffff;color:#2f5559;border:1px solid #c9dad6;border-radius:5px;text-align:start!important;-webkit-hyphens:manual;hyphens:manual}
html body ul.tool-tags li::marker{content:""}

