/* LEGACY: delete when the last Elementor page is converted (see spec). */
/* Repairs found while spot-checking unconverted pages under the new theme. Each rule names its page. */

/* All pages: Zakra's stylesheet set 'html { font-size: 62.5% }' (1rem = 10px) and the child theme's rem
   sizes (headings, spacing) were written against it. Without it they render 1.44x too large.
   The new theme's own CSS uses px, so this only affects legacy content. */
html {
	font-size: 62.5%;
}

/* All pages: child-style.css sets 'html, body { overflow-x: hidden }'. That makes <body> its own scroll
   container, which stops the new theme's sticky header from sticking and freezes scrolling on iOS Safari
   (see the note at the top of assets/css/base.css). Use clip on both, which
   clips the wide Elementor carousels without making either a scroll container. */
html {
	overflow-x: clip;
}
body {
	overflow-x: clip;
	overflow-y: visible;
}

/* All pages: child-style.css gives <body> 'font-family: Roboto' (Zakra's customizer stack), which the
   new header, footer and drawers would inherit. Keep them in the theme's Open Sans. */
:is(.ig-site-header, .ig-site-footer, .ig-drawer) {
	font-family: var(--wp--preset--font-family--open-sans);
}
:is(.ig-site-header, .ig-site-footer, .ig-drawer) * {
	font-family: inherit;
}

/* All pages: child-style.css and additional.css give <body> 15px text, a 27px line height and a grey text colour,
   which the new header, footer and drawers would inherit (the nav items sat ~1.5px off and grew 3px taller). Reset them to the theme's body values. :where() keeps this at
   zero specificity, so the parts' own font-size and colour rules (the footer's 14px, .ig-on-dark) still win. */
:where(.ig-site-header, .ig-site-footer, .ig-drawer) {
	color: var(--wp--preset--color--navy);
	font-size: var(--wp--preset--font-size--base);
	line-height: 1.6;
}

/* All pages: child-style.css gives every button:hover a blue background (#1e7ba6). The header's menu buttons
   (Customers, Resources, their arrows and the burger) have no hover background of their own, so it showed behind
   them. Keep them transparent; they change colour only (header.css). */
.ig-site-header :is(.ig-nav__toggle, .ig-nav__burger):hover {
	background-color: transparent;
}

/* All pages (e.g. the customer pages under /mobile-app-for-cities-towns/): the Elementor kit's "Text" global is Roboto
   in #212529, and child-style.css and additional.css give text-editor widgets and <body> 15px text, a 27px line height
   and square bullets, so the body copy (.project-summary-text, ul.check) looked unlike the rest of the site (Roboto
   isn't even served, so it fell back to Helvetica/Arial). Point the kit's Text global at the theme's body font, and give
   text-editor copy the blog article's prose (.ig-prose in post.css: 17px, 1.75 line height, text-strong, 22px between
   paragraphs and lists, disc bullets). body[class] outranks the kit's .elementor-kit-N variables; a widget's own colour
   or size set in Elementor (white text on a dark band) still wins. */
body[class*="elementor-kit-"] {
	--e-global-typography-text-font-family: var(--wp--preset--font-family--open-sans);
	--e-global-color-text: var(--wp--custom--color--text-strong);
}
body .elementor-widget-text-editor {
	font-family: var(--wp--preset--font-family--open-sans);
	color: var(--wp--custom--color--text-strong);
	font-size: var(--wp--preset--font-size--lead);
	line-height: 1.75;
}
body .elementor-widget-text-editor :is(p, ul, ol) {
	margin: 0 0 22px;
}
body .elementor-widget-text-editor :is(p, ul, ol):last-child {
	margin-bottom: 0;
}
body .elementor-widget-text-editor :is(ul, ol) {
	padding-left: 1.4em;
}
body .elementor-widget-text-editor ul {
	list-style: disc;
}
body .elementor-widget-text-editor li {
	margin-bottom: 6px;
}
