/* AQI UX Global Typography v1.1.0 — component-aware, presentation only */
:root{
 --aqi-font:-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Helvetica,Arial,sans-serif;
 --aqi-text:#24313d;--aqi-heading:#263746;--aqi-muted:#60707d;
}
body{font-family:var(--aqi-font);text-rendering:optimizeLegibility;-webkit-font-smoothing:antialiased}

/* Editorial/tool pages: readable hierarchy without touching specialist map/city/near-me components. */
body.aqi-ux-editorial-standard .entry-content{font-family:var(--aqi-font);color:var(--aqi-text)}
body.aqi-ux-editorial-standard .entry-content>h1:not(.entry-title),
body.aqi-ux-editorial-standard .aqi-cpf1-hero h1,
body.aqi-ux-editorial-standard .aqi-p3-hero h1{
 font-family:var(--aqi-font)!important;font-size:36px!important;line-height:1.18!important;font-weight:650!important;
 letter-spacing:0!important;color:var(--aqi-heading)!important;margin-top:0!important;margin-bottom:16px!important
}
body.aqi-ux-editorial-standard .aqi-cpf1-wrap h2,
body.aqi-ux-editorial-standard .aqi-p3-section h2,
body.aqi-ux-editorial-standard .aqi-p3-card h2,
body.aqi-ux-editorial-standard .aqi-p3-research-list h2{
 font-family:var(--aqi-font)!important;font-size:26px!important;line-height:1.3!important;font-weight:650!important;
 letter-spacing:0!important;color:var(--aqi-heading)!important;text-transform:none!important
}
body.aqi-ux-editorial-standard .aqi-cpf1-wrap h3,
body.aqi-ux-editorial-standard .aqi-p3-section h3,
body.aqi-ux-editorial-standard .aqi-p3-source h3{
 font-family:var(--aqi-font)!important;font-size:21px!important;line-height:1.35!important;font-weight:650!important;color:var(--aqi-heading)!important
}
/* Main reading text deliberately 17px: source credits/metadata must remain visually secondary. */
body.aqi-ux-editorial-standard .aqi-cpf1-wrap p,
body.aqi-ux-editorial-standard .aqi-cpf1-wrap li,
body.aqi-ux-editorial-standard .aqi-p3-wrap p,
body.aqi-ux-editorial-standard .aqi-p3-wrap li,
body.aqi-ux-editorial-standard:not(.aqi-c-foundation-page):not(.aqi-c-authority-page) .entry-content p,
body.aqi-ux-editorial-standard:not(.aqi-c-foundation-page):not(.aqi-c-authority-page) .entry-content li{
 font-family:var(--aqi-font)!important;font-size:17px!important;line-height:1.65!important;font-weight:400;color:var(--aqi-text)
}
body.aqi-ux-editorial-standard .aqi-cpf1-hero p,
body.aqi-ux-editorial-standard .aqi-p3-hero p{font-size:18px!important;line-height:1.62!important;color:#465765!important}
body.aqi-ux-editorial-standard .aqi-cpf1-hero>span,
body.aqi-ux-editorial-standard .aqi-p3-eyebrow,
body.aqi-ux-editorial-standard .aqi-p3-tag{font-size:12px!important;line-height:1.4!important;font-weight:700!important;letter-spacing:.08em!important;color:var(--aqi-muted)!important}

/* Methodology/reference material is secondary, but never tiny. */
body.aqi-ux-editorial-standard .aqi-cpf1-sourcebox p,
body.aqi-ux-editorial-standard .aqi-cpf1-sourcebox li,
body.aqi-ux-editorial-standard .aqi-small{font-size:15px!important;line-height:1.6!important}

/* Calculator: retain component identity; make placeholders quiet and entered values strong. */
body.aqi-ux-editorial-standard .aqi-field input{font-family:var(--aqi-font)!important;font-size:17px!important;font-weight:600!important;letter-spacing:0!important;color:#172033!important}
body.aqi-ux-editorial-standard .aqi-field input::placeholder{font-size:15px!important;font-weight:400!important;letter-spacing:0!important;text-transform:none!important;color:#7b8792!important;opacity:.78!important}
body.aqi-ux-editorial-standard .aqi-method-tab,
body.aqi-ux-editorial-standard .aqi-cpf1-calc,
body.aqi-ux-editorial-standard .aqi-cpf1-reset,
body.aqi-ux-editorial-standard .aqi-show-work{font-family:var(--aqi-font)!important}

/* Keep Calculate dominant and Reset clearly secondary/destructive. */
body.aqi-ux-editorial-standard .aqi-cpf1-calc{font-size:16px!important;font-weight:700!important}
body.aqi-ux-editorial-standard .aqi-cpf1-reset{font-size:15px!important;font-weight:650!important}

/* Authority pages: force the Kadence/theme title away; preserve plugin hero H1. */
body.aqi-ux-editorial-standard.aqi-c-authority-page .entry-header .entry-title,
body.aqi-ux-editorial-standard.aqi-c-authority-page .entry-hero .entry-title,
body.aqi-ux-editorial-standard.aqi-c-authority-page .page-header .entry-title,
body.aqi-ux-editorial-standard.aqi-c-authority-page h1.entry-title,
body.aqi-ux-editorial-standard.aqi-c-authority-page .page-title:not(.aqi-p3-hero *){display:none!important}
body.aqi-ux-editorial-standard.aqi-c-authority-page .entry-content{margin-top:0!important}

/* Content Foundation pages: same single-H1 protection. */
body.aqi-ux-editorial-standard.aqi-c-foundation-page .entry-header .entry-title,
body.aqi-ux-editorial-standard.aqi-c-foundation-page .entry-hero .entry-title,
body.aqi-ux-editorial-standard.aqi-c-foundation-page .page-header .entry-title,
body.aqi-ux-editorial-standard.aqi-c-foundation-page h1.entry-title,
body.aqi-ux-editorial-standard.aqi-c-foundation-page .page-title:not(.aqi-cpf1-hero *){display:none!important}

/* Directory and specialist pages keep their component typography; only inherit the site font. */
body.aqi-ux-directory-standard .entry-content,
body.aqi-ux-special-standard .entry-content{font-family:var(--aqi-font)}

/* Do not globally restyle footer, navigation, Global Map, Near Me, City Detail, AQI cards or counters. */

@media(max-width:767px){
 body.aqi-ux-editorial-standard .entry-content>h1:not(.entry-title),
 body.aqi-ux-editorial-standard .aqi-cpf1-hero h1,
 body.aqi-ux-editorial-standard .aqi-p3-hero h1{font-size:30px!important;line-height:1.2!important;margin-bottom:13px!important}
 body.aqi-ux-editorial-standard .aqi-cpf1-wrap h2,
 body.aqi-ux-editorial-standard .aqi-p3-section h2,
 body.aqi-ux-editorial-standard .aqi-p3-card h2,
 body.aqi-ux-editorial-standard .aqi-p3-research-list h2{font-size:23px!important;line-height:1.32!important}
 body.aqi-ux-editorial-standard .aqi-cpf1-wrap h3,
 body.aqi-ux-editorial-standard .aqi-p3-section h3{font-size:20px!important}
 body.aqi-ux-editorial-standard .aqi-cpf1-wrap p,
 body.aqi-ux-editorial-standard .aqi-cpf1-wrap li,
 body.aqi-ux-editorial-standard .aqi-p3-wrap p,
 body.aqi-ux-editorial-standard .aqi-p3-wrap li,
 body.aqi-ux-editorial-standard:not(.aqi-c-foundation-page):not(.aqi-c-authority-page) .entry-content p,
 body.aqi-ux-editorial-standard:not(.aqi-c-foundation-page):not(.aqi-c-authority-page) .entry-content li{font-size:16px!important;line-height:1.62!important}
 body.aqi-ux-editorial-standard .aqi-cpf1-hero p,
 body.aqi-ux-editorial-standard .aqi-p3-hero p{font-size:17px!important;line-height:1.6!important}
 body.aqi-ux-editorial-standard input,
 body.aqi-ux-editorial-standard select,
 body.aqi-ux-editorial-standard textarea,
 body.aqi-ux-editorial-standard button{font-size:16px}
 body.aqi-ux-editorial-standard .aqi-field input::placeholder{font-size:15px!important}
}

/* v1.1.1 — site chrome + article/news readability. Component-aware, no AQI data/layout logic. */

/* Primary desktop/mobile navigation: one compact, legible system. */
#top-menu a,
#et-top-navigation nav>ul>li>a,
.et_mobile_menu a,
.main-navigation a,
.primary-menu-container a,
.site-header .menu a{
 font-family:var(--aqi-font)!important;
 font-size:15px!important;
 line-height:1.35!important;
 font-weight:600!important;
 letter-spacing:0!important;
}

/* Long-form posts: reading text must never look like metadata. */
body.single-post .entry-content,
body.single-post .post-content{font-family:var(--aqi-font);color:var(--aqi-text)}
body.single-post .entry-content p,
body.single-post .entry-content li,
body.single-post .post-content p,
body.single-post .post-content li{
 font-size:17px!important;line-height:1.68!important;font-weight:400!important;color:var(--aqi-text)!important;
}
body.single-post .entry-content h1{font-size:36px!important;line-height:1.2!important;font-weight:650!important;color:var(--aqi-heading)!important}
body.single-post .entry-content h2{font-size:26px!important;line-height:1.3!important;font-weight:650!important;color:var(--aqi-heading)!important}
body.single-post .entry-content h3{font-size:21px!important;line-height:1.35!important;font-weight:650!important;color:var(--aqi-heading)!important}

/* WordPress/Divi/Kadence Latest Posts widgets: title > meta hierarchy. */
.widget_recent_entries a,
.widget_recent_posts a,
.et_pb_widget.widget_recent_entries a,
.sidebar .widget_recent_entries a,
#sidebar .widget_recent_entries a,
.widget-area .widget_recent_entries a{
 font-family:var(--aqi-font)!important;font-size:16px!important;line-height:1.38!important;font-weight:600!important;color:var(--aqi-heading)!important;
}
.widget_recent_entries .post-date,
.widget_recent_posts .post-date,
.et_pb_widget .post-date,
.sidebar .post-date,
#sidebar .post-date,
.widget-area .post-date{
 font-size:12.5px!important;line-height:1.4!important;font-weight:400!important;color:var(--aqi-muted)!important;
}
.widgettitle,
.widget-title,
.et_pb_widget .widgettitle,
.sidebar .widget-title,
#sidebar .widgettitle{
 font-family:var(--aqi-font)!important;font-size:18px!important;line-height:1.3!important;font-weight:700!important;letter-spacing:.02em!important;
}

/* Home/news cards: protect titles from generic link/reference sizing. */
.aqi-news-card a,
.aqi-latest-news a,
.latest-news a,
.latest-posts a,
.home .entry-content article h2 a,
.home .entry-content article h3 a{
 font-size:16px!important;line-height:1.38!important;font-weight:600!important;
}
.aqi-news-card p,
.aqi-latest-news p,
.latest-news p,
.latest-posts p{
 font-size:14.5px!important;line-height:1.55!important;font-weight:400!important;
}

/* Footer: strong section labels, comfortable links, no clipping. */
#main-footer,
#footer-widgets,
.site-footer,
footer{font-family:var(--aqi-font)}
#footer-widgets h2,#footer-widgets h3,#footer-widgets h4,
.site-footer h2,.site-footer h3,.site-footer h4,
footer .widget-title,footer .widgettitle{
 font-size:21px!important;line-height:1.25!important;font-weight:650!important;letter-spacing:.01em!important;
}
#footer-widgets a,
.site-footer a,
footer .menu a,
footer nav a{
 font-size:15.5px!important;line-height:1.55!important;font-weight:400!important;letter-spacing:0!important;white-space:normal!important;overflow-wrap:anywhere;
}
#footer-widgets li,.site-footer li,footer .menu li{line-height:1.55!important;margin-bottom:7px}

@media(max-width:767px){
 #top-menu a,#et-top-navigation nav>ul>li>a,.et_mobile_menu a,.main-navigation a,.primary-menu-container a,.site-header .menu a{font-size:15px!important;line-height:1.45!important}
 body.single-post .entry-content p,body.single-post .entry-content li,body.single-post .post-content p,body.single-post .post-content li{font-size:16px!important;line-height:1.65!important}
 body.single-post .entry-content h1{font-size:30px!important}
 body.single-post .entry-content h2{font-size:23px!important}
 body.single-post .entry-content h3{font-size:20px!important}
 .widget_recent_entries a,.widget_recent_posts a,.et_pb_widget.widget_recent_entries a,.sidebar .widget_recent_entries a,#sidebar .widget_recent_entries a,.widget-area .widget_recent_entries a{font-size:15.5px!important;line-height:1.4!important}
 #footer-widgets h2,#footer-widgets h3,#footer-widgets h4,.site-footer h2,.site-footer h3,.site-footer h4,footer .widget-title,footer .widgettitle{font-size:20px!important}
 #footer-widgets a,.site-footer a,footer .menu a,footer nav a{font-size:15.5px!important;line-height:1.6!important}
}

/* 1.1.2 — calculator chassis: visual treatment only */
.aqi-cpf1-wrap.aqi-calculator .aqi-calc-shell{position:relative;border:2px solid #1596cf!important;border-radius:18px!important;background:#fff!important;box-shadow:0 0 0 5px rgba(21,150,207,.08),0 12px 30px rgba(28,73,104,.14)!important;transition:border-color .2s ease,box-shadow .2s ease}
.aqi-cpf1-wrap.aqi-calculator[data-active-method="india"] .aqi-calc-shell{border-color:#ef8b00!important;box-shadow:0 0 0 5px rgba(239,139,0,.09),0 12px 30px rgba(97,64,21,.13)!important}
.aqi-cpf1-wrap.aqi-calculator[data-active-method="eu"] .aqi-calc-shell{border-color:#6754df!important;box-shadow:0 0 0 5px rgba(103,84,223,.09),0 12px 30px rgba(64,53,125,.13)!important}
.aqi-cpf1-wrap.aqi-calculator .aqi-show-work{background:#f5f8fa!important;border:1px solid #9eb2c1!important;color:#17384d!important;font-size:15px!important;font-weight:700!important}
@media(max-width:600px){.aqi-cpf1-wrap.aqi-calculator .aqi-calc-shell{border-radius:14px!important;box-shadow:0 0 0 3px rgba(21,150,207,.07),0 8px 20px rgba(28,73,104,.12)!important}}
